	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipmi_request_in_rc_mode
_ipmi_request_in_rc_mode:               ## @ipmi_request_in_rc_mode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_dummy_count@GOTPCREL(%rip), %rdi
	movl	$2, %esi
	callq	_atomic_set
	movq	_halt_recv_msg@GOTPCREL(%rip), %r12
	movq	_halt_smi_msg@GOTPCREL(%rip), %r9
	movl	%ebx, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%r12
	callq	_ipmi_request_supply_msgs
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	movl	%eax, %r14d
	movq	_dummy_count@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	jmp	LBB0_5
LBB0_1:
	movq	_dummy_count@GOTPCREL(%rip), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_4
## %bb.2:
	movq	_dummy_count@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_ipmi_poll_interface
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	%r14, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jg	LBB0_3
LBB0_4:
	movq	(%r12), %rax
	movl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dummy_count,4,2                ## @dummy_count
	.comm	_halt_smi_msg,4,2               ## @halt_smi_msg
	.comm	_halt_recv_msg,8,3              ## @halt_recv_msg
	.no_dead_strip	_ipmi_request_in_rc_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipmi_request_in_rc_mode
_ipmi_request_in_rc_mode:               ; @ipmi_request_in_rc_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _dummy_count@GOTPAGE
Lloh1:
	ldr	x0, [x0, _dummy_count@GOTPAGEOFF]
	mov	w1, #2
	bl	_atomic_set
Lloh2:
	adrp	x5, _halt_smi_msg@GOTPAGE
Lloh3:
	ldr	x5, [x5, _halt_smi_msg@GOTPAGEOFF]
Lloh4:
	adrp	x20, _halt_recv_msg@GOTPAGE
Lloh5:
	ldr	x20, [x20, _halt_recv_msg@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	x3, x21
	mov	x4, #0
	mov	x6, x20
	mov	w7, #0
	bl	_ipmi_request_supply_msgs
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh6:
	adrp	x0, _dummy_count@GOTPAGE
Lloh7:
	ldr	x0, [x0, _dummy_count@GOTPAGEOFF]
	mov	w1, #0
	bl	_atomic_set
	b	LBB0_6
LBB0_2:
Lloh8:
	adrp	x0, _dummy_count@GOTPAGE
Lloh9:
	ldr	x0, [x0, _dummy_count@GOTPAGEOFF]
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.3:
Lloh10:
	adrp	x21, _dummy_count@GOTPAGE
Lloh11:
	ldr	x21, [x21, _dummy_count@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ipmi_poll_interface
	bl	_cpu_relax
	mov	x0, x21
	bl	_atomic_read
	cmp	x0, #0
	b.gt	LBB0_4
LBB0_5:
	ldr	x8, [x20]
	ldr	w21, [x8]
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_dummy_count,4,2                ; @dummy_count
	.comm	_halt_smi_msg,4,2               ; @halt_smi_msg
	.comm	_halt_recv_msg,8,3              ; @halt_recv_msg
	.no_dead_strip	_ipmi_request_in_rc_mode
.subsections_via_symbols
