	.file	"926623.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage:\n  laytostr <source.lay> <output.h> <varname> [<type>]\n\nThe default <type> is char, with an assumed NULL terminator\n"
.LC1:
	.string	"char"
.LC2:
	.string	"rb"
	.align 8
.LC3:
	.string	"Unable to open source file '%s'\n"
	.align 8
.LC4:
	.string	"Out of memory allocating %d byte buffer\n"
.LC5:
	.string	"w"
	.align 8
.LC6:
	.string	"Unable to open output file '%s'\n"
.LC7:
	.string	"extern const %s %s[];\n"
.LC8:
	.string	"const %s %s[] =\n{\n\t"
.LC9:
	.string	","
.LC10:
	.string	""
.LC11:
	.string	"0x%02x%s"
.LC12:
	.string	"\n\t"
.LC13:
	.string	"\n};\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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	DWORD PTR -64[rbp], 1
	cmp	DWORD PTR -84[rbp], 3
	jg	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 122
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -40[rbp], rax
	cmp	DWORD PTR -84[rbp], 4
	jle	.L4
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 32[rax]
	jmp	.L5
.L4:
	lea	rax, .LC1[rip]
.L5:
	mov	QWORD PTR -32[rbp], rax
	cmp	DWORD PTR -84[rbp], 4
	jle	.L6
	mov	DWORD PTR -64[rbp], 0
.L6:
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L3
.L7:
	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	eax, DWORD PTR -60[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -60[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L3
.L8:
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L3
.L9:
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -68[rbp], 0
	jmp	.L10
.L14:
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -64[rbp]
	add	eax, edx
	sub	eax, 1
	cmp	DWORD PTR -68[rbp], eax
	je	.L11
	lea	rax, .LC9[rip]
	jmp	.L12
.L11:
	lea	rax, .LC10[rip]
.L12:
	mov	edx, DWORD PTR -68[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, rcx
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	mov	rdi, QWORD PTR -8[rbp]
	mov	rcx, rax
	lea	rsi, .LC11[rip]
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -68[rbp]
	cdq
	shr	edx, 28
	add	eax, edx
	and	eax, 15
	sub	eax, edx
	cmp	eax, 15
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
.L13:
	add	DWORD PTR -68[rbp], 1
.L10:
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -64[rbp]
	add	eax, edx
	cmp	DWORD PTR -68[rbp], eax
	jl	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L3:
	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	"926623.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage:\012  laytostr <source.lay> <output.h> <varna"
	.ascii	"me> [<type>]\012\012The default <type> is char, wit"
	.ascii	"h an assumed NULL terminator\012\000"
	.align	2
.LC1:
	.ascii	"char\000"
	.align	2
.LC2:
	.ascii	"rb\000"
	.align	2
.LC3:
	.ascii	"Unable to open source file '%s'\012\000"
	.align	2
.LC4:
	.ascii	"Out of memory allocating %d byte buffer\012\000"
	.align	2
.LC5:
	.ascii	"w\000"
	.align	2
.LC6:
	.ascii	"Unable to open output file '%s'\012\000"
	.align	2
.LC7:
	.ascii	"extern const %s %s[];\012\000"
	.align	2
.LC8:
	.ascii	"const %s %s[] =\012{\012\011\000"
	.align	2
.LC9:
	.ascii	",\000"
	.align	2
.LC10:
	.ascii	"\000"
	.align	2
.LC11:
	.ascii	"0x%02x%s\000"
	.align	2
.LC12:
	.ascii	"\012\011\000"
	.align	2
.LC13:
	.ascii	"\012};\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, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	mov	r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	bgt	.L2
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r2, #122
	mov	r1, #1
	ldr	r0, .L15+4
	bl	fwrite
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	cmp	r3, #4
	ble	.L4
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #16]
	b	.L5
.L4:
	ldr	r3, .L15+8
.L5:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	cmp	r3, #4
	ble	.L6
	mov	r3, #0
	str	r3, [fp, #-40]
.L6:
	ldr	r1, .L15+12
	ldr	r0, [fp, #-36]
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	ldr	r1, .L15+16
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L3
.L7:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	fseek
	ldr	r0, [fp, #-20]
	bl	ftell
	str	r0, [fp, #-16]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	fseek
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L8
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L15+20
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L3
.L8:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	fread
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r1, .L15+24
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L15+28
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L3
.L9:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, .L15+32
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, .L15+36
	ldr	r0, [fp, #-8]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L10
.L14:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	beq	.L11
	ldr	r3, .L15+40
	b	.L12
.L11:
	ldr	r3, .L15+44
.L12:
	mov	r2, r1
	ldr	r1, .L15+48
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-44]
	rsbs	r2, r3, #0
	and	r3, r3, #15
	and	r2, r2, #15
	rsbpl	r3, r2, #0
	cmp	r3, #15
	bne	.L13
	ldr	r3, [fp, #-8]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L15+52
	bl	fwrite
.L13:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L10:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-8]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L15+56
	bl	fwrite
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
