	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xmmc_cmd_complete
_au1xmmc_cmd_complete:                  ## @au1xmmc_cmd_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
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	(%rax), %r14
	movl	$0, 16(%r14)
	movl	(%r14), %eax
	movq	_MMC_RSP_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rcx
	movq	16(%rbx), %rdi
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_SD_RESP3@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	___raw_readl
	movq	%rax, %r15
	movq	_SD_RESP2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	___raw_readl
	movq	%rax, %r12
	movq	_SD_RESP1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	___raw_readl
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %r13
	movq	_SD_RESP0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	___raw_readl
	movq	8(%r14), %rcx
	shldl	$8, %r12d, %r15d
	movl	%r15d, (%rcx)
	shldl	$8, %r13d, %r12d
	shldl	$8, %eax, %r13d
	movl	%r12d, 4(%rcx)
	movl	%r13d, 8(%rcx)
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	shll	$8, %eax
	movl	%eax, 12(%rcx)
	jmp	LBB0_5
LBB0_4:
	movq	_SD_RESP0@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	___raw_readl
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
LBB0_5:
	movq	_SD_STATUS_SC@GOTPCREL(%rip), %rax
	movq	_SD_STATUS_WC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SD_STATUS_RC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r13d, %ecx
	je	LBB0_7
## %bb.6:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 16(%r14)
LBB0_7:
	movl	(%rbx), %eax
	movq	_HOST_F_XMIT@GOTPCREL(%rip), %rcx
	movq	_HOST_F_RECV@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_15
## %bb.8:
	cmpl	$0, 16(%r14)
	je	LBB0_9
LBB0_15:
	movq	_SD_CONFIG_TH@GOTPCREL(%rip), %rax
	movq	_SD_CONFIG_RA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_SD_CONFIG_RF@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_IRQ_OFF
	addq	$8, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tasklet_schedule               ## TAILCALL
LBB0_9:
	movq	_HOST_S_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	_HOST_F_DMA@GOTPCREL(%rip), %rcx
	movq	_HOST_F_DBDMA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_14
## %bb.10:
	movq	%rbx, %rdi
	callq	_DMA_CHANNEL
	movl	%eax, %r15d
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_13
## %bb.11:
	movq	_SD_STATUS_DB@GOTPCREL(%rip), %rax
	movq	_SD_STATUS_NE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	notl	%r13d
	testl	%r13d, %r14d
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_HOST_STATUS
	movq	%rax, %rdi
	callq	___raw_readl
	notl	%eax
	testl	%eax, %r14d
	jne	LBB0_12
LBB0_13:
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_au1xxx_dbdma_start             ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_SD_RESP3,8,3                   ## @SD_RESP3
	.comm	_SD_RESP2,8,3                   ## @SD_RESP2
	.comm	_SD_RESP1,8,3                   ## @SD_RESP1
	.comm	_SD_RESP0,8,3                   ## @SD_RESP0
	.comm	_SD_STATUS_SC,4,2               ## @SD_STATUS_SC
	.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_XMIT,4,2                ## @HOST_F_XMIT
	.comm	_HOST_F_RECV,4,2                ## @HOST_F_RECV
	.comm	_SD_CONFIG_TH,4,2               ## @SD_CONFIG_TH
	.comm	_SD_CONFIG_RA,4,2               ## @SD_CONFIG_RA
	.comm	_SD_CONFIG_RF,4,2               ## @SD_CONFIG_RF
	.comm	_HOST_S_DATA,4,2                ## @HOST_S_DATA
	.comm	_HOST_F_DMA,4,2                 ## @HOST_F_DMA
	.comm	_HOST_F_DBDMA,4,2               ## @HOST_F_DBDMA
	.comm	_SD_STATUS_DB,4,2               ## @SD_STATUS_DB
	.comm	_SD_STATUS_NE,4,2               ## @SD_STATUS_NE
	.no_dead_strip	_au1xmmc_cmd_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xmmc_cmd_complete
_au1xmmc_cmd_complete:                  ; @au1xmmc_cmd_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
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_15
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x8]
	str	wzr, [x24, #16]
	ldr	w8, [x24]
Lloh0:
	adrp	x9, _MMC_RSP_PRESENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_RSP_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, _MMC_RSP_136@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_RSP_136@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x9]
	ldr	x9, [x19, #16]
	tst	w10, w8
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _SD_RESP3@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SD_RESP3@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, x9
	bl	___raw_readl
	mov	x21, x0
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _SD_RESP2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SD_RESP2@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	___raw_readl
	mov	x22, x0
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x9, _SD_RESP1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SD_RESP1@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	___raw_readl
	mov	x23, x0
	ldr	x8, [x19, #16]
Lloh15:
	adrp	x9, _SD_RESP0@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SD_RESP0@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	___raw_readl
	ldr	x8, [x24, #8]
	extr	w9, w21, w22, #24
	extr	w10, w22, w23, #24
	stp	w9, w10, [x8]
	extr	w9, w23, w0, #24
	lsl	w10, w0, #8
	stp	w9, w10, [x8, #8]
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _SD_RESP0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SD_RESP0@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x0, x8, x9
	bl	___raw_readl
	ldr	x8, [x24, #8]
	str	w0, [x8]
LBB0_5:
Lloh21:
	adrp	x8, _SD_STATUS_SC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SD_STATUS_SC@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _SD_STATUS_WC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SD_STATUS_WC@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _SD_STATUS_RC@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SD_STATUS_RC@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
Lloh30:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x24, #16]
LBB0_7:
	ldr	w8, [x19]
Lloh33:
	adrp	x9, _HOST_F_XMIT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _HOST_F_XMIT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	adrp	x22, _HOST_F_RECV@GOTPAGE
Lloh37:
	ldr	x22, [x22, _HOST_F_RECV@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w9, [x24, #16]
	cbz	w9, LBB0_10
LBB0_9:
Lloh38:
	adrp	x8, _SD_CONFIG_TH@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SD_CONFIG_TH@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _SD_CONFIG_RA@GOTPAGE
Lloh42:
	ldr	x9, [x9, _SD_CONFIG_RA@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh44:
	adrp	x9, _SD_CONFIG_RF@GOTPAGE
Lloh45:
	ldr	x9, [x9, _SD_CONFIG_RF@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_IRQ_OFF
	add	x0, x19, #8
	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	_tasklet_schedule
LBB0_10:
Lloh47:
	adrp	x9, _HOST_S_DATA@GOTPAGE
Lloh48:
	ldr	x9, [x9, _HOST_S_DATA@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	str	w9, [x19, #4]
Lloh50:
	adrp	x9, _HOST_F_DMA@GOTPAGE
Lloh51:
	ldr	x9, [x9, _HOST_F_DMA@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
Lloh53:
	adrp	x10, _HOST_F_DBDMA@GOTPAGE
Lloh54:
	ldr	x10, [x10, _HOST_F_DBDMA@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:
	mov	x0, x19
	bl	_DMA_CHANNEL
	mov	x21, x0
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
Lloh56:
	adrp	x8, _SD_STATUS_DB@GOTPAGE
Lloh57:
	ldr	x8, [x8, _SD_STATUS_DB@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _SD_STATUS_NE@GOTPAGE
Lloh60:
	ldr	x9, [x9, _SD_STATUS_NE@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w22, w9, w8
	bics	wzr, w22, w20
	b.eq	LBB0_14
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_HOST_STATUS
	bl	___raw_readl
	bics	wzr, w22, w0
	b.ne	LBB0_13
LBB0_14:
	mov	x0, x21
	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	_au1xxx_dbdma_start
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_RSP_PRESENT,4,2            ; @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.comm	_SD_RESP3,8,3                   ; @SD_RESP3
	.comm	_SD_RESP2,8,3                   ; @SD_RESP2
	.comm	_SD_RESP1,8,3                   ; @SD_RESP1
	.comm	_SD_RESP0,8,3                   ; @SD_RESP0
	.comm	_SD_STATUS_SC,4,2               ; @SD_STATUS_SC
	.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_XMIT,4,2                ; @HOST_F_XMIT
	.comm	_HOST_F_RECV,4,2                ; @HOST_F_RECV
	.comm	_SD_CONFIG_TH,4,2               ; @SD_CONFIG_TH
	.comm	_SD_CONFIG_RA,4,2               ; @SD_CONFIG_RA
	.comm	_SD_CONFIG_RF,4,2               ; @SD_CONFIG_RF
	.comm	_HOST_S_DATA,4,2                ; @HOST_S_DATA
	.comm	_HOST_F_DMA,4,2                 ; @HOST_F_DMA
	.comm	_HOST_F_DBDMA,4,2               ; @HOST_F_DBDMA
	.comm	_SD_STATUS_DB,4,2               ; @SD_STATUS_DB
	.comm	_SD_STATUS_NE,4,2               ; @SD_STATUS_NE
	.no_dead_strip	_au1xmmc_cmd_complete
.subsections_via_symbols
