	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_finish_command
_sdhci_finish_command:                  ## @sdhci_finish_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_BUG_ON
	movq	(%rbx), %rcx
	movl	(%rcx), %eax
	movq	_MMC_RSP_PRESENT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_4
## %bb.1:
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rcx
	movq	_SDHCI_RESPONSE@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	addq	$12, %rsi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	shll	$8, %eax
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rsi
	addq	$11, %rsi
	movq	%rbx, %rdi
	callq	_sdhci_readb
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	orl	%eax, (%rcx)
	movq	(%r14), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	shll	$8, %eax
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r14), %rsi
	addq	$7, %rsi
	movq	%rbx, %rdi
	callq	_sdhci_readb
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	orl	%eax, 4(%rcx)
	movq	(%r14), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	shll	$8, %eax
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 8(%rcx)
	movq	(%r14), %rsi
	addq	$3, %rsi
	movq	%rbx, %rdi
	callq	_sdhci_readb
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	orl	%eax, 8(%rcx)
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	shll	$8, %eax
	movq	(%rbx), %rcx
	movq	8(%rcx), %rdx
	movl	%eax, 12(%rdx)
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movq	(%rbx), %rcx
	movq	8(%rcx), %rdx
	movl	%eax, (%rdx)
LBB0_4:
	movq	$0, 24(%rcx)
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.5:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_sdhci_finish_data
	movq	(%rbx), %rcx
LBB0_7:
	cmpl	$0, 16(%rcx)
	jne	LBB0_9
## %bb.8:
	leaq	8(%rbx), %rdi
	callq	_tasklet_schedule
LBB0_9:
	movq	$0, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_RSP_PRESENT,4,2            ## @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ## @MMC_RSP_136
	.comm	_SDHCI_RESPONSE,8,3             ## @SDHCI_RESPONSE
	.no_dead_strip	_sdhci_finish_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_finish_command
_sdhci_finish_command:                  ; @sdhci_finish_command
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x19]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _MMC_RSP_PRESENT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MMC_RSP_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _MMC_RSP_136@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_RSP_136@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x20, _SDHCI_RESPONSE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SDHCI_RESPONSE@GOTPAGEOFF]
	ldr	x1, [x20]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	add	x1, x1, #12
	mov	x0, x19
	bl	_sdhci_readl
	lsl	w8, w0, #8
	ldr	x9, [x19]
	ldr	x9, [x9, #8]
	str	w8, [x9]
	ldr	x8, [x20]
	add	x1, x8, #11
	mov	x0, x19
	bl	_sdhci_readb
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w9, [x8]
	orr	w9, w9, w0
	str	w9, [x8]
	ldr	x8, [x20]
	add	x1, x8, #8
	mov	x0, x19
	bl	_sdhci_readl
	lsl	w8, w0, #8
	ldr	x9, [x19]
	ldr	x9, [x9, #8]
	str	w8, [x9, #4]
	ldr	x8, [x20]
	add	x1, x8, #7
	mov	x0, x19
	bl	_sdhci_readb
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0
	str	w9, [x8, #4]
	ldr	x8, [x20]
	add	x1, x8, #4
	mov	x0, x19
	bl	_sdhci_readl
	lsl	w8, w0, #8
	ldr	x9, [x19]
	ldr	x9, [x9, #8]
	str	w8, [x9, #8]
	ldr	x8, [x20]
	add	x1, x8, #3
	mov	x0, x19
	bl	_sdhci_readb
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w9, [x8, #8]
	orr	w9, w9, w0
	str	w9, [x8, #8]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_sdhci_readl
	lsl	w9, w0, #8
	ldr	x8, [x19]
	ldr	x10, [x8, #8]
	str	w9, [x10, #12]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_sdhci_readl
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	str	w0, [x9]
LBB0_4:
	str	xzr, [x8, #24]
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_7
; %bb.5:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_sdhci_finish_data
	ldr	x8, [x19]
LBB0_7:
	ldr	w8, [x8, #16]
	cbnz	w8, LBB0_9
; %bb.8:
	add	x0, x19, #8
	bl	_tasklet_schedule
LBB0_9:
	str	xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_RSP_PRESENT,4,2            ; @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.comm	_SDHCI_RESPONSE,8,3             ; @SDHCI_RESPONSE
	.no_dead_strip	_sdhci_finish_command
.subsections_via_symbols
