	.file	"148577300.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"w"
	.align 8
.LC2:
	.string	"error: can't open input or output file"
.LC3:
	.string	"unsigned char %s[] = {\n"
.LC4:
	.string	"%d, "
.LC5:
	.string	"};\n"
	.text
	.globl	convert
	.type	convert, @function
convert:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2128
	mov	QWORD PTR -2104[rbp], rdi
	mov	QWORD PTR -2112[rbp], rsi
	mov	QWORD PTR -2120[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -2104[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2080[rbp], rax
	mov	rax, QWORD PTR -2120[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2072[rbp], rax
	cmp	QWORD PTR -2080[rbp], 0
	je	.L2
	cmp	QWORD PTR -2072[rbp], 0
	jne	.L3
.L2:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L1
.L3:
	mov	rax, QWORD PTR -2080[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -2080[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -2096[rbp], eax
	mov	rax, QWORD PTR -2080[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -2112[rbp]
	mov	rax, QWORD PTR -2072[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -2092[rbp], 0
	jmp	.L5
.L9:
	mov	rdx, QWORD PTR -2080[rbp]
	lea	rax, -2064[rbp]
	mov	rcx, rdx
	mov	edx, 2048
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -2084[rbp], eax
	mov	eax, DWORD PTR -2084[rbp]
	sub	DWORD PTR -2096[rbp], eax
	mov	DWORD PTR -2088[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -2088[rbp]
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	edx, al
	mov	rax, QWORD PTR -2072[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -2092[rbp], 1
	cmp	DWORD PTR -2092[rbp], 29
	jle	.L7
	mov	DWORD PTR -2092[rbp], 0
	mov	rax, QWORD PTR -2072[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L7:
	add	DWORD PTR -2088[rbp], 1
.L6:
	mov	eax, DWORD PTR -2088[rbp]
	cmp	eax, DWORD PTR -2084[rbp]
	jl	.L8
.L5:
	cmp	DWORD PTR -2096[rbp], 0
	jg	.L9
	mov	rax, QWORD PTR -2072[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -2080[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -2072[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	convert, .-convert
	.section	.rodata
	.align 8
.LC6:
	.string	"usage: bin2c <input> <identifier> <output>"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	sub	DWORD PTR -4[rbp], 1
	cmp	DWORD PTR -4[rbp], 3
	je	.L12
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L13
.L12:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	convert
	mov	eax, 0
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"148577300.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"error: can't open input or output file\000"
	.align	2
.LC3:
	.ascii	"unsigned char %s[] = {\012\000"
	.align	2
.LC4:
	.ascii	"%d, \000"
	.align	2
.LC5:
	.ascii	"};\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	convert
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert, %function
convert:
	@ args = 0, pretend = 0, frame = 2096
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2096
	str	r0, [fp, #-2088]
	str	r1, [fp, #-2092]
	str	r2, [fp, #-2096]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L11+4
	ldr	r0, [fp, #-2088]
	bl	fopen
	str	r0, [fp, #-2068]
	ldr	r1, .L11+8
	ldr	r0, [fp, #-2096]
	bl	fopen
	str	r0, [fp, #-2064]
	ldr	r3, [fp, #-2068]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-2064]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r0, .L11+12
	bl	puts
	b	.L1
.L3:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-2068]
	bl	fseek
	ldr	r0, [fp, #-2068]
	bl	ftell
	str	r0, [fp, #-2080]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-2068]
	bl	fseek
	ldr	r2, [fp, #-2092]
	ldr	r1, .L11+16
	ldr	r0, [fp, #-2064]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-2076]
	b	.L5
.L9:
	sub	r0, fp, #2048
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-2068]
	mov	r2, #2048
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-2060]
	ldr	r2, [fp, #-2080]
	ldr	r3, [fp, #-2060]
	sub	r3, r2, r3
	str	r3, [fp, #-2080]
	mov	r3, #0
	str	r3, [fp, #-2072]
	b	.L6
.L8:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2072]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L11+20
	ldr	r0, [fp, #-2064]
	bl	fprintf
	ldr	r3, [fp, #-2076]
	add	r3, r3, #1
	str	r3, [fp, #-2076]
	ldr	r3, [fp, #-2076]
	cmp	r3, #29
	ble	.L7
	mov	r3, #0
	str	r3, [fp, #-2076]
	ldr	r1, [fp, #-2064]
	mov	r0, #10
	bl	fputc
.L7:
	ldr	r3, [fp, #-2072]
	add	r3, r3, #1
	str	r3, [fp, #-2072]
.L6:
	ldr	r2, [fp, #-2072]
	ldr	r3, [fp, #-2060]
	cmp	r2, r3
	blt	.L8
.L5:
	ldr	r3, [fp, #-2080]
	cmp	r3, #0
	bgt	.L9
	ldr	r3, [fp, #-2064]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L11+24
	bl	fwrite
	ldr	r0, [fp, #-2068]
	bl	fclose
	ldr	r0, [fp, #-2064]
	bl	fclose
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	convert, .-convert
	.section	.rodata
	.align	2
.LC7:
	.ascii	"usage: bin2c <input> <identifier> <output>\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	beq	.L14
	ldr	r0, .L16
	bl	puts
	mov	r3, #1
	b	.L15
.L14:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	bl	convert
	mov	r3, #0
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
