	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_finish_data
_sdhci_finish_data:                     ## @sdhci_finish_data
	.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, %r14
	movq	16(%rdi), %rax
	movq	24(%rdi), %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdi)
	cmpq	$0, 32(%rbx)
	je	LBB0_5
## %bb.1:
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	cmpq	%rax, %rcx
	jne	LBB0_4
LBB0_3:
	movq	_SDHCI_RESET_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdhci_do_reset
LBB0_4:
	movq	_SDHCI_RESET_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdhci_do_reset
LBB0_5:
	movl	(%r14), %eax
	movq	_SDHCI_REQ_USE_DMA@GOTPCREL(%rip), %rcx
	movq	_SDHCI_USE_ADMA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%eax
	testl	%eax, %edx
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sdhci_adma_table_post
LBB0_7:
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.11:
	movl	$0, (%rbx)
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.12:
	movq	16(%rbx), %rax
LBB0_13:
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	movq	%rax, %rsi
	jmp	LBB0_15
LBB0_8:
	movl	8(%rbx), %eax
	imull	4(%rbx), %eax
	movl	%eax, (%rbx)
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movq	16(%rbx), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_13
LBB0_10:
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___sdhci_finish_mrq             ## TAILCALL
LBB0_16:
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sdhci_send_command             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_RESET_CMD,4,2            ## @SDHCI_RESET_CMD
	.comm	_SDHCI_RESET_DATA,4,2           ## @SDHCI_RESET_DATA
	.comm	_SDHCI_REQ_USE_DMA,4,2          ## @SDHCI_REQ_USE_DMA
	.comm	_SDHCI_USE_ADMA,4,2             ## @SDHCI_USE_ADMA
	.no_dead_strip	_sdhci_finish_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_finish_data
_sdhci_finish_data:                     ; @sdhci_finish_data
	.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
	ldp	x8, x20, [x0, #16]
	stp	xzr, xzr, [x0, #16]
	ldr	x9, [x20, #32]
	cbz	x9, LBB0_4
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	x9, #0
	ccmp	x9, x8, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _SDHCI_RESET_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_RESET_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdhci_do_reset
LBB0_3:
Lloh3:
	adrp	x8, _SDHCI_RESET_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDHCI_RESET_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdhci_do_reset
LBB0_4:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _SDHCI_REQ_USE_DMA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDHCI_REQ_USE_DMA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _SDHCI_USE_ADMA@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SDHCI_USE_ADMA@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bics	wzr, w9, w8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_sdhci_adma_table_post
LBB0_6:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_11
; %bb.7:
	str	wzr, [x20]
	ldr	x1, [x20, #24]
	cbz	x1, LBB0_13
; %bb.8:
	ldr	x8, [x20, #16]
LBB0_9:
	ldr	x9, [x8]
	cbz	x9, LBB0_15
; %bb.10:
	mov	x0, x19
	mov	x1, x8
	b	LBB0_14
LBB0_11:
	ldp	w8, w9, [x20, #4]
	mul	w8, w9, w8
	str	w8, [x20]
	ldr	x1, [x20, #24]
	cbz	x1, LBB0_13
; %bb.12:
	ldr	x8, [x20, #16]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_9
LBB0_13:
	ldr	x1, [x20, #16]
	mov	x0, x19
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___sdhci_finish_mrq
LBB0_15:
	str	xzr, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sdhci_send_command
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_RESET_CMD,4,2            ; @SDHCI_RESET_CMD
	.comm	_SDHCI_RESET_DATA,4,2           ; @SDHCI_RESET_DATA
	.comm	_SDHCI_REQ_USE_DMA,4,2          ; @SDHCI_REQ_USE_DMA
	.comm	_SDHCI_USE_ADMA,4,2             ; @SDHCI_USE_ADMA
	.no_dead_strip	_sdhci_finish_data
.subsections_via_symbols
