	.file	"extr_kevent_qos.c_workloop_cb_test_sync_send_kevent_reply.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"workloop handler workloop_cb_test_sync_send_kevent_reply called"
	.align 8
.LC1:
	.string	"kevent_qos test requires root privileges to run."
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"events received"
.LC3:
	.string	"received EVFILT_MACHPORT"
.LC4:
	.string	"Handler returning \n"
	.text
	.p2align 4
	.type	workloop_cb_test_sync_send_kevent_reply, @function
workloop_cb_test_sync_send_kevent_reply:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	T_LOG@PLT
	xor	eax, eax
	call	geteuid@PLT
	test	rax, rax
	jne	.L8
.L2:
	mov	edi, DWORD PTR [rbx]
	lea	rdx, .LC2[rip]
	mov	esi, 1
	call	T_ASSERT_EQ_INT@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR EVFILT_MACHPORT[rip]
	lea	rdx, .LC3[rip]
	mov	edi, DWORD PTR [rax]
	call	T_ASSERT_EQ_INT@PLT
	mov	r13, QWORD PTR 0[rbp]
	mov	rdi, r13
	call	get_reply_port@PLT
	mov	esi, DWORD PTR 4[r13]
	mov	rdi, r12
	mov	ebp, eax
	call	enable_kevent@PLT
	mov	edi, ebp
	call	send_reply@PLT
	mov	DWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, .LC4[rip]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	T_LOG@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	T_SKIP@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	workloop_cb_test_sync_send_kevent_reply, .-workloop_cb_test_sync_send_kevent_reply
	.comm	T_QUIET,4,4
	.comm	EVFILT_MACHPORT,4,4
	.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_kevent_qos.c_workloop_cb_test_sync_send_kevent_reply.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"workloop handler workloop_cb_test_sync_send_kevent_"
	.ascii	"reply called\000"
	.align	2
.LC1:
	.ascii	"kevent_qos test requires root privileges to run.\000"
	.align	2
.LC2:
	.ascii	"events received\000"
	.align	2
.LC3:
	.ascii	"received EVFILT_MACHPORT\000"
	.align	2
.LC4:
	.ascii	"Handler returning \012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	workloop_cb_test_sync_send_kevent_reply, %function
workloop_cb_test_sync_send_kevent_reply:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	ldr	r0, .L9
	mov	r5, r1
	mov	r4, r2
	bl	T_LOG
	bl	geteuid
	cmp	r0, #0
	bne	.L8
.L2:
	mov	r1, #1
	ldr	r2, .L9+4
	ldr	r0, [r4]
	bl	T_ASSERT_EQ_INT
	ldr	r3, [r5]
	ldr	r2, .L9+8
	ldr	r0, [r3]
	ldr	r1, [r2]
	ldr	r2, .L9+12
	bl	T_ASSERT_EQ_INT
	ldr	r5, [r5]
	mov	r0, r5
	bl	get_reply_port
	ldr	r1, [r5, #4]
	mov	r5, r0
	mov	r0, r6
	bl	enable_kevent
	mov	r0, r5
	bl	send_reply
	mov	r3, #0
	ldr	r0, .L9+16
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	T_LOG
.L8:
	ldr	r0, .L9+20
	bl	T_SKIP
	b	.L2
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC2
	.word	EVFILT_MACHPORT
	.word	.LC3
	.word	.LC4
	.word	.LC1
	.size	workloop_cb_test_sync_send_kevent_reply, .-workloop_cb_test_sync_send_kevent_reply
	.comm	T_QUIET,4,4
	.comm	EVFILT_MACHPORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
