	.file	"36074489.c"
	.intel_syntax noprefix
	.text
	.globl	SOURCE
	.bss
	.align 8
	.type	SOURCE, @object
	.size	SOURCE, 8
SOURCE:
	.zero	8
	.globl	source_idx
	.align 4
	.type	source_idx, @object
	.size	source_idx, 4
source_idx:
	.zero	4
	.text
	.globl	write_char
	.type	write_char, @function
write_char:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	mov	rcx, QWORD PTR SOURCE[rip]
	mov	eax, DWORD PTR source_idx[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR source_idx[rip], edx
	cdqe
	lea	rdx, [rcx+rax]
	movzx	eax, BYTE PTR -4[rbp]
	mov	BYTE PTR [rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	write_char, .-write_char
	.globl	write_str
	.type	write_str, @function
write_str:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	write_char
.L3:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L4
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	write_str, .-write_str
	.section	.rodata
.LC0:
	.string	"  __c(\""
.LC1:
	.string	"\");\n"
	.text
	.globl	write_line
	.type	write_line, @function
write_line:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC0[rip]
	call	write_str
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	jne	.L7
	mov	edi, 92
	call	write_char
	mov	edi, 34
	call	write_char
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L8
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	write_char
.L8:
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L9
	mov	edi, 92
	call	write_char
	mov	edi, 110
	call	write_char
	lea	rdi, .LC1[rip]
	call	write_str
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	write_line, .-write_line
	.section	.rodata
.LC2:
	.string	"rb"
	.text
	.globl	load_from
	.type	load_from, @function
load_from:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -232[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -216[rbp], rax
.L13:
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -208[rbp]
	mov	esi, 200
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	jmp	.L15
.L11:
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	write_line
	jmp	.L13
.L15:
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	load_from, .-load_from
	.section	.rodata
.LC3:
	.string	"wb"
	.text
	.globl	save_to
	.type	save_to, @function
save_to:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L17
.L18:
	mov	rdx, QWORD PTR SOURCE[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -12[rbp], 1
.L17:
	mov	eax, DWORD PTR source_idx[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	save_to, .-save_to
	.section	.rodata
	.align 8
.LC4:
	.string	"Usage: inliner <input.c> <output.inc>"
	.align 8
.LC5:
	.string	"/* Created by tools/inliner - DO NOT EDIT. */\n"
.LC6:
	.string	"void __c(char *src) {\n"
.LC7:
	.string	"    int i;\n"
.LC8:
	.string	"    for (i = 0; src[i]; i++)\n"
	.align 8
.LC9:
	.string	"        SOURCE[source_idx++] = src[i];\n"
.LC10:
	.string	"}\n"
.LC11:
	.string	"void libc_generate() {\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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
	cmp	DWORD PTR -4[rbp], 2
	jg	.L20
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L21
.L20:
	mov	DWORD PTR source_idx[rip], 0
	mov	edi, 65536
	call	malloc@PLT
	mov	QWORD PTR SOURCE[rip], rax
	lea	rdi, .LC5[rip]
	call	write_str
	lea	rdi, .LC6[rip]
	call	write_str
	lea	rdi, .LC7[rip]
	call	write_str
	lea	rdi, .LC8[rip]
	call	write_str
	lea	rdi, .LC9[rip]
	call	write_str
	lea	rdi, .LC10[rip]
	call	write_str
	lea	rdi, .LC11[rip]
	call	write_str
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	load_from
	lea	rdi, .LC10[rip]
	call	write_str
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	save_to
	mov	eax, 0
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"36074489.c"
	.text
	.comm	SOURCE,4,4
	.comm	source_idx,4,4
	.align	2
	.global	write_char
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_char, %function
write_char:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldr	r3, .L2
	ldr	r2, [r3]
	ldr	r3, .L2+4
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L2+4
	str	r1, [r0]
	add	r3, r2, r3
	ldrb	r2, [fp, #-5]
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	SOURCE
	.word	source_idx
	.size	write_char, .-write_char
	.align	2
	.global	write_str
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_str, %function
write_str:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L5
.L6:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	write_char
.L5:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	write_str, .-write_str
	.section	.rodata
	.align	2
.LC0:
	.ascii	"  __c(\"\000"
	.align	2
.LC1:
	.ascii	"\");\012\000"
	.text
	.align	2
	.global	write_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_line, %function
write_line:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, .L12
	bl	write_str
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L11:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L9
	mov	r0, #92
	bl	write_char
	mov	r0, #34
	bl	write_char
	b	.L10
.L9:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L10
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	write_char
.L10:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	mov	r0, #92
	bl	write_char
	mov	r0, #110
	bl	write_char
	ldr	r0, .L12+4
	bl	write_str
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.size	write_line, .-write_line
	.section	.rodata
	.align	2
.LC2:
	.ascii	"rb\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	load_from
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_from, %function
load_from:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #216
	str	r0, [fp, #-216]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L20+4
	ldr	r0, [fp, #-216]
	bl	fopen
	str	r0, [fp, #-212]
.L17:
	sub	r3, fp, #208
	ldr	r2, [fp, #-212]
	mov	r1, #200
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r0, [fp, #-212]
	bl	fclose
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	b	.L19
.L15:
	sub	r3, fp, #208
	mov	r0, r3
	bl	write_line
	b	.L17
.L19:
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC3
	.word	.LC2
	.size	load_from, .-load_from
	.section	.rodata
	.align	2
.LC4:
	.ascii	"wb\000"
	.text
	.align	2
	.global	save_to
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_to, %function
save_to:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, .L25
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L23
.L24:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L23:
	ldr	r3, .L25+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L24
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC4
	.word	SOURCE
	.word	source_idx
	.size	save_to, .-save_to
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Usage: inliner <input.c> <output.inc>\000"
	.align	2
.LC6:
	.ascii	"/* Created by tools/inliner - DO NOT EDIT. */\012\000"
	.align	2
.LC7:
	.ascii	"void __c(char *src) {\012\000"
	.align	2
.LC8:
	.ascii	"    int i;\012\000"
	.align	2
.LC9:
	.ascii	"    for (i = 0; src[i]; i++)\012\000"
	.align	2
.LC10:
	.ascii	"        SOURCE[source_idx++] = src[i];\012\000"
	.align	2
.LC11:
	.ascii	"}\012\000"
	.align	2
.LC12:
	.ascii	"void libc_generate() {\012\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]
	cmp	r3, #2
	bgt	.L28
	ldr	r0, .L30
	bl	puts
	mvn	r3, #0
	b	.L29
.L28:
	ldr	r3, .L30+4
	mov	r2, #0
	str	r2, [r3]
	mov	r0, #65536
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L30+8
	str	r2, [r3]
	ldr	r0, .L30+12
	bl	write_str
	ldr	r0, .L30+16
	bl	write_str
	ldr	r0, .L30+20
	bl	write_str
	ldr	r0, .L30+24
	bl	write_str
	ldr	r0, .L30+28
	bl	write_str
	ldr	r0, .L30+32
	bl	write_str
	ldr	r0, .L30+36
	bl	write_str
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	load_from
	ldr	r0, .L30+32
	bl	write_str
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	save_to
	mov	r3, #0
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC5
	.word	source_idx
	.word	SOURCE
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
