	.file	"extr_mkbrnimg.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wrong number of arguments"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Error opening '%s' for writing: %s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	DWORD PTR 12[rsp], edi
	lea	rdi, 12[rsp]
	mov	QWORD PTR [rsp], rsi
	mov	rsi, rsp
	call	parseopts@PLT
	mov	edx, DWORD PTR 12[rsp]
	test	edx, edx
	jle	.L9
.L2:
	mov	rdi, QWORD PTR output_file[rip]
	mov	esi, DWORD PTR O_WRONLY[rip]
	mov	edx, 420
	or	esi, DWORD PTR O_CREAT[rip]
	or	esi, DWORD PTR O_TRUNC[rip]
	call	open@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L10
.L3:
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	jle	.L4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR [rsp]
	xor	edx, edx
	test	ebx, ebx
	mov	edi, ebp
	sete	dl
	mov	rsi, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	call	appendfile@PLT
	cmp	DWORD PTR 12[rsp], ebx
	jg	.L5
.L4:
	mov	edi, DWORD PTR signature[rip]
	call	strlen@PLT
	mov	esi, DWORD PTR signature[rip]
	mov	edi, ebp
	lea	rdx, 1[rax]
	call	write@PLT
	mov	edi, ebp
	call	close@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	usage@PLT
	jmp	.L2
.L10:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	rdx, QWORD PTR output_file[rip]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rcx, rax
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	signature,4,4
	.comm	output_file,8,8
	.comm	errno,4,4
	.comm	O_WRONLY,4,4
	.comm	O_TRUNC,4,4
	.comm	O_CREAT,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_mkbrnimg.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wrong number of arguments\000"
	.align	2
.LC1:
	.ascii	"Error opening '%s' for writing: %s\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, lr}
	sub	sp, sp, #8
	str	r0, [sp, #4]
	str	r1, [sp]
	add	r0, sp, #4
	mov	r1, sp
	bl	parseopts
	ldr	r3, [sp, #4]
	cmp	r3, #0
	ble	.L9
.L2:
	ldr	r3, .L11
	ldr	r2, .L11+4
	ldr	r1, .L11+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r4, .L11+12
	orr	r3, r3, r2
	ldr	r0, [r4]
	mov	r2, #420
	orr	r1, r3, r1
	bl	open
	cmn	r0, #1
	mov	r5, r0
	beq	.L10
.L3:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	ble	.L4
	mov	r4, #0
.L5:
	clz	r2, r4
	ldr	r3, [sp]
	mov	r0, r5
	ldr	r1, [r3, r4, lsl #2]
	lsr	r2, r2, #5
	bl	appendfile
	ldr	r3, [sp, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L4:
	ldr	r3, .L11+16
	ldr	r4, [r3]
	mov	r0, r4
	bl	strlen
	mov	r1, r4
	add	r2, r0, #1
	mov	r0, r5
	bl	write
	mov	r0, r5
	bl	close
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r0, .L11+20
	bl	usage
	b	.L2
.L10:
	ldr	r3, .L11+24
	ldr	r2, .L11+28
	ldr	r0, [r3]
	ldr	r6, [r2]
	ldr	r4, [r4]
	bl	strerror
	mov	r2, r4
	mov	r3, r0
	ldr	r1, .L11+32
	mov	r0, r6
	bl	fprintf
	mov	r0, #1
	bl	exit
	b	.L3
.L12:
	.align	2
.L11:
	.word	O_WRONLY
	.word	O_CREAT
	.word	O_TRUNC
	.word	output_file
	.word	signature
	.word	.LC0
	.word	errno
	.word	stderr
	.word	.LC1
	.size	main, .-main
	.comm	stderr,4,4
	.comm	signature,4,4
	.comm	output_file,4,4
	.comm	errno,4,4
	.comm	O_WRONLY,4,4
	.comm	O_TRUNC,4,4
	.comm	O_CREAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
