	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_spi_psc_calc
_mv_spi_psc_calc:                       ## @mv_spi_psc_calc
	.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, %r15
	movq	%rsi, %rbx
	movl	%edi, %r12d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_get_tclk_armada38x
	movl	%eax, %ecx
	movl	$2, (%rbx)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, (%r15)
	movl	%ecx, %eax
	cltd
	idivl	(%rbx)
	cmpl	%r12d, %eax
	jle	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, (%r15)
	movl	(%rbx), %esi
	addl	%esi, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cmpl	%r12d, %eax
	jle	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$2, (%r15)
	movl	(%rbx), %esi
	shll	$2, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cmpl	%r12d, %eax
	jle	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$3, (%r15)
	movl	(%rbx), %esi
	shll	$3, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cmpl	%r12d, %eax
	jle	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$4, (%r15)
	movl	(%rbx), %esi
	shll	$4, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cmpl	%r12d, %eax
	jle	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$5, (%r15)
	movl	(%rbx), %esi
	shll	$5, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cmpl	%r12d, %eax
	jle	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$6, (%r15)
	movl	(%rbx), %esi
	shll	$6, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cmpl	%r12d, %eax
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$7, (%r15)
	movl	(%rbx), %esi
	shll	$7, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cmpl	%r12d, %eax
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$8, (%r15)
	movl	(%rbx), %eax
	leal	1(%rax), %edx
	movl	%edx, (%rbx)
	cmpl	$15, %eax
	jl	LBB0_1
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mv_spi_psc_calc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_spi_psc_calc
_mv_spi_psc_calc:                       ; @mv_spi_psc_calc
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_get_tclk_armada38x
	mov	w8, #2
	str	w8, [x20]
	mov	w9, #1
	mov	w10, #3
	mov	w11, #4
	mov	w12, #5
	mov	w13, #6
	mov	w14, #7
	mov	w15, #8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x19]
	ldr	w16, [x20]
	sdiv	w16, w0, w16
	cmp	w16, w21
	b.le	LBB0_11
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w9, [x19]
	ldr	w16, [x20]
	lsl	w16, w16, #1
	sdiv	w16, w0, w16
	cmp	w16, w21
	b.le	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w8, [x19]
	ldr	w16, [x20]
	lsl	w16, w16, #2
	sdiv	w16, w0, w16
	cmp	w16, w21
	b.le	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w10, [x19]
	ldr	w16, [x20]
	lsl	w16, w16, #3
	sdiv	w16, w0, w16
	cmp	w16, w21
	b.le	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w11, [x19]
	ldr	w16, [x20]
	lsl	w16, w16, #4
	sdiv	w16, w0, w16
	cmp	w16, w21
	b.le	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w12, [x19]
	ldr	w16, [x20]
	lsl	w16, w16, #5
	sdiv	w16, w0, w16
	cmp	w16, w21
	b.le	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w13, [x19]
	ldr	w16, [x20]
	lsl	w16, w16, #6
	sdiv	w16, w0, w16
	cmp	w16, w21
	b.le	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w14, [x19]
	ldr	w16, [x20]
	lsl	w16, w16, #7
	sdiv	w16, w0, w16
	cmp	w16, w21
	b.le	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w15, [x19]
	ldr	w16, [x20]
	add	w17, w16, #1
	str	w17, [x20]
	cmp	w16, #15
	b.lt	LBB0_1
; %bb.10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mv_spi_psc_calc
.subsections_via_symbols
