	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mci_set_cto
_dw_mci_set_cto:                        ## @dw_mci_set_cto
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_TMOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mci_readl
	movzbl	%al, %ebx
	movq	_CLKDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mci_readl
	movzbl	%al, %eax
	addl	%eax, %eax
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	movq	_MSEC_PER_SEC@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	imull	%ecx, %ebx
	movl	12(%r15), %esi
	movl	%ebx, %edi
	callq	_DIV_ROUND_UP_ULL
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_EVENT_CMD_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	addl	$10, %r14d
	leaq	4(%r15), %r12
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r14d, %edi
	callq	_msecs_to_jiffies
	leaq	(%rbx,%rax), %rsi
	incq	%rsi
	movq	%r12, %rdi
	callq	_mod_timer
LBB0_2:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TMOUT,4,2                      ## @TMOUT
	.comm	_CLKDIV,4,2                     ## @CLKDIV
	.comm	_MSEC_PER_SEC,8,3               ## @MSEC_PER_SEC
	.comm	_EVENT_CMD_COMPLETE,4,2         ## @EVENT_CMD_COMPLETE
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_dw_mci_set_cto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mci_set_cto
_dw_mci_set_cto:                        ; @dw_mci_set_cto
	.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, x0
Lloh0:
	adrp	x8, _TMOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TMOUT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mci_readl
	and	w20, w0, #0xff
Lloh3:
	adrp	x8, _CLKDIV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLKDIV@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mci_readl
	mov	w8, #510
	ands	w8, w8, w0, lsl #1
	csinc	w8, w8, wzr, ne
Lloh6:
	adrp	x9, _MSEC_PER_SEC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSEC_PER_SEC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w9, w20, w9
	mul	w0, w9, w8
	ldr	w1, [x19, #12]
	bl	_DIV_ROUND_UP_ULL
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh9:
	adrp	x8, _EVENT_CMD_COMPLETE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVENT_CMD_COMPLETE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbnz	w0, LBB0_2
; %bb.1:
	add	w0, w20, #10
	add	x20, x19, #4
Lloh12:
	adrp	x8, _jiffies@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
	bl	_msecs_to_jiffies
	add	x8, x21, x0
	add	x1, x8, #1
	mov	x0, x20
	bl	_mod_timer
LBB0_2:
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TMOUT,4,2                      ; @TMOUT
	.comm	_CLKDIV,4,2                     ; @CLKDIV
	.comm	_MSEC_PER_SEC,8,3               ; @MSEC_PER_SEC
	.comm	_EVENT_CMD_COMPLETE,4,2         ; @EVENT_CMD_COMPLETE
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_dw_mci_set_cto
.subsections_via_symbols
