	.file	"134100.c"
	.intel_syntax noprefix
	.text
	.globl	swapNode
	.type	swapNode, @function
swapNode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swapNode, .-swapNode
	.globl	rearrangeBarcodes
	.type	rearrangeBarcodes, @function
rearrangeBarcodes:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -397312[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2784
	mov	QWORD PTR -400072[rbp], rdi
	mov	DWORD PTR -400076[rbp], esi
	mov	QWORD PTR -400088[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -400076[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -400032[rbp], rax
	mov	rax, QWORD PTR -400088[rbp]
	mov	edx, DWORD PTR -400076[rbp]
	mov	DWORD PTR [rax], edx
	lea	rax, -400016[rbp]
	mov	edx, 400008
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -400076[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -400024[rbp], rax
	mov	DWORD PTR -400056[rbp], 0
	mov	DWORD PTR -400052[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -400052[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -400072[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	eax, DWORD PTR -400016[rbp+rax*4]
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -400052[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -400072[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -400056[rbp]
	add	edx, 1
	cdqe
	mov	DWORD PTR -400016[rbp+rax*4], edx
	mov	eax, DWORD PTR -400052[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -400072[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -400056[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -400024[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -400056[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -400024[rbp]
	add	rax, rdx
	mov	DWORD PTR 4[rax], 1
	add	DWORD PTR -400056[rbp], 1
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -400052[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -400072[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	eax, DWORD PTR -400016[rbp+rax*4]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -400024[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -400052[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -400072[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	eax, DWORD PTR -400016[rbp+rax*4]
	cdqe
	sal	rax, 3
	lea	rcx, -8[rax]
	mov	rax, QWORD PTR -400024[rbp]
	add	rax, rcx
	add	edx, 1
	mov	DWORD PTR 4[rax], edx
.L5:
	add	DWORD PTR -400052[rbp], 1
.L3:
	mov	eax, DWORD PTR -400052[rbp]
	cmp	eax, DWORD PTR -400076[rbp]
	jl	.L6
	mov	DWORD PTR -400048[rbp], 0
	mov	DWORD PTR -400044[rbp], 1
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -400044[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -400024[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -400048[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -400024[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jle	.L8
	mov	eax, DWORD PTR -400044[rbp]
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -400048[rbp]
.L9:
	mov	DWORD PTR -400048[rbp], eax
	add	DWORD PTR -400044[rbp], 1
.L7:
	mov	eax, DWORD PTR -400044[rbp]
	cmp	eax, DWORD PTR -400056[rbp]
	jl	.L10
	mov	eax, DWORD PTR -400048[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -400024[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -400024[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	swapNode
	mov	DWORD PTR -400040[rbp], 0
	mov	DWORD PTR -400036[rbp], 0
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -400036[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -400024[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -400040[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -400032[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -400040[rbp], 2
	mov	eax, DWORD PTR -400040[rbp]
	cmp	eax, DWORD PTR -400076[rbp]
	jl	.L12
	mov	DWORD PTR -400040[rbp], 1
.L12:
	mov	eax, DWORD PTR -400036[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -400024[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	sub	edx, 1
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -400036[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -400024[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L11
	add	DWORD PTR -400036[rbp], 1
.L11:
	mov	eax, DWORD PTR -400036[rbp]
	cmp	eax, DWORD PTR -400056[rbp]
	jl	.L13
	mov	rax, QWORD PTR -400024[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -400032[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"134100.c"
	.text
	.align	2
	.global	swapNode
	.syntax unified
	.arm
	.fpu softvfp
	.type	swapNode, %function
swapNode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r2, [fp, #-16]
	sub	r3, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-20]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swapNode, .-swapNode
	.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 = 400064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #397312
	sub	sp, sp, #2752
	sub	sp, sp, #4
	sub	r3, fp, #397312
	sub	r3, r3, #12
	str	r0, [r3, #-2740]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	str	r1, [r3, #-2744]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	str	r2, [r3, #-2748]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2744]
	lsl	r3, r3, #2
	sub	r2, fp, #397312
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-2708]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2748]
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2744]
	str	r2, [r3]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	sub	r3, r3, #2688
	sub	r3, r3, #12
	ldr	r2, .L16+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2744]
	lsl	r3, r3, #3
	sub	r2, fp, #397312
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-2704]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2732]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2728]
	b	.L3
.L6:
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2728]
	lsl	r3, r3, #2
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2740]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #397312
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-2700]
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2728]
	lsl	r3, r3, #2
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2740]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2732]
	add	r2, r2, #1
	sub	r1, fp, #397312
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-2700]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2728]
	lsl	r3, r3, #2
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2740]
	add	r2, r2, r3
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2732]
	lsl	r3, r3, #3
	sub	r1, fp, #397312
	sub	r1, r1, #12
	ldr	r1, [r1, #-2704]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2732]
	lsl	r3, r3, #3
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2704]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #4]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2732]
	add	r3, r3, #1
	str	r3, [r2, #-2732]
	b	.L5
.L4:
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2728]
	lsl	r3, r3, #2
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2740]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #397312
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-2700]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2704]
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2728]
	lsl	r3, r3, #2
	sub	r1, fp, #397312
	sub	r1, r1, #12
	ldr	r1, [r1, #-2740]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r1, fp, #397312
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-2700]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	sub	r1, fp, #397312
	sub	r1, r1, #12
	ldr	r1, [r1, #-2704]
	add	r3, r1, r3
	add	r2, r2, #1
	str	r2, [r3, #4]
.L5:
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2728]
	add	r3, r3, #1
	str	r3, [r2, #-2728]
.L3:
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r2, [r2, #-2728]
	ldr	r3, [r3, #-2744]
	cmp	r2, r3
	blt	.L6
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2724]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2720]
	b	.L7
.L10:
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2720]
	lsl	r3, r3, #3
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2704]
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2724]
	lsl	r3, r3, #3
	sub	r1, fp, #397312
	sub	r1, r1, #12
	ldr	r1, [r1, #-2704]
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	cmp	r2, r3
	ble	.L8
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2720]
	b	.L9
.L8:
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2724]
.L9:
	sub	r2, fp, #397312
	sub	r2, r2, #12
	str	r3, [r2, #-2724]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2720]
	add	r3, r3, #1
	str	r3, [r2, #-2720]
.L7:
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r2, [r2, #-2720]
	ldr	r3, [r3, #-2732]
	cmp	r2, r3
	blt	.L10
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2724]
	lsl	r3, r3, #3
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2704]
	add	r3, r2, r3
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r1, [r2, #-2704]
	mov	r0, r3
	bl	swapNode
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2716]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2712]
	b	.L11
.L13:
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2712]
	lsl	r3, r3, #3
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2704]
	add	r2, r2, r3
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2716]
	lsl	r3, r3, #2
	sub	r1, fp, #397312
	sub	r1, r1, #12
	ldr	r1, [r1, #-2708]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2716]
	add	r3, r3, #2
	str	r3, [r2, #-2716]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r2, [r2, #-2716]
	ldr	r3, [r3, #-2744]
	cmp	r2, r3
	blt	.L12
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2716]
.L12:
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2712]
	lsl	r3, r3, #3
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2704]
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	sub	r2, r2, #1
	str	r2, [r3, #4]
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2712]
	lsl	r3, r3, #3
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2704]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	sub	r2, fp, #397312
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #397312
	sub	r2, r2, #12
	ldr	r2, [r2, #-2712]
	str	r2, [r1, #-2712]
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2712]
	add	r3, r3, #1
	str	r3, [r2, #-2712]
.L11:
	sub	r3, fp, #397312
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r2, [r2, #-2712]
	ldr	r3, [r3, #-2732]
	cmp	r2, r3
	blt	.L13
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r0, [r3, #-2704]
	bl	free
	sub	r3, fp, #397312
	sub	r3, r3, #12
	ldr	r3, [r3, #-2708]
	ldr	r2, .L16
	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}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	400008
	.size	rearrangeBarcodes, .-rearrangeBarcodes
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
