	.file	"95451102.c"
	.intel_syntax noprefix
	.text
	.globl	load_numbers
	.type	load_numbers, @function
load_numbers:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 400[rax]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -80[rbp]
	mov	DWORD PTR 400[rdx], ecx
	mov	rdx, QWORD PTR -80[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], 0
	jmp	.L2
.L3:
	lea	rax, -64[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 400[rax]
	lea	esi, 1[rax]
	mov	rcx, QWORD PTR -80[rbp]
	mov	DWORD PTR 400[rcx], esi
	mov	ecx, edx
	mov	rdx, QWORD PTR -80[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], ecx
.L2:
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -64[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	rewind@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	load_numbers, .-load_numbers
	.globl	get_next_joltage
	.type	get_next_joltage, @function
get_next_joltage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -16[rbp], -1
	mov	DWORD PTR -12[rbp], 4
	mov	DWORD PTR -8[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	eax, DWORD PTR 16[rbp+rax*4]
	sub	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L7
	cmp	DWORD PTR -4[rbp], 3
	jg	.L7
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jge	.L7
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -16[rbp], eax
.L7:
	add	DWORD PTR -8[rbp], 1
.L6:
	mov	eax, DWORD PTR 416[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L8
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	eax, DWORD PTR 16[rbp+rax*4]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_next_joltage, .-get_next_joltage
	.globl	get_max
	.type	get_max, @function
get_max:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -4[rbp], 1
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR 16[rbp+rax*4]
	cmp	DWORD PTR -8[rbp], eax
	jge	.L12
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR 16[rbp+rax*4]
	mov	DWORD PTR -8[rbp], eax
.L12:
	add	DWORD PTR -4[rbp], 1
.L11:
	mov	eax, DWORD PTR 416[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L13
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_max, .-get_max
	.globl	join_adapters
	.type	join_adapters, @function
join_adapters:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	sub	rsp, 408
	mov	rax, rsp
	mov	rdx, rax
	lea	rax, 16[rbp]
	mov	ecx, 50
	mov	rdi, rdx
	mov	rsi, rax
	rep movsq
	mov	rax, rsi
	mov	rdx, rdi
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR [rdx], ecx
	call	get_max
	add	rsp, 408
	mov	DWORD PTR -12[rbp], eax
	jmp	.L16
.L17:
	mov	DWORD PTR -20[rbp], 0
	lea	r9, -20[rbp]
	mov	r8d, DWORD PTR -16[rbp]
	sub	rsp, 408
	mov	rax, rsp
	mov	rdx, rax
	lea	rax, 16[rbp]
	mov	ecx, 50
	mov	rdi, rdx
	mov	rsi, rax
	rep movsq
	mov	rax, rsi
	mov	rdx, rdi
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR [rdx], ecx
	mov	rsi, r9
	mov	edi, r8d
	call	get_next_joltage
	add	rsp, 408
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
.L16:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jne	.L17
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	join_adapters, .-join_adapters
	.globl	find_min
	.type	find_min, @function
find_min:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	eax, DWORD PTR 16[rbp+rax*4]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	je	.L21
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jge	.L22
.L21:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -16[rbp], eax
.L22:
	add	DWORD PTR -8[rbp], 1
.L20:
	mov	eax, DWORD PTR 416[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L23
	mov	eax, DWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	find_min, .-find_min
	.globl	selection_sort
	.type	selection_sort, @function
selection_sort:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L26
.L27:
	mov	r8d, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	sub	rsp, 408
	mov	rdx, rsp
	mov	ecx, 50
	mov	rdi, rdx
	mov	rsi, rax
	rep movsq
	mov	rax, rsi
	mov	rdx, rdi
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR [rdx], ecx
	mov	edi, r8d
	call	find_min
	add	rsp, 408
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	mov	rdx, QWORD PTR -24[rbp]
	cdqe
	mov	ecx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx+rax*4], ecx
.L26:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 400[rax]
	sub	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jne	.L27
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	selection_sort, .-selection_sort
	.section	.rodata
.LC0:
	.string	"negative index: %d\n"
	.text
	.globl	get_arrangements
	.type	get_arrangements, @function
get_arrangements:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 832
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -816[rbp]
	mov	eax, 0
	mov	ecx, 100
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -816[rbp], 1
	mov	DWORD PTR -828[rbp], 1
	jmp	.L29
.L37:
	mov	eax, DWORD PTR -828[rbp]
	cdqe
	mov	eax, DWORD PTR 16[rbp+rax*4]
	mov	DWORD PTR -820[rbp], eax
	mov	DWORD PTR -824[rbp], 1
	jmp	.L30
.L36:
	mov	eax, DWORD PTR -828[rbp]
	sub	eax, DWORD PTR -824[rbp]
	test	eax, eax
	js	.L40
	mov	eax, DWORD PTR -828[rbp]
	sub	eax, DWORD PTR -824[rbp]
	cdqe
	mov	eax, DWORD PTR 16[rbp+rax*4]
	mov	edx, DWORD PTR -820[rbp]
	sub	edx, 3
	cmp	eax, edx
	jl	.L41
	mov	eax, DWORD PTR -828[rbp]
	sub	eax, DWORD PTR -824[rbp]
	cdqe
	mov	rax, QWORD PTR -816[rbp+rax*8]
	test	rax, rax
	jns	.L34
	mov	eax, DWORD PTR -828[rbp]
	sub	eax, DWORD PTR -824[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L34:
	mov	eax, DWORD PTR -828[rbp]
	cdqe
	mov	rdx, QWORD PTR -816[rbp+rax*8]
	mov	eax, DWORD PTR -828[rbp]
	sub	eax, DWORD PTR -824[rbp]
	cdqe
	mov	rax, QWORD PTR -816[rbp+rax*8]
	add	rdx, rax
	mov	eax, DWORD PTR -828[rbp]
	cdqe
	mov	QWORD PTR -816[rbp+rax*8], rdx
	add	DWORD PTR -824[rbp], 1
.L30:
	cmp	DWORD PTR -824[rbp], 3
	jle	.L36
	jmp	.L32
.L40:
	nop
	jmp	.L32
.L41:
	nop
.L32:
	add	DWORD PTR -828[rbp], 1
.L29:
	mov	eax, DWORD PTR 416[rbp]
	cmp	DWORD PTR -828[rbp], eax
	jl	.L37
	mov	eax, DWORD PTR -828[rbp]
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -816[rbp+rax*8]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	get_arrangements, .-get_arrangements
	.section	.rodata
.LC1:
	.string	"r"
.LC2:
	.string	"day10.dat"
.LC3:
	.string	"File could not be opened!\n"
	.align 8
.LC4:
	.string	"%d difference of 1 jolt, %d differences of 2 jolts, %d differences of 3 jolts.\n"
.LC5:
	.string	"Part one result: %d.\n"
.LC6:
	.string	"Part two result: %lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 448
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -448[rbp], rax
	cmp	QWORD PTR -448[rbp], 0
	jne	.L43
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L45
.L43:
	lea	rdx, -416[rbp]
	mov	eax, 0
	mov	ecx, 50
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	lea	rdx, -416[rbp]
	mov	rax, QWORD PTR -448[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	load_numbers
	mov	QWORD PTR -428[rbp], 0
	mov	DWORD PTR -420[rbp], 0
	lea	r8, -428[rbp]
	sub	rsp, 8
	sub	rsp, 408
	mov	rax, rsp
	mov	rdx, rax
	lea	rax, -416[rbp]
	mov	ecx, 50
	mov	rdi, rdx
	mov	rsi, rax
	rep movsq
	mov	rax, rsi
	mov	rdx, rdi
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR [rdx], ecx
	mov	rdi, r8
	call	join_adapters
	add	rsp, 416
	mov	ecx, DWORD PTR -420[rbp]
	mov	edx, DWORD PTR -424[rbp]
	mov	eax, DWORD PTR -428[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -428[rbp]
	mov	eax, DWORD PTR -420[rbp]
	imul	eax, edx
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -416[rbp]
	mov	rdi, rax
	call	selection_sort
	sub	rsp, 8
	sub	rsp, 408
	mov	rax, rsp
	mov	rdx, rax
	lea	rax, -416[rbp]
	mov	ecx, 50
	mov	rdi, rdx
	mov	rsi, rax
	rep movsq
	mov	rax, rsi
	mov	rdx, rdi
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR [rdx], ecx
	call	get_arrangements
	add	rsp, 416
	mov	QWORD PTR -440[rbp], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -448[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L45:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.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	"95451102.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	load_numbers
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_numbers, %function
load_numbers:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #400]
	add	r1, r3, #1
	ldr	r2, [fp, #-76]
	str	r1, [r2, #400]
	ldr	r2, [fp, #-76]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	b	.L2
.L3:
	ldr	r3, [fp, #-76]
	ldr	r4, [r3, #400]
	add	r2, r4, #1
	ldr	r3, [fp, #-76]
	str	r2, [r3, #400]
	sub	r3, fp, #68
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r2, r0
	ldr	r3, [fp, #-76]
	str	r2, [r3, r4, lsl #2]
.L2:
	sub	r3, fp, #68
	ldr	r2, [fp, #-72]
	mov	r1, #50
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r0, [fp, #-72]
	bl	rewind
	nop
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.size	load_numbers, .-load_numbers
	.align	2
	.global	get_next_joltage
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_next_joltage, %function
get_next_joltage:
	@ args = 412, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #16
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mvn	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #4
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L8
.L10:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #408]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L9
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bgt	.L9
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bge	.L9
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
.L9:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L8:
	ldr	r3, [fp, #404]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #412]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
	.size	get_next_joltage, .-get_next_joltage
	.align	2
	.global	get_max
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_max, %function
get_max:
	@ args = 404, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #16
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #4]
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L13
.L15:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L14
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #404]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L15
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
	.size	get_max, .-get_max
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	join_adapters
	.syntax unified
	.arm
	.fpu softvfp
	.type	join_adapters, %function
join_adapters:
	@ args = 408, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #424
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #408]
	str	r3, [fp, #-24]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r0, sp
	add	r3, fp, #20
	mov	r2, #388
	mov	r1, r3
	bl	memcpy
	add	r3, fp, #4
	ldm	r3, {r0, r1, r2, r3}
	bl	get_max
	str	r0, [fp, #-12]
	b	.L18
.L19:
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #20
	str	r3, [sp, #392]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #388]
	mov	r0, sp
	add	r3, fp, #20
	mov	r2, #388
	mov	r1, r3
	bl	memcpy
	add	r3, fp, #4
	ldm	r3, {r0, r1, r2, r3}
	bl	get_next_joltage
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L18:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L19
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	nop
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L22:
	.align	2
.L21:
	.word	.LC1
	.size	join_adapters, .-join_adapters
	.align	2
	.global	find_min
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_min, %function
find_min:
	@ args = 408, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #16
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #408]
	str	r3, [fp, #-12]
	b	.L24
.L27:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #408]
	cmp	r2, r3
	beq	.L25
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bge	.L26
.L25:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
.L26:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L24:
	ldr	r3, [fp, #404]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L27
	ldr	r3, [fp, #-20]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
	.size	find_min, .-find_min
	.align	2
	.global	selection_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	selection_sort, %function
selection_sort:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #420
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L30
.L31:
	ldr	r4, [fp, #-32]
	ldr	r3, [fp, #-24]
	str	r3, [sp, #388]
	mov	r0, sp
	add	r3, r4, #16
	mov	r2, #388
	mov	r1, r3
	bl	memcpy
	ldm	r4, {r0, r1, r2, r3}
	bl	find_min
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-16]
	str	r1, [r2, r3, lsl #2]
.L30:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #400]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L31
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	selection_sort, .-selection_sort
	.section	.rodata
	.align	2
.LC2:
	.ascii	"negative index: %d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_arrangements
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_arrangements, %function
get_arrangements:
	@ args = 404, pretend = 16, frame = 824
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #824
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #820
	mov	r2, #800
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-820]
	str	r3, [fp, #-816]
	mov	r3, #1
	str	r3, [fp, #-832]
	b	.L33
.L41:
	ldr	r3, [fp, #-832]
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-824]
	mov	r3, #1
	str	r3, [fp, #-828]
	b	.L34
.L40:
	ldr	r2, [fp, #-832]
	ldr	r3, [fp, #-828]
	sub	r3, r2, r3
	cmp	r3, #0
	blt	.L44
	ldr	r2, [fp, #-832]
	ldr	r3, [fp, #-828]
	sub	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-824]
	sub	r3, r3, #3
	cmp	r2, r3
	blt	.L45
	ldr	r2, [fp, #-832]
	ldr	r3, [fp, #-828]
	sub	r3, r2, r3
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #808
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	bge	.L38
	ldr	r2, [fp, #-832]
	ldr	r3, [fp, #-828]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L46+4
	bl	printf
.L38:
	ldr	r3, [fp, #-832]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #808
	ldmia	r3, {r0-r1}
	ldr	r2, [fp, #-832]
	ldr	r3, [fp, #-828]
	sub	r3, r2, r3
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #808
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, [fp, #-832]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #808
	stm	r3, {r4-r5}
	ldr	r3, [fp, #-828]
	add	r3, r3, #1
	str	r3, [fp, #-828]
.L34:
	ldr	r3, [fp, #-828]
	cmp	r3, #3
	ble	.L40
	b	.L36
.L44:
	nop
	b	.L36
.L45:
	nop
.L36:
	ldr	r3, [fp, #-832]
	add	r3, r3, #1
	str	r3, [fp, #-832]
.L33:
	ldr	r3, [fp, #404]
	ldr	r2, [fp, #-832]
	cmp	r2, r3
	blt	.L41
	ldr	r3, [fp, #-832]
	sub	r3, r3, #1
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #808
	ldmia	r3, {r2-r3}
	ldr	r1, .L46
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, lr}
	add	sp, sp, #16
	bx	lr
.L47:
	.align	2
.L46:
	.word	.LC3
	.word	.LC2
	.size	get_arrangements, .-get_arrangements
	.section	.rodata
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"day10.dat\000"
	.align	2
.LC6:
	.ascii	"File could not be opened!\012\000"
	.align	2
.LC7:
	.ascii	"%d difference of 1 jolt, %d differences of 2 jolts,"
	.ascii	" %d differences of 3 jolts.\012\000"
	.align	2
.LC8:
	.ascii	"Part one result: %d.\012\000"
	.align	2
.LC9:
	.ascii	"Part two result: %lld\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #832
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L53+4
	ldr	r0, .L53+8
	bl	fopen
	str	r0, [fp, #-440]
	ldr	r3, [fp, #-440]
	cmp	r3, #0
	bne	.L49
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L53+16
	bl	fwrite
	mov	r3, #1
	b	.L51
.L49:
	sub	r3, fp, #412
	mov	r2, #404
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #412
	mov	r1, r3
	ldr	r0, [fp, #-440]
	bl	load_numbers
	sub	r3, fp, #424
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	sub	r3, fp, #424
	str	r3, [sp, #388]
	mov	r0, sp
	sub	r3, fp, #396
	mov	r2, #388
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #412
	ldm	r3, {r0, r1, r2, r3}
	bl	join_adapters
	ldr	r1, [fp, #-424]
	ldr	r2, [fp, #-420]
	ldr	r3, [fp, #-416]
	ldr	r0, .L53+20
	bl	printf
	ldr	r3, [fp, #-424]
	ldr	r2, [fp, #-416]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L53+24
	bl	printf
	sub	r3, fp, #412
	mov	r0, r3
	bl	selection_sort
	mov	r0, sp
	sub	r3, fp, #396
	mov	r2, #388
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #412
	ldm	r3, {r0, r1, r2, r3}
	bl	get_arrangements
	str	r0, [fp, #-436]
	str	r1, [fp, #-432]
	sub	r3, fp, #436
	ldmia	r3, {r2-r3}
	ldr	r0, .L53+28
	bl	printf
	ldr	r0, [fp, #-440]
	bl	fclose
	mov	r3, #0
.L51:
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC10
	.word	.LC4
	.word	.LC5
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
