	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si_send_msg_to_smc             ## -- Begin function si_send_msg_to_smc
	.p2align	4, 0x90
_si_send_msg_to_smc:                    ## @si_send_msg_to_smc
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_si_is_smc_running
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_SMC_MESSAGE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_WREG32
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	movq	_SMC_RESP_0@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_RREG32
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_4
LBB0_6:
	movq	_SMC_RESP_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	jmp	LBB0_7
LBB0_1:
	movq	_PPSMC_Result_Failed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_Result_Failed,4,2        ## @PPSMC_Result_Failed
	.comm	_SMC_MESSAGE_0,4,2              ## @SMC_MESSAGE_0
	.comm	_SMC_RESP_0,4,2                 ## @SMC_RESP_0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si_send_msg_to_smc             ; -- Begin function si_send_msg_to_smc
	.p2align	2
_si_send_msg_to_smc:                    ; @si_send_msg_to_smc
	.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	x20, x1
	mov	x19, x0
	bl	_si_is_smc_running
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _SMC_MESSAGE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMC_MESSAGE_0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_WREG32
	ldr	w8, [x19]
Lloh3:
	adrp	x20, _SMC_RESP_0@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SMC_RESP_0@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_RREG32
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_3
LBB0_5:
	ldr	w0, [x20]
	bl	_RREG32
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _PPSMC_Result_Failed@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PPSMC_Result_Failed@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_Result_Failed,4,2        ; @PPSMC_Result_Failed
	.comm	_SMC_MESSAGE_0,4,2              ; @SMC_MESSAGE_0
	.comm	_SMC_RESP_0,4,2                 ; @SMC_RESP_0
.subsections_via_symbols
