	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipmi_set_timeout
_ipmi_set_timeout:                      ## @ipmi_set_timeout
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_set_timeout_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_set_timeout_tofree@GOTPCREL(%rip), %rdi
	movl	$2, %esi
	callq	_atomic_set
	movq	_set_timeout_smi_msg@GOTPCREL(%rip), %rdi
	movq	_set_timeout_recv_msg@GOTPCREL(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_i_ipmi_set_timeout
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	_set_timeout_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	jmp	LBB0_6
LBB0_2:
	movq	_set_timeout_wait@GOTPCREL(%rip), %rdi
	callq	_wait_for_completion
	movq	_set_timeout_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_IPMI_SET_TIMEOUT_FORCE_HB@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	cmpl	$0, -20(%rbp)
	je	LBB0_6
## %bb.4:
	movq	_IPMI_SET_TIMEOUT_HB_IF_NECESSARY@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_ipmi_heartbeat
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_set_timeout_lock,4,2           ## @set_timeout_lock
	.comm	_set_timeout_tofree,4,2         ## @set_timeout_tofree
	.comm	_set_timeout_smi_msg,4,2        ## @set_timeout_smi_msg
	.comm	_set_timeout_recv_msg,4,2       ## @set_timeout_recv_msg
	.comm	_set_timeout_wait,4,2           ## @set_timeout_wait
	.comm	_IPMI_SET_TIMEOUT_FORCE_HB,4,2  ## @IPMI_SET_TIMEOUT_FORCE_HB
	.comm	_IPMI_SET_TIMEOUT_HB_IF_NECESSARY,4,2 ## @IPMI_SET_TIMEOUT_HB_IF_NECESSARY
	.no_dead_strip	_ipmi_set_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipmi_set_timeout
_ipmi_set_timeout:                      ; @ipmi_set_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _set_timeout_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _set_timeout_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x0, _set_timeout_tofree@GOTPAGE
Lloh3:
	ldr	x0, [x0, _set_timeout_tofree@GOTPAGEOFF]
	mov	w1, #2
	bl	_atomic_set
Lloh4:
	adrp	x0, _set_timeout_smi_msg@GOTPAGE
Lloh5:
	ldr	x0, [x0, _set_timeout_smi_msg@GOTPAGEOFF]
Lloh6:
	adrp	x1, _set_timeout_recv_msg@GOTPAGE
Lloh7:
	ldr	x1, [x1, _set_timeout_recv_msg@GOTPAGEOFF]
	add	x2, sp, #12
	bl	_i_ipmi_set_timeout
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh8:
	adrp	x0, _set_timeout_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _set_timeout_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	b	LBB0_6
LBB0_2:
Lloh10:
	adrp	x0, _set_timeout_wait@GOTPAGE
Lloh11:
	ldr	x0, [x0, _set_timeout_wait@GOTPAGEOFF]
	bl	_wait_for_completion
Lloh12:
	adrp	x0, _set_timeout_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _set_timeout_lock@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh14:
	adrp	x8, _IPMI_SET_TIMEOUT_FORCE_HB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IPMI_SET_TIMEOUT_FORCE_HB@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_5
; %bb.3:
	mov	w20, #0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.4:
Lloh17:
	adrp	x8, _IPMI_SET_TIMEOUT_HB_IF_NECESSARY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IPMI_SET_TIMEOUT_HB_IF_NECESSARY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_6
LBB0_5:
	bl	_ipmi_heartbeat
	mov	x20, x0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_set_timeout_lock,4,2           ; @set_timeout_lock
	.comm	_set_timeout_tofree,4,2         ; @set_timeout_tofree
	.comm	_set_timeout_smi_msg,4,2        ; @set_timeout_smi_msg
	.comm	_set_timeout_recv_msg,4,2       ; @set_timeout_recv_msg
	.comm	_set_timeout_wait,4,2           ; @set_timeout_wait
	.comm	_IPMI_SET_TIMEOUT_FORCE_HB,4,2  ; @IPMI_SET_TIMEOUT_FORCE_HB
	.comm	_IPMI_SET_TIMEOUT_HB_IF_NECESSARY,4,2 ; @IPMI_SET_TIMEOUT_HB_IF_NECESSARY
	.no_dead_strip	_ipmi_set_timeout
.subsections_via_symbols
