	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_sprd_calc_div
_sdhci_sprd_calc_div:                   ## @sdhci_sprd_calc_div
	.cfi_startproc
## %bb.0:
	addl	%esi, %esi
	xorl	%eax, %eax
	cmpl	%edi, %esi
	jge	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	cltd
	idivl	%esi
	movl	%eax, %ecx
	movl	%edi, %eax
	cltd
	idivl	%ecx
	xorl	%edx, %edx
	cmpl	%esi, %eax
	setg	%dl
	addl	%ecx, %edx
	movq	_SDHCI_SPRD_CLK_MAX_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	cmovgel	%eax, %edx
	movl	%edx, %ecx
	andl	$1, %ecx
	addl	%edx, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	popq	%rbp
LBB0_2:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_SPRD_CLK_MAX_DIV,4,2     ## @SDHCI_SPRD_CLK_MAX_DIV
	.no_dead_strip	_sdhci_sprd_calc_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_sprd_calc_div
_sdhci_sprd_calc_div:                   ; @sdhci_sprd_calc_div
	.cfi_startproc
; %bb.0:
	lsl	w8, w1, #1
	cmp	w8, w0
	b.ge	LBB0_2
; %bb.1:
	sdiv	w9, w0, w8
	sdiv	w10, w0, w9
	cmp	w10, w8
	cinc	w8, w9, gt
Lloh0:
	adrp	x9, _SDHCI_SPRD_CLK_MAX_DIV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDHCI_SPRD_CLK_MAX_DIV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	and	w9, w8, #0x1
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	ret
LBB0_2:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_SPRD_CLK_MAX_DIV,4,2     ; @SDHCI_SPRD_CLK_MAX_DIV
	.no_dead_strip	_sdhci_sprd_calc_div
.subsections_via_symbols
