	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_request
_sdhci_request:                         ## @sdhci_request
	.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	%rsi, %r15
	movq	%rdi, %r12
	callq	_mmc_priv
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	setne	%dil
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_sdhci_activate_led
	movq	%r15, 16(%rbx)
	movq	_SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_SDHCI_PRESENT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movq	_SDHCI_CARD_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_2:
	movq	_SDHCI_DEVICE_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_4
LBB0_3:
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	%ecx, (%rax)
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_tasklet_schedule
	jmp	LBB0_8
LBB0_4:
	movq	_SDHCI_PRESENT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movq	_SDHCI_NEEDS_RETUNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_7
## %bb.5:
	movq	_SDHCI_DOING_WRITE@GOTPCREL(%rip), %rcx
	movq	_SDHCI_DOING_READ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	callq	_sdhci_execute_tuning
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, 16(%rbx)
LBB0_7:
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_sdhci_send_command
LBB0_8:
	xorl	%eax, %eax
	callq	_mmiowb
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,2 ## @SDHCI_QUIRK_BROKEN_CARD_DETECTION
	.comm	_SDHCI_PRESENT_STATE,4,2        ## @SDHCI_PRESENT_STATE
	.comm	_SDHCI_CARD_PRESENT,4,2         ## @SDHCI_CARD_PRESENT
	.comm	_SDHCI_DEVICE_DEAD,4,2          ## @SDHCI_DEVICE_DEAD
	.comm	_ENOMEDIUM,4,2                  ## @ENOMEDIUM
	.comm	_SDHCI_NEEDS_RETUNING,4,2       ## @SDHCI_NEEDS_RETUNING
	.comm	_SDHCI_DOING_WRITE,4,2          ## @SDHCI_DOING_WRITE
	.comm	_SDHCI_DOING_READ,4,2           ## @SDHCI_DOING_READ
	.no_dead_strip	_sdhci_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_request
_sdhci_request:                         ; @sdhci_request
	.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	x21, x1
	mov	x22, x0
	bl	_mmc_priv
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	mov	x0, x20
	bl	_sdhci_activate_led
	str	x21, [x20, #16]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SDHCI_PRESENT_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDHCI_PRESENT_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdhci_readl
Lloh6:
	adrp	x8, _SDHCI_CARD_PRESENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_CARD_PRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
LBB0_2:
	ldr	w8, [x20, #4]
Lloh9:
	adrp	x9, _SDHCI_DEVICE_DEAD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDHCI_DEVICE_DEAD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEDIUM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEDIUM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w8, w8
	ldr	x9, [x20, #16]
	ldr	x9, [x9]
	str	w8, [x9]
	add	x0, x20, #24
	bl	_tasklet_schedule
	b	LBB0_8
LBB0_4:
Lloh15:
	adrp	x8, _SDHCI_PRESENT_STATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDHCI_PRESENT_STATE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdhci_readl
	ldr	w8, [x20, #4]
Lloh18:
	adrp	x9, _SDHCI_NEEDS_RETUNING@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SDHCI_NEEDS_RETUNING@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh21:
	adrp	x8, _SDHCI_DOING_WRITE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SDHCI_DOING_WRITE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _SDHCI_DOING_READ@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SDHCI_DOING_READ@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	bl	_sdhci_execute_tuning
	mov	x0, x19
	bl	_spin_lock_irqsave
	str	x21, [x20, #16]
LBB0_7:
	ldr	x1, [x21]
	mov	x0, x20
	bl	_sdhci_send_command
LBB0_8:
	bl	_mmiowb
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,2 ; @SDHCI_QUIRK_BROKEN_CARD_DETECTION
	.comm	_SDHCI_PRESENT_STATE,4,2        ; @SDHCI_PRESENT_STATE
	.comm	_SDHCI_CARD_PRESENT,4,2         ; @SDHCI_CARD_PRESENT
	.comm	_SDHCI_DEVICE_DEAD,4,2          ; @SDHCI_DEVICE_DEAD
	.comm	_ENOMEDIUM,4,2                  ; @ENOMEDIUM
	.comm	_SDHCI_NEEDS_RETUNING,4,2       ; @SDHCI_NEEDS_RETUNING
	.comm	_SDHCI_DOING_WRITE,4,2          ; @SDHCI_DOING_WRITE
	.comm	_SDHCI_DOING_READ,4,2           ; @SDHCI_DOING_READ
	.no_dead_strip	_sdhci_request
.subsections_via_symbols
