	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipmi_poll
_ipmi_poll:                             ## @ipmi_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rdx
	movq	_read_q@GOTPCREL(%rip), %rsi
	callq	_poll_wait
	movq	_ipmi_read_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_data_to_read@GOTPCREL(%rip), %rax
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movq	_POLLRDNORM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	cmovnel	%edx, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_read_q,4,2                     ## @read_q
	.comm	_ipmi_read_lock,4,2             ## @ipmi_read_lock
	.comm	_data_to_read,8,3               ## @data_to_read
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.no_dead_strip	_ipmi_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipmi_poll
_ipmi_poll:                             ; @ipmi_poll
	.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
	mov	x2, x1
Lloh0:
	adrp	x1, _read_q@GOTPAGE
Lloh1:
	ldr	x1, [x1, _read_q@GOTPAGEOFF]
	bl	_poll_wait
Lloh2:
	adrp	x19, _ipmi_read_lock@GOTPAGE
Lloh3:
	ldr	x19, [x19, _ipmi_read_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock
Lloh4:
	adrp	x8, _data_to_read@GOTPAGE
Lloh5:
	ldr	x8, [x8, _data_to_read@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _POLLIN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _POLLRDNORM@GOTPAGE
Lloh11:
	ldr	x10, [x10, _POLLRDNORM@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	x8, #0
	csel	w20, wzr, w9, eq
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_read_q,4,2                     ; @read_q
	.comm	_ipmi_read_lock,4,2             ; @ipmi_read_lock
	.comm	_data_to_read,8,3               ; @data_to_read
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.no_dead_strip	_ipmi_poll
.subsections_via_symbols
