	.file	"153781.c"
	.intel_syntax noprefix
	.text
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 1024
buf:
	.zero	1024
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"rb"
	.align 8
.LC2:
	.string	"#include <stdint.h>\n\nstatic const uint16_t %s_load = 0x%04x;\nstatic const uint8_t %s[] = {"
.LC3:
	.string	"0x%02x"
.LC4:
	.string	"};\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -52[rbp], -1
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	cmp	DWORD PTR -68[rbp], 4
	jne	.L16
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	js	.L19
	mov	eax, DWORD PTR -44[rbp]
	movzx	eax, al
	mov	WORD PTR -54[rbp], ax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	js	.L20
	mov	eax, DWORD PTR -44[rbp]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, WORD PTR -54[rbp]
	or	eax, edx
	mov	WORD PTR -54[rbp], ax
	movzx	ecx, WORD PTR -54[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	r8, rsi
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -48[rbp], 1
	jmp	.L8
.L12:
	mov	QWORD PTR -24[rbp], 0
	jmp	.L9
.L11:
	cmp	DWORD PTR -48[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	edi, 44
	call	fputc@PLT
.L10:
	mov	DWORD PTR -48[rbp], 0
	lea	rdx, buf[rip]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	QWORD PTR -24[rbp], 1
.L9:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L11
.L8:
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 1024
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	DWORD PTR -52[rbp], 0
	jmp	.L3
.L16:
	nop
	jmp	.L3
.L17:
	nop
	jmp	.L3
.L18:
	nop
	jmp	.L3
.L19:
	nop
	jmp	.L3
.L20:
	nop
.L3:
	cmp	QWORD PTR -40[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L13:
	cmp	QWORD PTR -32[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L14:
	mov	eax, DWORD PTR -52[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"153781.c"
	.text
	.comm	buf,1024,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"#include <stdint.h>\012\012static const uint16_t %s"
	.ascii	"_load = 0x%04x;\012static const uint8_t %s[] = {\000"
	.align	2
.LC3:
	.ascii	"0x%02x\000"
	.align	2
.LC4:
	.ascii	"};\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	mvn	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-48]
	cmp	r3, #4
	bne	.L16
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L21
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-52]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L21+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L18
	ldr	r0, [fp, #-32]
	bl	fgetc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L19
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	strh	r3, [fp, #-38]	@ movhi
	ldr	r0, [fp, #-32]
	bl	fgetc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L20
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrsh	r3, [fp, #-38]
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-38]	@ movhi
	ldrh	r2, [fp, #-38]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-16]
	ldr	r1, .L21+8
	ldr	r0, [fp, #-28]
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L8
.L12:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L9
.L11:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L10
	ldr	r1, [fp, #-28]
	mov	r0, #44
	bl	fputc
.L10:
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r2, .L21+12
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L21+16
	ldr	r0, [fp, #-28]
	bl	fprintf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L9:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L11
.L8:
	ldr	r3, [fp, #-32]
	mov	r2, #1024
	mov	r1, #1
	ldr	r0, .L21+12
	bl	fread
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-28]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L21+20
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L3
.L16:
	nop
	b	.L3
.L17:
	nop
	b	.L3
.L18:
	nop
	b	.L3
.L19:
	nop
	b	.L3
.L20:
	nop
.L3:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L13
	ldr	r0, [fp, #-32]
	bl	fclose
.L13:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L14
	ldr	r0, [fp, #-28]
	bl	fclose
.L14:
	ldr	r3, [fp, #-36]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	buf
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
