	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_vdd_to_ocrbitnum
_mmc_vdd_to_ocrbitnum:                  ## @mmc_vdd_to_ocrbitnum
	.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
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_MMC_VDD_35_36@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ilog2
	leal	-3601(%rbx), %ecx
	cmpl	$-1952, %ecx                    ## imm = 0xF860
	ja	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_3:
	cmpl	$1950, %ebx                     ## imm = 0x79E
	ja	LBB0_4
## %bb.5:
	movq	_MMC_VDD_165_195@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ilog2                          ## TAILCALL
LBB0_4:
	cmpl	$1, %r14d
	adcl	$-1, %ebx
	addl	$-2000, %ebx                    ## imm = 0xF830
	movswl	%bx, %ecx
	imull	$5243, %ecx, %ecx               ## imm = 0x147B
	movl	%ecx, %edx
	sarl	$19, %edx
	shrl	$31, %ecx
	addl	%edx, %ecx
	addl	$8, %ecx
	movzwl	%cx, %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	movl	%ecx, %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_VDD_35_36,4,2              ## @MMC_VDD_35_36
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MMC_VDD_165_195,4,2            ## @MMC_VDD_165_195
	.no_dead_strip	_mmc_vdd_to_ocrbitnum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_vdd_to_ocrbitnum
_mmc_vdd_to_ocrbitnum:                  ; @mmc_vdd_to_ocrbitnum
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MMC_VDD_35_36@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_VDD_35_36@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ilog2
	sub	w8, w19, #3601
	cmn	w8, #1952
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	cmp	w19, #1950
	b.hi	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _MMC_VDD_165_195@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMC_VDD_165_195@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ilog2
LBB0_4:
	cmp	w20, #0
	cset	w8, ne
	sub	w8, w19, w8
	sub	w8, w8, #2000
	sxth	w8, w8
	mov	w9, #5243
	mul	w8, w8, w9
	asr	w9, w8, #19
	add	w8, w9, w8, lsr #31
	add	w8, w8, #8
	and	w8, w8, #0xffff
	cmp	w0, w8
	csel	w0, w0, w8, lt
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_VDD_35_36,4,2              ; @MMC_VDD_35_36
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MMC_VDD_165_195,4,2            ; @MMC_VDD_165_195
	.no_dead_strip	_mmc_vdd_to_ocrbitnum
.subsections_via_symbols
