	.file	"207754.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/207754.c"
.LC1:
	.string	"file"
.LC2:
	.string	"mode"
	.align 8
.LC3:
	.string	"Could not open file '%s' in mode '%s': %s\n"
	.text
	.type	fopen_or_die, @function
fopen_or_die:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 15
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L3
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L3:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	r8, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fopen_or_die, .-fopen_or_die
	.section	.rodata
.LC4:
	.string	"usage: %s in.hex out.bin\n"
.LC5:
	.string	"rb"
.LC6:
	.string	"wb"
.LC7:
	.string	"unable to write word: %s\n"
.LC8:
	.string	"%lx"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 0
	cmp	DWORD PTR -52[rbp], 3
	je	.L7
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L13
.L7:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen_or_die
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen_or_die
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -32[rbp], 0
	jmp	.L9
.L10:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L13
.L9:
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	jns	.L11
	mov	DWORD PTR -36[rbp], 1
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	jns	.L12
	mov	DWORD PTR -36[rbp], 1
.L12:
	mov	eax, DWORD PTR -36[rbp]
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 13
__PRETTY_FUNCTION__.0:
	.string	"fopen_or_die"
	.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	"207754.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/207754.c\000"
	.align	2
.LC1:
	.ascii	"file\000"
	.align	2
.LC2:
	.ascii	"mode\000"
	.align	2
.LC3:
	.ascii	"Could not open file '%s' in mode '%s': %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fopen_or_die, %function
fopen_or_die:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L6
	mov	r2, #15
	ldr	r1, .L6+4
	ldr	r0, .L6+8
	bl	__assert_fail
.L2:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L6
	mov	r2, #16
	ldr	r1, .L6+4
	ldr	r0, .L6+12
	bl	__assert_fail
.L3:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L6+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, .L6+20
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	__PRETTY_FUNCTION__.5365
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.size	fopen_or_die, .-fopen_or_die
	.section	.rodata
	.align	2
.LC4:
	.ascii	"usage: %s in.hex out.bin\012\000"
	.align	2
.LC5:
	.ascii	"rb\000"
	.align	2
.LC6:
	.ascii	"wb\000"
	.align	2
.LC7:
	.ascii	"unable to write word: %s\012\000"
	.align	2
.LC8:
	.ascii	"%llx\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	beq	.L9
	ldr	r3, .L17+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L17+8
	bl	fprintf
	mov	r3, #1
	b	.L15
.L9:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L17+12
	mov	r0, r3
	bl	fopen_or_die
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L17+16
	mov	r0, r3
	bl	fopen_or_die
	str	r0, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L11
.L12:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r0, fp, #28
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #8
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L11
	ldr	r3, .L17+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L17+20
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L15
.L11:
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L17+24
	ldr	r0, [fp, #-36]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L12
	ldr	r0, [fp, #-36]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	bge	.L13
	mov	r3, #1
	str	r3, [fp, #-40]
.L13:
	ldr	r0, [fp, #-32]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	bge	.L14
	mov	r3, #1
	str	r3, [fp, #-40]
.L14:
	ldr	r3, [fp, #-40]
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC9
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5365, %object
	.size	__PRETTY_FUNCTION__.5365, 13
__PRETTY_FUNCTION__.5365:
	.ascii	"fopen_or_die\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
