	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xmmc_send_command
_au1xmmc_send_command:                  ## @au1xmmc_send_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	%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	%rcx, %r13
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdx), %r15d
	movq	_SD_CMD_CI_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	%rdx, %rdi
	callq	_mmc_resp_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_SD_CMD_RT_3@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	%r12, %rdi
	callq	_mmc_resp_type
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_30
LBB0_4:
	movq	_SD_CMD_RT_2@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_SD_CMD_RT_1B@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_SD_CMD_RT_1@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %r15d
LBB0_8:
	testq	%r13, %r13
	je	LBB0_12
## %bb.9:
	movl	(%r13), %eax
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.10:
	cmpl	$2, 4(%r13)
	jl	LBB0_16
## %bb.11:
	movq	_SD_CMD_CT_4@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.14:
	cmpl	$2, 4(%r13)
	movl	%ebx, %r13d
	jl	LBB0_19
## %bb.15:
	movq	_SD_CMD_CT_3@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_16:
	movq	_SD_CMD_CT_2@GOTPCREL(%rip), %rax
LBB0_17:
	orl	(%rax), %r15d
LBB0_12:
	movl	%ebx, %r13d
LBB0_21:
	movl	4(%r12), %ebx
	movq	%r14, %rdi
	callq	_HOST_CMDARG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	callq	_wmb
	testl	%r13d, %r13d
	je	LBB0_23
## %bb.22:
	movq	_SD_CONFIG_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IRQ_OFF
LBB0_23:
	movq	_SD_CMD_GO@GOTPCREL(%rip), %rbx
	orl	(%rbx), %r15d
	movq	%r14, %rdi
	callq	_HOST_CMD
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	callq	_wmb
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_HOST_CMD
	movl	%eax, %edi
	callq	___raw_readl
	testl	%eax, (%rbx)
	jne	LBB0_24
## %bb.25:
	xorl	%r15d, %r15d
	testl	%r13d, %r13d
	je	LBB0_30
## %bb.26:
	movq	%r14, %rdi
	callq	_HOST_STATUS
	movl	%eax, %edi
	callq	___raw_readl
	movq	_SD_STATUS_CR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ebx
	movq	%r14, %rdi
	testl	%eax, %ebx
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	callq	_HOST_STATUS
	movl	%eax, %edi
	callq	___raw_readl
	jmp	LBB0_27
LBB0_29:
	callq	_HOST_STATUS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___raw_writel
	movq	_SD_CONFIG_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IRQ_ON
LBB0_30:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_SD_CMD_CT_1@GOTPCREL(%rip), %rax
LBB0_20:
	orl	(%rax), %r15d
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_SD_CMD_CI_SHIFT,4,2            ## @SD_CMD_CI_SHIFT
	.comm	_SD_CMD_RT_1,4,2                ## @SD_CMD_RT_1
	.comm	_SD_CMD_RT_1B,4,2               ## @SD_CMD_RT_1B
	.comm	_SD_CMD_RT_2,4,2                ## @SD_CMD_RT_2
	.comm	_SD_CMD_RT_3,4,2                ## @SD_CMD_RT_3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"au1xmmc: unhandled response type %02x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.comm	_SD_CMD_CT_4,4,2                ## @SD_CMD_CT_4
	.comm	_SD_CMD_CT_2,4,2                ## @SD_CMD_CT_2
	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
	.comm	_SD_CMD_CT_3,4,2                ## @SD_CMD_CT_3
	.comm	_SD_CMD_CT_1,4,2                ## @SD_CMD_CT_1
	.comm	_SD_CONFIG_CR,4,2               ## @SD_CONFIG_CR
	.comm	_SD_CMD_GO,4,2                  ## @SD_CMD_GO
	.comm	_SD_STATUS_CR,4,2               ## @SD_STATUS_CR
	.no_dead_strip	_au1xmmc_send_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xmmc_send_command
_au1xmmc_send_command:                  ; @au1xmmc_send_command
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w23, [x2]
Lloh0:
	adrp	x8, _SD_CMD_CI_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_CMD_CI_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x0, x2
	bl	_mmc_resp_type
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	lsl	w23, w23, w24
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _SD_CMD_RT_3@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SD_CMD_RT_3@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	mov	x0, x21
	bl	_mmc_resp_type
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_28
LBB0_4:
Lloh12:
	adrp	x8, _SD_CMD_RT_2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SD_CMD_RT_2@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh14:
	adrp	x8, _SD_CMD_RT_1B@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SD_CMD_RT_1B@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _SD_CMD_RT_1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SD_CMD_RT_1@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_8:
	cbz	x22, LBB0_18
; %bb.9:
	ldr	w8, [x22]
Lloh18:
	adrp	x9, _MMC_DATA_READ@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MMC_DATA_READ@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	ldr	w8, [x22, #4]
	cmp	w8, #2
	b.lt	LBB0_15
; %bb.11:
Lloh21:
	adrp	x8, _SD_CMD_CT_4@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SD_CMD_CT_4@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
Lloh23:
	adrp	x9, _MMC_DATA_WRITE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MMC_DATA_WRITE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.13:
	ldr	w8, [x22, #4]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.14:
Lloh26:
	adrp	x8, _SD_CMD_CT_3@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SD_CMD_CT_3@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh28:
	adrp	x8, _SD_CMD_CT_2@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SD_CMD_CT_2@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh30:
	adrp	x8, _SD_CMD_CT_1@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SD_CMD_CT_1@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_18:
	ldr	w21, [x21, #4]
	mov	x0, x19
	bl	_HOST_CMDARG
	mov	x1, x0
	mov	x0, x21
	bl	___raw_writel
	bl	_wmb
Lloh32:
	adrp	x22, _SD_CONFIG_CR@GOTPAGE
Lloh33:
	ldr	x22, [x22, _SD_CONFIG_CR@GOTPAGEOFF]
	cbz	w20, LBB0_20
; %bb.19:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IRQ_OFF
LBB0_20:
Lloh34:
	adrp	x24, _SD_CMD_GO@GOTPAGE
Lloh35:
	ldr	x24, [x24, _SD_CMD_GO@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w21, w8, w23
	mov	x0, x19
	bl	_HOST_CMD
	mov	x1, x0
	mov	x0, x21
	bl	___raw_writel
	bl	_wmb
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_HOST_CMD
	bl	___raw_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_21
; %bb.22:
	cbz	w20, LBB0_27
; %bb.23:
	mov	x0, x19
	bl	_HOST_STATUS
	bl	___raw_readl
Lloh36:
	adrp	x21, _SD_STATUS_CR@GOTPAGE
Lloh37:
	ldr	x21, [x21, _SD_STATUS_CR@GOTPAGEOFF]
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x21]
	tst	w20, w0
	b.ne	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x19
	bl	_HOST_STATUS
	bl	___raw_readl
	b	LBB0_24
LBB0_26:
	mov	x0, x19
	bl	_HOST_STATUS
	mov	x1, x0
	mov	x0, x20
	bl	___raw_writel
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IRQ_ON
LBB0_27:
	mov	w0, #0
LBB0_28:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_SD_CMD_CI_SHIFT,4,2            ; @SD_CMD_CI_SHIFT
	.comm	_SD_CMD_RT_1,4,2                ; @SD_CMD_RT_1
	.comm	_SD_CMD_RT_1B,4,2               ; @SD_CMD_RT_1B
	.comm	_SD_CMD_RT_2,4,2                ; @SD_CMD_RT_2
	.comm	_SD_CMD_RT_3,4,2                ; @SD_CMD_RT_3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"au1xmmc: unhandled response type %02x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.comm	_SD_CMD_CT_4,4,2                ; @SD_CMD_CT_4
	.comm	_SD_CMD_CT_2,4,2                ; @SD_CMD_CT_2
	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
	.comm	_SD_CMD_CT_3,4,2                ; @SD_CMD_CT_3
	.comm	_SD_CMD_CT_1,4,2                ; @SD_CMD_CT_1
	.comm	_SD_CONFIG_CR,4,2               ; @SD_CONFIG_CR
	.comm	_SD_CMD_GO,4,2                  ; @SD_CMD_GO
	.comm	_SD_STATUS_CR,4,2               ; @SD_STATUS_CR
	.no_dead_strip	_au1xmmc_send_command
.subsections_via_symbols
