	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aspeed_smc_read_user
_aspeed_smc_read_user:                  ## @aspeed_smc_read_user
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movl	$255, -44(%rbp)
	callq	_aspeed_smc_start_user
	movl	(%r12), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_aspeed_smc_send_cmd_addr
	cmpl	$8, 4(%rbx)
	jl	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_aspeed_smc_write_to_ahb
	incl	%r15d
	movl	4(%rbx), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	cmpl	%ecx, %r15d
	jl	LBB0_2
LBB0_3:
	movl	(%rbx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_aspeed_smc_read_from_ahb
	movq	%r12, %rdi
	callq	_aspeed_smc_stop_user
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_aspeed_smc_read_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aspeed_smc_read_user
_aspeed_smc_read_user:                  ; @aspeed_smc_read_user
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	mov	w8, #255
	str	w8, [sp, #12]
	bl	_aspeed_smc_start_user
	ldr	w1, [x20]
	mov	x0, x20
	mov	x2, x22
	bl	_aspeed_smc_send_cmd_addr
	ldr	w8, [x23, #4]
	cmp	w8, #8
	b.lt	LBB0_3
; %bb.1:
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	add	x1, sp, #12
	mov	w2, #4
	bl	_aspeed_smc_write_to_ahb
	add	w22, w22, #1
	ldr	w8, [x23, #4]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w22, w8, asr #3
	b.lt	LBB0_2
LBB0_3:
	ldr	w1, [x23]
	mov	x0, x21
	mov	x2, x19
	bl	_aspeed_smc_read_from_ahb
	mov	x0, x20
	bl	_aspeed_smc_stop_user
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_aspeed_smc_read_user
.subsections_via_symbols
