#include <stdio.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <utility>
#include <cstring>
#include <stdlib.h>
#include <cuda.h>

using namespace std;

int main(){
    ifstream in;
    in.open("enc_mat");
    int r;
    in >> r;
    vector<pair<bool,vector<int> > > encmat(r);
    for(int i = 0; i<r; i++){
        in >> encmat[i].first;
        int size;
        in >> size;
        vector<int> v(size);
        for(int j=0;j<size;j++){
            in >> v[j];
        }
        encmat[i].second = v;
        v.clear();
    }

    int masksize = (r%8>0 ? r/8+1 : r/8);

    unsigned char* mask = (unsigned char*)malloc(masksize*sizeof(unsigned char));
    memset(mask,0,masksize);
    for(int i=0;i<r;i++){
        bool flag = encmat[i].first;
        vector<int> v = encmat[i].second;
        int count = 0;
        for(int j=0; j<v.size(); j++){
            if(flag){
                for(int k=count;k<count+v[j];k++){
                    mask[k/8] |= (0x80 >> k%8);
                }
                count+=v[j];
                flag=0;
            }
            else{
                count += v[j];
                flag=1;
            }

        }
    }
    for(int i=0;i<masksize;i++)
        printf("%d\n",mask[i]);
    return 0;
}

	.file	"tmpxft_002b34da_00000000-6_gpufold.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4136:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4136:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4159:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4159:
	.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:
.LFB4507:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L4
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L4:
	ret
	.cfi_endproc
.LFE4507:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.section	.text._ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev,"axG",@progbits,_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev
	.type	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev, @function
_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev:
.LFB4493:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rbp
.L8:
	cmpq	%rbp, %r12
	je	.L12
	leaq	8(%rbp), %rdi
	addq	$32, %rbp
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L8
.L12:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L7
	movq	16(%rbx), %rsi
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	subq	%rdi, %rsi
	jmp	_ZdlPvm@PLT
.L7:
	.cfi_restore_state
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4493:
	.size	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev, .-_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev
	.weak	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED1Ev
	.set	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED1Ev,_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev
	.section	.text._ZNSt12_Vector_baseIiSaIiEE17_M_create_storageEm,"axG",@progbits,_ZNSt12_Vector_baseIiSaIiEE17_M_create_storageEm,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIiSaIiEE17_M_create_storageEm
	.type	_ZNSt12_Vector_baseIiSaIiEE17_M_create_storageEm, @function
_ZNSt12_Vector_baseIiSaIiEE17_M_create_storageEm:
.LFB4846:
	.cfi_startproc
	endbr64
	testq	%rsi, %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	0(,%rsi,4), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
	je	.L17
	movabsq	$2305843009213693951, %rax
	cmpq	%rsi, %rax
	jnb	.L15
	movabsq	$4611686018427387903, %rax
	cmpq	%rsi, %rax
	jnb	.L16
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L16:
	call	_ZSt17__throw_bad_allocv@PLT
.L15:
	movq	%rbp, %rdi
	call	_Znwm@PLT
	jmp	.L14
.L17:
	xorl	%eax, %eax
.L14:
	movq	%rax, (%rbx)
	movq	%rax, 8(%rbx)
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4846:
	.size	_ZNSt12_Vector_baseIiSaIiEE17_M_create_storageEm, .-_ZNSt12_Vector_baseIiSaIiEE17_M_create_storageEm
	.section	.text._ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKiiEEPT0_PT_S7_S5_,"axG",@progbits,_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKiiEEPT0_PT_S7_S5_,comdat
	.weak	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKiiEEPT0_PT_S7_S5_
	.type	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKiiEEPT0_PT_S7_S5_, @function
_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKiiEEPT0_PT_S7_S5_:
.LFB5015:
	.cfi_startproc
	endbr64
	subq	%rdi, %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdx, %rcx
	movq	%rsi, %rbx
	cmpq	$4, %rsi
	jle	.L20
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	%rcx, %rdi
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L21
.L20:
	jne	.L21
	movl	(%rdi), %eax
	movl	%eax, (%rdx)
.L21:
	leaq	(%rcx,%rbx), %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5015:
	.size	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKiiEEPT0_PT_S7_S5_, .-_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKiiEEPT0_PT_S7_S5_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enc_mat"
.LC1:
	.string	"cannot create std::vector larger than max_size()"
.LC2:
	.string	"%d\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4129:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4129
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$632, %rsp
	.cfi_def_cfa_offset 688
	movq	%fs:40, %rax
	movq	%rax, 616(%rsp)
	xorl	%eax, %eax
	leaq	96(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB0:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE0:
	movq	8(%rsp), %rdi
	movl	$8, %edx
	leaq	.LC0(%rip), %rsi
.LEHB1:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	movq	8(%rsp), %rdi
	leaq	40(%rsp), %rsi
	call	_ZNSirsERi@PLT
	movslq	40(%rsp), %rax
	movq	%rax, (%rsp)
	movq	(%rsp), %rcx
	movabsq	$288230376151711743, %rax
	cmpq	%rcx, %rax
	jnb	.L24
	movq	616(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L79
	leaq	.LC1(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L24:
	movq	(%rsp), %rbx
	xorl	%r10d, %r10d
	movq	%r10, 48(%rsp)
	salq	$5, %rbx
	cmpq	$0, (%rsp)
	movq	%r10, 56(%rsp)
	movq	%r10, 64(%rsp)
	je	.L66
	movq	%rbx, %rdi
	call	_Znwm@PLT
.LEHE1:
	jmp	.L26
.L66:
	xorl	%eax, %eax
.L26:
	addq	%rax, %rbx
	movq	%rax, 48(%rsp)
	movq	%rax, %rdx
	movq	%rbx, 64(%rsp)
.L27:
	cmpq	$0, (%rsp)
	je	.L82
	xorl	%r9d, %r9d
	movb	$0, (%rdx)
	addq	$32, %rdx
	movq	%r9, -24(%rdx)
	movq	%r9, -16(%rdx)
	movq	%r9, -8(%rdx)
	decq	(%rsp)
	jmp	.L27
.L82:
	xorl	%r8d, %r8d
	movq	%rbx, 56(%rsp)
	movq	%rax, %r15
	movq	%rax, %rbx
	movl	%r8d, 28(%rsp)
.L29:
	movl	40(%rsp), %ecx
	movl	28(%rsp), %eax
	cmpl	%eax, %ecx
	jle	.L83
	movq	8(%rsp), %rdi
	movq	%rbx, %rsi
.LEHB2:
	call	_ZNSi10_M_extractIbEERSiRT_@PLT
	movq	8(%rsp), %rdi
	leaq	44(%rsp), %rsi
	call	_ZNSirsERi@PLT
	movabsq	$2305843009213693951, %rax
	movslq	44(%rsp), %r13
	cmpq	%r13, %rax
	jnb	.L30
	movq	616(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L79
	leaq	.LC1(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L30:
	xorl	%edi, %edi
	leaq	72(%rsp), %rax
	movq	%r13, %rsi
	movq	%rdi, 72(%rsp)
	movq	%rdi, 80(%rsp)
	movq	%rdi, 88(%rsp)
	movq	%rax, %rdi
	movq	%rax, 16(%rsp)
	call	_ZNSt12_Vector_baseIiSaIiEE17_M_create_storageEm
.LEHE2:
	movq	72(%rsp), %rbp
	movq	%rbp, %r12
	testq	%r13, %r13
	je	.L32
	xorl	%esi, %esi
	leaq	4(%rbp), %r12
	movl	%esi, 0(%rbp)
	decq	%r13
	je	.L32
	leaq	(%r12,%r13,4), %rax
	movq	%r12, %rdx
.L33:
	cmpq	%rdx, %rax
	je	.L84
	xorl	%ecx, %ecx
	addq	$4, %rdx
	movl	%ecx, -4(%rdx)
	jmp	.L33
.L84:
	subq	%rbp, %rax
	leaq	-4(%r12,%rax), %r12
.L32:
	movq	%r12, 80(%rsp)
	movq	%rbp, %r14
	xorl	%r13d, %r13d
.L35:
	cmpl	%r13d, 44(%rsp)
	jle	.L85
	movq	8(%rsp), %rdi
	movq	%r14, %rsi
.LEHB3:
	call	_ZNSirsERi@PLT
	incl	%r13d
	addq	$4, %r14
	jmp	.L35
.L85:
	movq	8(%rbx), %rdi
	movq	24(%rbx), %rax
	movq	%r12, %r13
	subq	%rbp, %r13
	subq	%rdi, %rax
	cmpq	%r13, %rax
	jnb	.L37
	movabsq	$9223372036854775804, %rax
	cmpq	%r13, %rax
	jnb	.L38
	testq	%r13, %r13
	jns	.L39
	movq	616(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L79
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L39:
	movq	616(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L79
	call	_ZSt17__throw_bad_allocv@PLT
.L38:
	movq	%r13, %rdi
	call	_Znwm@PLT
.LEHE3:
	movq	%rbp, %rdi
	movq	%rax, %rdx
	movq	%r12, %rsi
	movq	%rax, %r14
	call	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKiiEEPT0_PT_S7_S5_
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L42
	movq	24(%rbx), %rsi
	subq	%rdi, %rsi
	call	_ZdlPvm@PLT
.L42:
	movq	%r14, 8(%rbx)
	addq	%r13, %r14
	movq	%r14, 24(%rbx)
	jmp	.L43
.L37:
	movq	16(%rbx), %rdx
	subq	%rdi, %rdx
	cmpq	%r13, %rdx
	jb	.L44
	movq	%rdi, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKiiEEPT0_PT_S7_S5_
	jmp	.L43
.L44:
	cmpq	$4, %rdx
	jle	.L45
	movq	%rbp, %rsi
	call	memmove@PLT
	jmp	.L46
.L45:
	jne	.L46
	movl	0(%rbp), %eax
	movl	%eax, (%rdi)
.L46:
	movq	16(%rbx), %rdi
	movq	%r12, %rdx
	movq	%rdi, %rsi
	subq	8(%rbx), %rsi
	addq	%rbp, %rsi
	subq	%rsi, %rdx
	cmpq	$4, %rdx
	jle	.L47
	call	memmove@PLT
	jmp	.L43
.L47:
	jne	.L43
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
.L43:
	addq	8(%rbx), %r13
	movq	%r13, 16(%rbx)
	cmpq	%r12, %rbp
	je	.L48
	movq	%rbp, 80(%rsp)
.L48:
	movq	16(%rsp), %rdi
	addq	$32, %rbx
	call	_ZNSt6vectorIiSaIiEED1Ev
	incl	28(%rsp)
	jmp	.L29
.L83:
	movl	%ecx, %eax
	movl	$8, %esi
	cltd
	idivl	%esi
	movl	%eax, %ebp
	testl	%edx, %edx
	jle	.L51
	sarl	$3, %ecx
	leal	1(%rcx), %ebp
.L51:
	movslq	%ebp, %r12
	movq	%r12, %rdi
	call	malloc@PLT
	movq	%r12, %rcx
	movq	%r12, %rdx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	call	__memset_chk@PLT
	leaq	72(%rsp), %rax
	movq	%rax, 16(%rsp)
.L52:
	cmpl	%r12d, 40(%rsp)
	jle	.L86
	movq	16(%r15), %rsi
	movq	16(%rsp), %rdi
	xorl	%eax, %eax
	subq	8(%r15), %rsi
	movb	(%r15), %r13b
	movq	%rax, 72(%rsp)
	sarq	$2, %rsi
	movq	%rax, 80(%rsp)
	movq	%rax, 88(%rsp)
.LEHB4:
	call	_ZNSt12_Vector_baseIiSaIiEE17_M_create_storageEm
	movq	72(%rsp), %r14
	movq	16(%r15), %rsi
	movq	8(%r15), %rdi
	movq	%r14, %rdx
	call	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKiiEEPT0_PT_S7_S5_
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$8, %r8d
	movq	%rax, 80(%rsp)
	subq	%r14, %rax
	movl	$128, %r10d
	sarq	$2, %rax
	movq	%rax, %r11
.L53:
	cmpq	%rdi, %r11
	je	.L87
	movl	(%r14,%rdi,4), %r9d
	addl	%esi, %r9d
	testb	%r13b, %r13b
	jne	.L54
	movb	$1, %r13b
	jmp	.L55
.L54:
	cmpl	%r9d, %esi
	jge	.L88
	movl	%esi, %eax
	movl	%esi, %ecx
	incl	%esi
	cltd
	andl	$7, %ecx
	idivl	%r8d
	movl	%r10d, %edx
	sarl	%cl, %edx
	cltq
	orb	%dl, (%rbx,%rax)
	jmp	.L54
.L88:
	xorl	%r13d, %r13d
.L55:
	incq	%rdi
	movl	%r9d, %esi
	jmp	.L53
.L87:
	movq	16(%rsp), %rdi
	incl	%r12d
	addq	$32, %r15
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L52
.L86:
	leaq	.LC2(%rip), %r12
.L59:
	movl	(%rsp), %eax
	cmpl	%eax, %ebp
	jle	.L89
	movq	(%rsp), %rax
	movq	%r12, %rsi
	movl	$2, %edi
	movzbl	(%rbx,%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.LEHE4:
	incq	(%rsp)
	jmp	.L59
.L89:
	leaq	48(%rsp), %rdi
	call	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED1Ev
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	616(%rsp), %rax
	subq	%fs:40, %rax
	je	.L65
	jmp	.L79
.L69:
	endbr64
	movq	%rax, %rbx
.L61:
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L62
.L70:
	endbr64
	movq	%rax, %rbx
.L62:
	leaq	48(%rsp), %rdi
	call	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED1Ev
	jmp	.L63
.L68:
	endbr64
	movq	%rax, %rbx
.L63:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	616(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L79
	movq	%rbx, %rdi
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
.L79:
	call	__stack_chk_fail@PLT
.L65:
	addq	$632, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4129:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4129:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4129-.LLSDACSB4129
.LLSDACSB4129:
	.uleb128 .LEHB0-.LFB4129
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4129
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L68-.LFB4129
	.uleb128 0
	.uleb128 .LEHB2-.LFB4129
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L70-.LFB4129
	.uleb128 0
	.uleb128 .LEHB3-.LFB4129
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L69-.LFB4129
	.uleb128 0
	.uleb128 .LEHB4-.LFB4129
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L70-.LFB4129
	.uleb128 0
	.uleb128 .LEHB5-.LFB4129
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE4129:
	.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
	.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 <stdio.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <utility>
#include <cstring>
#include <stdlib.h>
#include <hip/hip_runtime.h>

using namespace std;

int main(){
    ifstream in;
    in.open("enc_mat");
    int r;
    in >> r;
    vector<pair<bool,vector<int> > > encmat(r);
    for(int i = 0; i<r; i++){
        in >> encmat[i].first;
        int size;
        in >> size;
        vector<int> v(size);
        for(int j=0;j<size;j++){
            in >> v[j];
        }
        encmat[i].second = v;
        v.clear();
    }

    int masksize = (r%8>0 ? r/8+1 : r/8);

    unsigned char* mask = (unsigned char*)malloc(masksize*sizeof(unsigned char));
    memset(mask,0,masksize);
    for(int i=0;i<r;i++){
        bool flag = encmat[i].first;
        vector<int> v = encmat[i].second;
        int count = 0;
        for(int j=0; j<v.size(); j++){
            if(flag){
                for(int k=count;k<count+v[j];k++){
                    mask[k/8] |= (0x80 >> k%8);
                }
                count+=v[j];
                flag=0;
            }
            else{
                count += v[j];
                flag=1;
            }

        }
    }
    for(int i=0;i<masksize;i++)
        printf("%d\n",mask[i]);
    return 0;
}

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

                                        # End of file scope inline assembly
	.globl	main                            # -- Begin function 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	$584, %rsp                      # imm = 0x248
	.cfi_def_cfa_offset 640
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	leaq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev
.Ltmp0:
	movl	$.L.str, %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp1:
# %bb.1:
.Ltmp3:
	leaq	64(%rsp), %rdi
	leaq	4(%rsp), %rsi
	callq	_ZNSirsERi
.Ltmp4:
# %bb.2:
	movslq	4(%rsp), %rsi
.Ltmp6:
	leaq	40(%rsp), %rdi
	leaq	16(%rsp), %rdx
	callq	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EEC2EmRKS4_
.Ltmp7:
# %bb.3:
	movl	4(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.LBB0_18
# %bb.4:                                # %.lr.ph81
	xorl	%r13d, %r13d
	leaq	64(%rsp), %rbx
	leaq	16(%rsp), %r15
.LBB0_5:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_10 Depth 2
	movq	%r13, %rbp
	shlq	$5, %rbp
	movq	40(%rsp), %rsi
	addq	%rbp, %rsi
.Ltmp9:
	movq	%rbx, %rdi
	callq	_ZNSi10_M_extractIbEERSiRT_
.Ltmp10:
# %bb.6:                                # %_ZNSirsERb.exit
                                        #   in Loop: Header=BB0_5 Depth=1
.Ltmp12:
	movq	%rbx, %rdi
	leaq	8(%rsp), %rsi
	callq	_ZNSirsERi
.Ltmp13:
# %bb.7:                                #   in Loop: Header=BB0_5 Depth=1
	movslq	8(%rsp), %rsi
.Ltmp15:
	movq	%r15, %rdi
	leaq	15(%rsp), %rdx
	callq	_ZNSt6vectorIiSaIiEEC2EmRKS0_
.Ltmp16:
# %bb.8:                                #   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 8(%rsp)
	jle	.LBB0_12
# %bb.9:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB0_5 Depth=1
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
.LBB0_10:                               # %.lr.ph
                                        #   Parent Loop BB0_5 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	16(%rsp), %rsi
	addq	%r14, %rsi
.Ltmp18:
	movq	%rbx, %rdi
	callq	_ZNSirsERi
.Ltmp19:
# %bb.11:                               #   in Loop: Header=BB0_10 Depth=2
	incq	%r12
	movslq	8(%rsp), %rax
	addq	$4, %r14
	cmpq	%rax, %r12
	jl	.LBB0_10
.LBB0_12:                               # %._crit_edge
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	40(%rsp), %rax
	leaq	(%rax,%rbp), %rdi
	addq	$8, %rdi
.Ltmp21:
	movq	%r15, %rsi
	callq	_ZNSt6vectorIiSaIiEEaSERKS1_
.Ltmp22:
# %bb.13:                               #   in Loop: Header=BB0_5 Depth=1
	movq	16(%rsp), %rdi
	cmpq	%rdi, 24(%rsp)
	je	.LBB0_15
# %bb.14:                               #   in Loop: Header=BB0_5 Depth=1
	movq	%rdi, 24(%rsp)
.LBB0_15:                               # %_ZNSt6vectorIiSaIiEE5clearEv.exit
                                        #   in Loop: Header=BB0_5 Depth=1
	testq	%rdi, %rdi
	je	.LBB0_17
# %bb.16:                               #   in Loop: Header=BB0_5 Depth=1
	callq	_ZdlPv
.LBB0_17:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit
                                        #   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movslq	4(%rsp), %rbp
	cmpq	%rbp, %r13
	jl	.LBB0_5
.LBB0_18:                               # %._crit_edge82
	xorl	%r13d, %r13d
	testl	$-2147483641, %ebp              # imm = 0x80000007
	setg	%r13b
	leal	7(%rbp), %eax
	testl	%ebp, %ebp
	cmovnsl	%ebp, %eax
	sarl	$3, %eax
	addl	%eax, %r13d
	movslq	%r13d, %rsi
	movl	$1, %edi
	callq	calloc@PLT
	movq	%rax, %rbx
	testl	%ebp, %ebp
	jle	.LBB0_31
# %bb.19:                               # %.lr.ph94
	xorl	%r15d, %r15d
	leaq	16(%rsp), %r14
.LBB0_20:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_23 Depth 2
                                        #       Child Loop BB0_25 Depth 3
	movq	40(%rsp), %rax
	movq	%r15, %rcx
	shlq	$5, %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$8, %rsi
	movb	-8(%rsi), %r12b
.Ltmp24:
	movq	%r14, %rdi
	callq	_ZNSt6vectorIiSaIiEEC2ERKS1_
.Ltmp25:
# %bb.21:                               # %.preheader70
                                        #   in Loop: Header=BB0_20 Depth=1
	movq	16(%rsp), %rdi
	movq	24(%rsp), %rax
	subq	%rdi, %rax
	je	.LBB0_28
# %bb.22:                               # %.lr.ph89.preheader
                                        #   in Loop: Header=BB0_20 Depth=1
	sarq	$2, %rax
	cmpq	$1, %rax
	adcq	$0, %rax
	xorl	%edx, %edx
	xorl	%esi, %esi
.LBB0_23:                               # %.lr.ph89
                                        #   Parent Loop BB0_20 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB0_25 Depth 3
	movl	%esi, %r8d
	movl	(%rdi,%rdx,4), %ecx
	leal	(%rcx,%r8), %esi
	testb	%r12b, %r12b
	movb	$1, %r12b
	je	.LBB0_27
# %bb.24:                               # %.preheader69
                                        #   in Loop: Header=BB0_23 Depth=2
	testl	%ecx, %ecx
	jle	.LBB0_26
.LBB0_25:                               # %.lr.ph84
                                        #   Parent Loop BB0_20 Depth=1
                                        #     Parent Loop BB0_23 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movl	%r8d, %ecx
	andb	$7, %cl
	movl	$128, %r9d
	shrl	%cl, %r9d
	leal	7(%r8), %ecx
	testl	%r8d, %r8d
	cmovnsl	%r8d, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	orb	%r9b, (%rbx,%rcx)
	incl	%r8d
	cmpl	%esi, %r8d
	jl	.LBB0_25
.LBB0_26:                               #   in Loop: Header=BB0_23 Depth=2
	xorl	%r12d, %r12d
.LBB0_27:                               # %.loopexit
                                        #   in Loop: Header=BB0_23 Depth=2
	incq	%rdx
	cmpq	%rax, %rdx
	jne	.LBB0_23
.LBB0_28:                               # %._crit_edge90
                                        #   in Loop: Header=BB0_20 Depth=1
	testq	%rdi, %rdi
	je	.LBB0_30
# %bb.29:                               #   in Loop: Header=BB0_20 Depth=1
	callq	_ZdlPv
.LBB0_30:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit68
                                        #   in Loop: Header=BB0_20 Depth=1
	incq	%r15
	movslq	4(%rsp), %rax
	cmpq	%rax, %r15
	jl	.LBB0_20
.LBB0_31:                               # %.preheader
	testl	%r13d, %r13d
	jle	.LBB0_34
# %bb.32:                               # %.lr.ph96.preheader
	movl	%r13d, %r14d
	xorl	%r15d, %r15d
.LBB0_33:                               # %.lr.ph96
                                        # =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%r15), %esi
	movl	$.L.str.1, %edi
	xorl	%eax, %eax
	callq	printf
	incq	%r15
	cmpq	%r15, %r14
	jne	.LBB0_33
.LBB0_34:                               # %._crit_edge97
	leaq	40(%rsp), %rdi
	callq	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev
	leaq	64(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	xorl	%eax, %eax
	addq	$584, %rsp                      # imm = 0x248
	.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
.LBB0_35:
	.cfi_def_cfa_offset 640
.Ltmp8:
	jmp	.LBB0_38
.LBB0_36:
.Ltmp5:
	jmp	.LBB0_38
.LBB0_37:
.Ltmp2:
.LBB0_38:
	movq	%rax, %rbx
	jmp	.LBB0_49
.LBB0_39:
.Ltmp23:
	jmp	.LBB0_46
.LBB0_40:
.Ltmp11:
	jmp	.LBB0_44
.LBB0_41:
.Ltmp14:
	jmp	.LBB0_44
.LBB0_42:
.Ltmp17:
	jmp	.LBB0_44
.LBB0_43:
.Ltmp26:
.LBB0_44:
	movq	%rax, %rbx
	jmp	.LBB0_48
.LBB0_45:
.Ltmp20:
.LBB0_46:
	movq	%rax, %rbx
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_48
# %bb.47:
	callq	_ZdlPv
.LBB0_48:
	leaq	40(%rsp), %rdi
	callq	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev
.LBB0_49:
	leaq	64(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table0:
.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 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp10-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp10
	.uleb128 .Ltmp11-.Lfunc_begin0          #     jumps to .Ltmp11
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp13-.Ltmp12                #   Call between .Ltmp12 and .Ltmp13
	.uleb128 .Ltmp14-.Lfunc_begin0          #     jumps to .Ltmp14
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp15-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp16-.Ltmp15                #   Call between .Ltmp15 and .Ltmp16
	.uleb128 .Ltmp17-.Lfunc_begin0          #     jumps to .Ltmp17
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp19-.Ltmp18                #   Call between .Ltmp18 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin0          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp22-.Ltmp21                #   Call between .Ltmp21 and .Ltmp22
	.uleb128 .Ltmp23-.Lfunc_begin0          #     jumps to .Ltmp23
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp24-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp25-.Ltmp24                #   Call between .Ltmp24 and .Ltmp25
	.uleb128 .Ltmp26-.Lfunc_begin0          #     jumps to .Ltmp26
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp25-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Lfunc_end0-.Ltmp25            #   Call between .Ltmp25 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EEC2EmRKS4_,"axG",@progbits,_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EEC2EmRKS4_,comdat
	.weak	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EEC2EmRKS4_ # -- Begin function _ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EEC2EmRKS4_
	.p2align	1, 0x90
	.type	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EEC2EmRKS4_,@function
_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EEC2EmRKS4_: # @_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EEC2EmRKS4_
	.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, %rax
	shrq	$58, %rax
	jne	.LBB1_6
# %bb.1:                                # %_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EE17_S_check_init_lenEmRKS4_.exit
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB1_2
# %bb.3:                                # %_ZNSt12_Vector_baseISt4pairIbSt6vectorIiSaIiEEESaIS4_EEC2EmRKS5_.exit
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt4pairIbSt6vectorIiSaIiEEEE8allocateEmPKv
	xorps	%xmm0, %xmm0
	movq	%rax, (%rbx)
	movq	%r14, %rcx
	shlq	$5, %rcx
	addq	%rax, %rcx
	movq	%rcx, 16(%rbx)
.LBB1_4:                                # %.lr.ph.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movb	$0, (%rax)
	movups	%xmm0, 8(%rax)
	movq	$0, 24(%rax)
	addq	$32, %rax
	decq	%r14
	jne	.LBB1_4
	jmp	.LBB1_5
.LBB1_2:                                # %_ZNSt12_Vector_baseISt4pairIbSt6vectorIiSaIiEEESaIS4_EEC2EmRKS5_.exit.thread
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	xorl	%eax, %eax
.LBB1_5:                                # %.loopexit
	movq	%rax, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.LBB1_6:
	.cfi_def_cfa_offset 32
	movl	$.L.str.2, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end1:
	.size	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EEC2EmRKS4_, .Lfunc_end1-_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EEC2EmRKS4_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEEC2EmRKS0_,"axG",@progbits,_ZNSt6vectorIiSaIiEEC2EmRKS0_,comdat
	.weak	_ZNSt6vectorIiSaIiEEC2EmRKS0_   # -- Begin function _ZNSt6vectorIiSaIiEEC2EmRKS0_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEEC2EmRKS0_,@function
_ZNSt6vectorIiSaIiEEC2EmRKS0_:          # @_ZNSt6vectorIiSaIiEEC2EmRKS0_
	.cfi_startproc
# %bb.0:
	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, %rax
	shrq	$61, %rax
	jne	.LBB2_7
# %bb.1:                                # %_ZNSt6vectorIiSaIiEE17_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	.LBB2_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, (%rbx)
	leaq	(%rax,%r14,4), %r15
	movq	%r15, 16(%rbx)
	movl	$0, (%rax)
	addq	$4, %rax
	cmpq	$1, %r14
	jne	.LBB2_5
# %bb.4:
	movq	%rax, %r15
	jmp	.LBB2_6
.LBB2_2:                                # %_ZNSt12_Vector_baseIiSaIiEEC2EmRKS0_.exit.thread
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	xorl	%r15d, %r15d
	jmp	.LBB2_6
.LBB2_5:                                # %_ZSt6fill_nIPimiET_S1_T0_RKT1_.exit.loopexit.i.i.i.i
	leaq	-4(,%r14,4), %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB2_6:
	movq	%r15, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB2_7:
	.cfi_def_cfa_offset 32
	movl	$.L.str.2, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end2:
	.size	_ZNSt6vectorIiSaIiEEC2EmRKS0_, .Lfunc_end2-_ZNSt6vectorIiSaIiEEC2EmRKS0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEEaSERKS1_,"axG",@progbits,_ZNSt6vectorIiSaIiEEaSERKS1_,comdat
	.weak	_ZNSt6vectorIiSaIiEEaSERKS1_    # -- Begin function _ZNSt6vectorIiSaIiEEaSERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEEaSERKS1_,@function
_ZNSt6vectorIiSaIiEEaSERKS1_:           # @_ZNSt6vectorIiSaIiEEaSERKS1_
	.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	%rdi, %rbx
	cmpq	%rdi, %rsi
	je	.LBB3_23
# %bb.1:
	movq	%rsi, %r12
	movq	(%rsi), %r15
	movq	8(%rsi), %r14
	subq	%r15, %r14
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	subq	%rax, %rcx
	cmpq	%rcx, %r14
	jbe	.LBB3_9
# %bb.2:                                # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit.i
	movq	%r14, %rsi
	sarq	$2, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %r12
	cmpq	$5, %r14
	jl	.LBB3_4
# %bb.3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB3_6:                                # %_ZNSt6vectorIiSaIiEE20_M_allocate_and_copyIN9__gnu_cxx17__normal_iteratorIPKiS1_EEEEPimT_S9_.exit
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB3_8
# %bb.7:
	callq	_ZdlPv
.LBB3_8:                                # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit
	movq	%r12, (%rbx)
	addq	%r14, %r12
	movq	%r12, 16(%rbx)
	jmp	.LBB3_22
.LBB3_9:
	movq	8(%rbx), %rdi
	movq	%rdi, %rdx
	subq	%rax, %rdx
	cmpq	%r14, %rdx
	jae	.LBB3_10
# %bb.14:
	cmpq	$5, %rdx
	jl	.LBB3_16
# %bb.15:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	memmove@PLT
	movq	8(%rbx), %rdi
.LBB3_18:                               # %_ZSt4copyIPiS0_ET0_T_S2_S1_.exit
	movq	%rdi, %rsi
	subq	(%rbx), %rsi
	addq	(%r12), %rsi
	movq	8(%r12), %rdx
	subq	%rsi, %rdx
	cmpq	$5, %rdx
	jge	.LBB3_19
# %bb.20:
	cmpq	$4, %rdx
	jne	.LBB3_22
# %bb.21:
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
	jmp	.LBB3_22
.LBB3_10:
	cmpq	$5, %r14
	jl	.LBB3_12
# %bb.11:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
.LBB3_19:
	callq	memmove@PLT
.LBB3_22:                               # %_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEENS1_IPiS6_EEET0_T_SB_SA_.exit
	addq	(%rbx), %r14
	movq	%r14, 8(%rbx)
.LBB3_23:
	movq	%rbx, %rax
	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
.LBB3_4:
	.cfi_def_cfa_offset 48
	cmpq	$4, %r14
	jne	.LBB3_6
# %bb.5:
	movl	(%r15), %eax
	movl	%eax, (%r12)
	jmp	.LBB3_6
.LBB3_16:
	cmpq	$4, %rdx
	jne	.LBB3_18
# %bb.17:
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	jmp	.LBB3_18
.LBB3_12:
	cmpq	$4, %r14
	jne	.LBB3_22
# %bb.13:
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	jmp	.LBB3_22
.Lfunc_end3:
	.size	_ZNSt6vectorIiSaIiEEaSERKS1_, .Lfunc_end3-_ZNSt6vectorIiSaIiEEaSERKS1_
	.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	.LBB4_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %r15
	jmp	.LBB4_3
.LBB4_1:
	xorl	%r15d, %r15d
.LBB4_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	.LBB4_5
# %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB4_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
.LBB4_5:
	.cfi_def_cfa_offset 48
	cmpq	$4, %r14
	jne	.LBB4_7
# %bb.6:
	movl	(%rsi), %eax
	movl	%eax, (%r15)
	jmp	.LBB4_7
.Lfunc_end4:
	.size	_ZNSt6vectorIiSaIiEEC2ERKS1_, .Lfunc_end4-_ZNSt6vectorIiSaIiEEC2ERKS1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev,"axG",@progbits,_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev,comdat
	.weak	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev # -- Begin function _ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev,@function
_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev: # @_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev
	.cfi_startproc
# %bb.0:
	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	(%rdi), %rbx
	movq	8(%rdi), %r15
	cmpq	%r15, %rbx
	je	.LBB5_6
# %bb.1:                                # %.lr.ph.i.i.i.preheader
	movq	%rdi, %r14
.LBB5_2:                                # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB5_4
# %bb.3:                                #   in Loop: Header=BB5_2 Depth=1
	callq	_ZdlPv
.LBB5_4:                                # %_ZSt8_DestroyISt4pairIbSt6vectorIiSaIiEEEEvPT_.exit.i.i.i
                                        #   in Loop: Header=BB5_2 Depth=1
	addq	$32, %rbx
	cmpq	%r15, %rbx
	jne	.LBB5_2
# %bb.5:                                # %_ZSt8_DestroyIPSt4pairIbSt6vectorIiSaIiEEES4_EvT_S6_RSaIT0_E.exitthread-pre-split
	movq	(%r14), %rbx
.LBB5_6:                                # %_ZSt8_DestroyIPSt4pairIbSt6vectorIiSaIiEEES4_EvT_S6_RSaIT0_E.exit
	testq	%rbx, %rbx
	je	.LBB5_7
# %bb.8:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB5_7:                                # %_ZNSt12_Vector_baseISt4pairIbSt6vectorIiSaIiEEESaIS4_EED2Ev.exit
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev, .Lfunc_end5-_ZNSt6vectorISt4pairIbS_IiSaIiEEESaIS3_EED2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorISt4pairIbSt6vectorIiSaIiEEEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorISt4pairIbSt6vectorIiSaIiEEEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorISt4pairIbSt6vectorIiSaIiEEEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorISt4pairIbSt6vectorIiSaIiEEEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorISt4pairIbSt6vectorIiSaIiEEEE8allocateEmPKv,@function
_ZNSt15__new_allocatorISt4pairIbSt6vectorIiSaIiEEEE8allocateEmPKv: # @_ZNSt15__new_allocatorISt4pairIbSt6vectorIiSaIiEEEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$58, %rax
	jne	.LBB6_1
# %bb.3:
	shlq	$5, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB6_1:
	.cfi_def_cfa_offset 16
	shrq	$59, %rsi
	je	.LBB6_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB6_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end6:
	.size	_ZNSt15__new_allocatorISt4pairIbSt6vectorIiSaIiEEEE8allocateEmPKv, .Lfunc_end6-_ZNSt15__new_allocatorISt4pairIbSt6vectorIiSaIiEEEE8allocateEmPKv
	.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	.LBB7_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB7_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB7_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB7_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end7:
	.size	_ZNSt15__new_allocatorIiE8allocateEmPKv, .Lfunc_end7-_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"enc_mat"
	.size	.L.str, 8

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"%d\n"
	.size	.L.str.1, 4

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

	.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 __gxx_personality_v0
	.addrsig_sym _Unwind_Resume
	.addrsig_sym __hip_cuid_

	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
