	.file	"643107.c"
	.intel_syntax noprefix
	.text
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 200
buf:
	.zero	200
	.section	.rodata
.LC0:
	.string	"creat(%s, 0) = %d\r\n"
.LC1:
	.string	"Hello!\r\n"
	.text
	.globl	otest
	.type	otest, @function
otest:
.LFB0:
	.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	creat@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -4[rbp], 0
	js	.L4
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 8
	lea	rsi, .LC1[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	jmp	.L3
.L4:
	nop
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	otest, .-otest
	.section	.rodata
.LC2:
	.string	"CON:"
.LC3:
	.string	"CON"
.LC4:
	.string	"FOO"
.LC5:
	.string	"/DEV/CON:"
.LC6:
	.string	"/DEV/CON"
.LC7:
	.string	"/dev/con"
.LC8:
	.string	"Environment:\r\n"
.LC9:
	.string	" %d: '%s'\r\n"
.LC10:
	.string	"About to execute '%s':\r\n"
.LC11:
	.string	"About to execute system(0)\r\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	otest
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	otest
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	otest
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	otest
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	otest
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	otest
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	DWORD PTR -12[rbp], 0
.L8:
	mov	eax, DWORD PTR -12[rbp]
	lea	rsi, buf[rip]
	mov	edi, eax
	mov	eax, 0
	call	_genv@PLT
	movzx	eax, BYTE PTR buf[rip]
	test	al, al
	je	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -12[rbp]
	lea	rcx, buf[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -12[rbp], 1
	jmp	.L8
.L15:
	nop
	cmp	DWORD PTR -20[rbp], 1
	jle	.L9
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L10
.L9:
	mov	QWORD PTR -8[rbp], 0
.L10:
	cmp	QWORD PTR -8[rbp], 0
	je	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L12
.L11:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
.L12:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	system@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"643107.c"
	.text
	.comm	buf,200,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"creat(%s, 0) = %d\015\012\000"
	.align	2
.LC1:
	.ascii	"Hello!\015\012\000"
	.text
	.align	2
	.global	otest
	.syntax unified
	.arm
	.fpu softvfp
	.type	otest, %function
otest:
	@ 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	r1, #0
	ldr	r0, [fp, #-16]
	bl	creat
	str	r0, [fp, #-8]
	ldr	r3, .L5
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r1, .L5+4
	bl	fprintf
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L4
	mov	r2, #8
	ldr	r1, .L5+8
	ldr	r0, [fp, #-8]
	bl	write
	ldr	r0, [fp, #-8]
	bl	close
	b	.L3
.L4:
	nop
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	otest, .-otest
	.section	.rodata
	.align	2
.LC2:
	.ascii	"CON:\000"
	.align	2
.LC3:
	.ascii	"CON\000"
	.align	2
.LC4:
	.ascii	"FOO\000"
	.align	2
.LC5:
	.ascii	"/DEV/CON:\000"
	.align	2
.LC6:
	.ascii	"/DEV/CON\000"
	.align	2
.LC7:
	.ascii	"/dev/con\000"
	.align	2
.LC8:
	.ascii	"Environment:\015\012\000"
	.align	2
.LC9:
	.ascii	" %d: '%s'\015\012\000"
	.align	2
.LC10:
	.ascii	"About to execute '%s':\015\012\000"
	.align	2
.LC11:
	.ascii	"About to execute system(0)\015\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r0, .L18
	bl	otest
	ldr	r0, .L18+4
	bl	otest
	ldr	r0, .L18+8
	bl	otest
	ldr	r0, .L18+12
	bl	otest
	ldr	r0, .L18+16
	bl	otest
	ldr	r0, .L18+20
	bl	otest
	ldr	r3, .L18+24
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L18+28
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-8]
.L10:
	ldr	r1, .L18+32
	ldr	r0, [fp, #-8]
	bl	_genv
	ldr	r3, .L18+32
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L18+24
	ldr	r0, [r3]
	ldr	r3, .L18+32
	ldr	r2, [fp, #-8]
	ldr	r1, .L18+36
	bl	fprintf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L10
.L17:
	nop
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L11
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	b	.L12
.L11:
	mov	r3, #0
	str	r3, [fp, #-12]
.L12:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L18+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L18+40
	mov	r0, r3
	bl	fprintf
	b	.L14
.L13:
	ldr	r3, .L18+24
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L18+44
	bl	fwrite
.L14:
	ldr	r0, [fp, #-12]
	bl	system
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	stderr
	.word	.LC8
	.word	buf
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
