	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu7_send_msg_to_smc_offset    ## -- Begin function smu7_send_msg_to_smc_offset
	.p2align	4, 0x90
_smu7_send_msg_to_smc_offset:           ## @smu7_send_msg_to_smc_offset
	.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
	movl	(%rdi), %edi
	movq	_mmSMC_MSG_ARG_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$131072, %edx                   ## imm = 0x20000
	callq	_cgs_write_register
	movl	(%rbx), %edi
	movq	_mmSMC_MESSAGE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PPSMC_MSG_Test@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_cgs_write_register
	movq	_SMC_RESP_0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_SMC_RESP@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_PHM_WAIT_FIELD_UNEQUAL
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	callq	_PHM_READ_FIELD
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmSMC_MSG_ARG_0,4,2            ## @mmSMC_MSG_ARG_0
	.comm	_mmSMC_MESSAGE_0,4,2            ## @mmSMC_MESSAGE_0
	.comm	_PPSMC_MSG_Test,4,2             ## @PPSMC_MSG_Test
	.comm	_SMC_RESP_0,4,2                 ## @SMC_RESP_0
	.comm	_SMC_RESP,4,2                   ## @SMC_RESP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to send Message.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu7_send_msg_to_smc_offset    ; -- Begin function smu7_send_msg_to_smc_offset
	.p2align	2
_smu7_send_msg_to_smc_offset:           ; @smu7_send_msg_to_smc_offset
	.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	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _mmSMC_MSG_ARG_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmSMC_MSG_ARG_0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #131072
	bl	_cgs_write_register
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _mmSMC_MESSAGE_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmSMC_MESSAGE_0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _PPSMC_MSG_Test@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPSMC_MSG_Test@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_cgs_write_register
Lloh9:
	adrp	x20, _SMC_RESP_0@GOTPAGE
Lloh10:
	ldr	x20, [x20, _SMC_RESP_0@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh11:
	adrp	x21, _SMC_RESP@GOTPAGE
Lloh12:
	ldr	x21, [x21, _SMC_RESP@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #0
	bl	_PHM_WAIT_FIELD_UNEQUAL
	ldr	w0, [x19]
	ldr	w1, [x20]
	ldr	w2, [x21]
	bl	_PHM_READ_FIELD
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_2:
	mov	w0, #0
	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	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_mmSMC_MSG_ARG_0,4,2            ; @mmSMC_MSG_ARG_0
	.comm	_mmSMC_MESSAGE_0,4,2            ; @mmSMC_MESSAGE_0
	.comm	_PPSMC_MSG_Test,4,2             ; @PPSMC_MSG_Test
	.comm	_SMC_RESP_0,4,2                 ; @SMC_RESP_0
	.comm	_SMC_RESP,4,2                   ; @SMC_RESP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to send Message.\n"

.subsections_via_symbols
