	.file	"1250236.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 36
	mov	eax, 0
	call	prctl@PLT
	call	fork@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], -1
	je	.L2
	cmp	DWORD PTR -148[rbp], 0
	je	.L3
	jmp	.L4
.L2:
	mov	eax, 255
	jmp	.L9
.L3:
	mov	rax, QWORD PTR -176[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	edi, 127
	call	_exit@PLT
.L4:
	lea	rcx, -152[rbp]
	mov	eax, DWORD PTR -148[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 127
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L4
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
.L7:
	lea	rax, -144[rbp]
	mov	ecx, 15
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	waitid@PLT
	cmp	eax, -1
	jne	.L8
	mov	eax, DWORD PTR -152[rbp]
	sar	eax, 8
	movzx	eax, al
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"1250236.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #36
	bl	prctl
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	beq	.L2
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L3
	b	.L4
.L2:
	mov	r3, #255
	b	.L9
.L3:
	ldr	r3, [fp, #-156]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-156]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	execvp
	mov	r0, #127
	bl	_exit
.L4:
	sub	r3, fp, #144
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-140]
	bl	waitpid
	ldr	r3, [fp, #-144]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-144]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L4
	b	.L7
.L8:
	ldr	r3, [fp, #-124]
	mov	r1, #9
	mov	r0, r3
	bl	kill
.L7:
	sub	r2, fp, #136
	mov	r3, #15
	mov	r1, #0
	mov	r0, #0
	bl	waitid
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r3, [fp, #-144]
	asr	r3, r3, #8
	and	r3, r3, #255
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
