	.file	"314182.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/bin/sh"
	.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, 416
	mov	DWORD PTR -404[rbp], edi
	mov	QWORD PTR -416[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -384[rbp], 1
	mov	rax, QWORD PTR -416[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -376[rbp], rax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -368[rbp], rax
	mov	QWORD PTR -360[rbp], 0
	cmp	DWORD PTR -404[rbp], 1
	jle	.L2
	add	QWORD PTR -416[rbp], 8
	jmp	.L3
.L2:
	lea	rax, -368[rbp]
	mov	QWORD PTR -416[rbp], rax
.L3:
	lea	rax, -352[rbp]
	mov	rdi, rax
	call	posix_spawnattr_init@PLT
	mov	DWORD PTR -380[rbp], eax
	cmp	DWORD PTR -380[rbp], 0
	je	.L4
	call	__errno_location@PLT
	mov	edx, DWORD PTR -380[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, DWORD PTR -380[rbp]
	jmp	.L10
.L4:
	lea	rax, -352[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	posix_spawnattr_setflags@PLT
	mov	DWORD PTR -380[rbp], eax
	cmp	DWORD PTR -380[rbp], 0
	je	.L6
	call	__errno_location@PLT
	mov	edx, DWORD PTR -380[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, DWORD PTR -380[rbp]
	jmp	.L10
.L6:
	mov	rdi, QWORD PTR environ[rip]
	mov	rax, QWORD PTR -416[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rcx, QWORD PTR -416[rbp]
	lea	rdx, -352[rbp]
	lea	rax, -388[rbp]
	mov	r9, rdi
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 0
	mov	rdi, rax
	call	posix_spawn@PLT
	mov	DWORD PTR -380[rbp], eax
	cmp	DWORD PTR -380[rbp], 0
	je	.L7
	call	__errno_location@PLT
	mov	edx, DWORD PTR -380[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, DWORD PTR -380[rbp]
	jmp	.L10
.L7:
	mov	eax, DWORD PTR -388[rbp]
	lea	rcx, -384[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	cmp	eax, -1
	jne	.L8
	mov	eax, 1
	jmp	.L10
.L8:
	mov	eax, DWORD PTR -384[rbp]
	and	eax, 127
	test	eax, eax
	je	.L9
	mov	eax, 1
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -384[rbp]
	sar	eax, 8
	movzx	eax, al
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"314182.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/bin/sh\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 376
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #384
	str	r0, [fp, #-376]
	str	r1, [fp, #-380]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-364]
	ldr	r3, [fp, #-380]
	ldr	r3, [r3]
	str	r3, [fp, #-360]
	ldr	r3, .L12+4
	str	r3, [fp, #-352]
	mov	r3, #0
	str	r3, [fp, #-348]
	ldr	r3, [fp, #-376]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-380]
	add	r3, r3, #4
	str	r3, [fp, #-380]
	b	.L3
.L2:
	sub	r3, fp, #352
	str	r3, [fp, #-380]
.L3:
	sub	r3, fp, #344
	mov	r0, r3
	bl	posix_spawnattr_init
	str	r0, [fp, #-356]
	ldr	r3, [fp, #-356]
	cmp	r3, #0
	beq	.L4
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-356]
	str	r3, [r2]
	ldr	r0, [fp, #-360]
	bl	perror
	ldr	r3, [fp, #-356]
	b	.L10
.L4:
	sub	r3, fp, #344
	mov	r1, #256
	mov	r0, r3
	bl	posix_spawnattr_setflags
	str	r0, [fp, #-356]
	ldr	r3, [fp, #-356]
	cmp	r3, #0
	beq	.L6
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-356]
	str	r3, [r2]
	ldr	r0, [fp, #-360]
	bl	perror
	ldr	r3, [fp, #-356]
	b	.L10
.L6:
	ldr	r3, [fp, #-380]
	ldr	r1, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	sub	r2, fp, #344
	sub	r0, fp, #368
	str	r3, [sp, #4]
	ldr	r3, [fp, #-380]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #0
	bl	posix_spawn
	str	r0, [fp, #-356]
	ldr	r3, [fp, #-356]
	cmp	r3, #0
	beq	.L7
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-356]
	str	r3, [r2]
	ldr	r0, [fp, #-360]
	bl	perror
	ldr	r3, [fp, #-356]
	b	.L10
.L7:
	ldr	r3, [fp, #-368]
	sub	r1, fp, #364
	mov	r2, #0
	mov	r0, r3
	bl	waitpid
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	mov	r3, #1
	b	.L10
.L8:
	ldr	r3, [fp, #-364]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L9
	mov	r3, #1
	b	.L10
.L9:
	ldr	r3, [fp, #-364]
	asr	r3, r3, #8
	and	r3, r3, #255
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.word	environ
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
