	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_fpoll
_smu_fpoll:                             ## @smu_fpoll
	.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	(%rdi), %rbx
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %rax
	movq	_smu_file_commands@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movq	%rsi, %rdx
	leaq	24(%rbx), %rsi
	callq	_poll_wait
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.4:
	xorl	%r15d, %r15d
	cmpl	$1, 12(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_6
LBB0_3:
	xorl	%r15d, %r15d
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_smu_file_commands,8,3          ## @smu_file_commands
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_smu_file_events,8,3            ## @smu_file_events
	.no_dead_strip	_smu_fpoll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_fpoll
_smu_fpoll:                             ; @smu_fpoll
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	cbz	x20, LBB0_7
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _smu_file_commands@GOTPAGE
Lloh1:
	ldr	x9, [x9, _smu_file_commands@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x2, x1
	add	x1, x20, #24
	bl	_poll_wait
	add	x19, x20, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x20, #12]
Lloh3:
	adrp	x9, _EPOLLIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EPOLLIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #1
	csel	w20, wzr, w9, eq
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_7
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_smu_file_commands,8,3          ; @smu_file_commands
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_smu_file_events,8,3            ; @smu_file_events
	.no_dead_strip	_smu_fpoll
.subsections_via_symbols
