	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_set_timeout
_sdhci_set_timeout:                     ## @sdhci_set_timeout
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movl	$0, -28(%rbp)
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sdhci_calc_timeout
	movl	%eax, %r14d
	cmpl	$0, -28(%rbp)
	je	LBB0_4
## %bb.2:
	movq	_SDHCI_QUIRK2_DISABLE_HW_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sdhci_calc_sw_timeout
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_4:
	movq	_SDHCI_INT_DATA_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_7
## %bb.5:
	movl	$1, %esi
LBB0_6:
	movq	%rbx, %rdi
	callq	_sdhci_set_data_timeout_irq
LBB0_7:
	movq	_SDHCI_TIMEOUT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sdhci_writeb
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_QUIRK2_DISABLE_HW_TIMEOUT,4,2 ## @SDHCI_QUIRK2_DISABLE_HW_TIMEOUT
	.comm	_SDHCI_INT_DATA_TIMEOUT,4,2     ## @SDHCI_INT_DATA_TIMEOUT
	.comm	_SDHCI_TIMEOUT_CONTROL,4,2      ## @SDHCI_TIMEOUT_CONTROL
	.no_dead_strip	_sdhci_set_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_set_timeout
_sdhci_set_timeout:                     ; @sdhci_set_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x2, [x8]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	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
	add	sp, sp, #64
	br	x2
LBB0_2:
	str	wzr, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_sdhci_calc_timeout
	mov	x20, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SDHCI_QUIRK2_DISABLE_HW_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDHCI_QUIRK2_DISABLE_HW_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_sdhci_calc_sw_timeout
	mov	w1, #0
	b	LBB0_7
LBB0_5:
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _SDHCI_INT_DATA_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDHCI_INT_DATA_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.6:
	mov	w1, #1
LBB0_7:
	mov	x0, x19
	bl	_sdhci_set_data_timeout_irq
LBB0_8:
Lloh6:
	adrp	x8, _SDHCI_TIMEOUT_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_TIMEOUT_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_sdhci_writeb
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_QUIRK2_DISABLE_HW_TIMEOUT,4,2 ; @SDHCI_QUIRK2_DISABLE_HW_TIMEOUT
	.comm	_SDHCI_INT_DATA_TIMEOUT,4,2     ; @SDHCI_INT_DATA_TIMEOUT
	.comm	_SDHCI_TIMEOUT_CONTROL,4,2      ; @SDHCI_TIMEOUT_CONTROL
	.no_dead_strip	_sdhci_set_timeout
.subsections_via_symbols
