	.file	"extr_bin2c.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Usage: %s binary_file output_file array_name\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"rb"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"%s: can't open %s for reading\n"
	.align 8
.LC3:
	.string	"Unable to malloc bin2c.c buffer\n"
	.section	.rodata.str1.1
.LC4:
	.string	"w"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"%s: can't open %s for writing\n"
	.section	.rodata.str1.1
.LC6:
	.string	"const char %s[%u] = {"
.LC7:
	.string	"\n\t"
.LC8:
	.string	"0x%.2x"
.LC9:
	.string	", "
.LC10:
	.string	"\n};\n\n"
.LC11:
	.string	"const int %s_length = %u;\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	edi, 3
	jle	.L15
	mov	rdi, QWORD PTR 8[rsi]
	lea	rsi, .LC1[rip]
	call	fopen@PLT
	mov	r12, rax
	test	rax, rax
	je	.L16
	mov	edx, DWORD PTR SEEK_END[rip]
	xor	esi, esi
	mov	rdi, rax
	call	fseek@PLT
	mov	rdi, r12
	call	ftell@PLT
	mov	edx, DWORD PTR SEEK_SET[rip]
	xor	esi, esi
	mov	rdi, r12
	mov	r13d, eax
	call	fseek@PLT
	mov	edi, r13d
	call	malloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L17
	mov	rcx, r12
	mov	edx, 1
	mov	esi, r13d
	mov	rdi, rax
	call	fread@PLT
	mov	rdi, r12
	call	fclose@PLT
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC4[rip]
	call	fopen@PLT
	mov	r15, rax
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR 24[rbx]
	mov	ecx, r13d
	lea	rsi, .LC6[rip]
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rax
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	test	r13d, r13d
	je	.L7
	lea	r12d, -1[r13]
	xor	r14d, r14d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movzx	edx, BYTE PTR 0[rbp+r14]
	mov	rdi, r15
	xor	eax, eax
	lea	rbx, 1[r14]
	lea	rsi, .LC8[rip]
	call	fprintf@PLT
	cmp	r12, r14
	je	.L7
	mov	rcx, r15
	mov	edx, 2
	mov	esi, 1
	mov	r14, rbx
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
.L9:
	imul	eax, r14d, -1171354717
	cmp	eax, 390451572
	ja	.L8
	mov	rcx, r15
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rcx, r15
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	ecx, r13d
	mov	rdi, r15
	lea	rsi, .LC11[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	rdi, r15
	call	fclose@PLT
	mov	rdi, rbp
	call	free@PLT
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	mov	rdx, QWORD PTR [rsi]
	movsx	rdi, DWORD PTR stderr[rip]
	xor	eax, eax
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	or	eax, -1
	jmp	.L1
.L18:
	mov	rcx, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rbx]
	lea	rsi, .LC5[rip]
	xor	eax, eax
	movsx	rdi, DWORD PTR stderr[rip]
	call	fprintf@PLT
	mov	rdi, rbp
	call	free@PLT
	or	eax, -1
	jmp	.L1
.L17:
	movsx	rcx, DWORD PTR stderr[rip]
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rdi, r12
	call	fclose@PLT
	or	eax, -1
	jmp	.L1
.L16:
	mov	rcx, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rbx]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	movsx	rdi, DWORD PTR stderr[rip]
	call	fprintf@PLT
	or	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	SEEK_SET,4,4
	.comm	SEEK_END,4,4
	.comm	BZ_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_bin2c.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Usage: %s binary_file output_file array_name\012\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"%s: can't open %s for reading\012\000"
	.align	2
.LC3:
	.ascii	"Unable to malloc bin2c.c buffer\012\000"
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"%s: can't open %s for writing\012\000"
	.align	2
.LC6:
	.ascii	"const char %s[%u] = {\000"
	.align	2
.LC7:
	.ascii	"\012\011\000"
	.align	2
.LC8:
	.ascii	"0x%.2x\000"
	.align	2
.LC9:
	.ascii	", \000"
	.align	2
.LC10:
	.ascii	"\012};\012\012\000"
	.align	2
.LC11:
	.ascii	"const int %s_length = %u;\012\000"
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r0, #3
	mov	r6, r1
	sub	sp, sp, #12
	ble	.L16
	ldr	r1, .L20
	ldr	r0, [r6, #4]
	bl	fopen
	subs	r4, r0, #0
	beq	.L17
	ldr	r3, .L20+4
	mov	r1, #0
	ldr	r2, [r3]
	bl	fseek
	mov	r0, r4
	bl	ftell
	mov	r10, r0
	ldr	r3, .L20+8
	mov	r1, #0
	ldr	r2, [r3]
	mov	r0, r4
	bl	fseek
	mov	r0, r10
	bl	malloc
	subs	r3, r0, #0
	str	r3, [sp]
	beq	.L18
	mov	r3, r4
	mov	r2, #1
	mov	r1, r10
	bl	fread
	mov	r0, r4
	bl	fclose
	ldr	r1, .L20+12
	ldr	r0, [r6, #8]
	bl	fopen
	subs	r5, r0, #0
	beq	.L19
	ldr	r3, [r6, #12]
	ldr	r1, .L20+16
	mov	r2, r3
	str	r3, [sp, #4]
	mov	r3, r10
	bl	fprintf
	cmp	r10, #0
	beq	.L7
	ldr	r3, [sp]
	sub	r6, r10, #1
	ldr	r9, .L20+20
	ldr	r8, .L20+24
	ldr	fp, .L20+28
	add	r6, r6, r3
	sub	r4, r3, #1
	rsb	r7, r3, #1
	b	.L9
.L8:
	ldrb	r2, [r4, #1]!	@ zero_extendqisi2
	mov	r1, r8
	mov	r0, r5
	bl	fprintf
	cmp	r4, r6
	beq	.L7
	mov	r3, r5
	mov	r2, #2
	mov	r1, #1
	mov	r0, fp
	bl	fwrite
.L9:
	add	r3, r7, r4
	rsb	r2, r3, r3, lsl #5
	add	r2, r3, r2, lsl #5
	add	r2, r2, r2, lsl #3
	rsb	r2, r2, r2, lsl #15
	add	r2, r3, r2, lsl #2
	rsb	r2, r2, #0
	cmp	r2, r9
	bhi	.L8
	mov	r3, r5
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L20+32
	bl	fwrite
	b	.L8
.L7:
	mov	r3, r5
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L20+36
	bl	fwrite
	mov	r3, r10
	ldr	r2, [sp, #4]
	ldr	r1, .L20+40
	mov	r0, r5
	bl	fprintf
	mov	r0, r5
	bl	fclose
	ldr	r0, [sp]
	bl	free
	mov	r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r3, .L20+44
	ldr	r2, [r1]
	ldr	r0, [r3]
	ldr	r1, .L20+48
	bl	fprintf
	mvn	r0, #0
	b	.L1
.L19:
	ldr	r2, .L20+44
	ldr	r3, [r6, #4]
	ldr	r0, [r2]
	ldr	r1, .L20+52
	ldr	r2, [r6]
	bl	fprintf
	ldr	r0, [sp]
	bl	free
	mvn	r0, #0
	b	.L1
.L17:
	ldr	r2, .L20+44
	ldr	r3, [r6, #4]
	ldr	r0, [r2]
	ldr	r1, .L20+56
	ldr	r2, [r6]
	bl	fprintf
	mvn	r0, #0
	b	.L1
.L18:
	ldr	r3, .L20+44
	mov	r2, #32
	mov	r1, #1
	ldr	r3, [r3]
	ldr	r0, .L20+60
	bl	fwrite
	mov	r0, r4
	bl	fclose
	mvn	r0, #0
	b	.L1
.L21:
	.align	2
.L20:
	.word	.LC1
	.word	SEEK_END
	.word	SEEK_SET
	.word	.LC4
	.word	.LC6
	.word	390451572
	.word	.LC8
	.word	.LC9
	.word	.LC7
	.word	.LC10
	.word	.LC11
	.word	stderr
	.word	.LC0
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.comm	stderr,4,4
	.comm	SEEK_SET,4,4
	.comm	SEEK_END,4,4
	.comm	BZ_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
