	.file	"103248.c"
	.intel_syntax noprefix
	.text
	.globl	alignment
	.section	.rodata
	.align 4
	.type	alignment, @object
	.size	alignment, 4
alignment:
	.long	4
	.align 8
.LC0:
	.string	"Usage:\n\thexembed <filename> [-o <outfile>] [-n <variable name>]\nBy default, varname='file' and outfile is stdout."
.LC1:
	.string	"file"
.LC2:
	.string	"-o"
	.align 8
.LC3:
	.string	"No outfile specified, assuming stdout.\n"
.LC4:
	.string	"-n"
	.align 8
.LC5:
	.string	"No variable name specified, assuming 'file'.\n"
.LC6:
	.string	"Unexpected argument '%s'\n"
.LC7:
	.string	"wb"
.LC8:
	.string	"Error opening file: %s.\n"
.LC9:
	.string	"rb"
.LC10:
	.string	"/* Embedded file: %s */\n"
.LC11:
	.string	"const int %s_size = %i;\n"
	.align 8
.LC12:
	.string	"__attribute__((aligned(%i))) const unsigned char %s[] = {\n\t"
.LC13:
	.string	",\n\t"
.LC14:
	.string	","
.LC15:
	.string	""
.LC16:
	.string	"0x%02x%s"
.LC17:
	.string	"\n};\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	cmp	DWORD PTR -84[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -48[rbp], 0
	mov	DWORD PTR -68[rbp], 2
	jmp	.L4
.L10:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	add	DWORD PTR -68[rbp], 1
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -48[rbp], rax
	jmp	.L7
.L5:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	add	DWORD PTR -68[rbp], 1
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 45
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L7:
	add	DWORD PTR -68[rbp], 1
.L4:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L10
	cmp	QWORD PTR -48[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L3
.L12:
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L3
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	ecx, DWORD PTR -60[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	esi, 4
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	edx, esi
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -64[rbp], 0
	jmp	.L14
.L19:
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 1
	cmp	DWORD PTR -64[rbp], eax
	je	.L15
	mov	eax, DWORD PTR -64[rbp]
	add	eax, 1
	and	eax, 15
	test	eax, eax
	jne	.L16
	lea	rbx, .LC13[rip]
	jmp	.L18
.L16:
	lea	rbx, .LC14[rip]
	jmp	.L18
.L15:
	lea	rbx, .LC15[rip]
.L18:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rbx
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -64[rbp], 1
.L14:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L19
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L3:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"103248.c"
	.text
	.global	alignment
	.section	.rodata
	.align	2
	.type	alignment, %object
	.size	alignment, 4
alignment:
	.word	4
	.align	2
.LC0:
	.ascii	"Usage:\012\011hexembed <filename> [-o <outfile>] [-"
	.ascii	"n <variable name>]\012By default, varname='file' an"
	.ascii	"d outfile is stdout.\000"
	.align	2
.LC1:
	.ascii	"file\000"
	.align	2
.LC2:
	.ascii	"-o\000"
	.align	2
.LC3:
	.ascii	"No outfile specified, assuming stdout.\012\000"
	.align	2
.LC4:
	.ascii	"-n\000"
	.align	2
.LC5:
	.ascii	"No variable name specified, assuming 'file'.\012\000"
	.align	2
.LC6:
	.ascii	"Unexpected argument '%s'\012\000"
	.align	2
.LC7:
	.ascii	"wb\000"
	.align	2
.LC8:
	.ascii	"Error opening file: %s.\012\000"
	.align	2
.LC9:
	.ascii	"rb\000"
	.align	2
.LC10:
	.ascii	"/* Embedded file: %s */\012\000"
	.align	2
.LC11:
	.ascii	"const int %s_size = %i;\012\000"
	.align	2
.LC12:
	.ascii	"__attribute__((aligned(%i))) const unsigned char %s"
	.ascii	"[] = {\012\011\000"
	.align	2
.LC13:
	.ascii	",\012\011\000"
	.align	2
.LC14:
	.ascii	",\000"
	.align	2
.LC15:
	.ascii	"\000"
	.align	2
.LC16:
	.ascii	"0x%02x%s\000"
	.align	2
.LC17:
	.ascii	"\012};\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L20
	bl	puts
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, .L20+4
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #2
	str	r3, [fp, #-28]
	b	.L4
.L10:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L20+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L6
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L20+16
	bl	fwrite
	b	.L7
.L6:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	b	.L7
.L5:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L20+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L9
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r2, #45
	mov	r1, #1
	ldr	r0, .L20+24
	bl	fwrite
	b	.L7
.L9:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	b	.L7
.L8:
	ldr	r3, .L20+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L20+28
	bl	fprintf
.L7:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L4:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L20+32
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L12
.L11:
	ldr	r1, .L20+36
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L20+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L20+40
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L3
.L12:
	ldr	r1, .L20+44
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L20+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L20+40
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L3
.L13:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	fseek
	ldr	r0, [fp, #-12]
	bl	ftell
	str	r0, [fp, #-8]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	fseek
	ldr	r2, [fp, #-16]
	ldr	r1, .L20+48
	ldr	r0, [fp, #-24]
	bl	fprintf
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-36]
	ldr	r1, .L20+52
	ldr	r0, [fp, #-24]
	bl	fprintf
	mov	r2, #4
	ldr	r3, [fp, #-36]
	ldr	r1, .L20+56
	ldr	r0, [fp, #-24]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L14
.L19:
	ldr	r0, [fp, #-12]
	bl	fgetc
	mov	r1, r0
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L15
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L20+60
	b	.L18
.L16:
	ldr	r3, .L20+64
	b	.L18
.L15:
	ldr	r3, .L20+68
.L18:
	mov	r2, r1
	ldr	r1, .L20+72
	ldr	r0, [fp, #-24]
	bl	fprintf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L14:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L19
	ldr	r3, [fp, #-24]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L20+76
	bl	fwrite
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	stdout
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
