	.file	"947393.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Looks like a zero to me!"
.LC1:
	.string	"Pretty sure that is a one!"
	.align 8
.LC2:
	.string	"Neither one or zero? How quaint!"
	.text
	.globl	testinstr
	.type	testinstr, @function
testinstr:
.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], 0
	jle	.L6
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	jne	.L4
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L1
.L4:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 49
	jne	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L1
.L5:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L1
.L6:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	testinstr, .-testinstr
	.section	.rodata
.LC3:
	.string	"Running: %s\n"
.LC4:
	.string	"open"
.LC5:
	.string	"lseek (SEEK_END)"
.LC6:
	.string	"lseek (SEEK_SET)"
.LC7:
	.string	"malloc"
.LC8:
	.string	"read"
.LC9:
	.string	"Running:    %s: (%zd bytes)\n"
.LC10:
	.string	"Done:    %s: (%zd bytes)\n"
	.text
	.globl	run
	.type	run, @function
run:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -28[rbp], -1
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -32[rbp], -1
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L8
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jns	.L10
	lea	rdi, .LC5[rip]
	call	perror@PLT
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	test	rax, rax
	je	.L11
	lea	rdi, .LC6[rip]
	call	perror@PLT
	jmp	.L9
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L12
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L9
.L12:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	cmp	QWORD PTR -8[rbp], rax
	je	.L13
	lea	rdi, .LC8[rip]
	call	perror@PLT
	jmp	.L9
.L13:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	testinstr
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC10[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	DWORD PTR -32[rbp], 0
.L9:
	cmp	QWORD PTR -24[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
.L14:
	cmp	DWORD PTR -28[rbp], -1
	je	.L15
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
.L15:
	mov	eax, DWORD PTR -32[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	run, .-run
	.globl	slow
	.type	slow, @function
slow:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 100000
	call	usleep@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	slow, .-slow
	.section	.testinstr,"ax",@progbits
	.globl	do_run
	.type	do_run, @function
do_run:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	run
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	do_run, .-do_run
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	je	.L21
	mov	eax, 1
	jmp	.L22
.L21:
	mov	eax, 0
	call	slow
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	do_run
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"947393.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Looks like a zero to me!\000"
	.align	2
.LC1:
	.ascii	"Pretty sure that is a one!\000"
	.align	2
.LC2:
	.ascii	"Neither one or zero? How quaint!\000"
	.text
	.align	2
	.global	testinstr
	.syntax unified
	.arm
	.fpu softvfp
	.type	testinstr, %function
testinstr:
	@ 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, #-12]
	cmp	r3, #0
	ble	.L6
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L4
	ldr	r0, .L7
	bl	puts
	b	.L1
.L4:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L5
	ldr	r0, .L7+4
	bl	puts
	b	.L1
.L5:
	ldr	r0, .L7+8
	bl	puts
	b	.L1
.L6:
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	testinstr, .-testinstr
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Running: %s\012\000"
	.align	2
.LC4:
	.ascii	"open\000"
	.align	2
.LC5:
	.ascii	"lseek (SEEK_END)\000"
	.align	2
.LC6:
	.ascii	"lseek (SEEK_SET)\000"
	.align	2
.LC7:
	.ascii	"malloc\000"
	.align	2
.LC8:
	.ascii	"read\000"
	.align	2
.LC9:
	.ascii	"Running:    %s: (%zd bytes)\012\000"
	.align	2
.LC10:
	.ascii	"Done:    %s: (%zd bytes)\012\000"
	.text
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	mvn	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	ldr	r1, .L19
	mov	r0, #2
	bl	dprintf
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	open
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L19+4
	bl	perror
	b	.L11
.L10:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	lseek
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L19+8
	bl	perror
	b	.L11
.L12:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L19+12
	bl	perror
	b	.L11
.L13:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L19+16
	bl	perror
	b	.L11
.L14:
	ldr	r3, [fp, #-12]
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	read
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L15
	ldr	r0, .L19+20
	bl	perror
	b	.L11
.L15:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	ldr	r1, .L19+24
	mov	r0, #2
	bl	dprintf
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	testinstr
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	ldr	r1, .L19+28
	mov	r0, #2
	bl	dprintf
	mov	r3, #0
	str	r3, [fp, #-20]
.L11:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L16
	ldr	r0, [fp, #-24]
	bl	free
.L16:
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L17
	ldr	r0, [fp, #-16]
	bl	close
.L17:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	run, .-run
	.align	2
	.global	slow
	.syntax unified
	.arm
	.fpu softvfp
	.type	slow, %function
slow:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L22
	bl	usleep
	nop
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	100000
	.size	slow, .-slow
	.section	.testinstr,"ax",%progbits
	.align	2
	.global	do_run
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_run, %function
do_run:
	@ 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]
	ldr	r0, [fp, #-8]
	bl	run
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	do_run, .-do_run
	.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
	beq	.L27
	mov	r3, #1
	b	.L28
.L27:
	bl	slow
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	do_run
	mov	r3, r0
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
