
#include "cuda_runtime.h"
#include "device_launch_parameters.h"

#include <cstdint>
#include <vector>
#include <map>
#include <iostream>
#include <fstream>
#include <sstream>
#include <ctime>

using namespace std;

__constant__ int lookup_table[256];

__global__ void generate_candidate(uint32_t *itemSets, uint32_t *tranLists, 
                                   int *itemSet_length, int *itemSets_size, 
                                   int *itemSets_d2, int *tranLists_d2,
                                   uint32_t *n_itemSets, uint32_t *n_tranLists, 
                                   int *next_itemSets_size) {
    int num_of_thread = gridDim.x * blockDim.x;
    int idx = threadIdx.x + blockIdx.x * blockDim.x;
    int itemSets_per_thread = ceil(((double) *itemSets_size) / num_of_thread);    

    // Initialize all outout arrays to 0
    for (int i = 0; i < (*next_itemSets_size) * (*itemSets_d2); i++) {
        n_itemSets[i] = 0;
    }
    for (int i = 0; i < (*next_itemSets_size) * (*tranLists_d2); i++) {
        n_tranLists[i] = 0;
    }    

    for (int i = idx; i < (*itemSets_size) - 1; i += num_of_thread) {
        for (int j = i + 1; j < *itemSets_size; j++) {
            bool is_joinable = true;
            
            // Check bits before (itemSet_length - 1)th "1", join if equal
            int ones_to_check = (*itemSet_length - 1);
            for (int k = 0; k < *itemSets_d2; k++) {
                if (ones_to_check == 0) {
                    break;
                }

                uint32_t left = itemSets[k + i * (*itemSets_d2)];
                uint32_t right = itemSets[k + j * (*itemSets_d2)];
                int sum_left = 0;
                int sum_right = 0;
                uint32_t mask = 255;
                uint32_t part_left, part_right;

                for (int l = 0; l < 4; l++) {
                    part_left = (itemSets[k + i * (*itemSets_d2)] >> (8 * l)) & mask;
                    sum_left += lookup_table[part_left];
                    part_right = (itemSets[k + j * (*itemSets_d2)] >> (8 * l)) & mask;
                    sum_right += lookup_table[part_right];
                }
                
                //printf("ones to check:%d, sum_left:%d, sum_right:%d\n", ones_to_check, sum_left, sum_right);
                if (ones_to_check <= sum_left && ones_to_check <= sum_right) {
                    if (sum_left == sum_right && ones_to_check == sum_left) {
                        if (left != right) {
                            is_joinable = false;
                        }
                        break;
                    } else {
                        // Check bit by bit until enough "1" met
                        mask = 1;
                        for (int l = 0; l < 32; l++) {
                            uint32_t masked_left = left & mask;
                            uint32_t masked_right = right & mask;
                            if (masked_left != masked_right) {
                                is_joinable = false;
                                break;
                            } else {
                                if (masked_left == mask) {
                                    ones_to_check--;
                                    if (ones_to_check == 0) {
                                        break;
                                    }
                                }
                            }
                            mask = mask << 1;
                        }
                        break;
                    }
                } else if (sum_left != sum_right) {
                    is_joinable = false;
                    break;
                } else {
                    if (left != right) {
                        is_joinable = false;
                        break;
                    }
                    ones_to_check -= sum_left;
                }
            }

            /* Output valid joined itemSets, sum from start to end and j - (i + 1) 
               to get output position */
            if (is_joinable) {
                int output_pos;
                if (i == 0) {
                    output_pos = j - (i + 1);
                } else {
                    int start = *itemSets_size - 1;
                    int end = start - (i - 1);
                    output_pos = (start + end) * i / 2 + (j - (i + 1));
                }
                
                //printf("i:%d, j:%d, output_pos:%d, is joinable:%d\n",i ,j , output_pos, is_joinable);
                for (int k = 0; k < *itemSets_d2; k++) {
                    n_itemSets[k + output_pos * (*itemSets_d2)] = 
                        itemSets[k + i * (*itemSets_d2)] | itemSets[k + j * (*itemSets_d2)];
                }
                for (int k = 0; k < *tranLists_d2; k++) {
                    n_tranLists[k + output_pos * (*tranLists_d2)] = 
                        tranLists[k + i * (*tranLists_d2)] & tranLists[k + j * (*tranLists_d2)];
                }
            } else {
                break;
            }
        }
    }
}

__global__ void count_tranx(uint32_t *tranLists, int *itemSets_size, int *tranLists_d2, 
                            int *countLists) {
    int num_of_thread = gridDim.x * blockDim.x;
    int idx = threadIdx.x + blockIdx.x * blockDim.x;
    int itemSets_per_thread = ceil(((double) *itemSets_size) / num_of_thread);

    // Initialize output array to 0
    for (int i = 0; i < (*itemSets_size) * (*tranLists_d2); i++) {
        countLists[i] = 0;
    }
    
    for (int i = idx; i < *itemSets_size; i += num_of_thread) {
        for (int j = 0; j < *tranLists_d2; j++) {
            int sum = 0;
            uint32_t mask = 255;
            uint32_t part;
            for (int k = 0; k < 4; k++) {
                part = (tranLists[j + i * (*tranLists_d2)] >> (8 * k)) & mask;
                sum += lookup_table[part];
            }
            //printf("i:%d, sum:%d\n", i, sum);
            countLists[j + i * (*tranLists_d2)] = sum;
        }
    }
}

int main()
{
    float min_sup = 0.005f;
    int num_of_block = 1;
    int thread_per_block = 4;
    int itemSet_length = 1;
    
    // Read file to generate initial itemSets and tranLists
    map<int, vector<int>> item_to_tranxs;
    ifstream ifs("1000.dat");
    string line;
    int tranxID = 0;
    while (getline(ifs, line)) {
        istringstream iss(line);
        while (iss) {
            int itemID;
            iss >> itemID;
            //itemID--;
            if (item_to_tranxs.find(itemID) != item_to_tranxs.end()) {
                item_to_tranxs[itemID].push_back(tranxID);
            } else {
                item_to_tranxs[itemID] = vector<int>();
                item_to_tranxs[itemID].push_back(tranxID);
            }
        }
        tranxID++;
    }
    
    int num_of_item = item_to_tranxs.size();
    int num_of_tranx = tranxID;
    int itemSets_size = item_to_tranxs.size();
    int itemSets_d2 = ceil(((float) num_of_item) / 32);
    int tranLists_d2 = ceil(((float) num_of_tranx) / 32);
    uint32_t *itemSets = new uint32_t[itemSets_size * itemSets_d2];
    uint32_t *tranLists = new uint32_t[itemSets_size * tranLists_d2];

    for (int i = 0; i < itemSets_size; i++) {        
        for (int j = 0; j < itemSets_d2; j++) {
            itemSets[j + i * itemSets_d2] = 0;
        }
    }
    for (int i = 0; i < item_to_tranxs.size(); i++) {
        int idx_in_d2 = i / 32;
        uint32_t value = pow(2.0, i % 32);
        itemSets[idx_in_d2 + i * itemSets_d2] = value;
    }
    
    for (int i = 0; i < item_to_tranxs.size(); i++) {
        vector<uint32_t> values(tranLists_d2, 0);
        vector<int> tranxIDs = item_to_tranxs[i];
        for (int j = 0; j < tranxIDs.size(); j++) {
            int idx_in_d2 = tranxIDs[j] / 32;
            uint32_t value = pow(2.0, tranxIDs[j] % 32);
            values[idx_in_d2] += value;
        }
        for (int j = 0; j < tranLists_d2; j++) {
            tranLists[j + i * tranLists_d2] = values[j];
        }        
    }

    // Choose which GPU to run on, change this on a multi-GPU system.
    cudaError_t cudaStatus;
    cudaStatus = cudaSetDevice(0);
    if (cudaStatus != cudaSuccess) {
        fprintf(stderr, "cudaSetDevice failed!  Do you have a CUDA-capable GPU installed?");
        return 1;
    }

    // Build lookup table, and copy it to GPU
    int host_lookup_table[256];
    for (int i = 0; i < 256; i++) {
        int count = 0;
        unsigned int num = i;
        while (num != 0) {
            if (num & 1 == 1) {
                count++;
            }
            num = num >> 1;
        }
        host_lookup_table[i] = count;
    }
    cudaMemcpyToSymbol(lookup_table, host_lookup_table, 256 * sizeof(int));

    // Set 2nd dimension of itemSets and tranLists, they should be fixed
    int *dev_itemSets_d2 = 0;
    int *dev_tranLists_d2 = 0;
    cudaMalloc((void**)&dev_itemSets_d2, sizeof(int));
    cudaMalloc((void**)&dev_tranLists_d2, sizeof(int));
    cudaMemcpy(dev_itemSets_d2, &itemSets_d2, sizeof(int), cudaMemcpyHostToDevice);
    cudaMemcpy(dev_tranLists_d2, &tranLists_d2, sizeof(int), cudaMemcpyHostToDevice);

    clock_t t = clock();
    while (itemSets_size != 0 && itemSet_length <= num_of_item - 1) {
        // generate candidate itemSets
        int next_itemSets_size = itemSets_size * (itemSets_size - 1) / 2;
        uint32_t *next_itemSets = new uint32_t[next_itemSets_size * itemSets_d2];
        uint32_t *next_tranLists = new uint32_t[next_itemSets_size * tranLists_d2];
        
        uint32_t *dev_itemSets = 0;
        uint32_t *dev_tranLists = 0;
        int *dev_itemSets_size = 0; 
        int *dev_itemSet_length = 0;
        uint32_t *dev_next_itemSets = 0;
        uint32_t *dev_next_tranLists = 0;
        int *dev_next_itemSets_size = 0;
    
        cudaMalloc((void**)&dev_itemSets, itemSets_size * itemSets_d2 * sizeof(uint32_t));
        cudaMalloc((void**)&dev_tranLists, itemSets_size * tranLists_d2 * sizeof(uint32_t));
        cudaMalloc((void**)&dev_itemSets_size, sizeof(int));
        cudaMalloc((void**)&dev_itemSet_length, sizeof(int));
        cudaMalloc((void**)&dev_next_itemSets, next_itemSets_size * itemSets_d2 * 
            sizeof(uint32_t));
        cudaMalloc((void**)&dev_next_tranLists, next_itemSets_size * tranLists_d2 * 
            sizeof(uint32_t));
        cudaMalloc((void**)&dev_next_itemSets_size, sizeof(int));

        cudaMemcpy(dev_itemSets, itemSets, itemSets_size * itemSets_d2 * sizeof(uint32_t), 
            cudaMemcpyHostToDevice);
        cudaMemcpy(dev_tranLists, tranLists, itemSets_size * tranLists_d2 * sizeof(uint32_t), 
            cudaMemcpyHostToDevice);
        cudaMemcpy(dev_itemSets_size, &itemSets_size, sizeof(int), cudaMemcpyHostToDevice);
        cudaMemcpy(dev_itemSet_length, &itemSet_length, sizeof(int), cudaMemcpyHostToDevice);
        cudaMemcpy(dev_next_itemSets_size, &next_itemSets_size, sizeof(int), 
            cudaMemcpyHostToDevice);
        
        clock_t t1 = clock();
        generate_candidate<<<num_of_block, thread_per_block>>>(dev_itemSets, dev_tranLists, 
            dev_itemSet_length, dev_itemSets_size, dev_itemSets_d2, dev_tranLists_d2, 
            dev_next_itemSets, dev_next_tranLists, dev_next_itemSets_size);

        cudaDeviceSynchronize();
        t1 = clock() - t1;
        cout << "Time for candidate generation:" << ((float)t1) / CLOCKS_PER_SEC << endl;

        // Copy results back
        cudaMemcpy(next_itemSets, dev_next_itemSets, next_itemSets_size * itemSets_d2 * 
            sizeof(uint32_t), cudaMemcpyDeviceToHost);
        cudaMemcpy(next_tranLists, dev_next_tranLists, next_itemSets_size * tranLists_d2 *
            sizeof(uint32_t), cudaMemcpyDeviceToHost);

        // Pick valid joined ItenSets 
        uint32_t *joined_itemSets = new uint32_t[next_itemSets_size * itemSets_d2];
        uint32_t *joined_tranLists = new uint32_t[next_itemSets_size * tranLists_d2];
        int cursor = 0;
        for (int i = 0; i < next_itemSets_size; i++) {
            for (int j = 0; j < itemSets_d2; j++) {
                if (next_itemSets[j + i * itemSets_d2] != 0) {
                    for (int k = 0; k < itemSets_d2; k++) {
                        joined_itemSets[k + cursor * itemSets_d2] = 
                            next_itemSets[k + i * itemSets_d2];
                    }
                    for (int k = 0; k < tranLists_d2; k++) {
                        joined_tranLists[k + cursor * tranLists_d2] = 
                            next_tranLists[k + i * tranLists_d2];
                    }
                    cursor++;
                    break;
                }
            }
        }
        
        if (cursor == 0) {
            cout << "No joined ItemSets found!" << endl;
            break;
        }

        // Count transactions
        int joined_itemSets_size = cursor;
        int *countLists = new int[joined_itemSets_size * tranLists_d2];

        uint32_t *dev_joined_tranLists = 0;
        int *dev_joined_itemSets_size = 0;
        int *dev_countLists = 0;

        cudaMalloc((void**)&dev_joined_tranLists, joined_itemSets_size * tranLists_d2 *
            sizeof(uint32_t));
        cudaMalloc((void**)&dev_joined_itemSets_size, sizeof(int));
        cudaMalloc((void**)&dev_countLists, joined_itemSets_size * tranLists_d2 *
            sizeof(int));

        cudaMemcpy(dev_joined_tranLists, joined_tranLists, joined_itemSets_size * 
            tranLists_d2 * sizeof(uint32_t), cudaMemcpyHostToDevice);
        cudaMemcpy(dev_joined_itemSets_size, &joined_itemSets_size, sizeof(int), 
            cudaMemcpyHostToDevice);

        t1 = clock();
        count_tranx<<<num_of_block, thread_per_block>>>(dev_joined_tranLists, 
            dev_joined_itemSets_size, dev_tranLists_d2, dev_countLists);

        cudaDeviceSynchronize();
        t1 = clock() - t1;
        cout << "Time for counting:" << ((float)t1) / CLOCKS_PER_SEC << endl;

        // Copy results back
        cudaMemcpy(countLists, dev_countLists, joined_itemSets_size * tranLists_d2 * 
            sizeof(int), cudaMemcpyDeviceToHost);
        
        // Pick frequent ItemSets
        delete[] itemSets;
        delete[] tranLists;
        itemSets = new uint32_t[joined_itemSets_size * itemSets_d2];
        tranLists = new uint32_t[joined_itemSets_size * tranLists_d2];

        cursor = 0;
        for (int i = 0; i < joined_itemSets_size; i++) {
            int count = 0;
            for (int j = 0; j < tranLists_d2; j++) {
                count += countLists[j + i * tranLists_d2];
            }
            float support = ((float) count) / num_of_tranx;
            if (support >= min_sup) {
                for (int j = 0; j < itemSets_d2; j++) {
                    itemSets[j + cursor * itemSets_d2] = 
                        joined_itemSets[j + i * itemSets_d2];
                }
                for (int j = 0; j < tranLists_d2; j++) {
                    tranLists[j + cursor * tranLists_d2] = 
                        joined_tranLists[j + i * tranLists_d2];
                }
                cursor++;
            }
        }
        itemSets_size = cursor;
        itemSet_length++;

        // Output frequent itemSet
        cout << "frequent itemSets_size: " << itemSets_size << endl;        
        /* for (int i = 0; i < itemSets_size; i++) {
            for (int j = 0; j < itemSets_d2; j++) {
                cout << itemSets[j + i * itemSets_d2] << " ";
            }
        }
        cout << endl; */

        // Clean up
        cudaFree(dev_itemSets);
        cudaFree(dev_tranLists);
        cudaFree(dev_itemSets_size);
        cudaFree(dev_itemSet_length);
        cudaFree(dev_next_itemSets);
        cudaFree(dev_next_tranLists);
        cudaFree(dev_next_itemSets_size);
        cudaFree(dev_joined_tranLists);
        cudaFree(dev_joined_itemSets_size);
        cudaFree(dev_countLists);
        delete[] next_itemSets;
        delete[] next_tranLists;
        delete[] joined_itemSets;
        delete[] joined_tranLists;
        delete[] countLists;
    }
    t = clock() - t;
    cout << "Time:" << ((float)t) / CLOCKS_PER_SEC << endl;
    return 0;
}

	.file	"tmpxft_00375fb7_00000000-6_kernal.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4623:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4623:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt15__new_allocatorIiE8allocateEmPKv.isra.0, @function
_ZNSt15__new_allocatorIiE8allocateEmPKv.isra.0:
.LFB5709:
	.cfi_startproc
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L3
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$4611686018427387903, %rax
	cmpq	%rdi, %rax
	jnb	.L4
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L4:
	call	_ZSt17__throw_bad_allocv@PLT
.L3:
	.cfi_def_cfa_offset 8
	salq	$2, %rdi
	jmp	_Znwm@PLT
	.cfi_endproc
.LFE5709:
	.size	_ZNSt15__new_allocatorIiE8allocateEmPKv.isra.0, .-_ZNSt15__new_allocatorIiE8allocateEmPKv.isra.0
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB5710:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE5710:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_.isra.0,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_,comdat
	.align 2
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_.isra.0, @function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_.isra.0:
.LFB5711:
	.cfi_startproc
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movb	$1, %al
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	8(%rdi), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	16(%rdi), %rbx
.L11:
	testq	%rbx, %rbx
	je	.L19
	cmpl	%r12d, 32(%rbx)
	movq	24(%rbx), %rdx
	movq	%rbx, %rbp
	cmovg	16(%rbx), %rdx
	setg	%al
	movq	%rdx, %rbx
	jmp	.L11
.L19:
	testb	%al, %al
	je	.L17
	cmpq	%rbp, 24(%rdi)
	je	.L15
	movq	%rbp, %rdi
	call	_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base@PLT
	jmp	.L14
.L17:
	movq	%rbp, %rax
.L14:
	xorl	%edx, %edx
	cmpl	%r12d, 32(%rax)
	cmovge	%rdx, %rbp
	cmovge	%rax, %rbx
.L15:
	movq	%rbx, %rax
	movq	%rbp, %rdx
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5711:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_.isra.0, .-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_.isra.0
	.text
	.globl	_Z58__device_stub__Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_PjS_PiS0_S0_S0_S_S_S0_
	.type	_Z58__device_stub__Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_PjS_PiS0_S0_S0_S_S_S0_, @function
_Z58__device_stub__Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_PjS_PiS0_S0_S0_S_S_S0_:
.LFB4645:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	240(%rsp), %rax
	movq	%rdi, 72(%rsp)
	leaq	96(%rsp), %rdi
	movq	%rsi, 64(%rsp)
	leaq	108(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	248(%rsp), %rax
	movq	%rdx, 56(%rsp)
	leaq	80(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	256(%rsp), %rax
	movq	%rcx, 48(%rsp)
	leaq	88(%rsp), %rcx
	movq	%r8, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	72(%rsp), %rax
	movl	$1, 104(%rsp)
	movq	%rax, 144(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 96(%rsp)
	movq	%rax, 108(%rsp)
	movl	$1, 116(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L20
	pushq	88(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_(%rip), %rdi
	pushq	88(%rsp)
	.cfi_def_cfa_offset 256
	movq	124(%rsp), %rcx
	movl	132(%rsp), %r8d
	movq	112(%rsp), %rsi
	movl	120(%rsp), %edx
	leaq	160(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L20:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4645:
	.size	_Z58__device_stub__Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_PjS_PiS0_S0_S0_S_S_S0_, .-_Z58__device_stub__Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_PjS_PiS0_S0_S0_S_S_S0_
	.globl	_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	.type	_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_, @function
_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_:
.LFB4646:
	.cfi_startproc
	endbr64
	jmp	_Z58__device_stub__Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_PjS_PiS0_S0_S0_S_S_S0_
	.cfi_endproc
.LFE4646:
	.size	_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_, .-_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	.globl	_Z39__device_stub__Z11count_tranxPjPiS0_S0_PjPiS0_S0_
	.type	_Z39__device_stub__Z11count_tranxPjPiS0_S0_PjPiS0_S0_, @function
_Z39__device_stub__Z11count_tranxPjPiS0_S0_PjPiS0_S0_:
.LFB4647:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%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	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%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	.L25
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z11count_tranxPjPiS0_S0_(%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
.L25:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4647:
	.size	_Z39__device_stub__Z11count_tranxPjPiS0_S0_PjPiS0_S0_, .-_Z39__device_stub__Z11count_tranxPjPiS0_S0_PjPiS0_S0_
	.globl	_Z11count_tranxPjPiS0_S0_
	.type	_Z11count_tranxPjPiS0_S0_, @function
_Z11count_tranxPjPiS0_S0_:
.LFB4648:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z11count_tranxPjPiS0_S0_PjPiS0_S0_
	.cfi_endproc
.LFE4648:
	.size	_Z11count_tranxPjPiS0_S0_, .-_Z11count_tranxPjPiS0_S0_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z11count_tranxPjPiS0_S0_"
.LC1:
	.string	"_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_"
.LC2:
	.string	"lookup_table"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4650:
	.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	.LC0(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z11count_tranxPjPiS0_S0_(%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	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC1(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	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	.LC2(%rip), %rdx
	movl	$1024, %r9d
	leaq	_ZL12lookup_table(%rip), %rsi
	pushq	$1
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	call	__cudaRegisterVar@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.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
.LFE4650:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEED2Ev
	.type	_ZNSt6vectorIiSaIiEED2Ev, @function
_ZNSt6vectorIiSaIiEED2Ev:
.LFB5020:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L32
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L32:
	ret
	.cfi_endproc
.LFE5020:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.text
	.align 2
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E.isra.0, @function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E.isra.0:
.LFB5716:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
.L35:
	testq	%rbx, %rbx
	je	.L38
	movq	24(%rbx), %rdi
	call	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E.isra.0
	leaq	40(%rbx), %rdi
	movq	16(%rbx), %rbp
	call	_ZNSt6vectorIiSaIiEED1Ev
	movq	%rbx, %rdi
	movl	$64, %esi
	call	_ZdlPvm@PLT
	movq	%rbp, %rbx
	jmp	.L35
.L38:
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5716:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E.isra.0, .-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E.isra.0
	.section	.rodata._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_.str1.1,"aMS",@progbits,1
.LC3:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, @function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_:
.LFB5249:
	.cfi_startproc
	endbr64
	movabsq	$2305843009213693951, %rcx
	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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$2, %rbx
	cmpq	%rcx, %rbx
	jne	.L40
	leaq	.LC3(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L40:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	movq	%rsi, %rbp
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L50
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L45
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L44
.L50:
	movq	%rcx, %rbx
.L44:
	movq	%rbx, %rdi
	movq	%rdx, 8(%rsp)
	call	_ZNSt15__new_allocatorIiE8allocateEmPKv.isra.0
	movq	8(%rsp), %rdx
	movq	%rax, %r12
.L45:
	movl	(%rdx), %eax
	movl	%eax, (%r12,%r15)
	testq	%r15, %r15
	jle	.L46
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
.L46:
	movq	(%rsp), %rax
	leaq	4(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L47
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L47:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L48
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L48:
	leaq	(%r12,%rbx,4), %rax
	movq	%r12, 0(%r13)
	movq	%rbp, 8(%r13)
	movq	%rax, 16(%r13)
	addq	$24, %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
.LFE5249:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.section	.text._ZNSt6vectorIiSaIiEE9push_backERKi,"axG",@progbits,_ZNSt6vectorIiSaIiEE9push_backERKi,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEE9push_backERKi
	.type	_ZNSt6vectorIiSaIiEE9push_backERKi, @function
_ZNSt6vectorIiSaIiEE9push_backERKi:
.LFB5008:
	.cfi_startproc
	endbr64
	movq	%rsi, %rdx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.L58
	movl	(%rdx), %eax
	addq	$4, %rsi
	movl	%eax, -4(%rsi)
	movq	%rsi, 8(%rdi)
	ret
.L58:
	jmp	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
.LFE5008:
	.size	_ZNSt6vectorIiSaIiEE9push_backERKi, .-_ZNSt6vectorIiSaIiEE9push_backERKi
	.section	.text._ZNSt12_Vector_baseIjSaIjEED2Ev,"axG",@progbits,_ZNSt12_Vector_baseIjSaIjEED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIjSaIjEED2Ev
	.type	_ZNSt12_Vector_baseIjSaIjEED2Ev, @function
_ZNSt12_Vector_baseIjSaIjEED2Ev:
.LFB5282:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L61
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L61:
	ret
	.cfi_endproc
.LFE5282:
	.size	_ZNSt12_Vector_baseIjSaIjEED2Ev, .-_ZNSt12_Vector_baseIjSaIjEED2Ev
	.weak	_ZNSt12_Vector_baseIjSaIjEED1Ev
	.set	_ZNSt12_Vector_baseIjSaIjEED1Ev,_ZNSt12_Vector_baseIjSaIjEED2Ev
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_,comdat
	.align 2
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_, @function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_:
.LFB5421:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	8(%rdi), %rax
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movl	(%rdx), %esi
	cmpq	%rax, %rbx
	jne	.L64
	cmpq	$0, 40(%rdi)
	je	.L73
	movq	32(%rdi), %rdx
	cmpl	32(%rdx), %esi
	jle	.L73
	jmp	.L76
.L64:
	cmpl	32(%rbx), %esi
	jge	.L67
	movq	24(%rdi), %rax
	cmpq	%rbx, %rax
	je	.L74
	movq	%rbx, %rdi
	movl	%esi, 12(%rsp)
	call	_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base@PLT
	movl	12(%rsp), %esi
	movq	%rax, %rdx
	cmpl	32(%rax), %esi
	jle	.L73
	cmpq	$0, 24(%rdx)
	movq	%rbx, %rax
	jne	.L74
	jmp	.L76
.L67:
	jle	.L71
	movq	32(%rdi), %rdx
	cmpq	%rbx, %rdx
	jne	.L72
.L76:
	xorl	%eax, %eax
	jmp	.L66
.L72:
	movq	%rbx, %rdi
	movl	%esi, 12(%rsp)
	call	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base@PLT
	movl	12(%rsp), %esi
	cmpl	32(%rax), %esi
	jge	.L73
	cmpq	$0, 24(%rbx)
	jne	.L74
	xorl	%eax, %eax
	movq	%rbx, %rdx
	jmp	.L66
.L74:
	movq	%rax, %rdx
	jmp	.L66
.L73:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movq	%rbp, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_.isra.0
.L71:
	.cfi_restore_state
	movq	%rbx, %rax
	xorl	%edx, %edx
.L66:
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5421:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_, .-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_
	.section	.text._ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_,"axG",@progbits,_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_,comdat
	.align 2
	.weak	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_
	.type	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_, @function
_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_:
.LFB5001:
	.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
	leaq	8(%rdi), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %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
	movq	%r13, %rbx
	pushq	%r8
	.cfi_def_cfa_offset 64
	movl	(%rsi), %edx
	movq	16(%rdi), %rax
.L78:
	testq	%rax, %rax
	je	.L87
	movq	16(%rax), %rcx
	movq	24(%rax), %rsi
	cmpl	32(%rax), %edx
	jle	.L79
	movq	%rbx, %rax
	movq	%rsi, %rcx
.L79:
	movq	%rax, %rbx
	movq	%rcx, %rax
	jmp	.L78
.L87:
	cmpq	%rbx, %r13
	je	.L81
	cmpl	%edx, 32(%rbx)
	jle	.L82
.L81:
	movl	$64, %edi
	movq	%rbx, %r15
	call	_Znwm@PLT
	movl	(%r12), %r14d
	xorl	%ecx, %ecx
	movq	%r15, %rsi
	movq	%rcx, 40(%rax)
	leaq	32(%rax), %rdx
	movq	%rbp, %rdi
	movq	%rax, %rbx
	movl	%r14d, 32(%rax)
	movq	%rcx, 48(%rax)
	movq	%rcx, 56(%rax)
	call	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_
	movq	%rax, %r12
	testq	%rdx, %rdx
	je	.L83
	testq	%rax, %rax
	setne	%dil
	cmpq	%rdx, %r13
	sete	%al
	orb	%al, %dil
	jne	.L84
	cmpl	32(%rdx), %r14d
	setl	%dil
.L84:
	movzbl	%dil, %edi
	movq	%r13, %rcx
	movq	%rbx, %rsi
	call	_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_@PLT
	incq	40(%rbp)
	jmp	.L82
.L83:
	leaq	40(%rbx), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r12, %rbx
	call	_ZdlPvm@PLT
.L82:
	popq	%rdx
	.cfi_def_cfa_offset 56
	leaq	40(%rbx), %rax
	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
.LFE5001:
	.size	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_, .-_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_
	.section	.rodata.str1.1
.LC4:
	.string	"1000.dat"
.LC7:
	.string	"cannot create std::vector larger than max_size()"
.LC8:
	.string	"cudaSetDevice failed!  Do you have a CUDA-capable GPU installed?"
.LC9:
	.string	"Time for candidate generation:"
.LC11:
	.string	"No joined ItemSets found!"
.LC12:
	.string	"Time for counting:"
.LC14:
	.string	"frequent itemSets_size: "
.LC15:
	.string	"Time:"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4590:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4590
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%r11d, %r11d
	movl	$8, %edx
	leaq	.LC4(%rip), %rsi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	xorl	%r12d, %r12d
	pushq	%rbx
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$1880, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-1600(%rbp), %rax
	movq	%rbx, -1664(%rbp)
	leaq	-1672(%rbp), %rbx
	movq	%rax, %rdi
	movl	%r11d, -1672(%rbp)
	movl	$1, -1852(%rbp)
	movq	%rbx, -1656(%rbp)
	movq	%rbx, -1648(%rbp)
	movq	%r12, -1640(%rbp)
	movq	%rax, -1880(%rbp)
.LEHB0:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE0:
	leaq	-1616(%rbp), %rax
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	movb	$0, -1616(%rbp)
	movq	%rax, -1632(%rbp)
	leaq	-1632(%rbp), %r13
	movq	%r9, -1624(%rbp)
	movl	%r10d, -1848(%rbp)
.L89:
	movq	-1880(%rbp), %rdi
	movq	%r13, %rsi
.LEHB1:
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L217
	leaq	-1080(%rbp), %rax
	movl	$8, %edx
	movq	%r13, %rsi
	movq	%rax, %rdi
	movq	%rax, -1864(%rbp)
	call	_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode@PLT
.LEHE1:
	leaq	-1736(%rbp), %rax
	movq	%rax, -1872(%rbp)
.L90:
	testb	$5, -928(%rbp)
	jne	.L218
	movq	-1872(%rbp), %rsi
	movq	-1864(%rbp), %rdi
.LEHB2:
	call	_ZNSirsERi@PLT
.LEHE2:
	movl	-1736(%rbp), %ecx
	movq	-1664(%rbp), %rax
	movq	%rbx, %rdx
.L91:
	testq	%rax, %rax
	je	.L219
	cmpl	32(%rax), %ecx
	movq	24(%rax), %rsi
	cmovle	16(%rax), %rsi
	cmovle	%rax, %rdx
	movq	%rsi, %rax
	jmp	.L91
.L219:
	cmpq	%rbx, %rdx
	leaq	-1680(%rbp), %r12
	leaq	-1848(%rbp), %r14
	je	.L94
	cmpl	32(%rdx), %ecx
	jl	.L94
	jmp	.L216
.L218:
	movq	-1864(%rbp), %rdi
	incl	-1848(%rbp)
	call	_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L89
.L217:
	movq	-1640(%rbp), %r14
	cvtsi2ssl	%r14d, %xmm0
	mulss	.LC5(%rip), %xmm0
	movl	%r14d, -1900(%rbp)
	movl	%r14d, -1844(%rbp)
	call	ceilf@PLT
	cvtsi2ssl	-1848(%rbp), %xmm2
	cvttss2sil	%xmm0, %ebx
	movss	.LC5(%rip), %xmm0
	mulss	%xmm2, %xmm0
	movss	%xmm2, -1892(%rbp)
	movl	%ebx, -1840(%rbp)
	imull	%r14d, %ebx
	movslq	%ebx, %rbx
	call	ceilf@PLT
	cvttss2sil	%xmm0, %eax
	movl	%eax, -1836(%rbp)
	movabsq	$2305843009213693950, %rax
	cmpq	%rbx, %rax
	jb	.L99
	leaq	0(,%rbx,4), %rdi
.LEHB3:
	call	_Znam@PLT
	movl	-1844(%rbp), %edi
	imull	-1836(%rbp), %edi
	movq	%rax, %rbx
	movabsq	$2305843009213693950, %rax
	movslq	%edi, %rdi
	cmpq	%rdi, %rax
	jnb	.L203
	jmp	.L220
.L99:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L210
	call	__cxa_throw_bad_array_new_length@PLT
.L203:
	salq	$2, %rdi
	call	_Znam@PLT
	movq	%rax, -1872(%rbp)
	movl	-1844(%rbp), %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	-1840(%rbp), %r12d
	jmp	.L103
.L220:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L210
	call	__cxa_throw_bad_array_new_length@PLT
.L221:
	incl	%ecx
	addl	%r12d, %edx
.L103:
	cmpl	%ecx, %edi
	jle	.L181
	movslq	%edx, %rax
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
.L107:
	cmpl	%eax, %r12d
	jle	.L221
	xorl	%r8d, %r8d
	movl	%r8d, (%rsi,%rax,4)
	incq	%rax
	jmp	.L107
.L181:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
.L106:
	cmpq	-1640(%rbp), %r15
	jnb	.L222
	movl	%r15d, %eax
	movsd	.LC6(%rip), %xmm0
	andl	$31, %eax
	cvtsi2sdl	%eax, %xmm1
	call	pow@PLT
	movl	%r15d, %eax
	cvttsd2siq	%xmm0, %rdx
	sarl	$5, %eax
	addl	%r13d, %eax
	addl	%r12d, %r13d
	cltq
	movl	%edx, (%rbx,%rax,4)
	movq	%r15, %rax
	incq	%rax
	movq	%rax, %r15
	jmp	.L106
.L222:
	xorl	%r14d, %r14d
.L109:
	movl	%r14d, -1736(%rbp)
	movslq	%r14d, %rax
	cmpq	-1640(%rbp), %rax
	jnb	.L223
	movslq	-1836(%rbp), %r12
	movabsq	$2305843009213693951, %rax
	cmpq	%r12, %rax
	jnb	.L110
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L210
	leaq	.LC7(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L110:
	xorl	%edi, %edi
	movq	%rdi, -1728(%rbp)
	movq	%rdi, -1720(%rbp)
	movq	%rdi, -1712(%rbp)
	testq	%r12, %r12
	je	.L182
	movq	%r12, %rdi
	call	_ZNSt15__new_allocatorIiE8allocateEmPKv.isra.0
.LEHE3:
	movq	%rax, -1864(%rbp)
	jmp	.L112
.L182:
	xorl	%esi, %esi
	movq	%rsi, -1864(%rbp)
.L112:
	movq	-1864(%rbp), %rax
	movq	%rax, -1728(%rbp)
	leaq	(%rax,%r12,4), %rax
	movq	%rax, -1712(%rbp)
	testq	%r12, %r12
	je	.L183
	movq	-1864(%rbp), %rdx
.L114:
	cmpq	%rdx, %rax
	je	.L113
	xorl	%ecx, %ecx
	addq	$4, %rdx
	movl	%ecx, -4(%rdx)
	jmp	.L114
.L183:
	movq	-1864(%rbp), %rax
.L113:
	leaq	-1736(%rbp), %rsi
	leaq	-1680(%rbp), %rdi
	movq	%rax, -1720(%rbp)
.LEHB4:
	call	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_
	movq	8(%rax), %r12
	subq	(%rax), %r12
	xorl	%r15d, %r15d
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%r15, -1704(%rbp)
	sarq	$2, %rdi
	movq	%r15, -1696(%rbp)
	movq	%r15, -1688(%rbp)
	je	.L184
	call	_ZNSt15__new_allocatorIiE8allocateEmPKv.isra.0
.LEHE4:
	movq	%rax, %rcx
	jmp	.L116
.L184:
	xorl	%ecx, %ecx
.L116:
	addq	%rcx, %r12
	movq	0(%r13), %rsi
	movq	%rcx, -1704(%rbp)
	movq	%r12, -1688(%rbp)
	movq	8(%r13), %r12
	subq	%rsi, %r12
	cmpq	$4, %r12
	jle	.L117
	movq	%rcx, %rdi
	movq	%r12, %rdx
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L118
.L117:
	jne	.L118
	movl	(%rsi), %eax
	movl	%eax, (%rcx)
.L118:
	leaq	(%rcx,%r12), %rax
	xorl	%r15d, %r15d
	sarq	$2, %r12
	movq	%rax, -1696(%rbp)
.L119:
	cmpq	%r15, %r12
	je	.L224
	movl	(%rcx,%r15,4), %eax
	movl	$32, %edi
	incq	%r15
	movsd	.LC6(%rip), %xmm0
	movq	%rcx, -1880(%rbp)
	cltd
	idivl	%edi
	cvtsi2sdl	%edx, %xmm1
	movslq	%eax, %r13
	call	pow@PLT
	movq	-1864(%rbp), %rcx
	cvttsd2siq	%xmm0, %rax
	addl	%eax, (%rcx,%r13,4)
	movq	-1880(%rbp), %rcx
	jmp	.L119
.L224:
	movl	-1836(%rbp), %edx
	movl	%r14d, %eax
	movq	-1872(%rbp), %rcx
	imull	%edx, %eax
	cltq
	leaq	(%rcx,%rax,4), %rcx
	xorl	%eax, %eax
.L121:
	cmpl	%eax, %edx
	jle	.L225
	movq	-1864(%rbp), %rsi
	movl	(%rsi,%rax,4), %esi
	movl	%esi, (%rcx,%rax,4)
	incq	%rax
	jmp	.L121
.L225:
	leaq	-1704(%rbp), %rdi
	incl	%r14d
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	-1728(%rbp), %rdi
	call	_ZNSt12_Vector_baseIjSaIjEED2Ev
	jmp	.L109
.L223:
	xorl	%edi, %edi
.LEHB5:
	call	cudaSetDevice@PLT
	movl	%eax, %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	je	.L124
	movq	stderr(%rip), %rdi
	leaq	.LC8(%rip), %rdx
	movl	$2, %esi
	call	__fprintf_chk@PLT
	movl	$1, %ebx
	jmp	.L125
.L227:
	leaq	-1080(%rbp), %rsi
	movl	%ecx, (%rsi,%rax,4)
	incq	%rax
	cmpq	$256, %rax
	je	.L226
.L124:
	movl	%eax, %edx
	xorl	%ecx, %ecx
.L126:
	testl	%edx, %edx
	je	.L227
	movl	%edx, %esi
	andl	$1, %esi
	cmpl	$1, %esi
	sbbl	$-1, %ecx
	shrl	%edx
	jmp	.L126
.L226:
	movl	$1, %r8d
	xorl	%ecx, %ecx
	movl	$1024, %edx
	leaq	_ZL12lookup_table(%rip), %rdi
	call	cudaMemcpyToSymbol@PLT
	xorl	%r13d, %r13d
	leaq	-1824(%rbp), %rdi
	movl	$4, %esi
	movq	%r13, -1824(%rbp)
	movq	%r13, -1816(%rbp)
	call	cudaMalloc@PLT
	leaq	-1816(%rbp), %rdi
	movl	$4, %esi
	call	cudaMalloc@PLT
	movq	-1824(%rbp), %rdi
	movl	$1, %ecx
	movl	$4, %edx
	leaq	-1840(%rbp), %rsi
	call	cudaMemcpy@PLT
	movq	-1816(%rbp), %rdi
	movl	$1, %ecx
	movl	$4, %edx
	leaq	-1836(%rbp), %rsi
	call	cudaMemcpy@PLT
	call	clock@PLT
	movq	%rax, -1912(%rbp)
.L129:
	movl	-1844(%rbp), %edx
	testl	%edx, %edx
	je	.L170
	movl	-1900(%rbp), %eax
	cmpl	%eax, -1852(%rbp)
	jge	.L170
	leal	-1(%rdx), %eax
	movl	$2, %ecx
	imull	%edx, %eax
	cltd
	idivl	%ecx
	movabsq	$2305843009213693950, %rdx
	movl	%eax, -1832(%rbp)
	imull	-1840(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jb	.L130
	leaq	0(,%rax,4), %rdi
	call	_Znam@PLT
	movl	-1832(%rbp), %edi
	imull	-1836(%rbp), %edi
	movq	%rax, -1864(%rbp)
	movabsq	$2305843009213693950, %rax
	movslq	%edi, %rdi
	cmpq	%rdi, %rax
	jnb	.L205
	jmp	.L228
.L130:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L210
	call	__cxa_throw_bad_array_new_length@PLT
.L205:
	salq	$2, %rdi
	call	_Znam@PLT
	movl	-1844(%rbp), %esi
	imull	-1840(%rbp), %esi
	xorl	%r12d, %r12d
	leaq	-1808(%rbp), %rdi
	movq	%rax, -1880(%rbp)
	movq	%r12, -1808(%rbp)
	movslq	%esi, %rsi
	movq	%r12, -1800(%rbp)
	salq	$2, %rsi
	movq	%r12, -1792(%rbp)
	movq	%r12, -1784(%rbp)
	movq	%r12, -1776(%rbp)
	movq	%r12, -1768(%rbp)
	movq	%r12, -1760(%rbp)
	call	cudaMalloc@PLT
	jmp	.L229
.L228:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L210
	call	__cxa_throw_bad_array_new_length@PLT
.L229:
	movl	-1844(%rbp), %esi
	imull	-1836(%rbp), %esi
	leaq	-1800(%rbp), %rdi
	movslq	%esi, %rsi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	leaq	-1792(%rbp), %rdi
	movl	$4, %esi
	call	cudaMalloc@PLT
	leaq	-1784(%rbp), %rdi
	movl	$4, %esi
	call	cudaMalloc@PLT
	movl	-1832(%rbp), %esi
	imull	-1840(%rbp), %esi
	leaq	-1776(%rbp), %rdi
	movslq	%esi, %rsi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movl	-1832(%rbp), %esi
	imull	-1836(%rbp), %esi
	leaq	-1768(%rbp), %rdi
	movslq	%esi, %rsi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	leaq	-1760(%rbp), %rdi
	movl	$4, %esi
	call	cudaMalloc@PLT
	movl	-1844(%rbp), %edx
	imull	-1840(%rbp), %edx
	movl	$1, %ecx
	movq	%rbx, %rsi
	movq	-1808(%rbp), %rdi
	movslq	%edx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movl	-1844(%rbp), %edx
	imull	-1836(%rbp), %edx
	movl	$1, %ecx
	movq	-1872(%rbp), %rsi
	movq	-1800(%rbp), %rdi
	movslq	%edx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movq	-1792(%rbp), %rdi
	movl	$1, %ecx
	movl	$4, %edx
	leaq	-1844(%rbp), %rsi
	call	cudaMemcpy@PLT
	movq	-1784(%rbp), %rdi
	movl	$1, %ecx
	movl	$4, %edx
	leaq	-1852(%rbp), %rsi
	call	cudaMemcpy@PLT
	movq	-1760(%rbp), %rdi
	movl	$1, %ecx
	movl	$4, %edx
	leaq	-1832(%rbp), %rsi
	call	cudaMemcpy@PLT
	call	clock@PLT
	movl	$1073741825, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$2, %rdx
	movl	$1, %ecx
	movl	$1, %esi
	movq	%rax, %r12
	movabsq	$4294967297, %rdi
	movq	%rdx, -1704(%rbp)
	movl	$1, -1696(%rbp)
	movq	%rdi, -1728(%rbp)
	movl	$1, -1720(%rbp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L136
	pushq	%r11
	pushq	-1760(%rbp)
	movq	-1816(%rbp), %r9
	movq	-1824(%rbp), %r8
	pushq	-1768(%rbp)
	movq	-1792(%rbp), %rcx
	pushq	-1776(%rbp)
	movq	-1784(%rbp), %rdx
	movq	-1800(%rbp), %rsi
	movq	-1808(%rbp), %rdi
	.cfi_escape 0x2e,0x20
	call	_Z58__device_stub__Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_PjS_PiS0_S0_S0_S_S_S0_
	addq	$32, %rsp
.L136:
	.cfi_escape 0x2e,0
	call	cudaDeviceSynchronize@PLT
	call	clock@PLT
	leaq	.LC9(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	subq	%r12, %rax
	movq	%rax, %r15
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtsi2ssq	%r15, %xmm0
	divss	.LC10(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	-1832(%rbp), %edx
	imull	-1840(%rbp), %edx
	movl	$2, %ecx
	movq	-1776(%rbp), %rsi
	movq	-1864(%rbp), %rdi
	movslq	%edx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movl	-1832(%rbp), %edx
	imull	-1836(%rbp), %edx
	movl	$2, %ecx
	movq	-1768(%rbp), %rsi
	movq	-1880(%rbp), %rdi
	movslq	%edx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movabsq	$2305843009213693950, %rax
	movl	-1832(%rbp), %edi
	imull	-1840(%rbp), %edi
	movslq	%edi, %rdi
	cmpq	%rdi, %rax
	jb	.L137
	salq	$2, %rdi
	call	_Znam@PLT
	movl	-1832(%rbp), %edi
	imull	-1836(%rbp), %edi
	movq	%rax, %r12
	movabsq	$2305843009213693950, %rax
	movslq	%edi, %rdi
	cmpq	%rdi, %rax
	jnb	.L207
	jmp	.L230
.L137:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L210
	call	__cxa_throw_bad_array_new_length@PLT
.L207:
	salq	$2, %rdi
	call	_Znam@PLT
	movl	-1840(%rbp), %r8d
	xorl	%r10d, %r10d
	movq	%rax, %r15
	xorl	%r9d, %r9d
	movl	%r10d, -1888(%rbp)
	movl	-1832(%rbp), %r14d
	xorl	%r10d, %r10d
	leal	-1(%r8), %edx
	movl	-1836(%rbp), %eax
	leaq	4(,%rdx,4), %r11
	xorl	%edx, %edx
	jmp	.L141
.L230:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L210
	call	__cxa_throw_bad_array_new_length@PLT
.L231:
	incl	%edx
.L146:
	addl	%eax, -1888(%rbp)
	incl	%r10d
	addl	%r8d, %r9d
.L141:
	cmpl	%r10d, %r14d
	jle	.L148
	movq	-1864(%rbp), %rsi
	movslq	%r9d, %rcx
	leaq	(%rsi,%rcx,4), %rsi
	xorl	%ecx, %ecx
.L143:
	cmpl	%ecx, %r8d
	jle	.L146
	incq	%rcx
	cmpl	$0, -4(%rsi,%rcx,4)
	je	.L143
	movl	%r8d, %ecx
	imull	%edx, %ecx
	movslq	%ecx, %rcx
	leaq	(%r12,%rcx,4), %r13
	movq	%r11, %rcx
	movq	%r13, %rdi
	rep movsb
	movslq	-1888(%rbp), %rcx
	movq	-1880(%rbp), %rsi
	leaq	(%rsi,%rcx,4), %rsi
	movl	%edx, %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rcx
	leaq	(%r15,%rcx,4), %rdi
	xorl	%ecx, %ecx
.L144:
	cmpl	%ecx, %eax
	jle	.L231
	movl	(%rsi,%rcx,4), %r13d
	movl	%r13d, (%rdi,%rcx,4)
	incq	%rcx
	jmp	.L144
.L148:
	testl	%edx, %edx
	jne	.L149
	leaq	.LC11(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	jmp	.L170
.L149:
	imull	%edx, %eax
	movl	%edx, -1828(%rbp)
	movabsq	$2305843009213693950, %rdx
	cltq
	cmpq	%rax, %rdx
	jb	.L151
	leaq	0(,%rax,4), %rdi
	call	_Znam@PLT
	movl	-1828(%rbp), %esi
	imull	-1836(%rbp), %esi
	xorl	%r9d, %r9d
	leaq	-1752(%rbp), %rdi
	movq	%rax, -1888(%rbp)
	movq	%r9, -1752(%rbp)
	movslq	%esi, %rsi
	movq	%r9, -1744(%rbp)
	salq	$2, %rsi
	movq	%r9, -1736(%rbp)
	call	cudaMalloc@PLT
	jmp	.L232
.L151:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L210
	call	__cxa_throw_bad_array_new_length@PLT
.L232:
	leaq	-1744(%rbp), %rdi
	movl	$4, %esi
	call	cudaMalloc@PLT
	movl	-1828(%rbp), %esi
	imull	-1836(%rbp), %esi
	leaq	-1736(%rbp), %rdi
	movslq	%esi, %rsi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movl	-1828(%rbp), %edx
	imull	-1836(%rbp), %edx
	movl	$1, %ecx
	movq	%r15, %rsi
	movq	-1752(%rbp), %rdi
	movslq	%edx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movq	-1744(%rbp), %rdi
	movl	$1, %ecx
	movl	$4, %edx
	leaq	-1828(%rbp), %rsi
	call	cudaMemcpy@PLT
	call	clock@PLT
	movl	$1073741825, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$2, %rdx
	movl	$1, %ecx
	movl	$1, %esi
	movq	%rax, %r14
	movabsq	$4294967297, %rdi
	movq	%rdx, -1704(%rbp)
	movl	$1, -1696(%rbp)
	movq	%rdi, -1728(%rbp)
	movl	$1, -1720(%rbp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L154
	movq	-1736(%rbp), %rcx
	movq	-1816(%rbp), %rdx
	movq	-1744(%rbp), %rsi
	movq	-1752(%rbp), %rdi
	call	_Z39__device_stub__Z11count_tranxPjPiS0_S0_PjPiS0_S0_
.L154:
	call	cudaDeviceSynchronize@PLT
	call	clock@PLT
	leaq	.LC12(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	subq	%r14, %rax
	movq	%rax, %r13
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtsi2ssq	%r13, %xmm0
	divss	.LC10(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	-1828(%rbp), %edx
	imull	-1836(%rbp), %edx
	movl	$2, %ecx
	movq	-1736(%rbp), %rsi
	movq	-1888(%rbp), %rdi
	movslq	%edx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movq	%rbx, %rdi
	call	_ZdaPv@PLT
	movq	-1872(%rbp), %rdi
	call	_ZdaPv@PLT
	movl	-1828(%rbp), %edi
	imull	-1840(%rbp), %edi
	movabsq	$2305843009213693950, %rax
	movslq	%edi, %rdi
	cmpq	%rdi, %rax
	jb	.L155
	salq	$2, %rdi
	call	_Znam@PLT
	movl	-1828(%rbp), %edi
	imull	-1836(%rbp), %edi
	movq	%rax, %rbx
	movabsq	$2305843009213693950, %rax
	movslq	%edi, %rdi
	cmpq	%rdi, %rax
	jnb	.L209
	jmp	.L233
.L155:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L210
	call	__cxa_throw_bad_array_new_length@PLT
.L209:
	salq	$2, %rdi
	call	_Znam@PLT
	movq	%rax, -1872(%rbp)
	xorl	%r11d, %r11d
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	movl	-1828(%rbp), %eax
	movl	-1836(%rbp), %esi
	xorl	%edx, %edx
	movl	-1840(%rbp), %r9d
	movl	%eax, -1896(%rbp)
	jmp	.L159
.L233:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L210
	call	__cxa_throw_bad_array_new_length@PLT
.L236:
	incl	%edx
.L162:
	incl	%r10d
	addl	%esi, %r8d
	addl	%r9d, %r11d
.L159:
	cmpl	%r10d, -1896(%rbp)
	jle	.L168
	movq	-1888(%rbp), %rcx
	movslq	%r8d, %rax
	xorl	%edi, %edi
	salq	$2, %rax
	leaq	(%rcx,%rax), %r13
	xorl	%ecx, %ecx
.L169:
	cmpl	%ecx, %esi
	jle	.L234
	addl	0(%r13,%rcx,4), %edi
	incq	%rcx
	jmp	.L169
.L234:
	cvtsi2ssl	%edi, %xmm0
	divss	-1892(%rbp), %xmm0
	comiss	.LC13(%rip), %xmm0
	jb	.L162
	movslq	%r11d, %rcx
	leaq	(%r12,%rcx,4), %rdi
	movl	%edx, %ecx
	imull	%r9d, %ecx
	movslq	%ecx, %rcx
	leaq	(%rbx,%rcx,4), %r13
	xorl	%ecx, %ecx
.L164:
	cmpl	%ecx, %r9d
	jle	.L235
	movl	(%rdi,%rcx,4), %r14d
	movl	%r14d, 0(%r13,%rcx,4)
	incq	%rcx
	jmp	.L164
.L235:
	movl	%edx, %ecx
	movq	-1872(%rbp), %rdi
	addq	%r15, %rax
	imull	%esi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rdi,%rcx,4), %rdi
	xorl	%ecx, %ecx
.L166:
	cmpl	%ecx, %esi
	jle	.L236
	movl	(%rax,%rcx,4), %r13d
	movl	%r13d, (%rdi,%rcx,4)
	incq	%rcx
	jmp	.L166
.L168:
	leaq	.LC14(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	-1852(%rbp)
	movl	%edx, -1844(%rbp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	-1844(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	-1808(%rbp), %rdi
	call	cudaFree@PLT
	movq	-1800(%rbp), %rdi
	call	cudaFree@PLT
	movq	-1792(%rbp), %rdi
	call	cudaFree@PLT
	movq	-1784(%rbp), %rdi
	call	cudaFree@PLT
	movq	-1776(%rbp), %rdi
	call	cudaFree@PLT
	movq	-1768(%rbp), %rdi
	call	cudaFree@PLT
	movq	-1760(%rbp), %rdi
	call	cudaFree@PLT
	movq	-1752(%rbp), %rdi
	call	cudaFree@PLT
	movq	-1744(%rbp), %rdi
	call	cudaFree@PLT
	movq	-1736(%rbp), %rdi
	call	cudaFree@PLT
	movq	-1864(%rbp), %rdi
	call	_ZdaPv@PLT
	movq	-1880(%rbp), %rdi
	call	_ZdaPv@PLT
	movq	%r12, %rdi
	call	_ZdaPv@PLT
	movq	%r15, %rdi
	call	_ZdaPv@PLT
	movq	-1888(%rbp), %rdi
	call	_ZdaPv@PLT
	jmp	.L129
.L170:
	call	clock@PLT
	movq	-1912(%rbp), %rbx
	leaq	.LC15(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	subq	%rbx, %rax
	movq	%rax, %rbx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtsi2ssq	%rbx, %xmm0
	divss	.LC10(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE5:
	xorl	%ebx, %ebx
.L125:
	leaq	-1632(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	-1600(%rbp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	-1664(%rbp), %rdi
	call	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E.isra.0
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L180
	jmp	.L210
.L188:
	endbr64
	movq	%rax, %rbx
	jmp	.L173
.L172:
	movq	%r15, %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
.L173:
	movq	-1864(%rbp), %rdi
	call	_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L174
.L191:
	endbr64
	movq	%rax, %rbx
.L175:
	leaq	-1728(%rbp), %rdi
	call	_ZNSt12_Vector_baseIjSaIjEED2Ev
	jmp	.L174
.L190:
	endbr64
	movq	%rax, %rbx
.L174:
	leaq	-1632(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	-1600(%rbp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L176
.L187:
	endbr64
	movq	%rax, %rbx
.L176:
	movq	-1664(%rbp), %rdi
	call	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E.isra.0
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L210
	movq	%rbx, %rdi
.LEHB6:
	call	_Unwind_Resume@PLT
.LEHE6:
.L94:
	movq	-1872(%rbp), %rsi
	xorl	%r8d, %r8d
	movq	%r12, %rdi
	leaq	-1728(%rbp), %r15
	movq	%r8, -1728(%rbp)
	movq	%r8, -1720(%rbp)
	movq	%r8, -1712(%rbp)
.LEHB7:
	call	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_
.LEHE7:
	xorl	%edi, %edi
	movq	(%rax), %rsi
	movq	8(%rax), %rcx
	movq	16(%rax), %rdx
	movq	%rdi, (%rax)
	movq	%rdi, 8(%rax)
	movq	%rdi, 16(%rax)
	leaq	-1704(%rbp), %rdi
	movq	%rsi, -1704(%rbp)
	movq	%rcx, -1696(%rbp)
	movq	%rdx, -1688(%rbp)
	call	_ZNSt6vectorIiSaIiEED1Ev
	movq	%r15, %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L216
.L189:
	endbr64
	movq	%rax, %rbx
	jmp	.L172
.L216:
	movq	-1872(%rbp), %rsi
	movq	%r12, %rdi
.LEHB8:
	call	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_
	movq	%rax, %rdi
	movq	%r14, %rsi
	call	_ZNSt6vectorIiSaIiEE9push_backERKi
.LEHE8:
	jmp	.L90
.L210:
	call	__stack_chk_fail@PLT
.L180:
	leaq	-40(%rbp), %rsp
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4590:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4590:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4590-.LLSDACSB4590
.LLSDACSB4590:
	.uleb128 .LEHB0-.LFB4590
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L187-.LFB4590
	.uleb128 0
	.uleb128 .LEHB1-.LFB4590
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L190-.LFB4590
	.uleb128 0
	.uleb128 .LEHB2-.LFB4590
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L188-.LFB4590
	.uleb128 0
	.uleb128 .LEHB3-.LFB4590
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L190-.LFB4590
	.uleb128 0
	.uleb128 .LEHB4-.LFB4590
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L191-.LFB4590
	.uleb128 0
	.uleb128 .LEHB5-.LFB4590
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L190-.LFB4590
	.uleb128 0
	.uleb128 .LEHB6-.LFB4590
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB7-.LFB4590
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L189-.LFB4590
	.uleb128 0
	.uleb128 .LEHB8-.LFB4590
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L188-.LFB4590
	.uleb128 0
.LLSDACSE4590:
	.section	.text.startup
	.size	main, .-main
	.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	_ZL12lookup_table
	.comm	_ZL12lookup_table,1024,32
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC5:
	.long	1023410176
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC6:
	.long	0
	.long	1073741824
	.section	.rodata.cst4
	.align 4
.LC10:
	.long	1232348160
	.align 4
.LC13:
	.long	1000593162
	.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 <cstdint>
#include <vector>
#include <map>
#include <iostream>
#include <fstream>
#include <sstream>
#include <ctime>

using namespace std;

__constant__ int lookup_table[256];

__global__ void generate_candidate(uint32_t *itemSets, uint32_t *tranLists, 
                                   int *itemSet_length, int *itemSets_size, 
                                   int *itemSets_d2, int *tranLists_d2,
                                   uint32_t *n_itemSets, uint32_t *n_tranLists, 
                                   int *next_itemSets_size) {
    int num_of_thread = gridDim.x * blockDim.x;
    int idx = threadIdx.x + blockIdx.x * blockDim.x;
    int itemSets_per_thread = ceil(((double) *itemSets_size) / num_of_thread);    

    // Initialize all outout arrays to 0
    for (int i = 0; i < (*next_itemSets_size) * (*itemSets_d2); i++) {
        n_itemSets[i] = 0;
    }
    for (int i = 0; i < (*next_itemSets_size) * (*tranLists_d2); i++) {
        n_tranLists[i] = 0;
    }    

    for (int i = idx; i < (*itemSets_size) - 1; i += num_of_thread) {
        for (int j = i + 1; j < *itemSets_size; j++) {
            bool is_joinable = true;
            
            // Check bits before (itemSet_length - 1)th "1", join if equal
            int ones_to_check = (*itemSet_length - 1);
            for (int k = 0; k < *itemSets_d2; k++) {
                if (ones_to_check == 0) {
                    break;
                }

                uint32_t left = itemSets[k + i * (*itemSets_d2)];
                uint32_t right = itemSets[k + j * (*itemSets_d2)];
                int sum_left = 0;
                int sum_right = 0;
                uint32_t mask = 255;
                uint32_t part_left, part_right;

                for (int l = 0; l < 4; l++) {
                    part_left = (itemSets[k + i * (*itemSets_d2)] >> (8 * l)) & mask;
                    sum_left += lookup_table[part_left];
                    part_right = (itemSets[k + j * (*itemSets_d2)] >> (8 * l)) & mask;
                    sum_right += lookup_table[part_right];
                }
                
                //printf("ones to check:%d, sum_left:%d, sum_right:%d\n", ones_to_check, sum_left, sum_right);
                if (ones_to_check <= sum_left && ones_to_check <= sum_right) {
                    if (sum_left == sum_right && ones_to_check == sum_left) {
                        if (left != right) {
                            is_joinable = false;
                        }
                        break;
                    } else {
                        // Check bit by bit until enough "1" met
                        mask = 1;
                        for (int l = 0; l < 32; l++) {
                            uint32_t masked_left = left & mask;
                            uint32_t masked_right = right & mask;
                            if (masked_left != masked_right) {
                                is_joinable = false;
                                break;
                            } else {
                                if (masked_left == mask) {
                                    ones_to_check--;
                                    if (ones_to_check == 0) {
                                        break;
                                    }
                                }
                            }
                            mask = mask << 1;
                        }
                        break;
                    }
                } else if (sum_left != sum_right) {
                    is_joinable = false;
                    break;
                } else {
                    if (left != right) {
                        is_joinable = false;
                        break;
                    }
                    ones_to_check -= sum_left;
                }
            }

            /* Output valid joined itemSets, sum from start to end and j - (i + 1) 
               to get output position */
            if (is_joinable) {
                int output_pos;
                if (i == 0) {
                    output_pos = j - (i + 1);
                } else {
                    int start = *itemSets_size - 1;
                    int end = start - (i - 1);
                    output_pos = (start + end) * i / 2 + (j - (i + 1));
                }
                
                //printf("i:%d, j:%d, output_pos:%d, is joinable:%d\n",i ,j , output_pos, is_joinable);
                for (int k = 0; k < *itemSets_d2; k++) {
                    n_itemSets[k + output_pos * (*itemSets_d2)] = 
                        itemSets[k + i * (*itemSets_d2)] | itemSets[k + j * (*itemSets_d2)];
                }
                for (int k = 0; k < *tranLists_d2; k++) {
                    n_tranLists[k + output_pos * (*tranLists_d2)] = 
                        tranLists[k + i * (*tranLists_d2)] & tranLists[k + j * (*tranLists_d2)];
                }
            } else {
                break;
            }
        }
    }
}

__global__ void count_tranx(uint32_t *tranLists, int *itemSets_size, int *tranLists_d2, 
                            int *countLists) {
    int num_of_thread = gridDim.x * blockDim.x;
    int idx = threadIdx.x + blockIdx.x * blockDim.x;
    int itemSets_per_thread = ceil(((double) *itemSets_size) / num_of_thread);

    // Initialize output array to 0
    for (int i = 0; i < (*itemSets_size) * (*tranLists_d2); i++) {
        countLists[i] = 0;
    }
    
    for (int i = idx; i < *itemSets_size; i += num_of_thread) {
        for (int j = 0; j < *tranLists_d2; j++) {
            int sum = 0;
            uint32_t mask = 255;
            uint32_t part;
            for (int k = 0; k < 4; k++) {
                part = (tranLists[j + i * (*tranLists_d2)] >> (8 * k)) & mask;
                sum += lookup_table[part];
            }
            //printf("i:%d, sum:%d\n", i, sum);
            countLists[j + i * (*tranLists_d2)] = sum;
        }
    }
}

int main()
{
    float min_sup = 0.005f;
    int num_of_block = 1;
    int thread_per_block = 4;
    int itemSet_length = 1;
    
    // Read file to generate initial itemSets and tranLists
    map<int, vector<int>> item_to_tranxs;
    ifstream ifs("1000.dat");
    string line;
    int tranxID = 0;
    while (getline(ifs, line)) {
        istringstream iss(line);
        while (iss) {
            int itemID;
            iss >> itemID;
            //itemID--;
            if (item_to_tranxs.find(itemID) != item_to_tranxs.end()) {
                item_to_tranxs[itemID].push_back(tranxID);
            } else {
                item_to_tranxs[itemID] = vector<int>();
                item_to_tranxs[itemID].push_back(tranxID);
            }
        }
        tranxID++;
    }
    
    int num_of_item = item_to_tranxs.size();
    int num_of_tranx = tranxID;
    int itemSets_size = item_to_tranxs.size();
    int itemSets_d2 = ceil(((float) num_of_item) / 32);
    int tranLists_d2 = ceil(((float) num_of_tranx) / 32);
    uint32_t *itemSets = new uint32_t[itemSets_size * itemSets_d2];
    uint32_t *tranLists = new uint32_t[itemSets_size * tranLists_d2];

    for (int i = 0; i < itemSets_size; i++) {        
        for (int j = 0; j < itemSets_d2; j++) {
            itemSets[j + i * itemSets_d2] = 0;
        }
    }
    for (int i = 0; i < item_to_tranxs.size(); i++) {
        int idx_in_d2 = i / 32;
        uint32_t value = pow(2.0, i % 32);
        itemSets[idx_in_d2 + i * itemSets_d2] = value;
    }
    
    for (int i = 0; i < item_to_tranxs.size(); i++) {
        vector<uint32_t> values(tranLists_d2, 0);
        vector<int> tranxIDs = item_to_tranxs[i];
        for (int j = 0; j < tranxIDs.size(); j++) {
            int idx_in_d2 = tranxIDs[j] / 32;
            uint32_t value = pow(2.0, tranxIDs[j] % 32);
            values[idx_in_d2] += value;
        }
        for (int j = 0; j < tranLists_d2; j++) {
            tranLists[j + i * tranLists_d2] = values[j];
        }        
    }

    // Choose which GPU to run on, change this on a multi-GPU system.
    hipError_t cudaStatus;
    cudaStatus = hipSetDevice(0);
    if (cudaStatus != hipSuccess) {
        fprintf(stderr, "hipSetDevice failed!  Do you have a CUDA-capable GPU installed?");
        return 1;
    }

    // Build lookup table, and copy it to GPU
    int host_lookup_table[256];
    for (int i = 0; i < 256; i++) {
        int count = 0;
        unsigned int num = i;
        while (num != 0) {
            if (num & 1 == 1) {
                count++;
            }
            num = num >> 1;
        }
        host_lookup_table[i] = count;
    }
    hipMemcpyToSymbol(HIP_SYMBOL(lookup_table), host_lookup_table, 256 * sizeof(int));

    // Set 2nd dimension of itemSets and tranLists, they should be fixed
    int *dev_itemSets_d2 = 0;
    int *dev_tranLists_d2 = 0;
    hipMalloc((void**)&dev_itemSets_d2, sizeof(int));
    hipMalloc((void**)&dev_tranLists_d2, sizeof(int));
    hipMemcpy(dev_itemSets_d2, &itemSets_d2, sizeof(int), hipMemcpyHostToDevice);
    hipMemcpy(dev_tranLists_d2, &tranLists_d2, sizeof(int), hipMemcpyHostToDevice);

    clock_t t = clock();
    while (itemSets_size != 0 && itemSet_length <= num_of_item - 1) {
        // generate candidate itemSets
        int next_itemSets_size = itemSets_size * (itemSets_size - 1) / 2;
        uint32_t *next_itemSets = new uint32_t[next_itemSets_size * itemSets_d2];
        uint32_t *next_tranLists = new uint32_t[next_itemSets_size * tranLists_d2];
        
        uint32_t *dev_itemSets = 0;
        uint32_t *dev_tranLists = 0;
        int *dev_itemSets_size = 0; 
        int *dev_itemSet_length = 0;
        uint32_t *dev_next_itemSets = 0;
        uint32_t *dev_next_tranLists = 0;
        int *dev_next_itemSets_size = 0;
    
        hipMalloc((void**)&dev_itemSets, itemSets_size * itemSets_d2 * sizeof(uint32_t));
        hipMalloc((void**)&dev_tranLists, itemSets_size * tranLists_d2 * sizeof(uint32_t));
        hipMalloc((void**)&dev_itemSets_size, sizeof(int));
        hipMalloc((void**)&dev_itemSet_length, sizeof(int));
        hipMalloc((void**)&dev_next_itemSets, next_itemSets_size * itemSets_d2 * 
            sizeof(uint32_t));
        hipMalloc((void**)&dev_next_tranLists, next_itemSets_size * tranLists_d2 * 
            sizeof(uint32_t));
        hipMalloc((void**)&dev_next_itemSets_size, sizeof(int));

        hipMemcpy(dev_itemSets, itemSets, itemSets_size * itemSets_d2 * sizeof(uint32_t), 
            hipMemcpyHostToDevice);
        hipMemcpy(dev_tranLists, tranLists, itemSets_size * tranLists_d2 * sizeof(uint32_t), 
            hipMemcpyHostToDevice);
        hipMemcpy(dev_itemSets_size, &itemSets_size, sizeof(int), hipMemcpyHostToDevice);
        hipMemcpy(dev_itemSet_length, &itemSet_length, sizeof(int), hipMemcpyHostToDevice);
        hipMemcpy(dev_next_itemSets_size, &next_itemSets_size, sizeof(int), 
            hipMemcpyHostToDevice);
        
        clock_t t1 = clock();
        generate_candidate<<<num_of_block, thread_per_block>>>(dev_itemSets, dev_tranLists, 
            dev_itemSet_length, dev_itemSets_size, dev_itemSets_d2, dev_tranLists_d2, 
            dev_next_itemSets, dev_next_tranLists, dev_next_itemSets_size);

        hipDeviceSynchronize();
        t1 = clock() - t1;
        cout << "Time for candidate generation:" << ((float)t1) / CLOCKS_PER_SEC << endl;

        // Copy results back
        hipMemcpy(next_itemSets, dev_next_itemSets, next_itemSets_size * itemSets_d2 * 
            sizeof(uint32_t), hipMemcpyDeviceToHost);
        hipMemcpy(next_tranLists, dev_next_tranLists, next_itemSets_size * tranLists_d2 *
            sizeof(uint32_t), hipMemcpyDeviceToHost);

        // Pick valid joined ItenSets 
        uint32_t *joined_itemSets = new uint32_t[next_itemSets_size * itemSets_d2];
        uint32_t *joined_tranLists = new uint32_t[next_itemSets_size * tranLists_d2];
        int cursor = 0;
        for (int i = 0; i < next_itemSets_size; i++) {
            for (int j = 0; j < itemSets_d2; j++) {
                if (next_itemSets[j + i * itemSets_d2] != 0) {
                    for (int k = 0; k < itemSets_d2; k++) {
                        joined_itemSets[k + cursor * itemSets_d2] = 
                            next_itemSets[k + i * itemSets_d2];
                    }
                    for (int k = 0; k < tranLists_d2; k++) {
                        joined_tranLists[k + cursor * tranLists_d2] = 
                            next_tranLists[k + i * tranLists_d2];
                    }
                    cursor++;
                    break;
                }
            }
        }
        
        if (cursor == 0) {
            cout << "No joined ItemSets found!" << endl;
            break;
        }

        // Count transactions
        int joined_itemSets_size = cursor;
        int *countLists = new int[joined_itemSets_size * tranLists_d2];

        uint32_t *dev_joined_tranLists = 0;
        int *dev_joined_itemSets_size = 0;
        int *dev_countLists = 0;

        hipMalloc((void**)&dev_joined_tranLists, joined_itemSets_size * tranLists_d2 *
            sizeof(uint32_t));
        hipMalloc((void**)&dev_joined_itemSets_size, sizeof(int));
        hipMalloc((void**)&dev_countLists, joined_itemSets_size * tranLists_d2 *
            sizeof(int));

        hipMemcpy(dev_joined_tranLists, joined_tranLists, joined_itemSets_size * 
            tranLists_d2 * sizeof(uint32_t), hipMemcpyHostToDevice);
        hipMemcpy(dev_joined_itemSets_size, &joined_itemSets_size, sizeof(int), 
            hipMemcpyHostToDevice);

        t1 = clock();
        count_tranx<<<num_of_block, thread_per_block>>>(dev_joined_tranLists, 
            dev_joined_itemSets_size, dev_tranLists_d2, dev_countLists);

        hipDeviceSynchronize();
        t1 = clock() - t1;
        cout << "Time for counting:" << ((float)t1) / CLOCKS_PER_SEC << endl;

        // Copy results back
        hipMemcpy(countLists, dev_countLists, joined_itemSets_size * tranLists_d2 * 
            sizeof(int), hipMemcpyDeviceToHost);
        
        // Pick frequent ItemSets
        delete[] itemSets;
        delete[] tranLists;
        itemSets = new uint32_t[joined_itemSets_size * itemSets_d2];
        tranLists = new uint32_t[joined_itemSets_size * tranLists_d2];

        cursor = 0;
        for (int i = 0; i < joined_itemSets_size; i++) {
            int count = 0;
            for (int j = 0; j < tranLists_d2; j++) {
                count += countLists[j + i * tranLists_d2];
            }
            float support = ((float) count) / num_of_tranx;
            if (support >= min_sup) {
                for (int j = 0; j < itemSets_d2; j++) {
                    itemSets[j + cursor * itemSets_d2] = 
                        joined_itemSets[j + i * itemSets_d2];
                }
                for (int j = 0; j < tranLists_d2; j++) {
                    tranLists[j + cursor * tranLists_d2] = 
                        joined_tranLists[j + i * tranLists_d2];
                }
                cursor++;
            }
        }
        itemSets_size = cursor;
        itemSet_length++;

        // Output frequent itemSet
        cout << "frequent itemSets_size: " << itemSets_size << endl;        
        /* for (int i = 0; i < itemSets_size; i++) {
            for (int j = 0; j < itemSets_d2; j++) {
                cout << itemSets[j + i * itemSets_d2] << " ";
            }
        }
        cout << endl; */

        // Clean up
        hipFree(dev_itemSets);
        hipFree(dev_tranLists);
        hipFree(dev_itemSets_size);
        hipFree(dev_itemSet_length);
        hipFree(dev_next_itemSets);
        hipFree(dev_next_tranLists);
        hipFree(dev_next_itemSets_size);
        hipFree(dev_joined_tranLists);
        hipFree(dev_joined_itemSets_size);
        hipFree(dev_countLists);
        delete[] next_itemSets;
        delete[] next_tranLists;
        delete[] joined_itemSets;
        delete[] joined_tranLists;
        delete[] countLists;
    }
    t = clock() - t;
    cout << "Time:" << ((float)t) / CLOCKS_PER_SEC << endl;
    return 0;
}

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

                                        # End of file scope inline assembly
	.globl	_Z33__device_stub__generate_candidatePjS_PiS0_S0_S0_S_S_S0_ # -- Begin function _Z33__device_stub__generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	.type	_Z33__device_stub__generate_candidatePjS_PiS0_S0_S0_S_S_S0_,@function
_Z33__device_stub__generate_candidatePjS_PiS0_S0_S0_S_S_S0_: # @_Z33__device_stub__generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	.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	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	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_end0:
	.size	_Z33__device_stub__generate_candidatePjS_PiS0_S0_S0_S_S_S0_, .Lfunc_end0-_Z33__device_stub__generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__count_tranxPjPiS0_S0_ # -- Begin function _Z26__device_stub__count_tranxPjPiS0_S0_
	.type	_Z26__device_stub__count_tranxPjPiS0_S0_,@function
_Z26__device_stub__count_tranxPjPiS0_S0_: # @_Z26__device_stub__count_tranxPjPiS0_S0_
	.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	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	16(%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	8(%rsp), %r12
	movq	%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	$_Z11count_tranxPjPiS0_S0_, %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	_Z26__device_stub__count_tranxPjPiS0_S0_, .Lfunc_end1-_Z26__device_stub__count_tranxPjPiS0_S0_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI2_0:
	.long	0x3d000000                      # float 0.03125
.LCPI2_2:
	.long	0x49742400                      # float 1.0E+6
.LCPI2_3:
	.long	0x3ba3d70a                      # float 0.00499999989
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0
.LCPI2_1:
	.quad	0x3ff0000000000000              # double 1
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0
.LCPI2_4:
	.zero	16
	.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	$1864, %rsp                     # imm = 0x748
	.cfi_def_cfa_offset 1920
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$1, 36(%rsp)
	leaq	280(%rsp), %r14
	movl	$0, (%r14)
	xorl	%eax, %eax
	movq	%rax, 8(%r14)
	movq	%r14, 16(%r14)
	movq	%r14, 24(%r14)
	movq	%rax, 32(%r14)
.Ltmp0:
	.cfi_escape 0x2e, 0x00
	leaq	1344(%rsp), %rdi
	movl	$.L.str, %esi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
.Ltmp1:
# %bb.1:
	leaq	256(%rsp), %rax
	movq	%rax, -16(%rax)
	movq	$0, -8(%rax)
	movb	$0, (%rax)
	leaq	32(%rsp), %r15
	movl	$0, (%r15)
	leaq	320(%rsp), %r13
	leaq	200(%rsp), %rbp
	leaq	272(%rsp), %rbx
.LBB2_2:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_6 Depth 2
                                        #       Child Loop BB2_10 Depth 3
	movq	1344(%rsp), %rax
	movq	-24(%rax), %rdi
	leaq	1344(%rsp), %r12
	addq	%r12, %rdi
.Ltmp3:
	.cfi_escape 0x2e, 0x00
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp4:
# %bb.3:                                # %.noexc
                                        #   in Loop: Header=BB2_2 Depth=1
.Ltmp5:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %edx
	movq	%r12, %rdi
	leaq	240(%rsp), %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp6:
# %bb.4:                                #   in Loop: Header=BB2_2 Depth=1
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB2_28
# %bb.5:                                #   in Loop: Header=BB2_2 Depth=1
.Ltmp181:
	.cfi_escape 0x2e, 0x00
	movq	%r13, %rdi
	leaq	240(%rsp), %rsi
	movl	$8, %edx
	callq	_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode
.Ltmp182:
.LBB2_6:                                # %.preheader314
                                        #   Parent Loop BB2_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB2_10 Depth 3
	movq	320(%rsp), %rax
	movq	-24(%rax), %rax
	testb	$5, 352(%rsp,%rax)
	jne	.LBB2_24
# %bb.7:                                # %.lr.ph
                                        #   in Loop: Header=BB2_6 Depth=2
.Ltmp184:
	.cfi_escape 0x2e, 0x00
	movq	%r13, %rdi
	movq	%rbp, %rsi
	callq	_ZNSirsERi
.Ltmp185:
# %bb.8:                                #   in Loop: Header=BB2_6 Depth=2
	movq	288(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_19
# %bb.9:                                # %.lr.ph.i.i.i
                                        #   in Loop: Header=BB2_6 Depth=2
	movl	200(%rsp), %eax
	movq	%r14, %r8
.LBB2_10:                               #   Parent Loop BB2_2 Depth=1
                                        #     Parent Loop BB2_6 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movq	%r8, %rcx
	movq	%rdi, %rdx
	movl	32(%rdi), %esi
	xorl	%edi, %edi
	cmpl	%eax, %esi
	setl	%dil
	movq	%rdx, %r8
	cmovlq	%rcx, %r8
	movq	16(%rdx,%rdi,8), %rdi
	testq	%rdi, %rdi
	jne	.LBB2_10
# %bb.11:                               # %_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE14_M_lower_boundEPSt13_Rb_tree_nodeIS5_EPSt18_Rb_tree_node_baseRS1_.exit.i.i
                                        #   in Loop: Header=BB2_6 Depth=2
	cmpq	%r14, %r8
	je	.LBB2_19
# %bb.12:                               # %_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEE4findERS6_.exit
                                        #   in Loop: Header=BB2_6 Depth=2
	cmpl	%eax, %esi
	cmovlq	%rcx, %rdx
	cmpl	32(%rdx), %eax
	jge	.LBB2_13
.LBB2_19:                               # %_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEE4findERS6_.exit.thread
                                        #   in Loop: Header=BB2_6 Depth=2
.Ltmp188:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	callq	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_
.Ltmp189:
# %bb.20:                               #   in Loop: Header=BB2_6 Depth=2
	movq	(%rax), %rdi
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, (%rax)
	movq	$0, 16(%rax)
	testq	%rdi, %rdi
	je	.LBB2_22
# %bb.21:                               #   in Loop: Header=BB2_6 Depth=2
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB2_22:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit
                                        #   in Loop: Header=BB2_6 Depth=2
.Ltmp191:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	callq	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_
.Ltmp192:
.LBB2_14:                               #   in Loop: Header=BB2_6 Depth=2
	movq	8(%rax), %rsi
	cmpq	16(%rax), %rsi
	je	.LBB2_23
# %bb.15:                               #   in Loop: Header=BB2_6 Depth=2
	addq	$8, %rax
	movl	32(%rsp), %ecx
	movl	%ecx, (%rsi)
	addq	$4, %rsi
	movq	%rsi, (%rax)
	jmp	.LBB2_6
.LBB2_23:                               # %.invoke
                                        #   in Loop: Header=BB2_6 Depth=2
.Ltmp193:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp194:
	jmp	.LBB2_6
.LBB2_13:                               #   in Loop: Header=BB2_6 Depth=2
.Ltmp186:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	callq	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_
.Ltmp187:
	jmp	.LBB2_14
.LBB2_24:                               # %._crit_edge
                                        #   in Loop: Header=BB2_2 Depth=1
	incl	32(%rsp)
	.cfi_escape 0x2e, 0x00
	movl	$_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE, %esi
	movq	%r13, %rdi
	callq	_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev
	.cfi_escape 0x2e, 0x00
	leaq	440(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	jmp	.LBB2_2
.LBB2_28:
	cvtsi2ssl	32(%rsp), %xmm0
	movss	%xmm0, 68(%rsp)                 # 4-byte Spill
	movq	312(%rsp), %r12
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r12d, %xmm0
	movl	%r12d, 12(%rsp)
	mulss	.LCPI2_0(%rip), %xmm0
	.cfi_escape 0x2e, 0x00
	callq	ceilf@PLT
	cvttss2si	%xmm0, %ebp
	movl	%ebp, 8(%rsp)
	movss	.LCPI2_0(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	mulss	68(%rsp), %xmm0                 # 4-byte Folded Reload
	.cfi_escape 0x2e, 0x00
	callq	ceilf@PLT
	cvttss2si	%xmm0, %ebx
	movl	%ebx, 4(%rsp)
	movl	%ebp, %eax
	imull	%r12d, %eax
	cltq
	leaq	(,%rax,4), %rdi
	testl	%eax, %eax
	movq	$-1, %r14
	cmovsq	%r14, %rdi
.Ltmp8:
	.cfi_escape 0x2e, 0x00
	callq	_Znam
.Ltmp9:
# %bb.29:
	movq	%rax, %r13
	imull	%r12d, %ebx
	movslq	%ebx, %rax
	leaq	(,%rax,4), %rdi
	testl	%eax, %eax
	cmovsq	%r14, %rdi
.Ltmp11:
	.cfi_escape 0x2e, 0x00
	callq	_Znam
	movq	%rax, 48(%rsp)                  # 8-byte Spill
.Ltmp12:
# %bb.30:                               # %.preheader313
	testl	%r12d, %r12d
	jle	.LBB2_35
# %bb.31:                               # %.preheader312.lr.ph
	movl	%ebp, %ebx
	shlq	$2, %rbx
	movl	%r12d, %r14d
	xorl	%r15d, %r15d
.LBB2_32:                               # %.preheader312
                                        # =>This Inner Loop Header: Depth=1
	testl	%ebp, %ebp
	jle	.LBB2_34
# %bb.33:                               # %.lr.ph332
                                        #   in Loop: Header=BB2_32 Depth=1
	movl	%r15d, %eax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	.cfi_escape 0x2e, 0x00
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	memset@PLT
.LBB2_34:                               # %._crit_edge333
                                        #   in Loop: Header=BB2_32 Depth=1
	addl	%ebp, %r15d
	decq	%r14
	jne	.LBB2_32
.LBB2_35:                               # %.preheader311
	testq	%r12, %r12
	movq	%r12, 224(%rsp)                 # 8-byte Spill
	je	.LBB2_54
# %bb.36:                               # %.lr.ph336.preheader
	xorl	%ebx, %ebx
	movq	%r13, %r14
.LBB2_37:                               # %.lr.ph336
                                        # =>This Inner Loop Header: Depth=1
	movl	%ebx, %ebp
	shrl	$5, %ebp
	movl	%ebx, %edi
	andl	$31, %edi
	.cfi_escape 0x2e, 0x00
	movsd	.LCPI2_1(%rip), %xmm0           # xmm0 = mem[0],zero
	callq	ldexp@PLT
	cvttsd2si	%xmm0, %rax
	movl	8(%rsp), %ecx
	imull	%ebx, %ecx
	addl	%ebp, %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%r14,%rcx,4)
	incq	%rbx
	movq	312(%rsp), %rax
	cmpq	%rbx, %rax
	ja	.LBB2_37
# %bb.38:                               # %._crit_edge337
	movl	$0, 24(%rsp)
	testq	%rax, %rax
	je	.LBB2_54
# %bb.39:
	leaq	200(%rsp), %r15
	leaq	272(%rsp), %r12
	leaq	24(%rsp), %rbp
.LBB2_40:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_45 Depth 2
                                        #     Child Loop BB2_48 Depth 2
	movslq	4(%rsp), %rsi
	movl	$0, 200(%rsp)
.Ltmp14:
	.cfi_escape 0x2e, 0x00
	leaq	320(%rsp), %rdi
	movq	%r15, %rdx
	leaq	56(%rsp), %rcx
	callq	_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_
.Ltmp15:
# %bb.41:                               #   in Loop: Header=BB2_40 Depth=1
.Ltmp17:
	.cfi_escape 0x2e, 0x00
	movq	%r12, %rdi
	movq	%rbp, %rsi
	callq	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_
.Ltmp18:
# %bb.42:                               #   in Loop: Header=BB2_40 Depth=1
.Ltmp19:
	.cfi_escape 0x2e, 0x00
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ZNSt6vectorIiSaIiEEC2ERKS1_
.Ltmp20:
# %bb.43:                               # %.preheader310
                                        #   in Loop: Header=BB2_40 Depth=1
	movq	200(%rsp), %rax
	movq	208(%rsp), %rdi
	cmpq	%rax, %rdi
	je	.LBB2_46
# %bb.44:                               # %.lr.ph339.preheader
                                        #   in Loop: Header=BB2_40 Depth=1
	xorl	%ebx, %ebx
	movq	%rax, %rdi
.LBB2_45:                               # %.lr.ph339
                                        #   Parent Loop BB2_40 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	(%rdi,%rbx,4), %edi
	leal	31(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	movl	%eax, %r14d
	sarl	$5, %r14d
	andl	$-32, %eax
	subl	%eax, %edi
	.cfi_escape 0x2e, 0x00
	movsd	.LCPI2_1(%rip), %xmm0           # xmm0 = mem[0],zero
                                        # kill: def $edi killed $edi killed $rdi
	callq	ldexp@PLT
	cvttsd2si	%xmm0, %rax
	movslq	%r14d, %rcx
	movq	320(%rsp), %rdx
	addl	%eax, (%rdx,%rcx,4)
	incq	%rbx
	movq	200(%rsp), %rdi
	movq	208(%rsp), %rax
	subq	%rdi, %rax
	sarq	$2, %rax
	cmpq	%rbx, %rax
	ja	.LBB2_45
.LBB2_46:                               # %.preheader309
                                        #   in Loop: Header=BB2_40 Depth=1
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.LBB2_49
# %bb.47:                               # %.lr.ph342
                                        #   in Loop: Header=BB2_40 Depth=1
	movq	320(%rsp), %rcx
	movslq	24(%rsp), %rdx
	movslq	%eax, %rsi
	imulq	%rdx, %rsi
	movq	48(%rsp), %rdx                  # 8-byte Reload
	leaq	(%rdx,%rsi,4), %rdx
	xorl	%esi, %esi
.LBB2_48:                               #   Parent Loop BB2_40 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%rsi,4), %r8d
	movl	%r8d, (%rdx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	.LBB2_48
.LBB2_49:                               # %._crit_edge343
                                        #   in Loop: Header=BB2_40 Depth=1
	testq	%rdi, %rdi
	je	.LBB2_51
# %bb.50:                               #   in Loop: Header=BB2_40 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB2_51:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit224
                                        #   in Loop: Header=BB2_40 Depth=1
	movq	320(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_53
# %bb.52:                               #   in Loop: Header=BB2_40 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB2_53:                               # %_ZNSt6vectorIjSaIjEED2Ev.exit226
                                        #   in Loop: Header=BB2_40 Depth=1
	movslq	24(%rsp), %rax
	incq	%rax
	movl	%eax, 24(%rsp)
	cmpq	%rax, 312(%rsp)
	ja	.LBB2_40
.LBB2_54:                               # %._crit_edge346
.Ltmp22:
	.cfi_escape 0x2e, 0x00
	xorl	%edi, %edi
	callq	hipSetDevice
.Ltmp23:
# %bb.55:
	testl	%eax, %eax
	jne	.LBB2_56
# %bb.61:
	xorl	%eax, %eax
	movq	224(%rsp), %r14                 # 8-byte Reload
.LBB2_62:                               # %.preheader308
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_64 Depth 2
	movl	$0, %ecx
	testq	%rax, %rax
	je	.LBB2_65
# %bb.63:                               # %.lr.ph350.preheader
                                        #   in Loop: Header=BB2_62 Depth=1
	xorl	%ecx, %ecx
	movl	%eax, %esi
	movl	%eax, %edx
.LBB2_64:                               # %.lr.ph350
                                        #   Parent Loop BB2_62 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	%esi, %edi
	andl	$1, %edi
	addl	%edi, %ecx
	shrl	%edx
	cmpl	$1, %esi
	movl	%edx, %esi
	ja	.LBB2_64
.LBB2_65:                               # %._crit_edge351
                                        #   in Loop: Header=BB2_62 Depth=1
	movl	%ecx, 320(%rsp,%rax,4)
	incq	%rax
	cmpq	$256, %rax                      # imm = 0x100
	jne	.LBB2_62
# %bb.66:
.Ltmp25:
	.cfi_escape 0x2e, 0x00
	leaq	320(%rsp), %rsi
	movl	$lookup_table, %edi
	movl	$1024, %edx                     # imm = 0x400
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
.Ltmp26:
# %bb.67:                               # %_Z17hipMemcpyToSymbolIA256_iE10hipError_tRKT_PKvmm13hipMemcpyKind.exit
	xorl	%eax, %eax
	leaq	200(%rsp), %rdi
	movq	%rax, (%rdi)
	movq	%rax, 24(%rsp)
.Ltmp28:
	.cfi_escape 0x2e, 0x00
	movl	$4, %esi
	callq	hipMalloc
.Ltmp29:
# %bb.68:
.Ltmp30:
	.cfi_escape 0x2e, 0x00
	leaq	24(%rsp), %rdi
	movl	$4, %esi
	callq	hipMalloc
.Ltmp31:
# %bb.69:
	movq	200(%rsp), %rdi
.Ltmp32:
	.cfi_escape 0x2e, 0x00
	leaq	8(%rsp), %rsi
	movl	$4, %edx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp33:
# %bb.70:
	movq	24(%rsp), %rdi
.Ltmp34:
	.cfi_escape 0x2e, 0x00
	leaq	4(%rsp), %rsi
	movl	$4, %edx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp35:
# %bb.71:
	.cfi_escape 0x2e, 0x00
	callq	clock
	movq	%rax, 232(%rsp)                 # 8-byte Spill
	movl	12(%rsp), %ebx
	testl	%ebx, %ebx
	je	.LBB2_175
# %bb.72:
	cmpl	%r14d, 36(%rsp)
	jge	.LBB2_175
# %bb.73:                               # %.lr.ph384.preheader
	movq	$-1, %r12
.LBB2_74:                               # %.lr.ph384
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_103 Depth 2
                                        #       Child Loop BB2_114 Depth 3
                                        #     Child Loop BB2_148 Depth 2
                                        #       Child Loop BB2_150 Depth 3
	leal	-1(%rbx), %eax
	imull	%ebx, %eax
	movl	%eax, %r14d
	shrl	$31, %r14d
	addl	%eax, %r14d
	sarl	%r14d
	movl	%r14d, 16(%rsp)
	movl	8(%rsp), %ebp
	movl	%ebp, %eax
	imull	%r14d, %eax
	cltq
	leaq	(,%rax,4), %rdi
	testl	%eax, %eax
	cmovsq	%r12, %rdi
.Ltmp37:
	.cfi_escape 0x2e, 0x00
	callq	_Znam
	movq	%rax, 192(%rsp)                 # 8-byte Spill
.Ltmp38:
# %bb.75:                               #   in Loop: Header=BB2_74 Depth=1
	movslq	4(%rsp), %rax
	movslq	%r14d, %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rdi
	shlq	$2, %rdi
	testl	%ecx, %ecx
	cmovsq	%r12, %rdi
.Ltmp40:
	.cfi_escape 0x2e, 0x00
	callq	_Znam
	movq	%rax, 184(%rsp)                 # 8-byte Spill
.Ltmp41:
# %bb.76:                               #   in Loop: Header=BB2_74 Depth=1
	xorl	%eax, %eax
	movq	%rax, 56(%rsp)
	movq	%rax, 152(%rsp)
	movq	%rax, 144(%rsp)
	movq	%rax, 136(%rsp)
	movq	%rax, 128(%rsp)
	movq	%rax, 120(%rsp)
	movq	%rax, 112(%rsp)
	imull	%ebx, %ebp
	movslq	%ebp, %rsi
	shlq	$2, %rsi
.Ltmp43:
	.cfi_escape 0x2e, 0x00
	leaq	56(%rsp), %rdi
	callq	hipMalloc
.Ltmp44:
# %bb.77:                               #   in Loop: Header=BB2_74 Depth=1
	movslq	12(%rsp), %rax
	movslq	4(%rsp), %rsi
	imulq	%rax, %rsi
	shlq	$2, %rsi
.Ltmp45:
	.cfi_escape 0x2e, 0x00
	leaq	152(%rsp), %rdi
	callq	hipMalloc
.Ltmp46:
# %bb.78:                               #   in Loop: Header=BB2_74 Depth=1
.Ltmp47:
	.cfi_escape 0x2e, 0x00
	movl	$4, %esi
	leaq	144(%rsp), %rdi
	callq	hipMalloc
.Ltmp48:
# %bb.79:                               #   in Loop: Header=BB2_74 Depth=1
.Ltmp49:
	.cfi_escape 0x2e, 0x00
	movl	$4, %esi
	leaq	136(%rsp), %rdi
	callq	hipMalloc
.Ltmp50:
# %bb.80:                               #   in Loop: Header=BB2_74 Depth=1
	movslq	16(%rsp), %rax
	movslq	8(%rsp), %rsi
	imulq	%rax, %rsi
	shlq	$2, %rsi
.Ltmp51:
	.cfi_escape 0x2e, 0x00
	leaq	128(%rsp), %rdi
	callq	hipMalloc
.Ltmp52:
# %bb.81:                               #   in Loop: Header=BB2_74 Depth=1
	movslq	16(%rsp), %rax
	movslq	4(%rsp), %rsi
	imulq	%rax, %rsi
	shlq	$2, %rsi
.Ltmp53:
	.cfi_escape 0x2e, 0x00
	leaq	120(%rsp), %rdi
	callq	hipMalloc
.Ltmp54:
# %bb.82:                               #   in Loop: Header=BB2_74 Depth=1
.Ltmp55:
	.cfi_escape 0x2e, 0x00
	movl	$4, %esi
	leaq	112(%rsp), %rdi
	callq	hipMalloc
.Ltmp56:
# %bb.83:                               #   in Loop: Header=BB2_74 Depth=1
	movq	56(%rsp), %rdi
	movslq	12(%rsp), %rax
	movslq	8(%rsp), %rdx
	imulq	%rax, %rdx
	shlq	$2, %rdx
.Ltmp57:
	.cfi_escape 0x2e, 0x00
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp58:
# %bb.84:                               #   in Loop: Header=BB2_74 Depth=1
	movq	152(%rsp), %rdi
	movslq	12(%rsp), %rax
	movslq	4(%rsp), %rdx
	imulq	%rax, %rdx
	shlq	$2, %rdx
.Ltmp59:
	.cfi_escape 0x2e, 0x00
	movq	48(%rsp), %rsi                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp60:
# %bb.85:                               #   in Loop: Header=BB2_74 Depth=1
	movq	144(%rsp), %rdi
.Ltmp61:
	.cfi_escape 0x2e, 0x00
	movl	$4, %edx
	leaq	12(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp62:
# %bb.86:                               #   in Loop: Header=BB2_74 Depth=1
	movq	136(%rsp), %rdi
.Ltmp63:
	.cfi_escape 0x2e, 0x00
	movl	$4, %edx
	leaq	36(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp64:
# %bb.87:                               #   in Loop: Header=BB2_74 Depth=1
	movq	112(%rsp), %rdi
.Ltmp65:
	.cfi_escape 0x2e, 0x00
	movl	$4, %edx
	leaq	16(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp66:
# %bb.88:                               #   in Loop: Header=BB2_74 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	clock
	movq	%rax, %rbx
.Ltmp68:
	.cfi_escape 0x2e, 0x00
	movabsq	$4294967297, %rdi               # imm = 0x100000001
	movl	$1, %esi
	movabsq	$4294967300, %rdx               # imm = 0x100000004
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp69:
# %bb.89:                               #   in Loop: Header=BB2_74 Depth=1
	testl	%eax, %eax
	jne	.LBB2_91
# %bb.90:                               #   in Loop: Header=BB2_74 Depth=1
	movq	56(%rsp), %rdi
	movq	152(%rsp), %rsi
	movq	136(%rsp), %rdx
	movq	144(%rsp), %rcx
	movq	200(%rsp), %r8
	movq	24(%rsp), %r9
.Ltmp70:
	.cfi_escape 0x2e, 0x20
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	pushq	120(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	136(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	152(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z33__device_stub__generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
.Ltmp71:
.LBB2_91:                               #   in Loop: Header=BB2_74 Depth=1
.Ltmp72:
	.cfi_escape 0x2e, 0x00
	callq	hipDeviceSynchronize
.Ltmp73:
# %bb.92:                               #   in Loop: Header=BB2_74 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	clock
	movq	%rax, %r14
.Ltmp74:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	movl	$30, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp75:
# %bb.93:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB2_74 Depth=1
	subq	%rbx, %r14
	cvtsi2ss	%r14, %xmm0
	divss	.LCPI2_2(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
.Ltmp76:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp77:
# %bb.94:                               # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB2_74 Depth=1
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp78:
	.cfi_escape 0x2e, 0x00
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp79:
# %bb.95:                               # %.noexc254
                                        #   in Loop: Header=BB2_74 Depth=1
.Ltmp80:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp81:
# %bb.96:                               # %.noexc255
                                        #   in Loop: Header=BB2_74 Depth=1
.Ltmp82:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp83:
# %bb.97:                               # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB2_74 Depth=1
	movq	128(%rsp), %rsi
	movslq	16(%rsp), %rax
	movslq	8(%rsp), %rdx
	imulq	%rax, %rdx
	shlq	$2, %rdx
.Ltmp84:
	.cfi_escape 0x2e, 0x00
	movq	192(%rsp), %rdi                 # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp85:
# %bb.98:                               #   in Loop: Header=BB2_74 Depth=1
	movq	120(%rsp), %rsi
	movslq	16(%rsp), %rax
	movslq	4(%rsp), %rdx
	imulq	%rax, %rdx
	shlq	$2, %rdx
.Ltmp86:
	.cfi_escape 0x2e, 0x00
	movq	184(%rsp), %rdi                 # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp87:
# %bb.99:                               #   in Loop: Header=BB2_74 Depth=1
	movl	16(%rsp), %ebx
	movl	8(%rsp), %ebp
	movl	%ebp, %eax
	imull	%ebx, %eax
	cltq
	leaq	(,%rax,4), %rdi
	testl	%eax, %eax
	cmovsq	%r12, %rdi
.Ltmp89:
	.cfi_escape 0x2e, 0x00
	callq	_Znam
	movq	%rax, 176(%rsp)                 # 8-byte Spill
.Ltmp90:
	movq	$-1, %rcx
# %bb.100:                              #   in Loop: Header=BB2_74 Depth=1
	movq	%r13, 72(%rsp)                  # 8-byte Spill
	movl	4(%rsp), %eax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
                                        # kill: def $eax killed $eax killed $rax
	imull	%ebx, %eax
	cltq
	leaq	(,%rax,4), %rdi
	testl	%eax, %eax
	cmovsq	%rcx, %rdi
.Ltmp92:
	.cfi_escape 0x2e, 0x00
	callq	_Znam
	movq	%rax, 80(%rsp)                  # 8-byte Spill
.Ltmp93:
# %bb.101:                              # %.preheader306
                                        #   in Loop: Header=BB2_74 Depth=1
	testl	%ebx, %ebx
	movq	40(%rsp), %r9                   # 8-byte Reload
	jle	.LBB2_120
# %bb.102:                              # %.preheader304.lr.ph
                                        #   in Loop: Header=BB2_74 Depth=1
	movq	%rbx, %r12
	leaq	(,%rbp,4), %rax
	movq	%rax, 168(%rsp)                 # 8-byte Spill
	leaq	(,%r9,4), %rax
	movq	%rax, 160(%rsp)                 # 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
.LBB2_103:                              # %.preheader304
                                        #   Parent Loop BB2_74 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB2_114 Depth 3
	testl	%ebp, %ebp
	jle	.LBB2_118
# %bb.104:                              # %.lr.ph355
                                        #   in Loop: Header=BB2_103 Depth=2
	movl	%r9d, %ecx
	imull	%r15d, %ecx
	movl	%ebp, %edx
	imull	%r15d, %edx
	movl	%ebx, %eax
	movq	192(%rsp), %rsi                 # 8-byte Reload
	leaq	(%rsi,%rax,4), %rax
	movq	184(%rsp), %rdi                 # 8-byte Reload
	leaq	(%rdi,%rcx,4), %r13
	leaq	(%rsi,%rdx,4), %rsi
	xorl	%ecx, %ecx
.LBB2_114:                              #   Parent Loop BB2_74 Depth=1
                                        #     Parent Loop BB2_103 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	cmpl	$0, (%rax,%rcx,4)
	jne	.LBB2_115
# %bb.113:                              #   in Loop: Header=BB2_114 Depth=3
	incq	%rcx
	cmpq	%rcx, %rbp
	jne	.LBB2_114
	jmp	.LBB2_118
.LBB2_115:                              # %.preheader302
                                        #   in Loop: Header=BB2_103 Depth=2
	movl	%r14d, %eax
	imull	%ebp, %eax
	cltq
	movq	176(%rsp), %rcx                 # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	.cfi_escape 0x2e, 0x00
	movq	168(%rsp), %rdx                 # 8-byte Reload
	callq	memcpy@PLT
	movq	40(%rsp), %r9                   # 8-byte Reload
	testl	%r9d, %r9d
	jle	.LBB2_117
# %bb.116:                              # %.lr.ph359
                                        #   in Loop: Header=BB2_103 Depth=2
	movl	%r14d, %eax
	imull	%r9d, %eax
	cltq
	movq	80(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	.cfi_escape 0x2e, 0x00
	movq	%r13, %rsi
	movq	160(%rsp), %rdx                 # 8-byte Reload
	callq	memcpy@PLT
	movq	40(%rsp), %r9                   # 8-byte Reload
.LBB2_117:                              # %._crit_edge360
                                        #   in Loop: Header=BB2_103 Depth=2
	incl	%r14d
.LBB2_118:                              # %.loopexit
                                        #   in Loop: Header=BB2_103 Depth=2
	incq	%r15
	addl	%ebp, %ebx
	cmpq	%r12, %r15
	jne	.LBB2_103
# %bb.119:                              # %._crit_edge364
                                        #   in Loop: Header=BB2_74 Depth=1
	testl	%r14d, %r14d
	je	.LBB2_120
# %bb.125:                              #   in Loop: Header=BB2_74 Depth=1
	movl	%r14d, 20(%rsp)
	imull	%r14d, %r9d
	movslq	%r9d, %rax
	leaq	(,%rax,4), %rbx
	testl	%eax, %eax
	movq	%rbx, %rdi
	movq	$-1, %r12
	cmovsq	%r12, %rdi
.Ltmp95:
	.cfi_escape 0x2e, 0x00
	callq	_Znam
	movq	%rax, 40(%rsp)                  # 8-byte Spill
.Ltmp96:
# %bb.126:                              #   in Loop: Header=BB2_74 Depth=1
	xorl	%eax, %eax
	movq	%rax, 104(%rsp)
	movq	%rax, 96(%rsp)
	movq	%rax, 88(%rsp)
.Ltmp98:
	.cfi_escape 0x2e, 0x00
	leaq	104(%rsp), %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
.Ltmp99:
# %bb.127:                              #   in Loop: Header=BB2_74 Depth=1
.Ltmp100:
	.cfi_escape 0x2e, 0x00
	movl	$4, %esi
	leaq	96(%rsp), %rdi
	callq	hipMalloc
.Ltmp101:
# %bb.128:                              #   in Loop: Header=BB2_74 Depth=1
	movslq	20(%rsp), %rax
	movslq	4(%rsp), %rsi
	imulq	%rax, %rsi
	shlq	$2, %rsi
.Ltmp102:
	.cfi_escape 0x2e, 0x00
	leaq	88(%rsp), %rdi
	callq	hipMalloc
.Ltmp103:
# %bb.129:                              #   in Loop: Header=BB2_74 Depth=1
	movq	104(%rsp), %rdi
	movslq	20(%rsp), %rax
	movslq	4(%rsp), %rdx
	imulq	%rax, %rdx
	shlq	$2, %rdx
.Ltmp104:
	.cfi_escape 0x2e, 0x00
	movq	80(%rsp), %rsi                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp105:
# %bb.130:                              #   in Loop: Header=BB2_74 Depth=1
	movq	96(%rsp), %rdi
.Ltmp106:
	.cfi_escape 0x2e, 0x00
	movl	$4, %edx
	leaq	20(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp107:
# %bb.131:                              #   in Loop: Header=BB2_74 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	clock
	movq	%rax, %rbx
.Ltmp108:
	.cfi_escape 0x2e, 0x00
	movabsq	$4294967297, %rdi               # imm = 0x100000001
	movl	$1, %esi
	movabsq	$4294967300, %rdx               # imm = 0x100000004
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp109:
# %bb.132:                              #   in Loop: Header=BB2_74 Depth=1
	testl	%eax, %eax
	jne	.LBB2_134
# %bb.133:                              #   in Loop: Header=BB2_74 Depth=1
	movq	104(%rsp), %rdi
	movq	96(%rsp), %rsi
	movq	24(%rsp), %rdx
	movq	88(%rsp), %rcx
.Ltmp110:
	.cfi_escape 0x2e, 0x00
	callq	_Z26__device_stub__count_tranxPjPiS0_S0_
.Ltmp111:
.LBB2_134:                              #   in Loop: Header=BB2_74 Depth=1
.Ltmp112:
	.cfi_escape 0x2e, 0x00
	callq	hipDeviceSynchronize
.Ltmp113:
# %bb.135:                              #   in Loop: Header=BB2_74 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	clock
	movq	%rax, %r13
.Ltmp114:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp115:
# %bb.136:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit236
                                        #   in Loop: Header=BB2_74 Depth=1
	subq	%rbx, %r13
	cvtsi2ss	%r13, %xmm0
	divss	.LCPI2_2(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
.Ltmp116:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp117:
# %bb.137:                              # %_ZNSolsEf.exit238
                                        #   in Loop: Header=BB2_74 Depth=1
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp118:
	.cfi_escape 0x2e, 0x00
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp119:
# %bb.138:                              # %.noexc261
                                        #   in Loop: Header=BB2_74 Depth=1
.Ltmp120:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp121:
# %bb.139:                              # %.noexc262
                                        #   in Loop: Header=BB2_74 Depth=1
.Ltmp122:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp123:
# %bb.140:                              # %_ZNSolsEPFRSoS_E.exit240
                                        #   in Loop: Header=BB2_74 Depth=1
	movq	88(%rsp), %rsi
	movslq	20(%rsp), %rax
	movslq	4(%rsp), %rdx
	imulq	%rax, %rdx
	shlq	$2, %rdx
.Ltmp124:
	.cfi_escape 0x2e, 0x00
	movq	40(%rsp), %rdi                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp125:
# %bb.141:                              #   in Loop: Header=BB2_74 Depth=1
	.cfi_escape 0x2e, 0x00
	movq	72(%rsp), %rdi                  # 8-byte Reload
	callq	_ZdaPv
	.cfi_escape 0x2e, 0x00
	movq	48(%rsp), %rdi                  # 8-byte Reload
	callq	_ZdaPv
	movl	20(%rsp), %r15d
	movl	8(%rsp), %ebp
	movl	%ebp, %eax
	imull	%r15d, %eax
	cltq
	leaq	(,%rax,4), %rdi
	testl	%eax, %eax
	cmovsq	%r12, %rdi
.Ltmp126:
	.cfi_escape 0x2e, 0x00
	callq	_Znam
	movq	%rax, 72(%rsp)                  # 8-byte Spill
.Ltmp127:
# %bb.142:                              #   in Loop: Header=BB2_74 Depth=1
	movl	4(%rsp), %r14d
	movl	%r14d, %eax
	imull	%r15d, %eax
	cltq
	leaq	(,%rax,4), %rdi
	testl	%eax, %eax
	cmovsq	%r12, %rdi
.Ltmp128:
	.cfi_escape 0x2e, 0x00
	callq	_Znam
	movq	%rax, 48(%rsp)                  # 8-byte Spill
.Ltmp129:
# %bb.143:                              # %.preheader305
                                        #   in Loop: Header=BB2_74 Depth=1
	testl	%r15d, %r15d
	jle	.LBB2_144
# %bb.147:                              # %.preheader301.lr.ph
                                        #   in Loop: Header=BB2_74 Depth=1
	leaq	(,%rbp,4), %rax
	movq	%rax, 168(%rsp)                 # 8-byte Spill
	leaq	(,%r14,4), %rax
	movq	%rax, 160(%rsp)                 # 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
.LBB2_148:                              # %.preheader301
                                        #   Parent Loop BB2_74 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB2_150 Depth 3
	movl	$0, %eax
	testl	%r14d, %r14d
	jle	.LBB2_151
# %bb.149:                              # %.lr.ph368
                                        #   in Loop: Header=BB2_148 Depth=2
	movl	%ebx, %eax
	movq	40(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
.LBB2_150:                              #   Parent Loop BB2_74 Depth=1
                                        #     Parent Loop BB2_148 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	addl	(%rcx,%rdx,4), %eax
	incq	%rdx
	cmpq	%rdx, %r14
	jne	.LBB2_150
.LBB2_151:                              # %._crit_edge369
                                        #   in Loop: Header=BB2_148 Depth=2
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	divss	68(%rsp), %xmm0                 # 4-byte Folded Reload
	ucomiss	.LCPI2_3(%rip), %xmm0
	jb	.LBB2_157
# %bb.152:                              # %.preheader300
                                        #   in Loop: Header=BB2_148 Depth=2
	testl	%ebp, %ebp
	jle	.LBB2_154
# %bb.153:                              # %.lr.ph372
                                        #   in Loop: Header=BB2_148 Depth=2
	movl	%r12d, %eax
	imull	%ebp, %eax
	movl	%ebp, %ecx
	imull	%r13d, %ecx
	movq	176(%rsp), %rdx                 # 8-byte Reload
	leaq	(%rdx,%rcx,4), %rsi
	cltq
	movq	72(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	.cfi_escape 0x2e, 0x00
	movq	168(%rsp), %rdx                 # 8-byte Reload
	callq	memcpy@PLT
.LBB2_154:                              # %.preheader
                                        #   in Loop: Header=BB2_148 Depth=2
	testl	%r14d, %r14d
	jle	.LBB2_156
# %bb.155:                              # %.lr.ph374
                                        #   in Loop: Header=BB2_148 Depth=2
	movl	%r14d, %eax
	imull	%r13d, %eax
	movq	80(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	%r12d, %eax
	imull	%r14d, %eax
	cltq
	movq	48(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	.cfi_escape 0x2e, 0x00
	movq	160(%rsp), %rdx                 # 8-byte Reload
	callq	memcpy@PLT
.LBB2_156:                              # %._crit_edge375
                                        #   in Loop: Header=BB2_148 Depth=2
	incl	%r12d
.LBB2_157:                              #   in Loop: Header=BB2_148 Depth=2
	incq	%r13
	addl	%r14d, %ebx
	cmpq	%r15, %r13
	jne	.LBB2_148
	jmp	.LBB2_158
.LBB2_144:                              #   in Loop: Header=BB2_74 Depth=1
	xorl	%r12d, %r12d
.LBB2_158:                              # %._crit_edge379
                                        #   in Loop: Header=BB2_74 Depth=1
	movl	%r12d, 12(%rsp)
	incl	36(%rsp)
.Ltmp130:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.5, %esi
	movl	$24, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp131:
	movq	$-1, %r12
# %bb.159:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit242
                                        #   in Loop: Header=BB2_74 Depth=1
	movl	12(%rsp), %esi
.Ltmp132:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
.Ltmp133:
# %bb.160:                              #   in Loop: Header=BB2_74 Depth=1
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp134:
	.cfi_escape 0x2e, 0x00
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp135:
# %bb.161:                              # %.noexc265
                                        #   in Loop: Header=BB2_74 Depth=1
.Ltmp136:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp137:
# %bb.162:                              # %.noexc266
                                        #   in Loop: Header=BB2_74 Depth=1
.Ltmp138:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp139:
# %bb.163:                              # %_ZNSolsEPFRSoS_E.exit244
                                        #   in Loop: Header=BB2_74 Depth=1
	movq	56(%rsp), %rdi
.Ltmp140:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp141:
# %bb.164:                              #   in Loop: Header=BB2_74 Depth=1
	movq	152(%rsp), %rdi
.Ltmp142:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp143:
# %bb.165:                              #   in Loop: Header=BB2_74 Depth=1
	movq	144(%rsp), %rdi
.Ltmp144:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp145:
# %bb.166:                              #   in Loop: Header=BB2_74 Depth=1
	movq	136(%rsp), %rdi
.Ltmp146:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp147:
# %bb.167:                              #   in Loop: Header=BB2_74 Depth=1
	movq	128(%rsp), %rdi
.Ltmp148:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp149:
# %bb.168:                              #   in Loop: Header=BB2_74 Depth=1
	movq	120(%rsp), %rdi
.Ltmp150:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp151:
# %bb.169:                              #   in Loop: Header=BB2_74 Depth=1
	movq	112(%rsp), %rdi
.Ltmp152:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp153:
# %bb.170:                              #   in Loop: Header=BB2_74 Depth=1
	movq	104(%rsp), %rdi
.Ltmp154:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp155:
# %bb.171:                              #   in Loop: Header=BB2_74 Depth=1
	movq	96(%rsp), %rdi
.Ltmp156:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp157:
# %bb.172:                              #   in Loop: Header=BB2_74 Depth=1
	movq	88(%rsp), %rdi
.Ltmp158:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp159:
# %bb.173:                              # %_ZNSolsEPFRSoS_E.exit234
                                        #   in Loop: Header=BB2_74 Depth=1
	.cfi_escape 0x2e, 0x00
	movq	192(%rsp), %rdi                 # 8-byte Reload
	callq	_ZdaPv
	.cfi_escape 0x2e, 0x00
	movq	184(%rsp), %rdi                 # 8-byte Reload
	callq	_ZdaPv
	.cfi_escape 0x2e, 0x00
	movq	176(%rsp), %rdi                 # 8-byte Reload
	callq	_ZdaPv
	.cfi_escape 0x2e, 0x00
	movq	80(%rsp), %rdi                  # 8-byte Reload
	callq	_ZdaPv
	.cfi_escape 0x2e, 0x00
	movq	40(%rsp), %rdi                  # 8-byte Reload
	callq	_ZdaPv
	movl	12(%rsp), %ebx
	testl	%ebx, %ebx
	movq	224(%rsp), %rax                 # 8-byte Reload
	movq	72(%rsp), %r13                  # 8-byte Reload
	je	.LBB2_175
# %bb.174:                              # %_ZNSolsEPFRSoS_E.exit234
                                        #   in Loop: Header=BB2_74 Depth=1
	cmpl	%eax, 36(%rsp)
	jl	.LBB2_74
	jmp	.LBB2_175
.LBB2_120:                              # %._crit_edge364.thread
.Ltmp161:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$25, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp162:
# %bb.121:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit232
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp163:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp164:
# %bb.122:                              # %.noexc257
.Ltmp165:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp166:
# %bb.123:                              # %.noexc258
.Ltmp167:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp168:
.LBB2_175:                              # %.loopexit307
	.cfi_escape 0x2e, 0x00
	callq	clock
	movq	%rax, %rbx
.Ltmp170:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.6, %esi
	movl	$5, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp171:
# %bb.176:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit246
	subq	232(%rsp), %rbx                 # 8-byte Folded Reload
	cvtsi2ss	%rbx, %xmm0
	divss	.LCPI2_2(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
.Ltmp172:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp173:
# %bb.177:                              # %_ZNSolsEf.exit248
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp174:
	.cfi_escape 0x2e, 0x00
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp175:
# %bb.178:                              # %.noexc269
.Ltmp176:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp177:
# %bb.179:                              # %.noexc270
.Ltmp178:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp179:
# %bb.180:                              # %_ZNSolsEPFRSoS_E.exit250
	xorl	%ebx, %ebx
.LBB2_181:
	movq	240(%rsp), %rdi
	leaq	256(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_183
# %bb.182:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB2_183:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	.cfi_escape 0x2e, 0x00
	leaq	1344(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	.cfi_escape 0x2e, 0x00
	leaq	272(%rsp), %rdi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev
	movl	%ebx, %eax
	addq	$1864, %rsp                     # imm = 0x748
	.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
.LBB2_56:
	.cfi_def_cfa_offset 1920
	movq	stderr(%rip), %rcx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.1, %edi
	movl	$63, %esi
	movl	$1, %edx
	callq	fwrite@PLT
	movl	$1, %ebx
	jmp	.LBB2_181
.LBB2_105:
.Ltmp27:
	jmp	.LBB2_185
.LBB2_60:
.Ltmp24:
	jmp	.LBB2_185
.LBB2_191:
.Ltmp13:
	jmp	.LBB2_185
.LBB2_184:
.Ltmp10:
	jmp	.LBB2_185
.LBB2_16:
.Ltmp2:
	movq	%rax, %rbx
	jmp	.LBB2_189
.LBB2_124:
.Ltmp169:
	jmp	.LBB2_185
.LBB2_106:
.Ltmp36:
	jmp	.LBB2_185
.LBB2_190:
.Ltmp180:
	jmp	.LBB2_185
.LBB2_145:
.Ltmp97:
	jmp	.LBB2_185
.LBB2_108:
.Ltmp42:
	jmp	.LBB2_185
.LBB2_107:
.Ltmp39:
	jmp	.LBB2_185
.LBB2_112:
.Ltmp94:
	jmp	.LBB2_185
.LBB2_111:
.Ltmp91:
	jmp	.LBB2_185
.LBB2_59:
.Ltmp16:
	jmp	.LBB2_185
.LBB2_57:
.Ltmp21:
	movq	%rax, %rbx
	movq	320(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_186
# %bb.58:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
	jmp	.LBB2_186
.LBB2_18:
.Ltmp183:
	jmp	.LBB2_185
.LBB2_110:
.Ltmp88:
	jmp	.LBB2_185
.LBB2_109:
.Ltmp67:
	jmp	.LBB2_185
.LBB2_17:
.Ltmp7:
	jmp	.LBB2_185
.LBB2_146:
.Ltmp160:
.LBB2_185:
	movq	%rax, %rbx
	jmp	.LBB2_186
.LBB2_25:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit221
.Ltmp190:
	jmp	.LBB2_27
.LBB2_26:
.Ltmp195:
.LBB2_27:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	leaq	320(%rsp), %rdi
	movl	$_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev
	.cfi_escape 0x2e, 0x00
	leaq	440(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
.LBB2_186:
	movq	240(%rsp), %rdi
	leaq	256(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_188
# %bb.187:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i251
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB2_188:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit253
	.cfi_escape 0x2e, 0x00
	leaq	1344(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
.LBB2_189:
	.cfi_escape 0x2e, 0x00
	leaq	272(%rsp), %rdi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	main, .Lfunc_end2-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.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 2 <<
	.uleb128 .Ltmp6-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp6
	.uleb128 .Ltmp7-.Lfunc_begin0           #     jumps to .Ltmp7
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp181-.Lfunc_begin0         # >> Call Site 3 <<
	.uleb128 .Ltmp182-.Ltmp181              #   Call between .Ltmp181 and .Ltmp182
	.uleb128 .Ltmp183-.Lfunc_begin0         #     jumps to .Ltmp183
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp184-.Lfunc_begin0         # >> Call Site 4 <<
	.uleb128 .Ltmp185-.Ltmp184              #   Call between .Ltmp184 and .Ltmp185
	.uleb128 .Ltmp195-.Lfunc_begin0         #     jumps to .Ltmp195
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp188-.Lfunc_begin0         # >> Call Site 5 <<
	.uleb128 .Ltmp189-.Ltmp188              #   Call between .Ltmp188 and .Ltmp189
	.uleb128 .Ltmp190-.Lfunc_begin0         #     jumps to .Ltmp190
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp191-.Lfunc_begin0         # >> Call Site 6 <<
	.uleb128 .Ltmp187-.Ltmp191              #   Call between .Ltmp191 and .Ltmp187
	.uleb128 .Ltmp195-.Lfunc_begin0         #     jumps to .Ltmp195
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp187-.Lfunc_begin0         # >> Call Site 7 <<
	.uleb128 .Ltmp8-.Ltmp187                #   Call between .Ltmp187 and .Ltmp8
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp8-.Lfunc_begin0           # >> Call Site 8 <<
	.uleb128 .Ltmp9-.Ltmp8                  #   Call between .Ltmp8 and .Ltmp9
	.uleb128 .Ltmp10-.Lfunc_begin0          #     jumps to .Ltmp10
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp11-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp12-.Ltmp11                #   Call between .Ltmp11 and .Ltmp12
	.uleb128 .Ltmp13-.Lfunc_begin0          #     jumps to .Ltmp13
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp14-.Ltmp12                #   Call between .Ltmp12 and .Ltmp14
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp14-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp15-.Ltmp14                #   Call between .Ltmp14 and .Ltmp15
	.uleb128 .Ltmp16-.Lfunc_begin0          #     jumps to .Ltmp16
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp17-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp20-.Ltmp17                #   Call between .Ltmp17 and .Ltmp20
	.uleb128 .Ltmp21-.Lfunc_begin0          #     jumps to .Ltmp21
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp20-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Ltmp22-.Ltmp20                #   Call between .Ltmp20 and .Ltmp22
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp22-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Ltmp23-.Ltmp22                #   Call between .Ltmp22 and .Ltmp23
	.uleb128 .Ltmp24-.Lfunc_begin0          #     jumps to .Ltmp24
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp25-.Lfunc_begin0          # >> Call Site 15 <<
	.uleb128 .Ltmp26-.Ltmp25                #   Call between .Ltmp25 and .Ltmp26
	.uleb128 .Ltmp27-.Lfunc_begin0          #     jumps to .Ltmp27
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp28-.Lfunc_begin0          # >> Call Site 16 <<
	.uleb128 .Ltmp35-.Ltmp28                #   Call between .Ltmp28 and .Ltmp35
	.uleb128 .Ltmp36-.Lfunc_begin0          #     jumps to .Ltmp36
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp37-.Lfunc_begin0          # >> Call Site 17 <<
	.uleb128 .Ltmp38-.Ltmp37                #   Call between .Ltmp37 and .Ltmp38
	.uleb128 .Ltmp39-.Lfunc_begin0          #     jumps to .Ltmp39
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp40-.Lfunc_begin0          # >> Call Site 18 <<
	.uleb128 .Ltmp41-.Ltmp40                #   Call between .Ltmp40 and .Ltmp41
	.uleb128 .Ltmp42-.Lfunc_begin0          #     jumps to .Ltmp42
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp43-.Lfunc_begin0          # >> Call Site 19 <<
	.uleb128 .Ltmp66-.Ltmp43                #   Call between .Ltmp43 and .Ltmp66
	.uleb128 .Ltmp67-.Lfunc_begin0          #     jumps to .Ltmp67
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp68-.Lfunc_begin0          # >> Call Site 20 <<
	.uleb128 .Ltmp87-.Ltmp68                #   Call between .Ltmp68 and .Ltmp87
	.uleb128 .Ltmp88-.Lfunc_begin0          #     jumps to .Ltmp88
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp89-.Lfunc_begin0          # >> Call Site 21 <<
	.uleb128 .Ltmp90-.Ltmp89                #   Call between .Ltmp89 and .Ltmp90
	.uleb128 .Ltmp91-.Lfunc_begin0          #     jumps to .Ltmp91
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp92-.Lfunc_begin0          # >> Call Site 22 <<
	.uleb128 .Ltmp93-.Ltmp92                #   Call between .Ltmp92 and .Ltmp93
	.uleb128 .Ltmp94-.Lfunc_begin0          #     jumps to .Ltmp94
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp93-.Lfunc_begin0          # >> Call Site 23 <<
	.uleb128 .Ltmp95-.Ltmp93                #   Call between .Ltmp93 and .Ltmp95
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp95-.Lfunc_begin0          # >> Call Site 24 <<
	.uleb128 .Ltmp96-.Ltmp95                #   Call between .Ltmp95 and .Ltmp96
	.uleb128 .Ltmp97-.Lfunc_begin0          #     jumps to .Ltmp97
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp98-.Lfunc_begin0          # >> Call Site 25 <<
	.uleb128 .Ltmp129-.Ltmp98               #   Call between .Ltmp98 and .Ltmp129
	.uleb128 .Ltmp160-.Lfunc_begin0         #     jumps to .Ltmp160
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp129-.Lfunc_begin0         # >> Call Site 26 <<
	.uleb128 .Ltmp130-.Ltmp129              #   Call between .Ltmp129 and .Ltmp130
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp130-.Lfunc_begin0         # >> Call Site 27 <<
	.uleb128 .Ltmp159-.Ltmp130              #   Call between .Ltmp130 and .Ltmp159
	.uleb128 .Ltmp160-.Lfunc_begin0         #     jumps to .Ltmp160
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp161-.Lfunc_begin0         # >> Call Site 28 <<
	.uleb128 .Ltmp168-.Ltmp161              #   Call between .Ltmp161 and .Ltmp168
	.uleb128 .Ltmp169-.Lfunc_begin0         #     jumps to .Ltmp169
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp170-.Lfunc_begin0         # >> Call Site 29 <<
	.uleb128 .Ltmp179-.Ltmp170              #   Call between .Ltmp170 and .Ltmp179
	.uleb128 .Ltmp180-.Lfunc_begin0         #     jumps to .Ltmp180
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp179-.Lfunc_begin0         # >> Call Site 30 <<
	.uleb128 .Lfunc_end2-.Ltmp179           #   Call between .Ltmp179 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_,"axG",@progbits,_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_,comdat
	.weak	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_ # -- Begin function _ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_
	.p2align	1, 0x90
	.type	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_,@function
_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_: # @_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_
	.cfi_startproc
# %bb.0:
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rsi, %rdx
	movq	16(%rdi), %r8
	leaq	8(%rdi), %rsi
	testq	%r8, %r8
	je	.LBB3_5
# %bb.1:                                # %.lr.ph.i.i.i
	movl	(%rdx), %ecx
	movq	%rsi, %rax
.LBB3_2:                                # =>This Inner Loop Header: Depth=1
	xorl	%r9d, %r9d
	cmpl	%ecx, 32(%r8)
	setl	%r9b
	cmovgeq	%r8, %rax
	movq	16(%r8,%r9,8), %r8
	testq	%r8, %r8
	jne	.LBB3_2
# %bb.3:                                # %_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEE11lower_boundERS6_.exit
	cmpq	%rsi, %rax
	je	.LBB3_5
# %bb.4:
	movq	%rax, %rsi
	cmpl	32(%rax), %ecx
	jge	.LBB3_6
.LBB3_5:                                # %.critedge
	leaq	16(%rsp), %rcx
	movq	%rdx, (%rcx)
	leaq	15(%rsp), %r8
	movl	$_ZSt19piecewise_construct, %edx
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_
.LBB3_6:
	addq	$40, %rax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_, .Lfunc_end3-_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIjSaIjEEC2EmRKjRKS0_,"axG",@progbits,_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_,comdat
	.weak	_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_ # -- Begin function _ZNSt6vectorIjSaIjEEC2EmRKjRKS0_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_,@function
_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_:       # @_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB4_6
# %bb.1:                                # %_ZNSt6vectorIjSaIjEE17_S_check_init_lenEmRKS0_.exit
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB4_2
# %bb.3:
	movq	%rdx, %r15
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIjE8allocateEmPKv
	movq	%rax, (%rbx)
	leaq	(%rax,%r14,4), %rcx
	movq	%rcx, 16(%rbx)
	movl	(%r15), %edx
	shlq	$2, %r14
.LBB4_4:                                # %.lr.ph.i.i.i.i.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movl	%edx, (%rax,%r12)
	addq	$4, %r12
	cmpq	%r12, %r14
	jne	.LBB4_4
	jmp	.LBB4_5
.LBB4_2:                                # %_ZNSt12_Vector_baseIjSaIjEEC2EmRKS0_.exit.thread
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	xorl	%ecx, %ecx
.LBB4_5:                                # %.loopexit
	movq	%rcx, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB4_6:
	.cfi_def_cfa_offset 48
	movl	$.L.str.9, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end4:
	.size	_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_, .Lfunc_end4-_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEEC2ERKS1_,"axG",@progbits,_ZNSt6vectorIiSaIiEEC2ERKS1_,comdat
	.weak	_ZNSt6vectorIiSaIiEEC2ERKS1_    # -- Begin function _ZNSt6vectorIiSaIiEEC2ERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEEC2ERKS1_,@function
_ZNSt6vectorIiSaIiEEC2ERKS1_:           # @_ZNSt6vectorIiSaIiEEC2ERKS1_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	(%rsi), %rcx
	movq	%rax, %r12
	subq	%rcx, %r12
	sarq	$2, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	cmpq	%rcx, %rax
	je	.LBB5_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %r15
	jmp	.LBB5_3
.LBB5_1:
	xorl	%r15d, %r15d
.LBB5_3:
	movq	%r15, (%rbx)
	movq	%r15, 8(%rbx)
	leaq	(%r15,%r12,4), %rax
	movq	%rax, 16(%rbx)
	movq	(%r14), %rsi
	movq	8(%r14), %r14
	subq	%rsi, %r14
	cmpq	$5, %r14
	jl	.LBB5_5
# %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB5_7:
	addq	%r14, %r15
	movq	%r15, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB5_5:
	.cfi_def_cfa_offset 48
	cmpq	$4, %r14
	jne	.LBB5_7
# %bb.6:
	movl	(%rsi), %eax
	movl	%eax, (%r15)
	jmp	.LBB5_7
.Lfunc_end5:
	.size	_ZNSt6vectorIiSaIiEEC2ERKS1_, .Lfunc_end5-_ZNSt6vectorIiSaIiEEC2ERKS1_
	.cfi_endproc
                                        # -- 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_end6:
	.size	__clang_call_terminate, .Lfunc_end6-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	16(%rdi), %rsi
.Ltmp196:
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E
.Ltmp197:
# %bb.1:
	popq	%rax
	.cfi_def_cfa_offset 8
	retq
.LBB7_2:
	.cfi_def_cfa_offset 16
.Ltmp198:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end7:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev, .Lfunc_end7-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev
	.cfi_endproc
	.section	.gcc_except_table._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev,"aG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EED2Ev,comdat
	.p2align	2, 0x0
GCC_except_table7:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Ltmp196-.Lfunc_begin1         # >> Call Site 1 <<
	.uleb128 .Ltmp197-.Ltmp196              #   Call between .Ltmp196 and .Ltmp197
	.uleb128 .Ltmp198-.Lfunc_begin1         #     jumps to .Ltmp198
	.byte	1                               #   On action: 1
.Lcst_end1:
	.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._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E
	.cfi_startproc
# %bb.0:
	testq	%rsi, %rsi
	je	.LBB8_6
# %bb.1:                                # %.lr.ph.preheader
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
.LBB8_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rsi
	movq	%rbx, %rdi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E
	movq	16(%r14), %r15
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	.LBB8_4
# %bb.3:                                #   in Loop: Header=BB8_2 Depth=1
	callq	_ZdlPv
.LBB8_4:                                # %_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE12_M_drop_nodeEPSt13_Rb_tree_nodeIS5_E.exit
                                        #   in Loop: Header=BB8_2 Depth=1
	movq	%r14, %rdi
	callq	_ZdlPv
	movq	%r15, %r14
	testq	%r15, %r15
	jne	.LBB8_2
# %bb.5:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r14
	.cfi_restore %r15
.LBB8_6:                                # %._crit_edge
	retq
.Lfunc_end8:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E, .Lfunc_end8-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_ # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rcx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rdi, 8(%rsp)
	movl	$64, %edi
	callq	_Znwm
	movq	%rax, %r14
	leaq	32(%rax), %rdx
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	movq	$0, 56(%r14)
	movq	%r14, 16(%rsp)
.Ltmp199:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_
.Ltmp200:
# %bb.1:
	movq	%rax, %r15
	testq	%rdx, %rdx
	je	.LBB9_4
# %bb.2:
.Ltmp201:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSD_PSt13_Rb_tree_nodeIS5_E
.Ltmp202:
# %bb.3:
	movq	%rax, %r15
	movq	$0, 16(%rsp)
.LBB9_4:
	leaq	8(%rsp), %rdi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE10_Auto_nodeD2Ev
	movq	%r15, %rax
	addq	$24, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB9_5:
	.cfi_def_cfa_offset 64
.Ltmp203:
	movq	%rax, %rbx
	leaq	8(%rsp), %rdi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE10_Auto_nodeD2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end9:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_, .Lfunc_end9-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_,"aG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_,comdat
	.p2align	2, 0x0
GCC_except_table9:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Lfunc_begin2-.Lfunc_begin2    # >> Call Site 1 <<
	.uleb128 .Ltmp199-.Lfunc_begin2         #   Call between .Lfunc_begin2 and .Ltmp199
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp199-.Lfunc_begin2         # >> Call Site 2 <<
	.uleb128 .Ltmp202-.Ltmp199              #   Call between .Ltmp199 and .Ltmp202
	.uleb128 .Ltmp203-.Lfunc_begin2         #     jumps to .Ltmp203
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp202-.Lfunc_begin2         # >> Call Site 3 <<
	.uleb128 .Lfunc_end9-.Ltmp202           #   Call between .Ltmp202 and .Lfunc_end9
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_ # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_
	.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	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %r14
	movq	%rdi, %r15
	leaq	8(%rdi), %rax
	cmpq	%rsi, %rax
	je	.LBB10_1
# %bb.4:
	movq	%rsi, %rbx
	movl	(%r14), %ebp
	movl	32(%rsi), %eax
	cmpl	%eax, %ebp
	jge	.LBB10_9
# %bb.5:
	cmpq	%rbx, 24(%r15)
	je	.LBB10_6
# %bb.7:
	movq	%rbx, %rdi
	callq	_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base
	cmpl	%ebp, 32(%rax)
	jge	.LBB10_14
# %bb.8:
	movq	%rax, %rcx
	movq	24(%rax), %rax
	testq	%rax, %rax
	cmovneq	%rbx, %rax
	cmoveq	%rcx, %rbx
	jmp	.LBB10_15
.LBB10_1:
	cmpq	$0, 40(%r15)
	je	.LBB10_14
# %bb.2:
	movq	32(%r15), %rbx
	movl	32(%rbx), %eax
	cmpl	(%r14), %eax
	jge	.LBB10_14
	jmp	.LBB10_3
.LBB10_9:
	jle	.LBB10_10
# %bb.11:
	cmpq	%rbx, 32(%r15)
	je	.LBB10_3
# %bb.12:
	movq	%rbx, %rdi
	callq	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
	cmpl	32(%rax), %ebp
	jge	.LBB10_14
# %bb.13:
	movq	%rax, %rcx
	movq	24(%rbx), %rax
	testq	%rax, %rax
	cmovneq	%rcx, %rax
	cmovneq	%rcx, %rbx
	jmp	.LBB10_15
.LBB10_14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_
	movq	%rdx, %rbx
	jmp	.LBB10_15
.LBB10_3:
	xorl	%eax, %eax
	jmp	.LBB10_15
.LBB10_10:
	movq	%rbx, %rax
	xorl	%ebx, %ebx
	jmp	.LBB10_15
.LBB10_6:
	movq	%rbx, %rax
.LBB10_15:
	movq	%rbx, %rdx
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.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_end10:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_, .Lfunc_end10-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS5_ERS1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE10_Auto_nodeD2Ev,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE10_Auto_nodeD2Ev,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE10_Auto_nodeD2Ev # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE10_Auto_nodeD2Ev
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE10_Auto_nodeD2Ev,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE10_Auto_nodeD2Ev: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE10_Auto_nodeD2Ev
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	.LBB11_4
# %bb.1:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB11_3
# %bb.2:
	callq	_ZdlPv
.LBB11_3:                               # %_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE12_M_drop_nodeEPSt13_Rb_tree_nodeIS5_E.exit
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB11_4:
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end11:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE10_Auto_nodeD2Ev, .Lfunc_end11-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE10_Auto_nodeD2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_ # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rsi, %r14
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	.LBB12_1
# %bb.2:                                # %.lr.ph
	movl	(%r14), %ecx
.LBB12_3:                               # =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movl	32(%rax), %edx
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	setge	%al
	movq	16(%rbx,%rax,8), %rax
	testq	%rax, %rax
	jne	.LBB12_3
# %bb.4:                                # %._crit_edge
	movq	%rbx, %rax
	cmpl	%edx, %ecx
	jl	.LBB12_5
	jmp	.LBB12_8
.LBB12_1:
	leaq	8(%rdi), %rbx
.LBB12_5:                               # %._crit_edge.thread
	cmpq	24(%rdi), %rbx
	je	.LBB12_6
# %bb.7:
	movq	%rbx, %rdi
	callq	_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base
.LBB12_8:
	movl	32(%rax), %ecx
	xorl	%edx, %edx
	cmpl	(%r14), %ecx
	cmovlq	%rdx, %rax
	cmovgeq	%rdx, %rbx
	jmp	.LBB12_9
.LBB12_6:
	xorl	%eax, %eax
.LBB12_9:
	movq	%rbx, %rdx
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end12:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_, .Lfunc_end12-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE24_M_get_insert_unique_posERS1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSD_PSt13_Rb_tree_nodeIS5_E,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSD_PSt13_Rb_tree_nodeIS5_E,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSD_PSt13_Rb_tree_nodeIS5_E # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSD_PSt13_Rb_tree_nodeIS5_E
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSD_PSt13_Rb_tree_nodeIS5_E,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSD_PSt13_Rb_tree_nodeIS5_E: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSD_PSt13_Rb_tree_nodeIS5_E
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rcx, %rbx
	movq	%rdi, %r14
	leaq	8(%rdi), %rcx
	movb	$1, %al
	testq	%rsi, %rsi
	jne	.LBB13_3
# %bb.1:
	cmpq	%rdx, %rcx
	je	.LBB13_3
# %bb.2:
	movl	32(%rbx), %eax
	cmpl	32(%rdx), %eax
	setl	%al
.LBB13_3:
	movzbl	%al, %edi
	movq	%rbx, %rsi
	callq	_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_
	incq	40(%r14)
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end13:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSD_PSt13_Rb_tree_nodeIS5_E, .Lfunc_end13-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIiSaIiEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSD_PSt13_Rb_tree_nodeIS5_E
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ # -- Begin function _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,@function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_: # @_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.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, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.8, %edx
	callq	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB14_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB14_3
.LBB14_1:
	xorl	%ebp, %ebp
.LBB14_3:                               # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB14_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB14_5:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB14_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB14_7:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB14_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB14_9:                               # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	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_end14:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .Lfunc_end14-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB15_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB15_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end15:
	.size	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .Lfunc_end15-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIiE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIiE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIiE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIiE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIiE8allocateEmPKv,@function
_ZNSt15__new_allocatorIiE8allocateEmPKv: # @_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB16_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB16_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB16_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB16_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end16:
	.size	_ZNSt15__new_allocatorIiE8allocateEmPKv, .Lfunc_end16-_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIjE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIjE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIjE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIjE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIjE8allocateEmPKv,@function
_ZNSt15__new_allocatorIjE8allocateEmPKv: # @_ZNSt15__new_allocatorIjE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB17_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB17_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB17_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB17_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end17:
	.size	_ZNSt15__new_allocatorIjE8allocateEmPKv, .Lfunc_end17-_ZNSt15__new_allocatorIjE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.text
	.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
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB18_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB18_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z11count_tranxPjPiS0_S0_, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$0, 8(%rsp)
	movl	$1, (%rsp)
	movl	$lookup_table, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movl	$1024, %r9d                     # imm = 0x400
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end18:
	.size	__hip_module_ctor, .Lfunc_end18-__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	.LBB19_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
.LBB19_2:
	retq
.Lfunc_end19:
	.size	__hip_module_dtor, .Lfunc_end19-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	lookup_table,@object            # @lookup_table
	.local	lookup_table
	.comm	lookup_table,1024,16
	.type	_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_,@object # @_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	.section	.rodata,"a",@progbits
	.globl	_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	.p2align	3, 0x0
_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_:
	.quad	_Z33__device_stub__generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	.size	_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_, 8

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

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"1000.dat"
	.size	.L.str, 9

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"hipSetDevice failed!  Do you have a CUDA-capable GPU installed?"
	.size	.L.str.1, 64

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Time for candidate generation:"
	.size	.L.str.2, 31

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"No joined ItemSets found!"
	.size	.L.str.3, 26

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Time for counting:"
	.size	.L.str.4, 19

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"frequent itemSets_size: "
	.size	.L.str.5, 25

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Time:"
	.size	.L.str.6, 6

	.type	_ZSt19piecewise_construct,@object # @_ZSt19piecewise_construct
	.section	.rodata._ZSt19piecewise_construct,"aG",@progbits,_ZSt19piecewise_construct,comdat
	.weak	_ZSt19piecewise_construct
_ZSt19piecewise_construct:
	.zero	1
	.size	_ZSt19piecewise_construct, 1

	.type	.L.str.8,@object                # @.str.8
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.8:
	.asciz	"vector::_M_realloc_insert"
	.size	.L.str.8, 26

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"cannot create std::vector larger than max_size()"
	.size	.L.str.9, 49

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_"
	.size	.L__unnamed_1, 45

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z11count_tranxPjPiS0_S0_"
	.size	.L__unnamed_2, 26

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"lookup_table"
	.size	.L__unnamed_3, 13

	.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 _Z33__device_stub__generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	.addrsig_sym _Z26__device_stub__count_tranxPjPiS0_S0_
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym lookup_table
	.addrsig_sym _Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	.addrsig_sym _Z11count_tranxPjPiS0_S0_
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZSt19piecewise_construct
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_ ; -- Begin function _Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	.globl	_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_
	.p2align	8
	.type	_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_,@function
_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_: ; @_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_
; %bb.0:
	s_clause 0x3
	s_load_b64 s[2:3], s[0:1], 0x40
	s_load_b512 s[16:31], s[0:1], 0x0
	s_load_b32 s4, s[0:1], 0x48
	s_load_b32 s5, s[0:1], 0x54
	s_waitcnt lgkmcnt(0)
	s_load_b32 s0, s[2:3], 0x0
	s_load_b32 s1, s[24:25], 0x0
	s_waitcnt lgkmcnt(0)
	v_mov_b32_e32 v2, s0
	s_mul_i32 s1, s1, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lt_i32 s1, 1
	s_cbranch_scc1 .LBB0_3
; %bb.1:                                ; %.lr.ph.preheader
	v_mov_b32_e32 v1, 0
	s_mov_b32 s0, s28
	s_mov_b32 s1, s29
	s_mov_b32 s6, 0
.LBB0_2:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	global_store_b32 v1, v1, s[0:1]
	s_clause 0x1
	global_load_b32 v2, v1, s[2:3]
	global_load_b32 v3, v1, s[24:25]
	s_add_i32 s6, s6, 1
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_waitcnt vmcnt(0)
	v_mul_lo_u32 v3, v3, v2
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_ge_i32_e32 vcc_lo, s6, v3
	s_cbranch_vccz .LBB0_2
.LBB0_3:                                ; %.preheader190
	v_mov_b32_e32 v1, 0
	global_load_b32 v4, v1, s[26:27]
	s_waitcnt vmcnt(0)
	v_mul_lo_u32 v2, v4, v2
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_gt_i32_e32 vcc_lo, 1, v2
	s_cbranch_vccnz .LBB0_6
; %bb.4:                                ; %.lr.ph193.preheader
	s_mov_b32 s0, s30
	s_mov_b32 s1, s31
	s_mov_b32 s6, 0
.LBB0_5:                                ; %.lr.ph193
                                        ; =>This Inner Loop Header: Depth=1
	global_store_b32 v1, v1, s[0:1]
	s_clause 0x1
	global_load_b32 v2, v1, s[2:3]
	global_load_b32 v4, v1, s[26:27]
	s_add_i32 s6, s6, 1
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_waitcnt vmcnt(0)
	v_mul_lo_u32 v2, v4, v2
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_ge_i32_e32 vcc_lo, s6, v2
	s_cbranch_vccz .LBB0_5
.LBB0_6:                                ; %.preheader189
	v_mov_b32_e32 v3, 0
	s_and_b32 s0, 0xffff, s5
	s_mov_b32 s1, exec_lo
	v_mad_u64_u32 v[1:2], null, s15, s0, v[0:1]
	global_load_b32 v6, v3, s[22:23]
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v0, -1, v6
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_i32_e64 v1, v0
	s_cbranch_execz .LBB0_53
; %bb.7:                                ; %.lr.ph220.preheader
	s_mul_i32 s4, s4, s0
	s_mov_b32 s5, 0
.LBB0_8:                                ; %.lr.ph220
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;         Child Loop BB0_13 Depth 4
                                        ;         Child Loop BB0_17 Depth 4
                                        ;       Child Loop BB0_44 Depth 3
                                        ;       Child Loop BB0_48 Depth 3
	v_add_nc_u32_e32 v0, 1, v1
	s_mov_b32 s6, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_i32_e64 v0, v6
	s_cbranch_execz .LBB0_52
; %bb.9:                                ; %.lr.ph216
                                        ;   in Loop: Header=BB0_8 Depth=1
	v_cmp_ne_u32_e64 s0, 0, v1
	v_not_b32_e32 v2, v1
	v_mov_b32_e32 v5, v0
	s_mov_b32 s7, 0
.LBB0_10:                               ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;         Child Loop BB0_13 Depth 4
                                        ;         Child Loop BB0_17 Depth 4
                                        ;       Child Loop BB0_44 Depth 3
                                        ;       Child Loop BB0_48 Depth 3
	s_clause 0x1
	global_load_b32 v8, v3, s[20:21]
	global_load_b32 v7, v3, s[24:25]
	s_mov_b32 s2, -1
	s_waitcnt vmcnt(1)
	v_add_nc_u32_e32 v10, -1, v8
	s_waitcnt vmcnt(0)
	v_cmp_gt_i32_e32 vcc_lo, 1, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s1, 0, v10
	s_or_b32 s1, vcc_lo, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB0_36
; %bb.11:                               ; %.lr.ph205
                                        ;   in Loop: Header=BB0_10 Depth=2
	v_mul_lo_u32 v8, v7, v1
	v_mul_lo_u32 v9, v7, v5
	s_mov_b32 s11, -1
	s_mov_b32 s8, 0
	s_mov_b32 s9, 0
                                        ; implicit-def: $sgpr3
                                        ; implicit-def: $sgpr10
.LBB0_12:                               ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_13 Depth 4
                                        ;         Child Loop BB0_17 Depth 4
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_nc_u32_e32 v11, s9, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v13, s9, v9
	s_mov_b32 s1, 0
	v_ashrrev_i32_e32 v12, 31, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v14, 31, v13
	v_lshlrev_b64 v[11:12], 2, v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[13:14], 2, v[13:14]
	v_add_co_u32 v11, vcc_lo, s16, v11
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v12, vcc_lo, s17, v12, vcc_lo
	v_add_co_u32 v13, vcc_lo, s16, v13
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v14, vcc_lo, s17, v14, vcc_lo
	s_clause 0x1
	global_load_b32 v12, v[11:12], off
	global_load_b32 v13, v[13:14], off
	v_dual_mov_b32 v14, 0 :: v_dual_mov_b32 v11, 0
.LBB0_13:                               ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ;       Parent Loop BB0_12 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_waitcnt vmcnt(1)
	v_bfe_u32 v15, v12, s1, 8
	s_waitcnt vmcnt(0)
	v_bfe_u32 v16, v13, s1, 8
	s_getpc_b64 s[12:13]
	s_add_u32 s12, s12, lookup_table@rel32@lo+4
	s_addc_u32 s13, s13, lookup_table@rel32@hi+12
	s_add_i32 s1, s1, 8
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s1, 32
	v_lshlrev_b32_e32 v15, 2, v15
	v_lshlrev_b32_e32 v16, 2, v16
	s_clause 0x1
	global_load_b32 v15, v15, s[12:13]
	global_load_b32 v16, v16, s[12:13]
	s_waitcnt vmcnt(1)
	v_add_nc_u32_e32 v11, v15, v11
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v14, v16, v14
	s_cbranch_scc0 .LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_min_i32_e32 v15, v11, v14
	v_cmp_eq_u32_e32 vcc_lo, v11, v14
	s_mov_b32 s12, exec_lo
                                        ; implicit-def: $sgpr14
                                        ; implicit-def: $sgpr13
	v_cmpx_ge_i32_e64 v15, v10
	s_xor_b32 s12, exec_lo, s12
	s_cbranch_execz .LBB0_28
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=3
	v_cmp_ne_u32_e64 s1, v10, v11
	s_xor_b32 s13, vcc_lo, -1
                                        ; implicit-def: $sgpr15
                                        ; implicit-def: $sgpr14
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_or_b32 s1, s13, s1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_saveexec_b32 s13, s1
	s_xor_b32 s13, exec_lo, s13
	s_cbranch_execz .LBB0_25
; %bb.16:                               ; %.preheader.preheader
                                        ;   in Loop: Header=BB0_12 Depth=3
	v_mov_b32_e32 v14, 1
	s_mov_b32 s14, 0
	s_mov_b32 s36, s11
	s_mov_b32 s35, 0
                                        ; implicit-def: $sgpr15
                                        ; implicit-def: $sgpr33
                                        ; implicit-def: $sgpr34
.LBB0_17:                               ; %.preheader
                                        ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ;       Parent Loop BB0_12 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_and_b32_e32 v15, v14, v12
	v_and_b32_e32 v16, v14, v13
	s_and_not1_b32 s34, s34, exec_lo
	s_and_not1_b32 s33, s33, exec_lo
	s_mov_b32 s37, exec_lo
	v_cmpx_eq_u32_e64 v15, v16
	s_cbranch_execz .LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=4
	s_mov_b32 s40, -1
	s_mov_b32 s41, exec_lo
                                        ; implicit-def: $sgpr39
                                        ; implicit-def: $sgpr38
	v_cmpx_eq_u32_e64 v15, v14
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=4
	v_add_nc_u32_e32 v10, -1, v10
	s_mov_b32 s38, 0
	s_and_b32 s39, s36, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_ne_u32_e64 s1, 0, v10
	s_or_not1_b32 s40, s1, exec_lo
; %bb.20:                               ; %Flow
                                        ;   in Loop: Header=BB0_17 Depth=4
	s_or_b32 exec_lo, exec_lo, s41
	v_mov_b32_e32 v15, s38
	s_and_saveexec_b32 s1, s40
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=4
	v_dual_mov_b32 v15, v10 :: v_dual_lshlrev_b32 v14, 1, v14
	s_and_not1_b32 s39, s39, exec_lo
	s_and_b32 s36, s36, exec_lo
	s_or_b32 s38, s38, exec_lo
	s_or_b32 s39, s39, s36
; %bb.22:                               ; %Flow287
                                        ;   in Loop: Header=BB0_17 Depth=4
	s_or_b32 exec_lo, exec_lo, s1
	v_mov_b32_e32 v10, v15
	s_and_not1_b32 s1, s34, exec_lo
	s_and_b32 s34, s39, exec_lo
	s_and_not1_b32 s33, s33, exec_lo
	s_and_b32 s36, s38, exec_lo
	s_or_b32 s34, s1, s34
	s_or_b32 s33, s33, s36
                                        ; implicit-def: $sgpr36
.LBB0_23:                               ;   in Loop: Header=BB0_17 Depth=4
	s_or_b32 exec_lo, exec_lo, s37
	s_add_i32 s1, s35, 1
	s_cmp_gt_u32 s35, 30
	s_cselect_b32 s35, -1, 0
	s_xor_b32 s37, s33, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s35, s37, s35
	s_and_b32 s35, exec_lo, s35
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s14, s35, s14
	s_and_not1_b32 s35, s36, exec_lo
	s_and_b32 s37, s34, exec_lo
	s_and_not1_b32 s15, s15, exec_lo
	s_or_b32 s36, s35, s37
	s_or_b32 s15, s15, s37
	s_mov_b32 s35, s1
	s_and_not1_b32 exec_lo, exec_lo, s14
	s_cbranch_execnz .LBB0_17
; %bb.24:                               ; %Flow288
                                        ;   in Loop: Header=BB0_12 Depth=3
	s_or_b32 exec_lo, exec_lo, s14
	s_mov_b32 s14, 0
	s_and_b32 s15, s15, exec_lo
                                        ; implicit-def: $vgpr12
                                        ; implicit-def: $vgpr13
.LBB0_25:                               ; %Flow289
                                        ;   in Loop: Header=BB0_12 Depth=3
	s_and_not1_saveexec_b32 s13, s13
; %bb.26:                               ;   in Loop: Header=BB0_12 Depth=3
	v_cmp_eq_u32_e64 s1, v12, v13
	s_and_not1_b32 s15, s15, exec_lo
	s_and_not1_b32 s14, s14, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s1, s1, s11
	s_and_b32 s1, s1, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s15, s15, s1
; %bb.27:                               ; %Flow290
                                        ;   in Loop: Header=BB0_12 Depth=3
	s_or_b32 exec_lo, exec_lo, s13
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 s13, s14, exec_lo
	s_and_b32 s14, s15, exec_lo
                                        ; implicit-def: $vgpr12
                                        ; implicit-def: $vgpr13
.LBB0_28:                               ; %Flow292
                                        ;   in Loop: Header=BB0_12 Depth=3
	s_or_saveexec_b32 s12, s12
	s_and_not1_b32 s1, s10, exec_lo
	s_and_b32 s10, s14, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s10, s1, s10
	s_xor_b32 exec_lo, exec_lo, s12
	s_cbranch_execz .LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_12 Depth=3
	v_cmp_eq_u32_e64 s1, v12, v13
	s_mov_b32 s14, 0
	s_delay_alu instid0(VALU_DEP_1)
	s_and_b32 s33, vcc_lo, s1
	s_mov_b32 s1, 0
	s_and_saveexec_b32 s15, s33
; %bb.30:                               ;   in Loop: Header=BB0_12 Depth=3
	v_sub_nc_u32_e32 v10, v10, v11
	s_mov_b32 s1, exec_lo
	s_and_b32 s14, s11, exec_lo
; %bb.31:                               ; %Flow291
                                        ;   in Loop: Header=BB0_12 Depth=3
	s_or_b32 exec_lo, exec_lo, s15
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 s10, s10, exec_lo
	s_and_b32 s11, s14, exec_lo
	s_and_not1_b32 s13, s13, exec_lo
	s_and_b32 s1, s1, exec_lo
	s_or_b32 s10, s10, s11
	s_or_b32 s13, s13, s1
.LBB0_32:                               ; %.loopexit
                                        ;   in Loop: Header=BB0_12 Depth=3
	s_or_b32 exec_lo, exec_lo, s12
	s_mov_b32 s1, -1
                                        ; implicit-def: $sgpr11
	s_and_saveexec_b32 s12, s13
; %bb.33:                               ;   in Loop: Header=BB0_12 Depth=3
	s_add_i32 s9, s9, 1
	v_cmp_eq_u32_e64 s1, 0, v10
	v_cmp_ge_i32_e32 vcc_lo, s9, v7
	s_and_b32 s11, s10, exec_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s1, vcc_lo, s1
	s_or_not1_b32 s1, s1, exec_lo
; %bb.34:                               ; %Flow293
                                        ;   in Loop: Header=BB0_12 Depth=3
	s_or_b32 exec_lo, exec_lo, s12
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s1, exec_lo, s1
	s_or_b32 s8, s1, s8
	s_and_not1_b32 s1, s3, exec_lo
	s_and_b32 s3, s10, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s3, s1, s3
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB0_12
; %bb.35:                               ; %._crit_edge
                                        ;   in Loop: Header=BB0_10 Depth=2
	s_or_b32 exec_lo, exec_lo, s8
	s_branch .LBB0_37
.LBB0_36:                               ;   in Loop: Header=BB0_10 Depth=2
	s_mov_b32 s3, -1
.LBB0_37:                               ; %Flow298
                                        ;   in Loop: Header=BB0_10 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s8, s3
	s_cbranch_execz .LBB0_50
; %bb.38:                               ; %.critedge234
                                        ;   in Loop: Header=BB0_10 Depth=2
                                        ; implicit-def: $vgpr8
	s_and_saveexec_b32 s1, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s1, exec_lo, s1
; %bb.39:                               ;   in Loop: Header=BB0_10 Depth=2
	v_lshl_add_u32 v6, v6, 1, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v6, v6, v1
	v_lshrrev_b32_e32 v8, 31, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v6, v6, v8
	v_ashrrev_i32_e32 v6, 1, v6
	s_delay_alu instid0(VALU_DEP_1)
	v_add3_u32 v8, v5, v2, v6
; %bb.40:                               ; %Flow297
                                        ;   in Loop: Header=BB0_10 Depth=2
	s_and_not1_saveexec_b32 s1, s1
; %bb.41:                               ;   in Loop: Header=BB0_10 Depth=2
	v_sub_nc_u32_e32 v8, v5, v0
; %bb.42:                               ;   in Loop: Header=BB0_10 Depth=2
	s_or_b32 exec_lo, exec_lo, s1
	v_cmp_gt_i32_e32 vcc_lo, 1, v7
	s_cbranch_vccnz .LBB0_46
; %bb.43:                               ; %.lr.ph210.preheader
                                        ;   in Loop: Header=BB0_10 Depth=2
	s_mov_b64 s[2:3], 0
.LBB0_44:                               ; %.lr.ph210
                                        ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_mul_lo_u32 v4, v1, v7
	v_mul_lo_u32 v6, v5, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v10, 31, v4
	v_ashrrev_i32_e32 v13, 31, v6
	v_add_co_u32 v11, s1, s2, v4
	v_add_co_u32 v9, vcc_lo, s2, v6
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e64 v12, s1, s3, v10, s1
	v_add_co_ci_u32_e32 v10, vcc_lo, s3, v13, vcc_lo
	v_mul_lo_u32 v6, v7, v8
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[11:12], 2, v[11:12]
	v_lshlrev_b64 v[9:10], 2, v[9:10]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v11, vcc_lo, s16, v11
	v_add_co_ci_u32_e32 v12, vcc_lo, s17, v12, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v9, vcc_lo, s16, v9
	v_add_co_ci_u32_e32 v10, vcc_lo, s17, v10, vcc_lo
	s_clause 0x1
	global_load_b32 v4, v[11:12], off
	global_load_b32 v9, v[9:10], off
	v_ashrrev_i32_e32 v7, 31, v6
	v_add_co_u32 v6, vcc_lo, s2, v6
	s_add_u32 s2, s2, 1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v7, vcc_lo, s3, v7, vcc_lo
	s_addc_u32 s3, s3, 0
	v_lshlrev_b64 v[6:7], 2, v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, s28, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s29, v7, vcc_lo
	s_waitcnt vmcnt(0)
	v_or_b32_e32 v4, v9, v4
	global_store_b32 v[6:7], v4, off
	global_load_b32 v7, v3, s[24:25]
	s_waitcnt vmcnt(0)
	v_cmp_ge_i32_e32 vcc_lo, s2, v7
	s_cbranch_vccz .LBB0_44
; %bb.45:                               ; %.preheader188.loopexit
                                        ;   in Loop: Header=BB0_10 Depth=2
	global_load_b32 v4, v3, s[26:27]
.LBB0_46:                               ; %.preheader188
                                        ;   in Loop: Header=BB0_10 Depth=2
	s_mov_b32 s9, exec_lo
	s_waitcnt vmcnt(0)
	v_cmpx_lt_i32_e32 0, v4
	s_cbranch_execz .LBB0_49
; %bb.47:                               ; %.lr.ph212.preheader
                                        ;   in Loop: Header=BB0_10 Depth=2
	s_mov_b64 s[2:3], 0
.LBB0_48:                               ; %.lr.ph212
                                        ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_mul_lo_u32 v7, v1, v4
	v_mul_lo_u32 v6, v5, v4
	v_mul_lo_u32 v4, v4, v8
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v10, 31, v7
	v_ashrrev_i32_e32 v11, 31, v6
	v_add_co_u32 v9, s1, s2, v7
	v_add_co_u32 v6, vcc_lo, s2, v6
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e64 v10, s1, s3, v10, s1
	v_add_co_ci_u32_e32 v7, vcc_lo, s3, v11, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[9:10], 2, v[9:10]
	v_lshlrev_b64 v[6:7], 2, v[6:7]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v9, vcc_lo, s18, v9
	v_add_co_ci_u32_e32 v10, vcc_lo, s19, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v6, vcc_lo, s18, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s19, v7, vcc_lo
	s_clause 0x1
	global_load_b32 v9, v[9:10], off
	global_load_b32 v10, v[6:7], off
	v_ashrrev_i32_e32 v7, 31, v4
	v_add_co_u32 v6, vcc_lo, s2, v4
	s_add_u32 s2, s2, 1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v7, vcc_lo, s3, v7, vcc_lo
	s_addc_u32 s3, s3, 0
	v_lshlrev_b64 v[6:7], 2, v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, s30, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s31, v7, vcc_lo
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v4, v10, v9
	global_store_b32 v[6:7], v4, off
	global_load_b32 v4, v3, s[26:27]
	s_waitcnt vmcnt(0)
	v_cmp_lt_i32_e32 vcc_lo, s2, v4
	s_cbranch_vccnz .LBB0_48
.LBB0_49:                               ; %Flow295
                                        ;   in Loop: Header=BB0_10 Depth=2
	s_or_b32 exec_lo, exec_lo, s9
	global_load_b32 v6, v3, s[22:23]
	v_add_nc_u32_e32 v5, 1, v5
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_ge_i32_e32 vcc_lo, v5, v6
	s_or_not1_b32 s2, vcc_lo, exec_lo
.LBB0_50:                               ; %Flow299
                                        ;   in Loop: Header=BB0_10 Depth=2
	s_or_b32 exec_lo, exec_lo, s8
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s1, exec_lo, s2
	s_or_b32 s7, s1, s7
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s7
	s_cbranch_execnz .LBB0_10
; %bb.51:                               ; %Flow300
                                        ;   in Loop: Header=BB0_8 Depth=1
	s_or_b32 exec_lo, exec_lo, s7
.LBB0_52:                               ; %Flow301
                                        ;   in Loop: Header=BB0_8 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	s_or_b32 exec_lo, exec_lo, s6
	v_add_nc_u32_e32 v1, s4, v1
	v_add_nc_u32_e32 v0, -1, v6
	v_cmp_ge_i32_e32 vcc_lo, v1, v0
	s_or_b32 s5, vcc_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s5
	s_cbranch_execnz .LBB0_8
.LBB0_53:                               ; %Flow303
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 328
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 17
		.amdhsa_next_free_sgpr 42
		.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_end0:
	.size	_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_, .Lfunc_end0-_Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1952
; NumSgprs: 44
; NumVgprs: 17
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 5
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 44
; NumVGPRsForWavesPerEU: 17
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z11count_tranxPjPiS0_S0_ ; -- Begin function _Z11count_tranxPjPiS0_S0_
	.globl	_Z11count_tranxPjPiS0_S0_
	.p2align	8
	.type	_Z11count_tranxPjPiS0_S0_,@function
_Z11count_tranxPjPiS0_S0_:              ; @_Z11count_tranxPjPiS0_S0_
; %bb.0:
	s_load_b256 s[4:11], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_load_b32 s12, s[6:7], 0x0
	s_load_b32 s13, s[8:9], 0x0
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x20
	s_load_b32 s3, s[0:1], 0x2c
	s_waitcnt lgkmcnt(0)
	v_dual_mov_b32 v4, s12 :: v_dual_mov_b32 v3, s13
	s_mul_i32 s1, s13, s12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lt_i32 s1, 1
	s_cbranch_scc1 .LBB1_3
; %bb.1:                                ; %.lr.ph.preheader
	v_mov_b32_e32 v1, 0
	s_mov_b32 s0, s10
	s_mov_b32 s1, s11
	s_mov_b32 s12, 0
.LBB1_2:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	global_store_b32 v1, v1, s[0:1]
	s_clause 0x1
	global_load_b32 v4, v1, s[6:7]
	global_load_b32 v3, v1, s[8:9]
	s_add_i32 s12, s12, 1
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_waitcnt vmcnt(0)
	v_mul_lo_u32 v2, v3, v4
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_ge_i32_e32 vcc_lo, s12, v2
	s_cbranch_vccz .LBB1_2
.LBB1_3:                                ; %.preheader39
	s_and_b32 s0, 0xffff, s3
	s_mov_b32 s1, exec_lo
	v_mad_u64_u32 v[1:2], null, s15, s0, v[0:1]
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_i32_e64 v1, v4
	s_cbranch_execz .LBB1_12
; %bb.4:                                ; %.preheader38.preheader
	v_mov_b32_e32 v0, 0
	s_mul_i32 s1, s2, s0
	s_mov_b32 s2, 0
	s_getpc_b64 s[12:13]
	s_add_u32 s12, s12, lookup_table@rel32@lo+4
	s_addc_u32 s13, s13, lookup_table@rel32@hi+12
.LBB1_5:                                ; %.preheader38
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_7 Depth 2
                                        ;       Child Loop BB1_8 Depth 3
	v_cmp_gt_i32_e32 vcc_lo, 1, v3
	s_cbranch_vccnz .LBB1_11
; %bb.6:                                ; %.preheader.preheader
                                        ;   in Loop: Header=BB1_5 Depth=1
	s_mov_b32 s0, 0
.LBB1_7:                                ; %.preheader
                                        ;   Parent Loop BB1_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB1_8 Depth 3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[4:5], null, v3, v1, s[0:1]
	s_mov_b32 s3, 0
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[4:5]
	v_add_co_u32 v4, vcc_lo, s4, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v3, vcc_lo
	global_load_b32 v5, v[4:5], off
	v_mov_b32_e32 v4, 0
.LBB1_8:                                ;   Parent Loop BB1_5 Depth=1
                                        ;     Parent Loop BB1_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_waitcnt vmcnt(0)
	v_bfe_u32 v6, v5, s3, 8
	s_add_i32 s3, s3, 8
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_cmp_eq_u32 s3, 32
	v_lshlrev_b32_e32 v6, 2, v6
	global_load_b32 v6, v6, s[12:13]
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v4, v6, v4
	s_cbranch_scc0 .LBB1_8
; %bb.9:                                ;   in Loop: Header=BB1_7 Depth=2
	v_add_co_u32 v2, vcc_lo, s10, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s11, v3, vcc_lo
	s_add_i32 s0, s0, 1
	global_store_b32 v[2:3], v4, off
	global_load_b32 v3, v0, s[8:9]
	s_waitcnt vmcnt(0)
	v_cmp_ge_i32_e32 vcc_lo, s0, v3
	s_cbranch_vccz .LBB1_7
; %bb.10:                               ; %._crit_edge.loopexit
                                        ;   in Loop: Header=BB1_5 Depth=1
	global_load_b32 v4, v0, s[6:7]
.LBB1_11:                               ; %._crit_edge
                                        ;   in Loop: Header=BB1_5 Depth=1
	v_add_nc_u32_e32 v1, s1, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_ge_i32_e32 vcc_lo, v1, v4
	s_or_b32 s2, vcc_lo, s2
	s_and_not1_b32 exec_lo, exec_lo, s2
	s_cbranch_execnz .LBB1_5
.LBB1_12:                               ; %._crit_edge45
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11count_tranxPjPiS0_S0_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 7
		.amdhsa_next_free_sgpr 16
		.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_end1:
	.size	_Z11count_tranxPjPiS0_S0_, .Lfunc_end1-_Z11count_tranxPjPiS0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 436
; NumSgprs: 18
; NumVgprs: 7
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 7
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.protected	lookup_table            ; @lookup_table
	.type	lookup_table,@object
	.section	.bss,"aw",@nobits
	.globl	lookup_table
	.p2align	4, 0x0
lookup_table:
	.zero	1024
	.size	lookup_table, 1024

	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.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 lookup_table
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         76
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         80
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         84
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         86
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         88
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         90
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         92
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         94
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         128
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         136
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 328
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_
    .private_segment_fixed_size: 0
    .sgpr_count:     44
    .sgpr_spill_count: 0
    .symbol:         _Z18generate_candidatePjS_PiS0_S0_S0_S_S_S0_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     17
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z11count_tranxPjPiS0_S0_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z11count_tranxPjPiS0_S0_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     7
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
