	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_s3c_get_min_clock
_sdhci_s3c_get_min_clock:               ## @sdhci_s3c_get_min_clock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_to_s3c
	movq	%rax, %rcx
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MAX_BUS_CLK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_7
## %bb.1:
	movq	(%rcx), %r10
	cmpl	$1, %r8d
	jne	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rsi,4), %edx
	leal	255(%rdx), %edi
	testl	%edx, %edx
	cmovnsl	%edx, %edi
	sarl	$8, %edi
	movslq	%edi, %rdi
	addl	$-256, %edx
	cmpq	%rdi, %rax
	cmovbeq	%rax, %rdi
	movl	4(%r10,%rsi,4), %ecx
	cmpl	$-511, %edx                     ## imm = 0xFE01
	cmovaeq	%rax, %rdi
	leal	255(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$8, %eax
	cltq
	addl	$-256, %ecx
	cmpq	%rax, %rdi
	cmovbeq	%rdi, %rax
	cmpl	$-511, %ecx                     ## imm = 0xFE01
	cmovaeq	%rdi, %rax
	addq	$2, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_4
LBB0_5:
	testb	$1, %r8b
	je	LBB0_7
## %bb.6:
	movl	(%r10,%rsi,4), %ecx
	leal	255(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$8, %edx
	movslq	%edx, %rdx
	addl	$-256, %ecx
	cmpq	%rdx, %rax
	cmovbeq	%rax, %rdx
	cmpl	$-511, %ecx                     ## imm = 0xFE01
	cmovbq	%rdx, %rax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
	.comm	_MAX_BUS_CLK,4,2                ## @MAX_BUS_CLK
	.no_dead_strip	_sdhci_s3c_get_min_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_s3c_get_min_clock
_sdhci_s3c_get_min_clock:               ; @sdhci_s3c_get_min_clock
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_to_s3c
	mov	x8, x0
Lloh0:
	adrp	x9, _ULONG_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ULONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
Lloh3:
	adrp	x9, _MAX_BUS_CLK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_BUS_CLK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x8]
	mov	w10, #-511
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	add	w12, w11, #255
	cmp	w11, #0
	csel	w12, w12, w11, lt
	sbfx	x12, x12, #8, #24
	sub	w11, w11, #256
	cmp	x0, x12
	ccmp	w11, w10, #2, hi
	csel	x0, x12, x0, lo
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
	.comm	_MAX_BUS_CLK,4,2                ; @MAX_BUS_CLK
	.no_dead_strip	_sdhci_s3c_get_min_clock
.subsections_via_symbols
