	.file	"195968.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"mmap"
	.align 8
.LC1:
	.string	"Loading name into code struct at %p...\n"
.LC2:
	.string	"%s"
.LC3:
	.string	"ERROR in scanf.  Exiting."
.LC4:
	.string	"Loaded name %s (%zd bytes)\n"
.LC5:
	.string	"wb"
.LC6:
	.string	"binary.bin"
	.align 8
.LC7:
	.string	"Seems to be an interpreter at %p: running it...\n"
.LC8:
	.string	"Back from interpreter."
	.align 8
.LC9:
	.string	"No interpreter found.  Exiting."
	.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, 16
	mov	r9d, 0
	mov	r8d, -1
	mov	ecx, 49
	mov	edx, 7
	mov	esi, 4096
	mov	edi, 1001242624
	call	mmap@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 1056[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1064
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 1056[rax]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 1056[rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 1056[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	rdx
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L5
.L4:
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L5:
	mov	eax, 0
	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	"195968.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"mmap\000"
	.align	2
.LC1:
	.ascii	"Loading name into code struct at %p...\012\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	"ERROR in scanf.  Exiting.\000"
	.align	2
.LC4:
	.ascii	"Loaded name %s (%zd bytes)\012\000"
	.align	2
.LC5:
	.ascii	"wb\000"
	.align	2
.LC6:
	.ascii	"binary.bin\000"
	.align	2
.LC7:
	.ascii	"Seems to be an interpreter at %p: running it...\012"
	.ascii	"\000"
	.align	2
.LC8:
	.ascii	"Back from interpreter.\000"
	.align	2
.LC9:
	.ascii	"No interpreter found.  Exiting.\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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	mov	r3, #0
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #49
	mov	r2, #7
	mov	r1, #4096
	ldr	r0, .L7
	bl	mmap
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L7+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #1056]
	ldr	r1, [fp, #-20]
	ldr	r0, .L7+8
	bl	printf
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L7+12
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L3
	ldr	r0, .L7+16
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	ldr	r4, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L7+20
	bl	printf
	ldr	r1, .L7+24
	ldr	r0, .L7+28
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #1
	ldr	r1, .L7+32
	ldr	r0, [fp, #-20]
	bl	fwrite
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #1056]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #1056]
	mov	r1, r3
	ldr	r0, .L7+36
	bl	printf
	ldr	r3, .L7+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #1056]
	ldr	r0, [fp, #-20]
	blx	r3
	ldr	r0, .L7+44
	bl	puts
	b	.L5
.L4:
	ldr	r0, .L7+48
	bl	puts
.L5:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	1001242624
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	1060
	.word	.LC7
	.word	stdout
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
