	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aspeed_smc_send_cmd_addr
_aspeed_smc_send_cmd_addr:              ## @aspeed_smc_send_cmd_addr
	.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	%edx, %r14d
	movl	%esi, %ebx
	movl	%esi, -32(%rbp)
	movq	8(%rdi), %r15
	movl	(%rdi), %edx
	cmpl	$3, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$4, %edx
	jne	LBB0_2
## %bb.4:
	movl	%r14d, %edi
	callq	_cpu_to_be32
	movl	%eax, -28(%rbp)
	movl	(%r15), %edi
	leaq	-32(%rbp), %rsi
	movl	$1, %edx
	callq	_aspeed_smc_write_to_ahb
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN_ONCE
LBB0_3:
	andl	$16777215, %r14d                ## imm = 0xFFFFFF
	shll	$24, %ebx
	orl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movl	%eax, -28(%rbp)
LBB0_5:
	movl	(%r15), %edi
	leaq	-28(%rbp), %rsi
	movl	$4, %edx
	callq	_aspeed_smc_write_to_ahb
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected address width %u, defaulting to 3\n"

	.no_dead_strip	_aspeed_smc_send_cmd_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aspeed_smc_send_cmd_addr
_aspeed_smc_send_cmd_addr:              ; @aspeed_smc_send_cmd_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	str	w1, [sp, #12]
	ldr	x21, [x0, #8]
	ldr	w2, [x0]
	cmp	w2, #3
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #4
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_cpu_to_be32
	str	w0, [sp, #8]
	ldr	w0, [x21]
	add	x1, sp, #12
	mov	w2, #1
	bl	_aspeed_smc_write_to_ahb
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
LBB0_4:
	bfi	w19, w20, #24, #8
	mov	x0, x19
	bl	_cpu_to_be32
	str	w0, [sp, #8]
LBB0_5:
	ldr	w0, [x21]
	add	x1, sp, #8
	mov	w2, #4
	bl	_aspeed_smc_write_to_ahb
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected address width %u, defaulting to 3\n"

	.no_dead_strip	_aspeed_smc_send_cmd_addr
.subsections_via_symbols
