	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_request                  ## -- Begin function sdhci_request
	.p2align	4, 0x90
_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	%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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_mmc_priv
	movq	%rax, %r13
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r12d
	leaq	4(%r13), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r13, %rdi
	callq	_sdhci_led_activate
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_sdhci_auto_cmd12
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, 16(%r15)
	je	LBB0_3
## %bb.2:
	movq	24(%r15), %rax
	movq	$0, (%rax)
	movq	$0, 16(%r15)
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movl	(%r13), %eax
	movq	_SDHCI_DEVICE_DEAD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_5:
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	(%r15), %rax
	movl	%ecx, (%rax)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_sdhci_finish_mrq
	jmp	LBB0_10
LBB0_6:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	_SDHCI_AUTO_CMD23@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
LBB0_8:
	movq	(%r15), %rsi
LBB0_9:
	movq	%r13, %rdi
	callq	_sdhci_send_command
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_DEVICE_DEAD,4,2          ## @SDHCI_DEVICE_DEAD
	.comm	_ENOMEDIUM,4,2                  ## @ENOMEDIUM
	.comm	_SDHCI_AUTO_CMD23,4,2           ## @SDHCI_AUTO_CMD23
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_request                  ; -- Begin function sdhci_request
	.p2align	2
_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	x20, x1
	mov	x19, x0
	bl	_mmc_priv
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x22, x0
	add	x19, x21, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_sdhci_led_activate
	mov	x0, x21
	mov	x1, x20
	bl	_sdhci_auto_cmd12
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #24]
	str	xzr, [x8]
	str	xzr, [x20, #16]
LBB0_3:
	cbz	w22, LBB0_5
; %bb.4:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _SDHCI_DEVICE_DEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDHCI_DEVICE_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEDIUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEDIUM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w8, w8
	ldr	x9, [x20]
	str	w8, [x9]
	mov	x0, x21
	mov	x1, x20
	bl	_sdhci_finish_mrq
	b	LBB0_10
LBB0_6:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_8
; %bb.7:
Lloh6:
	adrp	x9, _SDHCI_AUTO_CMD23@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDHCI_AUTO_CMD23@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_8:
	ldr	x1, [x20]
LBB0_9:
	mov	x0, x21
	bl	_sdhci_send_command
LBB0_10:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_DEVICE_DEAD,4,2          ; @SDHCI_DEVICE_DEAD
	.comm	_ENOMEDIUM,4,2                  ; @ENOMEDIUM
	.comm	_SDHCI_AUTO_CMD23,4,2           ; @SDHCI_AUTO_CMD23
.subsections_via_symbols
