	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_afu_poll                       ## -- Begin function afu_poll
	.p2align	4, 0x90
_afu_poll:                              ## @afu_poll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdx
	movq	(%rdi), %rbx
	leaq	16(%rbx), %rsi
	callq	_poll_wait
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_devel
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_ctx_event_pending
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %rax
	movq	_CLOSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	8(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_pr_devel
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"afu_poll wait done pe: %i\n"

	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.comm	_CLOSED,8,3                     ## @CLOSED
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
L_.str.1:                               ## @.str.1
	.asciz	"afu_poll pe: %i returning %#x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_afu_poll                       ; -- Begin function afu_poll
	.p2align	2
_afu_poll:                              ; @afu_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x2, x1
	ldr	x19, [x0]
	add	x1, x19, #16
	bl	_poll_wait
	ldr	w1, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_devel
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_ctx_event_pending
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EPOLLIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPOLLIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _EPOLLRDNORM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EPOLLRDNORM@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w21, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _CLOSED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CLOSED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _EPOLLERR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _EPOLLERR@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w21, w10, wzr, eq
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w1, [x19, #8]
	str	x21, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_devel
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"afu_poll wait done pe: %i\n"

	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.comm	_CLOSED,8,3                     ; @CLOSED
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
l_.str.1:                               ; @.str.1
	.asciz	"afu_poll pe: %i returning %#x\n"

.subsections_via_symbols
