	.file	"extr_fork.c_bench_fork.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fork"
.LC1:
	.string	"waitpid"
	.text
	.p2align 4
	.type	bench_fork, @function
bench_fork:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	lea	rbx, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	test	eax, eax
	jne	.L3
	cmp	QWORD PTR do_exec[rip], 0
	jne	.L9
.L4:
	xor	edi, edi
	call	_exit@PLT
.L3:
	xor	edx, edx
	xor	esi, esi
	mov	edi, ebp
	call	waitpid@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	add	DWORD PTR iterations[rip], 1
.L6:
	call	fork@PLT
	mov	ebp, eax
	cmp	eax, -1
	jne	.L2
	mov	rdi, rbx
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	xor	eax, eax
	call	run_exec@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	bench_fork, .-bench_fork
	.comm	iterations,4,4
	.comm	do_exec,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_fork.c_bench_fork.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fork\000"
	.align	2
.LC1:
	.ascii	"waitpid\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bench_fork, %function
bench_fork:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L13
	ldr	r5, .L13+4
	ldr	r8, .L13+8
	ldr	r7, .L13+12
	b	.L6
.L2:
	cmp	r0, #0
	bne	.L3
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L12
.L4:
	mov	r0, #0
	bl	_exit
.L3:
	mov	r2, #0
	mov	r0, r4
	mov	r1, r2
	bl	waitpid
	cmn	r0, #1
	bne	.L5
	mov	r0, r7
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [r5]
	add	r3, r3, #1
	str	r3, [r5]
.L6:
	bl	fork
	cmn	r0, #1
	mov	r4, r0
	bne	.L2
	mov	r0, r8
	bl	perror
	mov	r0, #1
	bl	exit
	b	.L3
.L12:
	bl	run_exec
	b	.L4
.L14:
	.align	2
.L13:
	.word	do_exec
	.word	iterations
	.word	.LC0
	.word	.LC1
	.size	bench_fork, .-bench_fork
	.comm	iterations,4,4
	.comm	do_exec,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
