	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_s3c_consider_clock
_sdhci_s3c_consider_clock:              ## @sdhci_s3c_consider_clock
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	24(%rdi), %rax
	movl	%esi, %r13d
	movq	(%rax,%r13,8), %rbx
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_10
LBB0_2:
	cmpq	$0, 16(%r12)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_clk_round_rate
	subl	%eax, %r15d
	jmp	LBB0_10
LBB0_4:
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	%r15d, %r9d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rcx
	movq	%rax, %rbx
	shrq	%cl, %rbx
	incq	%rdx
	cmpq	$8, %rcx
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r9, %rbx
	ja	LBB0_5
LBB0_7:
	decl	%edx
	movq	8(%r12), %rdi
	cmpl	$9, %edx
	jb	LBB0_9
## %bb.8:
	movq	%rax, %r8
	shrq	$8, %r8
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movq	%rax, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_dev_dbg
	jmp	LBB0_1
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movq	%rax, %rcx
	movl	%r15d, %r8d
	movq	%rbx, %r9
	callq	_dev_dbg
	subl	%ebx, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clk %d: rate %ld, min rate %lu > wanted %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"clk %d: rate %ld, want %d, got %ld\n"

	.no_dead_strip	_sdhci_s3c_consider_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_consider_clock
_sdhci_s3c_consider_clock:              ; @sdhci_s3c_consider_clock
	.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
	ldr	x8, [x0, #24]
	ldr	x22, [x8, w1, uxtw #3]
	mov	x0, x22
	bl	_IS_ERR
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_2:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x22
	mov	x1, x19
	bl	_clk_round_rate
	sub	w0, w19, w0
	b	LBB0_10
LBB0_4:
	mov	w9, w20
	ldr	x10, [x21]
	ldr	x3, [x10, x9, lsl #3]
	mov	w5, w19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	lsr	x22, x3, x8
	add	x8, x8, #1
	cmp	x9, #8
	b.hi	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x22, x5
	b.hi	LBB0_5
LBB0_7:
	sub	w8, w8, #1
	ldr	x0, [x21, #8]
	cmp	w8, #9
	b.lo	LBB0_9
; %bb.8:
	lsr	x4, x3, #8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_dev_dbg
	b	LBB0_1
LBB0_9:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x4, x19
	mov	x5, x22
	bl	_dev_dbg
	sub	w0, w19, w22
LBB0_10:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clk %d: rate %ld, min rate %lu > wanted %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"clk %d: rate %ld, want %d, got %ld\n"

	.no_dead_strip	_sdhci_s3c_consider_clock
.subsections_via_symbols
