	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xmmc_data_complete
_au1xmmc_data_complete:                 ## @au1xmmc_data_complete
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_HOST_S_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	_HOST_S_STOP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movq	32(%rdi), %r15
	setne	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_WARN_ON
	cmpq	$0, 32(%r14)
	je	LBB0_15
## %bb.1:
	movq	(%r15), %rax
	movq	(%rax), %r12
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_HOST_STATUS
	movl	%eax, %edi
	callq	___raw_readl
	movl	%eax, %ebx
LBB0_3:
	movq	_HOST_F_XMIT@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, 8(%r14)
	je	LBB0_7
## %bb.4:
	movq	_SD_STATUS_DB@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	andl	%ebx, %eax
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_HOST_STATUS
	movl	%eax, %edi
	callq	___raw_readl
	movl	%eax, %ebx
	movl	(%r13), %eax
	testl	%eax, 8(%r14)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	andl	(%r15), %eax
	jne	LBB0_5
LBB0_7:
	movl	$0, 16(%r12)
	movl	28(%r14), %edi
	callq	_mmc_dev
	movl	20(%r12), %edx
	movl	24(%r12), %esi
	movl	24(%r14), %ecx
	movl	%eax, %edi
	callq	_dma_unmap_sg
	movq	_SD_STATUS_WC@GOTPCREL(%rip), %rax
	movq	_SD_STATUS_RC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movl	%r15d, %eax
	andl	%ebx, %eax
	movl	(%r13), %ecx
	testl	%ecx, 8(%r14)
	setne	%cl
	andl	$7, %ebx
	cmpl	$2, %ebx
	setne	%dl
	andb	%cl, %dl
	movzbl	%dl, %ecx
	orl	%eax, %ecx
	je	LBB0_9
## %bb.8:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 16(%r12)
LBB0_9:
	movq	%r14, %rdi
	callq	_HOST_STATUS
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	___raw_writel
	movq	$0, 8(%r12)
	cmpl	$0, 16(%r12)
	jne	LBB0_14
## %bb.10:
	movq	_HOST_F_DMA@GOTPCREL(%rip), %rax
	movq	_HOST_F_DBDMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 8(%r14)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_DMA_CHANNEL
	cltq
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movslq	(%r12), %rcx
	movslq	4(%r12), %rax
	imulq	%rcx, %rax
	subq	16(%r14), %rax
LBB0_13:
	movq	%rax, 8(%r12)
LBB0_14:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_au1xmmc_finish_request         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_S_DATA,8,3                ## @HOST_S_DATA
	.comm	_HOST_S_STOP,8,3                ## @HOST_S_STOP
	.comm	_HOST_F_XMIT,4,2                ## @HOST_F_XMIT
	.comm	_SD_STATUS_DB,4,2               ## @SD_STATUS_DB
	.comm	_SD_STATUS_WC,4,2               ## @SD_STATUS_WC
	.comm	_SD_STATUS_RC,4,2               ## @SD_STATUS_RC
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_HOST_F_DMA,4,2                 ## @HOST_F_DMA
	.comm	_HOST_F_DBDMA,4,2               ## @HOST_F_DBDMA
	.no_dead_strip	_au1xmmc_data_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xmmc_data_complete
_au1xmmc_data_complete:                 ; @au1xmmc_data_complete
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #32]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HOST_S_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HOST_S_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _HOST_S_STOP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HOST_S_STOP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, ne
	bl	_WARN_ON
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
; %bb.1:
	ldr	x8, [x21]
	ldr	x22, [x8]
	cbnz	w20, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_HOST_STATUS
	bl	___raw_readl
	mov	x20, x0
LBB0_3:
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x23, _HOST_F_XMIT@GOTPAGE
Lloh7:
	ldr	x23, [x23, _HOST_F_XMIT@GOTPAGEOFF]
	ldr	w9, [x23]
	and	w8, w9, w8
Lloh8:
	adrp	x21, _SD_STATUS_DB@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SD_STATUS_DB@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w9, w9, w20
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_HOST_STATUS
	bl	___raw_readl
	ldr	w8, [x19, #8]
	ldr	w9, [x23]
	and	w8, w9, w8
	ldr	w9, [x21]
	and	w9, w9, w0
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_4
; %bb.5:
	mov	x20, x0
LBB0_6:
	str	wzr, [x22, #16]
	ldr	w0, [x19, #28]
	bl	_mmc_dev
	ldp	w2, w1, [x22, #20]
	ldr	w3, [x19, #24]
	bl	_dma_unmap_sg
Lloh10:
	adrp	x8, _SD_STATUS_WC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SD_STATUS_WC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _SD_STATUS_RC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SD_STATUS_RC@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w21, w9, w8
	and	w8, w21, w20
	ldr	w9, [x19, #8]
	ldr	w10, [x23]
	tst	w10, w9
	and	w9, w20, #0x7
	ccmp	w9, #2, #4, ne
	cset	w9, ne
	orr	w8, w8, w9
	cbz	w8, LBB0_8
; %bb.7:
Lloh16:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x22, #16]
LBB0_8:
	mov	x0, x19
	bl	_HOST_STATUS
	mov	x1, x0
	mov	x0, x21
	bl	___raw_writel
	str	xzr, [x22, #8]
	ldr	w8, [x22, #16]
	cbnz	w8, LBB0_14
; %bb.9:
	ldr	w8, [x19, #8]
Lloh19:
	adrp	x9, _HOST_F_DMA@GOTPAGE
Lloh20:
	ldr	x9, [x9, _HOST_F_DMA@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _HOST_F_DBDMA@GOTPAGE
Lloh23:
	ldr	x10, [x10, _HOST_F_DBDMA@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_DMA_CHANNEL
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	b	LBB0_13
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldpsw	x8, x9, [x22]
	ldr	x10, [x19, #16]
	neg	x10, x10
	madd	x8, x9, x8, x10
LBB0_13:
	str	x8, [x22, #8]
LBB0_14:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_au1xmmc_finish_request
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_S_DATA,8,3                ; @HOST_S_DATA
	.comm	_HOST_S_STOP,8,3                ; @HOST_S_STOP
	.comm	_HOST_F_XMIT,4,2                ; @HOST_F_XMIT
	.comm	_SD_STATUS_DB,4,2               ; @SD_STATUS_DB
	.comm	_SD_STATUS_WC,4,2               ; @SD_STATUS_WC
	.comm	_SD_STATUS_RC,4,2               ; @SD_STATUS_RC
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_HOST_F_DMA,4,2                 ; @HOST_F_DMA
	.comm	_HOST_F_DBDMA,4,2               ; @HOST_F_DBDMA
	.no_dead_strip	_au1xmmc_data_complete
.subsections_via_symbols
