	.file	"67213.c"
	.intel_syntax noprefix
	.text
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 262144
buf:
	.zero	262144
	.section	.rodata
.LC0:
	.string	"%02x"
.LC1:
	.string	"File format error"
.LC2:
	.string	"%s\n"
.LC3:
	.string	"%04x"
.LC4:
	.string	"File too large"
.LC5:
	.string	"Line checksum error"
	.text
	.type	loadhex, @function
loadhex:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L2
.L14:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, 58
	jne	.L2
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L3
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -32[rbp]
	mov	BYTE PTR -37[rbp], al
	lea	rdx, -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L4
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 255[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 8
	add	BYTE PTR -37[rbp], al
	mov	eax, DWORD PTR -24[rbp]
	cdq
	shr	edx, 24
	add	eax, edx
	movzx	eax, al
	sub	eax, edx
	add	BYTE PTR -37[rbp], al
	lea	rdx, -20[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -20[rbp]
	add	BYTE PTR -37[rbp], al
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	je	.L6
	jmp	.L2
.L6:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L7
.L11:
	lea	rdx, -36[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L8
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 262143
	jle	.L9
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC4[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	ecx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -24[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jge	.L10
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -16[rbp], eax
.L10:
	mov	eax, DWORD PTR -36[rbp]
	add	BYTE PTR -37[rbp], al
	add	DWORD PTR -12[rbp], 1
.L7:
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L11
	lea	rdx, -28[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L12
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	neg	BYTE PTR -37[rbp]
	movzx	edx, BYTE PTR -37[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cmp	edx, eax
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC5[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, -1
	jne	.L14
	mov	eax, DWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	loadhex, .-loadhex
	.section	.rodata
.LC6:
	.string	"-i"
.LC7:
	.string	"hex2hex: [-i] filename\n"
	.align 8
.LC8:
	.string	"/*\n *\t Computer generated file. Do not edit.\n */"
.LC9:
	.string	"static int %s_len = %d;\n"
.LC10:
	.string	"__initdata"
.LC11:
	.string	""
	.align 8
.LC12:
	.string	"static unsigned char %s[] %s = {\n"
.LC13:
	.string	"0x%02x"
.LC14:
	.string	"\n};\n"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	add	QWORD PTR -48[rbp], 8
	sub	DWORD PTR -36[rbp], 1
	mov	DWORD PTR -16[rbp], 1
.L18:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR stdin[rip]
	lea	rsi, buf[rip]
	mov	rdi, rax
	call	loadhex
	mov	DWORD PTR -12[rbp], eax
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -16[rbp], 0
	je	.L20
	lea	rax, .LC10[rip]
	jmp	.L21
.L20:
	lea	rax, .LC11[rip]
.L21:
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L22
.L25:
	cmp	DWORD PTR -20[rbp], 0
	je	.L23
	mov	edi, 44
	call	putchar@PLT
.L23:
	cmp	DWORD PTR -20[rbp], 0
	je	.L24
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 15
	test	eax, eax
	jne	.L24
	mov	edi, 10
	call	putchar@PLT
.L24:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, buf[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -20[rbp], 1
.L22:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L25
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"67213.c"
	.text
	.comm	buf,262144,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%02x\000"
	.align	2
.LC1:
	.ascii	"File format error\000"
	.align	2
.LC2:
	.ascii	"%s\012\000"
	.align	2
.LC3:
	.ascii	"%04x\000"
	.align	2
.LC4:
	.ascii	"File too large\000"
	.align	2
.LC5:
	.ascii	"Line checksum error\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	loadhex, %function
loadhex:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L14:
	ldr	r3, [fp, #-36]
	cmp	r3, #58
	bne	.L2
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L17+4
	ldr	r0, [fp, #-48]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L3
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17+12
	ldr	r1, .L17+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-32]
	strb	r3, [fp, #-37]
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L17+20
	ldr	r0, [fp, #-48]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L4
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17+12
	ldr	r1, .L17+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-24]
	add	r2, r3, #255
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #8
	and	r2, r3, #255
	ldrb	r3, [fp, #-37]
	add	r3, r2, r3
	strb	r3, [fp, #-37]
	ldr	r3, [fp, #-24]
	rsbs	r2, r3, #0
	and	r3, r3, #255
	and	r2, r2, #255
	rsbpl	r3, r2, #0
	and	r2, r3, #255
	ldrb	r3, [fp, #-37]
	add	r3, r2, r3
	strb	r3, [fp, #-37]
	sub	r3, fp, #20
	mov	r2, r3
	ldr	r1, .L17+4
	ldr	r0, [fp, #-48]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L5
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17+12
	ldr	r1, .L17+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-20]
	and	r2, r3, #255
	ldrb	r3, [fp, #-37]
	add	r3, r2, r3
	strb	r3, [fp, #-37]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L6
	b	.L2
.L6:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L7
.L11:
	sub	r3, fp, #36
	mov	r2, r3
	ldr	r1, .L17+4
	ldr	r0, [fp, #-48]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L8
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17+12
	ldr	r1, .L17+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-24]
	cmp	r3, #262144
	blt	.L9
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17+24
	ldr	r1, .L17+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L9:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-24]
	add	r1, r3, #1
	str	r1, [fp, #-24]
	mov	r1, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L10
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
.L10:
	ldr	r3, [fp, #-36]
	and	r2, r3, #255
	ldrb	r3, [fp, #-37]
	add	r3, r2, r3
	strb	r3, [fp, #-37]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L11
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L17+4
	ldr	r0, [fp, #-48]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L12
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17+12
	ldr	r1, .L17+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L12:
	ldrb	r3, [fp, #-37]
	rsb	r3, r3, #0
	strb	r3, [fp, #-37]
	ldrb	r2, [fp, #-37]	@ zero_extendqisi2
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L2
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17+28
	ldr	r1, .L17+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, [fp, #-48]
	bl	getc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L14
	ldr	r3, [fp, #-16]
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC6
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	loadhex, .-loadhex
	.section	.rodata
	.align	2
.LC7:
	.ascii	"-i\000"
	.align	2
.LC8:
	.ascii	"hex2hex: [-i] filename\012\000"
	.align	2
.LC9:
	.ascii	"/*\012 *\011 Computer generated file. Do not edit.\012"
	.ascii	" */\000"
	.align	2
.LC10:
	.ascii	"static int %s_len = %d;\012\000"
	.align	2
.LC11:
	.ascii	"__initdata\000"
	.align	2
.LC12:
	.ascii	"\000"
	.align	2
.LC13:
	.ascii	"static unsigned char %s[] %s = {\012\000"
	.align	2
.LC14:
	.ascii	"0x%02x\000"
	.align	2
.LC15:
	.ascii	"\012};\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L29
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L29+4
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L29+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L21:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, .L29+12
	ldr	r3, [r3]
	ldr	r1, .L29+16
	mov	r0, r3
	bl	loadhex
	str	r0, [fp, #-8]
	ldr	r0, .L29+20
	bl	puts
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L29+24
	bl	printf
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L29+28
	b	.L23
.L22:
	ldr	r3, .L29+32
.L23:
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L29+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L24
.L27:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L25
	mov	r0, #44
	bl	putchar
.L25:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-20]
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L26
	mov	r0, #10
	bl	putchar
.L26:
	ldr	r2, .L29+16
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L29+40
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L24:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L27
	ldr	r0, .L29+44
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC7
	.word	stderr
	.word	.LC8
	.word	stdin
	.word	buf
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
