	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mci_exynos_adjust_clock
_dw_mci_exynos_adjust_clock:            ## @dw_mci_exynos_adjust_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
	testl	%esi, %esi
	je	LBB0_9
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	24(%rdi), %r13
	movl	16(%rdi), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movq	_EXYNOS_CCLKIN_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	cmoval	%eax, %ebx
	cmpl	(%r13), %ebx
	je	LBB0_9
## %bb.3:
	movq	%r14, %rdi
	callq	_dw_mci_exynos_get_ciu_div
	movl	%eax, %r15d
	movl	16(%r14), %edi
	movl	%eax, %r12d
	imull	%ebx, %r12d
	movl	%r12d, %esi
	callq	_clk_set_rate
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	20(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dev_warn
LBB0_5:
	movl	16(%r14), %edi
	callq	_clk_get_rate
	movl	%r15d, %ecx
	movq	%rax, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_8
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	movq	%rax, (%r14)
	movl	%ebx, (%r13)
	movq	$0, 8(%r14)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXYNOS_CCLKIN_MIN,4,2          ## @EXYNOS_CCLKIN_MIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set clk-rate %u error: %d\n"

	.no_dead_strip	_dw_mci_exynos_adjust_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mci_exynos_adjust_clock
_dw_mci_exynos_adjust_clock:            ; @dw_mci_exynos_adjust_clock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	w1, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #24]
	ldr	w0, [x0, #16]
	bl	_IS_ERR
	cbnz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _EXYNOS_CCLKIN_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXYNOS_CCLKIN_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	csel	w23, w8, w20, hi
	ldr	w8, [x22]
	cmp	w23, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_dw_mci_exynos_get_ciu_div
	mov	x20, x0
	ldr	w0, [x19, #16]
	mul	w21, w20, w23
	mov	x1, x21
	bl	_clk_set_rate
	cbz	w0, LBB0_5
; %bb.4:
	mov	x3, x0
	ldr	w0, [x19, #20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
LBB0_5:
	ldr	w0, [x19, #16]
	bl	_clk_get_rate
	mov	w8, w20
	str	w23, [x22]
	udiv	x8, x0, x8
	stp	x8, xzr, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EXYNOS_CCLKIN_MIN,4,2          ; @EXYNOS_CCLKIN_MIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set clk-rate %u error: %d\n"

	.no_dead_strip	_dw_mci_exynos_adjust_clock
.subsections_via_symbols
