#include <bits/stdc++.h>

using namespace std;

constexpr int MAX_THREADS = (1 << 9);

struct edge {
    int u, v, w;
    edge(int u, int v, int w): u(u), v(v), w(w) {}
};

using comparison_func_t = bool (*) (edge*, edge*);

int n;
edge *edges, *chosen_edges;
int *par;
int num_edge;

__device__ bool comparison_weight(edge *x, edge *y) {
    if (x->w == y->w) {
        if (x->u == y->u)
            return x->v < y->v;
        return x->u < y->u;
    }
    return x->w < y->w;
}

__device__ bool comparison_node(edge *x, edge *y) {
    if (x->u == y->u)
        return x->v < y->v;
    return x->u < y->u;
}

__device__ comparison_func_t p_comparison_weight = comparison_weight;
__device__ comparison_func_t p_comparison_node = comparison_node;

int get_container_length(int x) {
    int ret = 1;
    while (ret < x)
        ret <<= 1;
    return ret;
}

__global__ void bitonic_sort_kernel(edge *d_edges, int j, int k, comparison_func_t comparison) {
    unsigned int i, ixj;
    i = threadIdx.x + blockDim.x * blockIdx.x;
    ixj = i ^ j;

    auto swap = [&](edge& x, edge& y)->void {
        edge temp = x;
        x = y;
        y = temp;
    };

    if (ixj > i) {
        if (((i & k) != 0) && (*comparison)(&d_edges[i], &d_edges[ixj]))
            swap(d_edges[i], d_edges[ixj]);
        else if (((i & k) == 0) && (*comparison)(&d_edges[ixj], &d_edges[i]))
            swap(d_edges[i], d_edges[ixj]);
    }
}

void bitonic_sort(edge *edges, int length, comparison_func_t comparison) {
    int container_length = get_container_length(length);
    for (int i = length; i < container_length; i++) {
        edges[i] = edge(INT_MAX, INT_MAX, INT_MAX);
    }
    length = container_length;

    edge *d_edges;
    size_t container_size = length * sizeof(edge);

    // Copy data to gpu
    cudaMalloc((void**) & d_edges, container_size);
    cudaMemcpy(d_edges, edges, container_size, cudaMemcpyHostToDevice);

    // Call kernel func
    int num_thread = min(length, MAX_THREADS);
    int num_blocks = length / num_thread;
    dim3 blocks(num_blocks, 1);
    dim3 threads(num_thread, 1);

    for (int k = 2; k <= length; k <<= 1) {
        for (int j = k >> 1; j > 0; j >>= 1) {
            bitonic_sort_kernel<<<blocks, threads>>>(d_edges, j, k, comparison);
        }
    }

    // Copy result from gpu
    cudaMemcpy(edges, d_edges, container_size, cudaMemcpyDeviceToHost);
    cudaFree(d_edges);
}

int main(int argc, char **argv) {
    // Copy function to device
    comparison_func_t h_comparison_weight;
    comparison_func_t h_comparison_node;

    cudaMemcpyFromSymbol(&h_comparison_weight, p_comparison_weight, sizeof(comparison_func_t));
    cudaMemcpyFromSymbol(&h_comparison_node, p_comparison_node, sizeof(comparison_func_t));

    // Init clock
    clock_t t = clock();

    // Input n
    cin >> n;

    // Initialize parents
    par = (int * ) malloc(n * sizeof(int));
    for (int i = 0; i < n; i++) {
        par[i] = i;
    }

    function<int(int)> find_set = [&](int x) {
        return (par[x] == x ? x : par[x] = find_set(par[x]));
    };

    function<bool(int, int)> merge_set = [&](int u, int v) {
        int pu = find_set(u), pv = find_set(v);
        if (pu == pv) return false;
        par[pv] = pu;
        return true;
    };

    // Input edge
    edges = (edge * ) malloc(n * n * sizeof(edge));
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < n; j++) {
            int x;
            cin >> x;
            if (x == -1 || i >= j) continue;
            edges[num_edge++] = edge(i, j, x);
        }
    }
    assert(num_edge >= n - 1);

    // Sort weight
    bitonic_sort(edges, num_edge, h_comparison_weight);

    // Build MST
    long long total_cost = 0;
    int num_chosen = 0;
    chosen_edges = (edge * ) malloc(num_edge * 2 * sizeof(edge));
    for (int i = 0; i < num_edge; i++) {
        int u = edges[i].u, v = edges[i].v, w = edges[i].w;
        if (merge_set(u, v)) {
            total_cost += w;
            chosen_edges[num_chosen++] = edges[i];
            if (num_chosen == n - 1) break;
        }
    }

    // Sort chosen edge for output
    bitonic_sort(chosen_edges, num_chosen, h_comparison_node);

    // Get duration
    double time_taken = ((double) (clock() - t)) / CLOCKS_PER_SEC;

    // Output
    cout << total_cost << '\n';
    for (int i = 0; i < num_chosen; i++) {
        cout << chosen_edges[i].u << '-' << chosen_edges[i].v << '\n';
    }
    cout << fixed << setprecision(12) << "Waktu eksekusi: " << time_taken << " ms\n";

    // Return
    return 0;
}

	.file	"tmpxft_0031ae79_00000000-6_MST_CUDA.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.section	.text._ZSt5fixedRSt8ios_base,"axG",@progbits,_ZSt5fixedRSt8ios_base,comdat
	.weak	_ZSt5fixedRSt8ios_base
	.type	_ZSt5fixedRSt8ios_base, @function
_ZSt5fixedRSt8ios_base:
.LFB4717:
	.cfi_startproc
	endbr64
	movl	24(%rdi), %edx
	movq	%rdi, %rax
	andl	$-261, %edx
	orl	$4, %edx
	movl	%edx, 24(%rdi)
	ret
	.cfi_endproc
.LFE4717:
	.size	_ZSt5fixedRSt8ios_base, .-_ZSt5fixedRSt8ios_base
	.text
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB10847:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE10847:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation, @function
_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation:
.LFB11986:
	.cfi_startproc
	endbr64
	testl	%edx, %edx
	je	.L4
	cmpl	$1, %edx
	jne	.L11
	movq	%rsi, (%rdi)
	jmp	.L7
.L4:
	leaq	_ZTIZ4mainEUliiE_(%rip), %rax
	jmp	.L9
.L11:
	cmpl	$2, %edx
	jne	.L7
	movq	(%rsi), %rax
.L9:
	movq	%rax, (%rdi)
.L7:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE11986:
	.size	_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation, .-_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.type	_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation, @function
_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation:
.LFB11979:
	.cfi_startproc
	endbr64
	testl	%edx, %edx
	je	.L13
	cmpl	$1, %edx
	jne	.L19
	movq	%rsi, (%rdi)
	jmp	.L16
.L13:
	leaq	_ZTIZ4mainEUliE_(%rip), %rax
	jmp	.L18
.L19:
	cmpl	$2, %edx
	jne	.L16
	movq	(%rsi), %rax
.L18:
	movq	%rax, (%rdi)
.L16:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE11979:
	.size	_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation, .-_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.section	.text._ZNSt14_Function_baseD2Ev,"axG",@progbits,_ZNSt14_Function_baseD5Ev,comdat
	.align 2
	.weak	_ZNSt14_Function_baseD2Ev
	.type	_ZNSt14_Function_baseD2Ev, @function
_ZNSt14_Function_baseD2Ev:
.LFB3468:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3468
	endbr64
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	.L26
	movq	%rdi, %rsi
	pushq	%rdx
	.cfi_def_cfa_offset 16
	movl	$3, %edx
	call	*%rax
	popq	%rcx
	.cfi_def_cfa_offset 8
	ret
.L26:
	ret
	.cfi_endproc
.LFE3468:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table._ZNSt14_Function_baseD2Ev,"aG",@progbits,_ZNSt14_Function_baseD5Ev,comdat
.LLSDA3468:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3468-.LLSDACSB3468
.LLSDACSB3468:
.LLSDACSE3468:
	.section	.text._ZNSt14_Function_baseD2Ev,"axG",@progbits,_ZNSt14_Function_baseD5Ev,comdat
	.size	_ZNSt14_Function_baseD2Ev, .-_ZNSt14_Function_baseD2Ev
	.weak	_ZNSt14_Function_baseD1Ev
	.set	_ZNSt14_Function_baseD1Ev,_ZNSt14_Function_baseD2Ev
	.text
	.globl	_Z17comparison_weightP4edgeS0_
	.type	_Z17comparison_weightP4edgeS0_, @function
_Z17comparison_weightP4edgeS0_:
.LFB10828:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE10828:
	.size	_Z17comparison_weightP4edgeS0_, .-_Z17comparison_weightP4edgeS0_
	.globl	_Z15comparison_nodeP4edgeS0_
	.type	_Z15comparison_nodeP4edgeS0_, @function
_Z15comparison_nodeP4edgeS0_:
.LFB12623:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_Z17comparison_weightP4edgeS0_
	.cfi_endproc
.LFE12623:
	.size	_Z15comparison_nodeP4edgeS0_, .-_Z15comparison_nodeP4edgeS0_
	.globl	_Z20get_container_lengthi
	.type	_Z20get_container_lengthi, @function
_Z20get_container_lengthi:
.LFB10830:
	.cfi_startproc
	endbr64
	movl	$1, %eax
.L34:
	cmpl	%edi, %eax
	jge	.L36
	addl	%eax, %eax
	jmp	.L34
.L36:
	ret
	.cfi_endproc
.LFE10830:
	.size	_Z20get_container_lengthi, .-_Z20get_container_lengthi
	.globl	_Z55__device_stub__Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_EP4edgeiiPFbS0_S0_E
	.type	_Z55__device_stub__Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_EP4edgeiiPFbS0_S0_E, @function
_Z55__device_stub__Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_EP4edgeiiPFbS0_S0_E:
.LFB10869:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 20(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 16(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L37
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L37:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10869:
	.size	_Z55__device_stub__Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_EP4edgeiiPFbS0_S0_E, .-_Z55__device_stub__Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_EP4edgeiiPFbS0_S0_E
	.globl	_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E
	.type	_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E, @function
_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E:
.LFB10870:
	.cfi_startproc
	endbr64
	jmp	_Z55__device_stub__Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_EP4edgeiiPFbS0_S0_E
	.cfi_endproc
.LFE10870:
	.size	_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E, .-_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E
	.globl	_Z12bitonic_sortP4edgeiPFbS0_S0_E
	.type	_Z12bitonic_sortP4edgeiPFbS0_S0_E, @function
_Z12bitonic_sortP4edgeiPFbS0_S0_E:
.LFB10831:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	$1, %ebx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
.L43:
	cmpl	%ebx, %esi
	jle	.L54
	addl	%ebx, %ebx
	jmp	.L43
.L54:
	movslq	%esi, %rsi
	imulq	$12, %rsi, %rax
	addq	%rbp, %rax
.L45:
	cmpl	%esi, %ebx
	jle	.L55
	movl	$2147483647, (%rax)
	incq	%rsi
	addq	$12, %rax
	movl	$2147483647, -8(%rax)
	movl	$2147483647, -4(%rax)
	jmp	.L45
.L55:
	movslq	%ebx, %r13
	leaq	8(%rsp), %rdi
	movl	$2, %r14d
	imulq	$12, %r13, %r13
	movq	%r13, %rsi
	call	cudaMalloc@PLT
	movq	8(%rsp), %rdi
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movl	$512, %ecx
	movl	%ebx, %eax
	cmpl	%ecx, %ebx
	cmovle	%ebx, %ecx
	cltd
	idivl	%ecx
	movl	%ecx, 28(%rsp)
	movl	%eax, 16(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 20(%rsp)
	movq	%rax, 32(%rsp)
.L47:
	cmpl	%ebx, %r14d
	jg	.L56
	movl	%r14d, %r15d
.L49:
	sarl	%r15d
	testl	%r15d, %r15d
	jle	.L57
	movl	36(%rsp), %ecx
	movq	28(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	16(%rsp), %rdi
	movl	24(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L49
	movq	8(%rsp), %rdi
	movq	%r12, %rcx
	movl	%r14d, %edx
	movl	%r15d, %esi
	call	_Z55__device_stub__Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_EP4edgeiiPFbS0_S0_E
	jmp	.L49
.L57:
	addl	%r14d, %r14d
	jmp	.L47
.L56:
	movq	8(%rsp), %rsi
	movq	%rbp, %rdi
	movl	$2, %ecx
	movq	%r13, %rdx
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdi
	call	cudaFree@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10831:
	.size	_Z12bitonic_sortP4edgeiPFbS0_S0_E, .-_Z12bitonic_sortP4edgeiPFbS0_S0_E
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Waktu eksekusi: "
.LC2:
	.string	" ms\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB10832:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA10832
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$2, %r8d
	xorl	%ecx, %ecx
	movl	$8, %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	_ZL19p_comparison_weight(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	_ZSt3cin(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rdi
.LEHB0:
	call	cudaMemcpyFromSymbol@PLT
	movl	$8, %edx
	movl	$2, %r8d
	xorl	%ecx, %ecx
	leaq	32(%rsp), %rdi
	leaq	_ZL17p_comparison_node(%rip), %rsi
	call	cudaMemcpyFromSymbol@PLT
	call	clock@PLT
	leaq	n(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %r14
	call	_ZNSirsERi@PLT
.LEHE0:
	movslq	n(%rip), %rdi
	movq	%rdi, %rbx
	salq	$2, %rdi
	call	malloc@PLT
	xorl	%edx, %edx
	movq	%rax, par(%rip)
.L59:
	cmpl	%edx, %ebx
	jle	.L86
	movl	%edx, (%rax,%rdx,4)
	incq	%rdx
	jmp	.L59
.L86:
	imull	%ebx, %ebx
	leaq	_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi(%rip), %rax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rax, 64(%rsp)
	leaq	40(%rsp), %r12
	leaq	20(%rsp), %r15
	leaq	_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation(%rip), %rax
	movq	%rdx, 48(%rsp)
	movslq	%ebx, %rdi
	movq	%rax, 56(%rsp)
	xorl	%ebx, %ebx
	leaq	_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_(%rip), %rax
	imulq	$12, %rdi, %rdi
	movq	%rax, 96(%rsp)
	leaq	_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation(%rip), %rax
	movq	%r12, 40(%rsp)
	movq	%rcx, 80(%rsp)
	movq	%r12, 72(%rsp)
	movq	%rax, 88(%rsp)
	call	malloc@PLT
	movq	%rax, edges(%rip)
.L61:
	cmpl	%ebx, n(%rip)
	jle	.L87
	xorl	%ebp, %ebp
.L64:
	cmpl	%ebp, n(%rip)
	jle	.L88
	movq	%r15, %rsi
	movq	%r13, %rdi
.LEHB1:
	call	_ZNSirsERi@PLT
	movl	20(%rsp), %edx
	cmpl	$-1, %edx
	je	.L62
	cmpl	%ebp, %ebx
	jge	.L62
	movslq	num_edge(%rip), %rax
	leal	1(%rax), %ecx
	imulq	$12, %rax, %rax
	addq	edges(%rip), %rax
	movl	%ecx, num_edge(%rip)
	movl	%ebp, 4(%rax)
	movl	%ebx, (%rax)
	movl	%edx, 8(%rax)
.L62:
	incl	%ebp
	jmp	.L64
.L88:
	incl	%ebx
	jmp	.L61
.L87:
	movq	24(%rsp), %rdx
	movl	num_edge(%rip), %esi
	movq	edges(%rip), %rdi
	call	_Z12bitonic_sortP4edgeiPFbS0_S0_E
	movl	num_edge(%rip), %eax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	leal	(%rax,%rax), %edi
	movslq	%edi, %rdi
	imulq	$12, %rdi, %rdi
	call	malloc@PLT
	movq	%rax, chosen_edges(%rip)
	xorl	%eax, %eax
	movq	%rax, (%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
.L65:
	cmpl	%r13d, num_edge(%rip)
	jle	.L89
	imulq	$12, %r13, %r15
	movq	edges(%rip), %rax
	addq	%r15, %rax
	cmpq	$0, 88(%rsp)
	movl	4(%rax), %edx
	movslq	8(%rax), %rbp
	movl	(%rax), %eax
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	jne	.L66
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L83
	call	_ZSt25__throw_bad_function_callv@PLT
.L66:
	movq	8(%rsp), %rdx
	leaq	16(%rsp), %rsi
	leaq	72(%rsp), %rdi
	call	*96(%rsp)
	testb	%al, %al
	je	.L68
	movq	edges(%rip), %rax
	addq	%rbp, (%rsp)
	leal	1(%rbx), %ebp
	imulq	$12, %rbx, %rbx
	addq	chosen_edges(%rip), %rbx
	movq	(%rax,%r15), %rdx
	movq	%rdx, (%rbx)
	movl	8(%rax,%r15), %eax
	movl	%eax, 8(%rbx)
	movl	n(%rip), %eax
	decl	%eax
	cmpl	%ebp, %eax
	je	.L69
	movslq	%ebp, %rbx
.L68:
	incq	%r13
	jmp	.L65
.L89:
	movl	%ebx, %ebp
.L69:
	movq	32(%rsp), %rdx
	movq	chosen_edges(%rip), %rdi
	movl	%ebp, %esi
	call	_Z12bitonic_sortP4edgeiPFbS0_S0_E
	call	clock@PLT
	movq	(%rsp), %rsi
	subq	%r14, %rax
	leaq	_ZSt4cout(%rip), %r14
	movq	%r14, %rdi
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movq	%xmm0, %rbx
	call	_ZNSo9_M_insertIxEERSoT_@PLT
	movq	%rax, %rdi
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c@PLT
	xorl	%r13d, %r13d
.L71:
	cmpl	%r13d, %ebp
	jle	.L90
	imulq	$12, %r13, %r15
	movq	chosen_edges(%rip), %rax
	movq	%r14, %rdi
	movl	(%rax,%r15), %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movl	$45, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c@PLT
	movq	%rax, %rdi
	movq	chosen_edges(%rip), %rax
	movl	4(%rax,%r15), %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c@PLT
	incq	%r13
	jmp	.L71
.L90:
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	movq	%r14, %rdi
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	movq	%rax, %rdi
	movq	(%rax), %rax
	leaq	.LC1(%rip), %rsi
	movq	-24(%rax), %rax
	movq	$12, 8(%rdi,%rax)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%rbx, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC2(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE1:
	leaq	72(%rsp), %rdi
	call	_ZNSt14_Function_baseD2Ev
	movq	%r12, %rdi
	call	_ZNSt14_Function_baseD2Ev
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L75
	jmp	.L83
.L78:
	endbr64
	movq	%rax, %rbx
.L73:
	leaq	72(%rsp), %rdi
	call	_ZNSt14_Function_baseD2Ev
	movq	%r12, %rdi
	call	_ZNSt14_Function_baseD2Ev
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L83
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L83:
	call	__stack_chk_fail@PLT
.L75:
	addq	$120, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10832:
	.section	.gcc_except_table,"a",@progbits
.LLSDA10832:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE10832-.LLSDACSB10832
.LLSDACSB10832:
	.uleb128 .LEHB0-.LFB10832
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB10832
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L78-.LFB10832
	.uleb128 0
	.uleb128 .LEHB2-.LFB10832
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE10832:
	.section	.text.startup
	.size	main, .-main
	.section	.rodata.str1.1
.LC3:
	.string	"_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E"
.LC4:
	.string	"p_comparison_weight"
.LC5:
	.string	"p_comparison_node"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB10872:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC3(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC4(%rip), %rdx
	movl	$8, %r9d
	leaq	_ZL19p_comparison_weight(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC5(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$8, %r9d
	leaq	_ZL17p_comparison_node(%rip), %rsi
	call	__cudaRegisterVar@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE10872:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNKSt8functionIFiiEEclEi,"axG",@progbits,_ZNKSt8functionIFiiEEclEi,comdat
	.align 2
	.weak	_ZNKSt8functionIFiiEEclEi
	.type	_ZNKSt8functionIFiiEEclEi, @function
_ZNKSt8functionIFiiEEclEi:
.LFB11552:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	cmpq	$0, 16(%rdi)
	movl	%esi, 12(%rsp)
	jne	.L94
	call	_ZSt25__throw_bad_function_callv@PLT
.L94:
	leaq	12(%rsp), %rsi
	call	*24(%rdi)
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE11552:
	.size	_ZNKSt8functionIFiiEEclEi, .-_ZNKSt8functionIFiiEEclEi
	.text
	.type	_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi, @function
_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi:
.LFB11975:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	par(%rip), %rax
	movslq	(%rsi), %rcx
	leaq	(%rax,%rcx,4), %rbx
	movl	(%rbx), %eax
	cmpl	%eax, %ecx
	je	.L96
	movq	(%rdi), %rdi
	movl	%eax, %esi
	call	_ZNKSt8functionIFiiEEclEi
	movl	%eax, (%rbx)
.L96:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE11975:
	.size	_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi, .-_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi
	.type	_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_, @function
_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_:
.LFB11983:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	(%rsi), %esi
	movq	(%rdi), %rdi
	movl	(%rdx), %r12d
	call	_ZNKSt8functionIFiiEEclEi
	movq	0(%rbp), %rdi
	movl	%r12d, %esi
	movl	%eax, %ebx
	call	_ZNKSt8functionIFiiEEclEi
	xorl	%edx, %edx
	cmpl	%eax, %ebx
	je	.L99
	movq	par(%rip), %rdx
	cltq
	movl	%ebx, (%rdx,%rax,4)
	movb	$1, %dl
.L99:
	popq	%rbx
	.cfi_def_cfa_offset 24
	movl	%edx, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE11983:
	.size	_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_, .-_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_
	.section	.data.rel.ro,"aw"
	.align 8
	.type	_ZTIZ4mainEUliE_, @object
	.size	_ZTIZ4mainEUliE_, 16
_ZTIZ4mainEUliE_:
	.quad	_ZTVN10__cxxabiv117__class_type_infoE+16
	.quad	_ZTSZ4mainEUliE_
	.section	.rodata
	.align 8
	.type	_ZTSZ4mainEUliE_, @object
	.size	_ZTSZ4mainEUliE_, 14
_ZTSZ4mainEUliE_:
	.string	"*Z4mainEUliE_"
	.section	.data.rel.ro
	.align 8
	.type	_ZTIZ4mainEUliiE_, @object
	.size	_ZTIZ4mainEUliiE_, 16
_ZTIZ4mainEUliiE_:
	.quad	_ZTVN10__cxxabiv117__class_type_infoE+16
	.quad	_ZTSZ4mainEUliiE_
	.section	.rodata
	.align 8
	.type	_ZTSZ4mainEUliiE_, @object
	.size	_ZTSZ4mainEUliiE_, 15
_ZTSZ4mainEUliiE_:
	.string	"*Z4mainEUliiE_"
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.local	_ZL17p_comparison_node
	.comm	_ZL17p_comparison_node,8,8
	.local	_ZL19p_comparison_weight
	.comm	_ZL19p_comparison_weight,8,8
	.globl	num_edge
	.bss
	.align 4
	.type	num_edge, @object
	.size	num_edge, 4
num_edge:
	.zero	4
	.globl	par
	.align 8
	.type	par, @object
	.size	par, 8
par:
	.zero	8
	.globl	chosen_edges
	.align 8
	.type	chosen_edges, @object
	.size	chosen_edges, 8
chosen_edges:
	.zero	8
	.globl	edges
	.align 8
	.type	edges, @object
	.size	edges, 8
edges:
	.zero	8
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <bits/stdc++.h>

using namespace std;

constexpr int MAX_THREADS = (1 << 9);

struct edge {
    int u, v, w;
    edge(int u, int v, int w): u(u), v(v), w(w) {}
};

using comparison_func_t = bool (*) (edge*, edge*);

int n;
edge *edges, *chosen_edges;
int *par;
int num_edge;

__device__ bool comparison_weight(edge *x, edge *y) {
    if (x->w == y->w) {
        if (x->u == y->u)
            return x->v < y->v;
        return x->u < y->u;
    }
    return x->w < y->w;
}

__device__ bool comparison_node(edge *x, edge *y) {
    if (x->u == y->u)
        return x->v < y->v;
    return x->u < y->u;
}

__device__ comparison_func_t p_comparison_weight = comparison_weight;
__device__ comparison_func_t p_comparison_node = comparison_node;

int get_container_length(int x) {
    int ret = 1;
    while (ret < x)
        ret <<= 1;
    return ret;
}

__global__ void bitonic_sort_kernel(edge *d_edges, int j, int k, comparison_func_t comparison) {
    unsigned int i, ixj;
    i = threadIdx.x + blockDim.x * blockIdx.x;
    ixj = i ^ j;

    auto swap = [&](edge& x, edge& y)->void {
        edge temp = x;
        x = y;
        y = temp;
    };

    if (ixj > i) {
        if (((i & k) != 0) && (*comparison)(&d_edges[i], &d_edges[ixj]))
            swap(d_edges[i], d_edges[ixj]);
        else if (((i & k) == 0) && (*comparison)(&d_edges[ixj], &d_edges[i]))
            swap(d_edges[i], d_edges[ixj]);
    }
}

void bitonic_sort(edge *edges, int length, comparison_func_t comparison) {
    int container_length = get_container_length(length);
    for (int i = length; i < container_length; i++) {
        edges[i] = edge(INT_MAX, INT_MAX, INT_MAX);
    }
    length = container_length;

    edge *d_edges;
    size_t container_size = length * sizeof(edge);

    // Copy data to gpu
    hipMalloc((void**) & d_edges, container_size);
    hipMemcpy(d_edges, edges, container_size, hipMemcpyHostToDevice);

    // Call kernel func
    int num_thread = min(length, MAX_THREADS);
    int num_blocks = length / num_thread;
    dim3 blocks(num_blocks, 1);
    dim3 threads(num_thread, 1);

    for (int k = 2; k <= length; k <<= 1) {
        for (int j = k >> 1; j > 0; j >>= 1) {
            bitonic_sort_kernel<<<blocks, threads>>>(d_edges, j, k, comparison);
        }
    }

    // Copy result from gpu
    hipMemcpy(edges, d_edges, container_size, hipMemcpyDeviceToHost);
    hipFree(d_edges);
}

int main(int argc, char **argv) {
    // Copy function to device
    comparison_func_t h_comparison_weight;
    comparison_func_t h_comparison_node;

    hipMemcpyFromSymbol(&h_comparison_weight, HIP_SYMBOL(p_comparison_weight), sizeof(comparison_func_t));
    hipMemcpyFromSymbol(&h_comparison_node, HIP_SYMBOL(p_comparison_node), sizeof(comparison_func_t));

    // Init clock
    clock_t t = clock();

    // Input n
    cin >> n;

    // Initialize parents
    par = (int * ) malloc(n * sizeof(int));
    for (int i = 0; i < n; i++) {
        par[i] = i;
    }

    function<int(int)> find_set = [&](int x) {
        return (par[x] == x ? x : par[x] = find_set(par[x]));
    };

    function<bool(int, int)> merge_set = [&](int u, int v) {
        int pu = find_set(u), pv = find_set(v);
        if (pu == pv) return false;
        par[pv] = pu;
        return true;
    };

    // Input edge
    edges = (edge * ) malloc(n * n * sizeof(edge));
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < n; j++) {
            int x;
            cin >> x;
            if (x == -1 || i >= j) continue;
            edges[num_edge++] = edge(i, j, x);
        }
    }
    assert(num_edge >= n - 1);

    // Sort weight
    bitonic_sort(edges, num_edge, h_comparison_weight);

    // Build MST
    long long total_cost = 0;
    int num_chosen = 0;
    chosen_edges = (edge * ) malloc(num_edge * 2 * sizeof(edge));
    for (int i = 0; i < num_edge; i++) {
        int u = edges[i].u, v = edges[i].v, w = edges[i].w;
        if (merge_set(u, v)) {
            total_cost += w;
            chosen_edges[num_chosen++] = edges[i];
            if (num_chosen == n - 1) break;
        }
    }

    // Sort chosen edge for output
    bitonic_sort(chosen_edges, num_chosen, h_comparison_node);

    // Get duration
    double time_taken = ((double) (clock() - t)) / CLOCKS_PER_SEC;

    // Output
    cout << total_cost << '\n';
    for (int i = 0; i < num_chosen; i++) {
        cout << chosen_edges[i].u << '-' << chosen_edges[i].v << '\n';
    }
    cout << fixed << setprecision(12) << "Waktu eksekusi: " << time_taken << " ms\n";

    // Return
    return 0;
}

	.text
	.file	"MST_CUDA.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z20get_container_lengthi       # -- Begin function _Z20get_container_lengthi
	.type	_Z20get_container_lengthi,@function
_Z20get_container_lengthi:              # @_Z20get_container_lengthi
	.cfi_startproc
# %bb.0:
	movl	$1, %ecx
.LBB0_1:                                # =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	leal	(%rax,%rax), %ecx
	cmpl	%edi, %eax
	jl	.LBB0_1
# %bb.2:
                                        # kill: def $eax killed $eax killed $rax
	retq
.Lfunc_end0:
	.size	_Z20get_container_lengthi, .Lfunc_end0-_Z20get_container_lengthi
	.cfi_endproc
                                        # -- End function
	.globl	_Z34__device_stub__bitonic_sort_kernelP4edgeiiPFbS0_S0_E # -- Begin function _Z34__device_stub__bitonic_sort_kernelP4edgeiiPFbS0_S0_E
	.type	_Z34__device_stub__bitonic_sort_kernelP4edgeiiPFbS0_S0_E,@function
_Z34__device_stub__bitonic_sort_kernelP4edgeiiPFbS0_S0_E: # @_Z34__device_stub__bitonic_sort_kernelP4edgeiiPFbS0_S0_E
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	12(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	8(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z34__device_stub__bitonic_sort_kernelP4edgeiiPFbS0_S0_E, .Lfunc_end1-_Z34__device_stub__bitonic_sort_kernelP4edgeiiPFbS0_S0_E
	.cfi_endproc
                                        # -- End function
	.globl	_Z12bitonic_sortP4edgeiPFbS0_S0_E # -- Begin function _Z12bitonic_sortP4edgeiPFbS0_S0_E
	.type	_Z12bitonic_sortP4edgeiPFbS0_S0_E,@function
_Z12bitonic_sortP4edgeiPFbS0_S0_E:      # @_Z12bitonic_sortP4edgeiPFbS0_S0_E
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %r14
	movq	%rdi, %r12
	movl	$1, %eax
.LBB2_1:                                # =>This Inner Loop Header: Depth=1
	movl	%eax, %r15d
	leal	(%r15,%r15), %eax
	cmpl	%esi, %r15d
	jl	.LBB2_1
# %bb.2:                                # %_Z20get_container_lengthi.exit.preheader
	jle	.LBB2_3
# %bb.9:                                # %_Z20get_container_lengthi.exit.preheader50
	movslq	%esi, %rsi
	movslq	%r15d, %rax
	leaq	(%rsi,%rsi,2), %rcx
	leaq	(%r12,%rcx,4), %rcx
	addq	$8, %rcx
	movq	%rax, %rdx
	subq	%rsi, %rdx
	movabsq	$9223372034707292159, %rsi      # imm = 0x7FFFFFFF7FFFFFFF
.LBB2_10:                               # %_Z20get_container_lengthi.exit
                                        # =>This Inner Loop Header: Depth=1
	movq	%rsi, -8(%rcx)
	movl	$2147483647, (%rcx)             # imm = 0x7FFFFFFF
	addq	$12, %rcx
	decq	%rdx
	jne	.LBB2_10
	jmp	.LBB2_4
.LBB2_3:                                # %_Z20get_container_lengthi.exit.preheader._Z20get_container_lengthi.exit._crit_edge_crit_edge
	movslq	%r15d, %rax
.LBB2_4:                                # %_Z20get_container_lengthi.exit._crit_edge
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %r13
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movq	%r12, 16(%rsp)                  # 8-byte Spill
	movq	%r12, %rsi
	movq	%r13, 8(%rsp)                   # 8-byte Spill
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	$512, %r13d                     # imm = 0x200
	cmpl	%r13d, %r15d
	cmovll	%r15d, %r13d
	movl	%r15d, %eax
	cltd
	idivl	%r13d
	cmpl	$2, %r15d
	jl	.LBB2_8
# %bb.5:                                # %.lr.ph47.preheader
	movl	%eax, %ebp
	btsq	$32, %rbp
	btsq	$32, %r13
	movl	$2, %r12d
.LBB2_6:                                # %.lr.ph47
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_11 Depth 2
	movl	%r12d, %ebx
	sarl	%ebx
	testl	%ebx, %ebx
	jle	.LBB2_7
.LBB2_11:                               # %.lr.ph43
                                        #   Parent Loop BB2_6 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB2_13
# %bb.12:                               #   in Loop: Header=BB2_11 Depth=2
	movq	(%rsp), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_Z34__device_stub__bitonic_sort_kernelP4edgeiiPFbS0_S0_E
.LBB2_13:                               #   in Loop: Header=BB2_11 Depth=2
	movl	%ebx, %eax
	shrl	%eax
	cmpl	$2, %ebx
	movl	%eax, %ebx
	jae	.LBB2_11
.LBB2_7:                                # %._crit_edge
                                        #   in Loop: Header=BB2_6 Depth=1
	addl	%r12d, %r12d
	cmpl	%r15d, %r12d
	jle	.LBB2_6
.LBB2_8:                                # %._crit_edge48
	movq	(%rsp), %rsi
	movq	16(%rsp), %rdi                  # 8-byte Reload
	movq	8(%rsp), %rdx                   # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
	movq	(%rsp), %rdi
	callq	hipFree
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z12bitonic_sortP4edgeiPFbS0_S0_E, .Lfunc_end2-_Z12bitonic_sortP4edgeiPFbS0_S0_E
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI3_0:
	.quad	0x412e848000000000              # double 1.0E+6
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	leaq	64(%rsp), %rdi
	movl	$p_comparison_weight, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
	leaq	56(%rsp), %rdi
	movl	$p_comparison_node, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
	callq	clock
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	movl	$_ZSt3cin, %edi
	movl	$n, %esi
	callq	_ZNSirsERi
	movslq	n(%rip), %r12
	leaq	(,%r12,4), %rdi
	callq	malloc
	movq	%rax, par(%rip)
	testq	%r12, %r12
	jle	.LBB3_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%r12d, %ecx
	xorl	%edx, %edx
.LBB3_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	%edx, (%rax,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	.LBB3_2
.LBB3_3:                                # %._crit_edge
	xorl	%r15d, %r15d
	leaq	72(%rsp), %rax
	movq	%r15, 8(%rax)
	movq	%rax, (%rax)
	movq	$_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi, 24(%rax)
	movq	$_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation, 16(%rax)
	movq	%r15, 24(%rsp)
	movq	%rax, 16(%rsp)
	movq	$_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_, 40(%rsp)
	movq	$_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation, 32(%rsp)
	movl	%r12d, %eax
	imull	%eax, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rdi
	callq	malloc
	movq	%rax, edges(%rip)
	testl	%r12d, %r12d
	jle	.LBB3_14
# %bb.4:                                # %.preheader.preheader
	leaq	8(%rsp), %r14
.LBB3_5:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_7 Depth 2
	testl	%r12d, %r12d
	jle	.LBB3_12
# %bb.6:                                # %.lr.ph94.preheader
                                        #   in Loop: Header=BB3_5 Depth=1
	xorl	%ebx, %ebx
.LBB3_7:                                # %.lr.ph94
                                        #   Parent Loop BB3_5 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp0:
	movl	$_ZSt3cin, %edi
	movq	%r14, %rsi
	callq	_ZNSirsERi
.Ltmp1:
# %bb.8:                                #   in Loop: Header=BB3_7 Depth=2
	cmpl	%ebx, %r15d
	jae	.LBB3_11
# %bb.9:                                #   in Loop: Header=BB3_7 Depth=2
	movl	8(%rsp), %eax
	cmpl	$-1, %eax
	je	.LBB3_11
# %bb.10:                               #   in Loop: Header=BB3_7 Depth=2
	movq	edges(%rip), %rcx
	movslq	num_edge(%rip), %rdx
	leal	1(%rdx), %esi
	movl	%esi, num_edge(%rip)
	leaq	(%rdx,%rdx,2), %rdx
	movl	%r15d, (%rcx,%rdx,4)
	movl	%ebx, 4(%rcx,%rdx,4)
	movl	%eax, 8(%rcx,%rdx,4)
.LBB3_11:                               #   in Loop: Header=BB3_7 Depth=2
	incl	%ebx
	movl	n(%rip), %r12d
	cmpl	%r12d, %ebx
	jl	.LBB3_7
.LBB3_12:                               # %._crit_edge95
                                        #   in Loop: Header=BB3_5 Depth=1
	incl	%r15d
	cmpl	%r12d, %r15d
	jl	.LBB3_5
# %bb.13:                               # %._crit_edge97.loopexit
	movq	edges(%rip), %rax
.LBB3_14:                               # %._crit_edge97
	movl	num_edge(%rip), %esi
	movq	64(%rsp), %rdx
.Ltmp3:
	movq	%rax, %rdi
	callq	_Z12bitonic_sortP4edgeiPFbS0_S0_E
.Ltmp4:
# %bb.15:
	movslq	num_edge(%rip), %rbx
	leaq	(,%rbx,8), %rax
	leaq	(%rax,%rax,2), %rdi
	callq	malloc
	movq	%rax, chosen_edges(%rip)
	testq	%rbx, %rbx
	jle	.LBB3_23
# %bb.16:                               # %.lr.ph102.preheader
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r13
	xorl	%r14d, %r14d
	xorl	%ebp, %ebp
	xorl	%r15d, %r15d
.LBB3_17:                               # %.lr.ph102
                                        # =>This Inner Loop Header: Depth=1
	movq	edges(%rip), %rax
	movl	(%rax,%rbx), %ecx
	movl	4(%rax,%rbx), %edx
	movslq	8(%rax,%rbx), %r12
	movl	%ecx, 8(%rsp)
	movl	%edx, 12(%rsp)
	cmpq	$0, 32(%rsp)
	je	.LBB3_49
# %bb.18:                               #   in Loop: Header=BB3_17 Depth=1
.Ltmp6:
	leaq	16(%rsp), %rdi
	leaq	8(%rsp), %rsi
	movq	%r13, %rdx
	callq	*40(%rsp)
.Ltmp7:
# %bb.19:                               #   in Loop: Header=BB3_17 Depth=1
	testb	%al, %al
	je	.LBB3_21
# %bb.20:                               #   in Loop: Header=BB3_17 Depth=1
	addq	%r12, %r15
	movq	edges(%rip), %rcx
	movq	chosen_edges(%rip), %rax
	movslq	%ebp, %rdx
	incl	%ebp
	leaq	(%rdx,%rdx,2), %rsi
	movl	8(%rcx,%rbx), %edi
	movl	%edi, 8(%rax,%rsi,4)
	movq	(%rcx,%rbx), %rcx
	movq	%rcx, (%rax,%rsi,4)
	movl	n(%rip), %ecx
	addl	$-2, %ecx
	cmpl	%ecx, %edx
	je	.LBB3_24
.LBB3_21:                               # %.thread
                                        #   in Loop: Header=BB3_17 Depth=1
	incq	%r14
	movslq	num_edge(%rip), %rax
	addq	$12, %rbx
	cmpq	%rax, %r14
	jl	.LBB3_17
# %bb.22:                               # %.thread.._crit_edge103.loopexit_crit_edge
	movq	chosen_edges(%rip), %rax
	jmp	.LBB3_24
.LBB3_23:
	xorl	%r15d, %r15d
	xorl	%ebp, %ebp
.LBB3_24:                               # %._crit_edge103
	movq	56(%rsp), %rdx
.Ltmp9:
	movq	%rax, %rdi
	movl	%ebp, %esi
	callq	_Z12bitonic_sortP4edgeiPFbS0_S0_E
.Ltmp10:
# %bb.25:
	callq	clock
	movq	%rax, %r14
.Ltmp12:
	movl	$_ZSt4cout, %edi
	movq	%r15, %rsi
	callq	_ZNSo9_M_insertIxEERSoT_
.Ltmp13:
# %bb.26:                               # %_ZNSolsEx.exit
	movb	$10, 8(%rsp)
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	cmpq	$0, 16(%rax,%rcx)
	je	.LBB3_28
# %bb.27:
.Ltmp14:
	leaq	8(%rsp), %rsi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp15:
	jmp	.LBB3_29
.LBB3_28:
.Ltmp16:
	movq	%rax, %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp17:
.LBB3_29:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.exit
	testl	%ebp, %ebp
	jle	.LBB3_41
# %bb.30:                               # %.lr.ph110.preheader
	movl	%ebp, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %r13
	xorl	%ebp, %ebp
	leaq	8(%rsp), %r15
.LBB3_31:                               # %.lr.ph110
                                        # =>This Inner Loop Header: Depth=1
	movq	chosen_edges(%rip), %rax
	movl	(%rax,%rbp), %esi
.Ltmp18:
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
.Ltmp19:
# %bb.32:                               #   in Loop: Header=BB3_31 Depth=1
	movq	%rax, %r12
	movb	$45, 8(%rsp)
	movq	(%rax), %rax
	movq	-24(%rax), %rax
	cmpq	$0, 16(%r12,%rax)
	je	.LBB3_35
# %bb.33:                               #   in Loop: Header=BB3_31 Depth=1
.Ltmp20:
	movl	$1, %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp21:
# %bb.34:                               #   in Loop: Header=BB3_31 Depth=1
	movq	%rax, %r12
	jmp	.LBB3_36
.LBB3_35:                               #   in Loop: Header=BB3_31 Depth=1
.Ltmp22:
	movq	%r12, %rdi
	movl	$45, %esi
	callq	_ZNSo3putEc
.Ltmp23:
.LBB3_36:                               #   in Loop: Header=BB3_31 Depth=1
	movq	chosen_edges(%rip), %rax
	movl	4(%rax,%rbp), %esi
.Ltmp24:
	movq	%r12, %rdi
	callq	_ZNSolsEi
.Ltmp25:
# %bb.37:                               #   in Loop: Header=BB3_31 Depth=1
	movb	$10, 8(%rsp)
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	cmpq	$0, 16(%rax,%rcx)
	je	.LBB3_39
# %bb.38:                               #   in Loop: Header=BB3_31 Depth=1
.Ltmp26:
	movl	$1, %edx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp27:
	jmp	.LBB3_40
.LBB3_39:                               #   in Loop: Header=BB3_31 Depth=1
.Ltmp28:
	movq	%rax, %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp29:
.LBB3_40:                               #   in Loop: Header=BB3_31 Depth=1
	addq	$12, %rbp
	cmpq	%rbp, %r13
	jne	.LBB3_31
.LBB3_41:                               # %._crit_edge111
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movl	$-261, %edx                     # imm = 0xFEFB
	andl	_ZSt4cout+24(%rcx), %edx
	orl	$4, %edx
	movl	%edx, _ZSt4cout+24(%rcx)
	movq	-24(%rax), %rax
	movq	$12, _ZSt4cout+8(%rax)
.Ltmp31:
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$16, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp32:
# %bb.42:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp33:
	subq	48(%rsp), %r14                  # 8-byte Folded Reload
	cvtsi2sd	%r14, %xmm0
	divsd	.LCPI3_0(%rip), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp34:
# %bb.43:                               # %_ZNSolsEd.exit
.Ltmp35:
	movl	$.L.str.1, %esi
	movl	$4, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp36:
# %bb.44:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit76
	movq	32(%rsp), %rax
	testq	%rax, %rax
	je	.LBB3_46
# %bb.45:
.Ltmp38:
	leaq	16(%rsp), %rdi
	movq	%rdi, %rsi
	movl	$3, %edx
	callq	*%rax
.Ltmp39:
.LBB3_46:                               # %_ZNSt14_Function_baseD2Ev.exit
	movq	88(%rsp), %rax
	testq	%rax, %rax
	je	.LBB3_48
# %bb.47:
.Ltmp41:
	leaq	72(%rsp), %rdi
	movq	%rdi, %rsi
	movl	$3, %edx
	callq	*%rax
.Ltmp42:
.LBB3_48:                               # %_ZNSt14_Function_baseD2Ev.exit79
	xorl	%eax, %eax
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB3_49:
	.cfi_def_cfa_offset 160
.Ltmp44:
	callq	_ZSt25__throw_bad_function_callv
.Ltmp45:
# %bb.50:                               # %.noexc
.LBB3_51:
.Ltmp43:
	jmp	.LBB3_53
.LBB3_52:
.Ltmp40:
	jmp	.LBB3_53
.LBB3_54:
.Ltmp11:
	jmp	.LBB3_61
.LBB3_55:
.Ltmp5:
	jmp	.LBB3_61
.LBB3_56:
.Ltmp37:
	jmp	.LBB3_61
.LBB3_57:                               # %.loopexit.split-lp
.Ltmp46:
	jmp	.LBB3_61
.LBB3_58:                               # %.loopexit
.Ltmp8:
	jmp	.LBB3_61
.LBB3_59:
.Ltmp30:
	jmp	.LBB3_61
.LBB3_60:
.Ltmp2:
.LBB3_61:
	movq	%rax, %rbx
	movq	32(%rsp), %rax
	testq	%rax, %rax
	je	.LBB3_63
# %bb.62:
.Ltmp47:
	leaq	16(%rsp), %rdi
	movq	%rdi, %rsi
	movl	$3, %edx
	callq	*%rax
.Ltmp48:
.LBB3_63:                               # %_ZNSt14_Function_baseD2Ev.exit81
	movq	88(%rsp), %rax
	testq	%rax, %rax
	je	.LBB3_65
# %bb.64:
.Ltmp50:
	leaq	72(%rsp), %rdi
	movq	%rdi, %rsi
	movl	$3, %edx
	callq	*%rax
.Ltmp51:
.LBB3_65:                               # %_ZNSt14_Function_baseD2Ev.exit83
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB3_66:
.Ltmp52:
	jmp	.LBB3_53
.LBB3_67:
.Ltmp49:
.LBB3_53:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end3:
	.size	main, .Lfunc_end3-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table3:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp10-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp10
	.uleb128 .Ltmp11-.Lfunc_begin0          #     jumps to .Ltmp11
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp17-.Ltmp12                #   Call between .Ltmp12 and .Ltmp17
	.uleb128 .Ltmp37-.Lfunc_begin0          #     jumps to .Ltmp37
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp29-.Ltmp18                #   Call between .Ltmp18 and .Ltmp29
	.uleb128 .Ltmp30-.Lfunc_begin0          #     jumps to .Ltmp30
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp31-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp36-.Ltmp31                #   Call between .Ltmp31 and .Ltmp36
	.uleb128 .Ltmp37-.Lfunc_begin0          #     jumps to .Ltmp37
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp38-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp39-.Ltmp38                #   Call between .Ltmp38 and .Ltmp39
	.uleb128 .Ltmp40-.Lfunc_begin0          #     jumps to .Ltmp40
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp41-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp42-.Ltmp41                #   Call between .Ltmp41 and .Ltmp42
	.uleb128 .Ltmp43-.Lfunc_begin0          #     jumps to .Ltmp43
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp44-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp45-.Ltmp44                #   Call between .Ltmp44 and .Ltmp45
	.uleb128 .Ltmp46-.Lfunc_begin0          #     jumps to .Ltmp46
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp47-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp48-.Ltmp47                #   Call between .Ltmp47 and .Ltmp48
	.uleb128 .Ltmp49-.Lfunc_begin0          #     jumps to .Ltmp49
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp50-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Ltmp51-.Ltmp50                #   Call between .Ltmp50 and .Ltmp51
	.uleb128 .Ltmp52-.Lfunc_begin0          #     jumps to .Ltmp52
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp51-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Lfunc_end3-.Ltmp51            #   Call between .Ltmp51 and .Lfunc_end3
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end4:
	.size	__clang_call_terminate, .Lfunc_end4-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	1, 0x90                         # -- Begin function _ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi
	.type	_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi,@function
_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi: # @_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -16
	movl	(%rsi), %eax
	movq	par(%rip), %rcx
	movslq	%eax, %rbx
	movl	(%rcx,%rbx,4), %ecx
	cmpl	%ebx, %ecx
	je	.LBB5_3
# %bb.1:
	movq	(%rdi), %rdi
	movl	%ecx, 12(%rsp)
	cmpq	$0, 16(%rdi)
	je	.LBB5_4
# %bb.2:                                # %_ZNKSt8functionIFiiEEclEi.exit.i.i.i
	leaq	12(%rsp), %rsi
	callq	*24(%rdi)
	movq	par(%rip), %rcx
	movl	%eax, (%rcx,%rbx,4)
.LBB5_3:                                # %_ZSt10__invoke_rIiRZ4mainEUliE_JiEENSt9enable_ifIX16is_invocable_r_vIT_T0_DpT1_EES3_E4typeEOS4_DpOS5_.exit
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB5_4:
	.cfi_def_cfa_offset 32
	callq	_ZSt25__throw_bad_function_callv
.Lfunc_end5:
	.size	_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi, .Lfunc_end5-_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi
	.cfi_endproc
                                        # -- End function
	.p2align	1, 0x90                         # -- Begin function _ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.type	_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation,@function
_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation: # @_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.cfi_startproc
# %bb.0:
	cmpl	$2, %edx
	je	.LBB6_5
# %bb.1:
	cmpl	$1, %edx
	je	.LBB6_4
# %bb.2:
	testl	%edx, %edx
	jne	.LBB6_6
# %bb.3:
	movq	$_ZTIZ4mainEUliE_, (%rdi)
	jmp	.LBB6_6
.LBB6_4:
	movq	%rsi, (%rdi)
	jmp	.LBB6_6
.LBB6_5:
	movq	(%rsi), %rax
	movq	%rax, (%rdi)
.LBB6_6:                                # %_ZNSt14_Function_base13_Base_managerIZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation.exit
	xorl	%eax, %eax
	retq
.Lfunc_end6:
	.size	_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation, .Lfunc_end6-_ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.cfi_endproc
                                        # -- End function
	.p2align	1, 0x90                         # -- Begin function _ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_
	.type	_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_,@function
_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_: # @_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %r14
	movl	(%rsi), %eax
	movl	(%rdx), %ebp
	movq	(%rdi), %rdi
	movl	%eax, 8(%rsp)
	cmpq	$0, 16(%rdi)
	je	.LBB7_5
# %bb.1:                                # %_ZNKSt8functionIFiiEEclEi.exit.i.i.i
	leaq	8(%rsp), %rsi
	callq	*24(%rdi)
	movq	(%r14), %rdi
	movl	%ebp, 12(%rsp)
	cmpq	$0, 16(%rdi)
	je	.LBB7_5
# %bb.2:                                # %_ZNKSt8functionIFiiEEclEi.exit10.i.i.i
	movl	%eax, %ebx
	leaq	12(%rsp), %rsi
	callq	*24(%rdi)
	cmpl	%eax, %ebx
	je	.LBB7_4
# %bb.3:
	movq	par(%rip), %rcx
	movslq	%eax, %rdx
	movl	%ebx, (%rcx,%rdx,4)
.LBB7_4:                                # %_ZSt10__invoke_rIbRZ4mainEUliiE_JiiEENSt9enable_ifIX16is_invocable_r_vIT_T0_DpT1_EES3_E4typeEOS4_DpOS5_.exit
	cmpl	%eax, %ebx
	setne	%al
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB7_5:
	.cfi_def_cfa_offset 48
	callq	_ZSt25__throw_bad_function_callv
.Lfunc_end7:
	.size	_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_, .Lfunc_end7-_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_
	.cfi_endproc
                                        # -- End function
	.p2align	1, 0x90                         # -- Begin function _ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.type	_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation,@function
_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation: # @_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.cfi_startproc
# %bb.0:
	cmpl	$2, %edx
	je	.LBB8_5
# %bb.1:
	cmpl	$1, %edx
	je	.LBB8_4
# %bb.2:
	testl	%edx, %edx
	jne	.LBB8_6
# %bb.3:
	movq	$_ZTIZ4mainEUliiE_, (%rdi)
	jmp	.LBB8_6
.LBB8_4:
	movq	%rsi, (%rdi)
	jmp	.LBB8_6
.LBB8_5:
	movq	(%rsi), %rax
	movq	%rax, (%rdi)
.LBB8_6:                                # %_ZNSt14_Function_base13_Base_managerIZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation.exit
	xorl	%eax, %eax
	retq
.Lfunc_end8:
	.size	_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation, .Lfunc_end8-_ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB9_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB9_2:
	subq	$32, %rsp
	.cfi_adjust_cfa_offset 32
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
	movl	$p_comparison_weight, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movl	$8, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$0
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$p_comparison_node, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movl	$8, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$0
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$__hip_module_dtor, %edi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end9:
	.size	__hip_module_ctor, .Lfunc_end9-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB10_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB10_2:
	retq
.Lfunc_end10:
	.size	__hip_module_dtor, .Lfunc_end10-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	n,@object                       # @n
	.bss
	.globl	n
	.p2align	2, 0x0
n:
	.long	0                               # 0x0
	.size	n, 4

	.type	edges,@object                   # @edges
	.globl	edges
	.p2align	3, 0x0
edges:
	.quad	0
	.size	edges, 8

	.type	chosen_edges,@object            # @chosen_edges
	.globl	chosen_edges
	.p2align	3, 0x0
chosen_edges:
	.quad	0
	.size	chosen_edges, 8

	.type	par,@object                     # @par
	.globl	par
	.p2align	3, 0x0
par:
	.quad	0
	.size	par, 8

	.type	num_edge,@object                # @num_edge
	.globl	num_edge
	.p2align	2, 0x0
num_edge:
	.long	0                               # 0x0
	.size	num_edge, 4

	.type	p_comparison_weight,@object     # @p_comparison_weight
	.local	p_comparison_weight
	.comm	p_comparison_weight,8,8
	.type	p_comparison_node,@object       # @p_comparison_node
	.local	p_comparison_node
	.comm	p_comparison_node,8,8
	.type	_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E,@object # @_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E
	.section	.rodata,"a",@progbits
	.globl	_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E
	.p2align	3, 0x0
_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E:
	.quad	_Z34__device_stub__bitonic_sort_kernelP4edgeiiPFbS0_S0_E
	.size	_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Waktu eksekusi: "
	.size	.L.str, 17

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	" ms\n"
	.size	.L.str.1, 5

	.type	_ZTSZ4mainEUliE_,@object        # @_ZTSZ4mainEUliE_
	.section	.rodata,"a",@progbits
_ZTSZ4mainEUliE_:
	.asciz	"Z4mainEUliE_"
	.size	_ZTSZ4mainEUliE_, 13

	.type	_ZTIZ4mainEUliE_,@object        # @_ZTIZ4mainEUliE_
	.p2align	3, 0x0
_ZTIZ4mainEUliE_:
	.quad	_ZTVN10__cxxabiv117__class_type_infoE+16
	.quad	_ZTSZ4mainEUliE_
	.size	_ZTIZ4mainEUliE_, 16

	.type	_ZTSZ4mainEUliiE_,@object       # @_ZTSZ4mainEUliiE_
_ZTSZ4mainEUliiE_:
	.asciz	"Z4mainEUliiE_"
	.size	_ZTSZ4mainEUliiE_, 14

	.type	_ZTIZ4mainEUliiE_,@object       # @_ZTIZ4mainEUliiE_
	.p2align	3, 0x0
_ZTIZ4mainEUliiE_:
	.quad	_ZTVN10__cxxabiv117__class_type_infoE+16
	.quad	_ZTSZ4mainEUliiE_
	.size	_ZTIZ4mainEUliiE_, 16

	.type	.L__unnamed_1,@object           # @0
	.section	.rodata.str1.1,"aMS",@progbits,1
.L__unnamed_1:
	.asciz	"_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E"
	.size	.L__unnamed_1, 42

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"p_comparison_weight"
	.size	.L__unnamed_2, 20

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"p_comparison_node"
	.size	.L__unnamed_3, 18

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z34__device_stub__bitonic_sort_kernelP4edgeiiPFbS0_S0_E
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _ZNSt17_Function_handlerIFiiEZ4mainEUliE_E9_M_invokeERKSt9_Any_dataOi
	.addrsig_sym _ZNSt17_Function_handlerIFiiEZ4mainEUliE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.addrsig_sym _ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E9_M_invokeERKSt9_Any_dataOiS6_
	.addrsig_sym _ZNSt17_Function_handlerIFbiiEZ4mainEUliiE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym n
	.addrsig_sym p_comparison_weight
	.addrsig_sym p_comparison_node
	.addrsig_sym _Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E
	.addrsig_sym _ZSt3cin
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZTVN10__cxxabiv117__class_type_infoE
	.addrsig_sym _ZTSZ4mainEUliE_
	.addrsig_sym _ZTIZ4mainEUliE_
	.addrsig_sym _ZTSZ4mainEUliiE_
	.addrsig_sym _ZTIZ4mainEUliiE_
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.p2align	2                               ; -- Begin function _Z17comparison_weightP4edgeS0_
	.type	_Z17comparison_weightP4edgeS0_,@function
_Z17comparison_weightP4edgeS0_:         ; @_Z17comparison_weightP4edgeS0_
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	flat_load_b32 v4, v[0:1] offset:8
	flat_load_b32 v5, v[2:3] offset:8
	s_mov_b32 s1, exec_lo
                                        ; implicit-def: $sgpr0
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_cmpx_ne_u32_e64 v4, v5
	s_xor_b32 s1, exec_lo, s1
; %bb.1:
	v_cmp_lt_i32_e32 vcc_lo, v4, v5
                                        ; implicit-def: $vgpr0_vgpr1
                                        ; implicit-def: $vgpr2_vgpr3
	s_and_b32 s0, vcc_lo, exec_lo
; %bb.2:                                ; %Flow16
	s_and_not1_saveexec_b32 s1, s1
	s_cbranch_execz .LBB0_8
; %bb.3:
	flat_load_b32 v4, v[0:1]
	flat_load_b32 v5, v[2:3]
	s_mov_b32 s3, exec_lo
                                        ; implicit-def: $sgpr2
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_cmpx_ne_u32_e64 v4, v5
	s_xor_b32 s3, exec_lo, s3
; %bb.4:
	v_cmp_lt_i32_e32 vcc_lo, v4, v5
                                        ; implicit-def: $vgpr0_vgpr1
                                        ; implicit-def: $vgpr2_vgpr3
	s_and_b32 s2, vcc_lo, exec_lo
; %bb.5:                                ; %Flow
	s_and_not1_saveexec_b32 s3, s3
	s_cbranch_execz .LBB0_7
; %bb.6:
	flat_load_b32 v0, v[0:1] offset:4
	flat_load_b32 v1, v[2:3] offset:4
	s_and_not1_b32 s2, s2, exec_lo
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_cmp_lt_i32_e32 vcc_lo, v0, v1
	s_and_b32 s4, vcc_lo, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s2, s2, s4
.LBB0_7:                                ; %Flow15
	s_or_b32 exec_lo, exec_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_and_not1_b32 s0, s0, exec_lo
	s_and_b32 s2, s2, exec_lo
	s_or_b32 s0, s0, s2
.LBB0_8:
	s_or_b32 exec_lo, exec_lo, s1
	v_cndmask_b32_e64 v0, 0, 1, s0
	s_setpc_b64 s[30:31]
.Lfunc_end0:
	.size	_Z17comparison_weightP4edgeS0_, .Lfunc_end0-_Z17comparison_weightP4edgeS0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 184
; NumSgprs: 34
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
	.text
	.p2align	2                               ; -- Begin function _Z15comparison_nodeP4edgeS0_
	.type	_Z15comparison_nodeP4edgeS0_,@function
_Z15comparison_nodeP4edgeS0_:           ; @_Z15comparison_nodeP4edgeS0_
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	flat_load_b32 v4, v[0:1]
	flat_load_b32 v5, v[2:3]
	s_mov_b32 s1, exec_lo
                                        ; implicit-def: $sgpr0
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_cmpx_ne_u32_e64 v4, v5
	s_xor_b32 s1, exec_lo, s1
; %bb.1:
	v_cmp_lt_i32_e32 vcc_lo, v4, v5
                                        ; implicit-def: $vgpr0_vgpr1
                                        ; implicit-def: $vgpr2_vgpr3
	s_and_b32 s0, vcc_lo, exec_lo
; %bb.2:                                ; %Flow
	s_and_not1_saveexec_b32 s1, s1
	s_cbranch_execz .LBB1_4
; %bb.3:
	flat_load_b32 v0, v[0:1] offset:4
	flat_load_b32 v1, v[2:3] offset:4
	s_and_not1_b32 s0, s0, exec_lo
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_cmp_lt_i32_e32 vcc_lo, v0, v1
	s_and_b32 s2, vcc_lo, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s0, s0, s2
.LBB1_4:
	s_or_b32 exec_lo, exec_lo, s1
	v_cndmask_b32_e64 v0, 0, 1, s0
	s_setpc_b64 s[30:31]
.Lfunc_end1:
	.size	_Z15comparison_nodeP4edgeS0_, .Lfunc_end1-_Z15comparison_nodeP4edgeS0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 112
; NumSgprs: 34
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
	.text
	.protected	_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E ; -- Begin function _Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E
	.globl	_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E
	.p2align	8
	.type	_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E,@function
_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E: ; @_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E
; %bb.0:
	s_mov_b64 s[36:37], s[2:3]
	s_mov_b64 s[38:39], s[0:1]
	s_load_b32 s2, s[2:3], 0x24
	s_load_b64 s[0:1], s[36:37], 0x8
	v_and_b32_e32 v3, 0x3ff, v0
	s_mov_b32 s40, s13
	s_mov_b32 s32, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s40, s2, v[3:4]
	v_xor_b32_e32 v4, s0, v1
	s_mov_b32 s0, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_u32_e64 v4, v1
	s_cbranch_execz .LBB2_8
; %bb.1:
	s_load_b64 s[2:3], s[38:39], 0x4
	s_clause 0x1
	s_load_b64 s[44:45], s[36:37], 0x0
	s_load_b64 s[42:43], s[36:37], 0x10
	v_bfe_u32 v2, v0, 10, 10
	v_bfe_u32 v5, v0, 20, 10
	v_and_b32_e32 v6, s1, v1
	s_mov_b32 s33, s15
	s_mov_b32 s41, s14
	s_mov_b64 s[34:35], s[4:5]
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s0, s2, 16
	v_mul_u32_u24_e32 v2, s3, v2
	s_mul_i32 s0, s0, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v3, s0, v3
	s_mov_b32 s0, exec_lo
	v_add3_u32 v44, v3, v2, v5
	v_cmpx_ne_u32_e32 0, v6
	s_xor_b32 s46, exec_lo, s0
	s_cbranch_execz .LBB2_5
; %bb.2:
	v_mad_u64_u32 v[42:43], null, v1, 12, s[44:45]
	v_mad_u64_u32 v[40:41], null, v4, 12, s[44:45]
	v_mov_b32_e32 v31, v0
	s_add_u32 s8, s36, 24
	s_addc_u32 s9, s37, 0
	s_mov_b64 s[4:5], s[38:39]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_mov_b32 v0, v42 :: v_dual_mov_b32 v1, v43
	v_dual_mov_b32 v2, v40 :: v_dual_mov_b32 v3, v41
	s_mov_b64 s[10:11], s[34:35]
	s_mov_b32 s12, s40
	s_mov_b32 s13, s41
	s_mov_b32 s14, s33
	s_swappc_b64 s[30:31], s[42:43]
	v_and_b32_e32 v0, 1, v0
	s_mov_b32 s0, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 1, v0
	s_cbranch_execz .LBB2_4
; %bb.3:
	s_clause 0x1
	global_load_b64 v[3:4], v[40:41], off
	global_load_b96 v[0:2], v[42:43], off
	s_waitcnt vmcnt(1)
	global_store_b64 v[42:43], v[3:4], off
	global_load_b32 v3, v[40:41], off offset:8
	v_mul_lo_u32 v4, v44, 12
	s_waitcnt vmcnt(1)
	ds_store_2addr_b32 v4, v0, v1 offset1:1
	ds_store_b32 v4, v2 offset:8
	s_waitcnt vmcnt(0)
	s_clause 0x1
	global_store_b32 v[42:43], v3, off offset:8
	global_store_b96 v[40:41], v[0:2], off
.LBB2_4:                                ; %Flow
	s_or_b32 exec_lo, exec_lo, s0
                                        ; implicit-def: $vgpr4
                                        ; implicit-def: $vgpr1_vgpr2
                                        ; implicit-def: $vgpr0
                                        ; implicit-def: $vgpr44
.LBB2_5:                                ; %Flow38
	s_and_not1_saveexec_b32 s0, s46
	s_cbranch_execz .LBB2_8
; %bb.6:
	v_mad_u64_u32 v[40:41], null, v4, 12, s[44:45]
	v_mad_u64_u32 v[42:43], null, v1, 12, s[44:45]
	v_mov_b32_e32 v31, v0
	s_add_u32 s8, s36, 24
	s_addc_u32 s9, s37, 0
	s_mov_b64 s[4:5], s[38:39]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_mov_b32 v0, v40 :: v_dual_mov_b32 v1, v41
	v_dual_mov_b32 v2, v42 :: v_dual_mov_b32 v3, v43
	s_mov_b64 s[10:11], s[34:35]
	s_mov_b32 s12, s40
	s_mov_b32 s13, s41
	s_mov_b32 s14, s33
	s_swappc_b64 s[30:31], s[42:43]
	v_and_b32_e32 v0, 1, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_eq_u32_e32 vcc_lo, 1, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB2_8
; %bb.7:
	s_clause 0x1
	global_load_b64 v[3:4], v[40:41], off
	global_load_b96 v[0:2], v[42:43], off
	s_waitcnt vmcnt(1)
	global_store_b64 v[42:43], v[3:4], off
	global_load_b32 v3, v[40:41], off offset:8
	v_mul_lo_u32 v4, v44, 12
	s_delay_alu instid0(VALU_DEP_1)
	v_add_nc_u32_e32 v5, 0x3000, v4
	s_waitcnt vmcnt(1)
	ds_store_2addr_b32 v5, v0, v1 offset1:1
	ds_store_b32 v4, v2 offset:12296
	s_waitcnt vmcnt(0)
	s_clause 0x1
	global_store_b32 v[42:43], v3, off offset:8
	global_store_b96 v[40:41], v[0:2], off
.LBB2_8:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E
		.amdhsa_group_segment_fixed_size 24576
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 13
		.amdhsa_user_sgpr_dispatch_ptr 1
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 1
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 1
		.amdhsa_enable_private_segment 1
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 1
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 2
		.amdhsa_next_free_vgpr 45
		.amdhsa_next_free_sgpr 47
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E, .Lfunc_end2-_Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 596
; NumSgprs: 49
; NumVgprs: 45
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 24576 bytes/workgroup (compile time only)
; SGPRBlocks: 6
; VGPRBlocks: 5
; NumSGPRsForWavesPerEU: 49
; NumVGPRsForWavesPerEU: 45
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 1
; COMPUTE_PGM_RSRC2:USER_SGPR: 13
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 1
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 2
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.protected	p_comparison_weight     ; @p_comparison_weight
	.type	p_comparison_weight,@object
	.data
	.globl	p_comparison_weight
	.p2align	3, 0x0
p_comparison_weight:
	.quad	_Z17comparison_weightP4edgeS0_
	.size	p_comparison_weight, 8

	.protected	p_comparison_node       ; @p_comparison_node
	.type	p_comparison_node,@object
	.globl	p_comparison_node
	.p2align	3, 0x0
p_comparison_node:
	.quad	_Z15comparison_nodeP4edgeS0_
	.size	p_comparison_node, 8

	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z17comparison_weightP4edgeS0_
	.addrsig_sym _Z15comparison_nodeP4edgeS0_
	.addrsig_sym p_comparison_weight
	.addrsig_sym p_comparison_node
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
      - .offset:         104
        .size:           8
        .value_kind:     hidden_hostcall_buffer
      - .offset:         112
        .size:           8
        .value_kind:     hidden_multigrid_sync_arg
      - .offset:         120
        .size:           8
        .value_kind:     hidden_heap_v1
      - .offset:         128
        .size:           8
        .value_kind:     hidden_default_queue
      - .offset:         224
        .size:           8
        .value_kind:     hidden_queue_ptr
    .group_segment_fixed_size: 24576
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E
    .private_segment_fixed_size: 0
    .sgpr_count:     49
    .sgpr_spill_count: 0
    .symbol:         _Z19bitonic_sort_kernelP4edgeiiPFbS0_S0_E.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: true
    .vgpr_count:     45
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
