	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_omap_calc_divisor
_mmc_omap_calc_divisor:                 ## @mmc_omap_calc_divisor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_clk_get_rate
	movl	(%r14), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	%eax, %ecx
	cltd
	idivl	%esi
	cmpl	$2, %eax
	movl	$1, %edi
	cmovgel	%eax, %edi
	movl	%ecx, %eax
	cltd
	idivl	%edi
	xorl	%edx, %edx
	cmpl	%esi, %eax
	setg	%dl
	addl	%edi, %edx
	cmpl	$250, %edx
	movl	$250, %esi
	cmovll	%edx, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, (%rbx)
	movq	8(%r14), %rcx
	movq	_MMC_BUS_WIDTH_4@GOTPCREL(%rip), %rdx
	movl	%esi, %eax
	orl	$32768, %eax                    ## imm = 0x8000
	cmpq	(%rdx), %rcx
	cmovnel	%esi, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_BUS_WIDTH_4,8,3            ## @MMC_BUS_WIDTH_4
	.no_dead_strip	_mmc_omap_calc_divisor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_omap_calc_divisor
_mmc_omap_calc_divisor:                 ; @mmc_omap_calc_divisor
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_mmc_priv
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_clk_get_rate
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	sdiv	w9, w0, w8
	cmp	w9, #1
	csinc	w9, w9, wzr, gt
	sdiv	w10, w0, w9
	cmp	w10, w8
	cinc	w8, w9, gt
	mov	w9, #250
	cmp	w8, #250
	csel	w8, w8, w9, lt
	sdiv	w9, w0, w8
	str	w9, [x20]
	ldr	x9, [x19, #8]
Lloh0:
	adrp	x10, _MMC_BUS_WIDTH_4@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MMC_BUS_WIDTH_4@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	orr	w11, w8, #0x8000
	cmp	x9, x10
	csel	w0, w11, w8, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_BUS_WIDTH_4,8,3            ; @MMC_BUS_WIDTH_4
	.no_dead_strip	_mmc_omap_calc_divisor
.subsections_via_symbols
