	.file	"extr_ebb_on_willing_child_test.c_ebb_on_willing_child.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cycles"
	.text
	.p2align 4
	.globl	ebb_on_willing_child
	.type	ebb_on_willing_child, @function
ebb_on_willing_child:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	ebb_is_supported@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	SKIP_IF@PLT
	xor	edi, edi
	call	pipe@PLT
	xor	edi, edi
	cmp	eax, -1
	sete	dil
	call	FAIL_IF@PLT
	xor	edi, edi
	call	pipe@PLT
	xor	edi, edi
	cmp	eax, -1
	sete	dil
	call	FAIL_IF@PLT
	xor	eax, eax
	call	fork@PLT
	mov	r12, rax
	test	rax, rax
	je	.L6
.L2:
	xor	edi, edi
	lea	rbp, 12[rsp]
	mov	esi, edi
	call	sync_with_child@PLT
	mov	edi, eax
	call	FAIL_IF@PLT
	lea	rdx, .LC0[rip]
	mov	esi, 65566
	mov	rdi, rbp
	call	event_init_named@PLT
	mov	rdi, rbp
	call	event_leader_ebb_init@PLT
	mov	rsi, r12
	mov	rdi, rbp
	movabs	rax, 4294967297
	mov	QWORD PTR 12[rsp], rax
	mov	DWORD PTR 20[rsp], 1
	call	event_open_with_pid@PLT
	mov	edi, eax
	call	FAIL_IF@PLT
	mov	rdi, rbp
	call	ebb_event_enable@PLT
	mov	edi, eax
	call	FAIL_IF@PLT
	mov	rdi, r12
	call	wait_for_child@PLT
	mov	edi, eax
	call	FAIL_IF@PLT
	mov	rdi, rbp
	call	event_close@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	edi, edi
	mov	esi, edi
	call	victim_child@PLT
	mov	edi, eax
	call	exit@PLT
	jmp	.L2
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ebb_on_willing_child, .-ebb_on_willing_child
	.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_ebb_on_willing_child_test.c_ebb_on_willing_child.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cycles\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ebb_on_willing_child
	.syntax unified
	.arm
	.fpu softvfp
	.type	ebb_on_willing_child, %function
ebb_on_willing_child:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L8
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	ebb_is_supported
	clz	r0, r0
	lsr	r0, r0, #5
	bl	SKIP_IF
	mov	r0, #0
	bl	pipe
	cmn	r0, #1
	movne	r0, #0
	moveq	r0, #1
	bl	FAIL_IF
	mov	r0, #0
	bl	pipe
	cmn	r0, #1
	movne	r0, #0
	moveq	r0, #1
	bl	FAIL_IF
	bl	fork
	subs	r4, r0, #0
	beq	.L6
.L2:
	mov	r1, #0
	mov	r0, r1
	bl	sync_with_child
	bl	FAIL_IF
	ldr	r2, .L8+4
	ldr	r1, .L8+8
	mov	r0, sp
	bl	event_init_named
	mov	r0, sp
	bl	event_leader_ebb_init
	mov	r3, #1
	mov	r1, r4
	mov	r0, sp
	str	r3, [sp]
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	bl	event_open_with_pid
	bl	FAIL_IF
	mov	r0, sp
	bl	ebb_event_enable
	bl	FAIL_IF
	mov	r0, r4
	bl	wait_for_child
	bl	FAIL_IF
	mov	r0, sp
	bl	event_close
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L6:
	mov	r1, #0
	mov	r0, r1
	bl	victim_child
	bl	exit
	b	.L2
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	.LC0
	.word	65566
	.size	ebb_on_willing_child, .-ebb_on_willing_child
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
