	.file	"200144568.c"
	.intel_syntax noprefix
	.text
	.globl	rearrangeBarcodes
	.type	rearrangeBarcodes, @function
rearrangeBarcodes:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -36864[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3216
	mov	QWORD PTR -40056[rbp], rdi
	mov	DWORD PTR -40060[rbp], esi
	mov	QWORD PTR -40072[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40072[rbp]
	mov	edx, DWORD PTR -40060[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40072[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40024[rbp], rax
	lea	rax, -40016[rbp]
	mov	edx, 40004
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -40040[rbp], 0
	mov	DWORD PTR -40036[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -40036[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40056[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	edx, DWORD PTR -40016[rbp+rdx*4]
	lea	ecx, 1[rdx]
	movsx	rdx, eax
	mov	DWORD PTR -40016[rbp+rdx*4], ecx
	cdqe
	mov	edx, DWORD PTR -40016[rbp+rax*4]
	mov	eax, DWORD PTR -40040[rbp]
	cdqe
	mov	eax, DWORD PTR -40016[rbp+rax*4]
	cmp	edx, eax
	jle	.L3
	mov	eax, DWORD PTR -40036[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40056[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -40040[rbp], eax
.L3:
	add	DWORD PTR -40036[rbp], 1
.L2:
	mov	eax, DWORD PTR -40036[rbp]
	cmp	eax, DWORD PTR -40060[rbp]
	jl	.L4
	mov	DWORD PTR -40032[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -40032[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40024[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -40040[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -40032[rbp], 2
.L5:
	mov	eax, DWORD PTR -40040[rbp]
	cdqe
	mov	eax, DWORD PTR -40016[rbp+rax*4]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -40040[rbp]
	cdqe
	mov	DWORD PTR -40016[rbp+rax*4], edx
	mov	eax, DWORD PTR -40040[rbp]
	cdqe
	mov	eax, DWORD PTR -40016[rbp+rax*4]
	test	eax, eax
	jns	.L6
	mov	DWORD PTR -40028[rbp], 0
	jmp	.L7
.L13:
	mov	eax, DWORD PTR -40028[rbp]
	cdqe
	mov	eax, DWORD PTR -40016[rbp+rax*4]
	test	eax, eax
	jle	.L16
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -40032[rbp]
	cmp	eax, DWORD PTR -40060[rbp]
	jl	.L11
	mov	DWORD PTR -40032[rbp], 1
.L11:
	mov	eax, DWORD PTR -40032[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40024[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -40028[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -40032[rbp], 2
.L10:
	mov	eax, DWORD PTR -40028[rbp]
	cdqe
	mov	eax, DWORD PTR -40016[rbp+rax*4]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -40028[rbp]
	cdqe
	mov	DWORD PTR -40016[rbp+rax*4], edx
	mov	eax, DWORD PTR -40028[rbp]
	cdqe
	mov	eax, DWORD PTR -40016[rbp+rax*4]
	test	eax, eax
	jns	.L12
	jmp	.L9
.L16:
	nop
.L9:
	add	DWORD PTR -40028[rbp], 1
.L7:
	cmp	DWORD PTR -40028[rbp], 10000
	jle	.L13
	mov	rax, QWORD PTR -40024[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	rearrangeBarcodes, .-rearrangeBarcodes
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"200144568.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rearrangeBarcodes
	.syntax unified
	.arm
	.fpu softvfp
	.type	rearrangeBarcodes, %function
rearrangeBarcodes:
	@ args = 0, pretend = 0, frame = 40048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #39936
	sub	sp, sp, #116
	sub	r3, fp, #36864
	sub	r3, r3, #12
	str	r0, [r3, #-3172]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	str	r1, [r3, #-3176]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	str	r2, [r3, #-3180]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3180]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3176]
	str	r2, [r3]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3180]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #36864
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-3148]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	sub	r3, r3, #3136
	sub	r3, r3, #8
	ldr	r2, .L17+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3164]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3160]
	b	.L2
.L4:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3160]
	lsl	r3, r3, #2
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3172]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	mov	r1, r2
	lsl	r2, r3, #2
	add	r2, r1, r2
	ldr	r2, [r2, #-3144]
	add	r1, r2, #1
	sub	r2, fp, #36864
	sub	r2, r2, #12
	mov	r0, r2
	lsl	r2, r3, #2
	add	r2, r0, r2
	str	r1, [r2, #-3144]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3144]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3164]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-3144]
	cmp	r2, r3
	ble	.L3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3160]
	lsl	r3, r3, #2
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3172]
	add	r3, r2, r3
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-3164]
.L3:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3160]
	add	r3, r3, #1
	str	r3, [r2, #-3160]
.L2:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r2, [r2, #-3160]
	ldr	r3, [r3, #-3176]
	cmp	r2, r3
	blt	.L4
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3156]
	b	.L5
.L6:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3156]
	lsl	r3, r3, #2
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3148]
	add	r3, r2, r3
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3164]
	str	r2, [r3]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3156]
	add	r3, r3, #2
	str	r3, [r2, #-3156]
.L5:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3164]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3144]
	sub	r2, r3, #1
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3164]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-3144]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3164]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3144]
	cmp	r3, #0
	bge	.L6
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3152]
	b	.L7
.L13:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3144]
	cmp	r3, #0
	ble	.L16
	b	.L10
.L12:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r2, [r2, #-3156]
	ldr	r3, [r3, #-3176]
	cmp	r2, r3
	blt	.L11
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3156]
.L11:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3156]
	lsl	r3, r3, #2
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3148]
	add	r3, r2, r3
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3152]
	str	r2, [r3]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3156]
	add	r3, r3, #2
	str	r3, [r2, #-3156]
.L10:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3144]
	sub	r2, r3, #1
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3152]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-3144]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3144]
	cmp	r3, #0
	bge	.L12
	b	.L9
.L16:
	nop
.L9:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3152]
	add	r3, r3, #1
	str	r3, [r2, #-3152]
.L7:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3152]
	ldr	r2, .L17+8
	cmp	r3, r2
	ble	.L13
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3148]
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	40004
	.word	10000
	.size	rearrangeBarcodes, .-rearrangeBarcodes
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
