	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxcmci_read_response
_mxcmci_read_response:                  ## @mxcmci_read_response
	.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	8(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r15
	movq	_STATUS_TIME_OUT_RESP@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %r14
	jmp	LBB0_6
LBB0_3:
	movq	_STATUS_RESP_CRC_ERR@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_7
## %bb.4:
	movq	_MMC_RSP_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.5:
	movq	_EILSEQ@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %r14
LBB0_6:
	movl	(%r15), %edi
	callq	_mmc_dev
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
	subl	(%rbx), %eax
	movl	%eax, 16(%r12)
LBB0_7:
	movl	(%r12), %eax
	movq	_MMC_RSP_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.8:
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	_MMC_REG_RES_FIFO@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_mxcmci_readw
	movl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_mxcmci_readw
	shll	$16, %ebx
	orl	%eax, %ebx
	movq	8(%r12), %rax
	movl	%ebx, (%rax)
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_mxcmci_readw
	movl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_mxcmci_readw
	shll	$16, %ebx
	orl	%eax, %ebx
	movq	8(%r12), %rax
	movl	%ebx, 4(%rax)
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_mxcmci_readw
	movl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_mxcmci_readw
	shll	$16, %ebx
	orl	%eax, %ebx
	movq	8(%r12), %rax
	movl	%ebx, 8(%rax)
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_mxcmci_readw
	movl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_mxcmci_readw
	shll	$16, %ebx
	orl	%eax, %ebx
	movq	8(%r12), %rax
	movl	%ebx, 12(%rax)
	jmp	LBB0_11
LBB0_10:
	movq	_MMC_REG_RES_FIFO@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_mxcmci_readw
	movl	%eax, %r14d
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_mxcmci_readw
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_mxcmci_readw
	shll	$24, %r14d
	shll	$8, %ebx
	orl	%r14d, %ebx
	sarl	$8, %eax
	orl	%ebx, %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_TIME_OUT_RESP,4,2       ## @STATUS_TIME_OUT_RESP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD TIMEOUT\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_STATUS_RESP_CRC_ERR,4,2        ## @STATUS_RESP_CRC_ERR
	.comm	_MMC_RSP_CRC,4,2                ## @MMC_RSP_CRC
L_.str.1:                               ## @.str.1
	.asciz	"cmd crc error\n"

	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_MMC_RSP_PRESENT,4,2            ## @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ## @MMC_RSP_136
	.comm	_MMC_REG_RES_FIFO,4,2           ## @MMC_REG_RES_FIFO
	.no_dead_strip	_mxcmci_read_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxcmci_read_response
_mxcmci_read_response:                  ; @mxcmci_read_response
	.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	x22, [x0, #8]
	cbz	x22, LBB0_11
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _STATUS_TIME_OUT_RESP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_TIME_OUT_RESP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x21, _ETIMEDOUT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ETIMEDOUT@GOTPAGEOFF]
Lloh5:
	adrp	x20, l_.str@PAGE
Lloh6:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x8, _STATUS_RESP_CRC_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STATUS_RESP_CRC_ERR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_7
; %bb.4:
	ldr	w8, [x22]
Lloh10:
	adrp	x9, _MMC_RSP_CRC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MMC_RSP_CRC@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh13:
	adrp	x21, _EILSEQ@GOTPAGE
Lloh14:
	ldr	x21, [x21, _EILSEQ@GOTPAGEOFF]
Lloh15:
	adrp	x20, l_.str.1@PAGE
Lloh16:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_6:
	ldr	w0, [x19]
	bl	_mmc_dev
	mov	x1, x20
	bl	_dev_dbg
	ldr	w8, [x21]
	neg	w8, w8
	str	w8, [x22, #16]
LBB0_7:
	ldr	w8, [x22]
Lloh17:
	adrp	x9, _MMC_RSP_PRESENT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MMC_RSP_PRESENT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
Lloh20:
	adrp	x9, _MMC_RSP_136@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MMC_RSP_136@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh23:
	adrp	x21, _MMC_REG_RES_FIFO@GOTPAGE
Lloh24:
	ldr	x21, [x21, _MMC_REG_RES_FIFO@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mxcmci_readw
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mxcmci_readw
	orr	w8, w0, w20, lsl #16
	ldr	x9, [x22, #8]
	str	w8, [x9]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mxcmci_readw
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mxcmci_readw
	orr	w8, w0, w20, lsl #16
	ldr	x9, [x22, #8]
	str	w8, [x9, #4]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mxcmci_readw
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mxcmci_readw
	orr	w8, w0, w20, lsl #16
	ldr	x9, [x22, #8]
	str	w8, [x9, #8]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mxcmci_readw
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mxcmci_readw
	orr	w8, w0, w20, lsl #16
	ldr	x9, [x22, #8]
	str	w8, [x9, #12]
	b	LBB0_11
LBB0_10:
Lloh25:
	adrp	x23, _MMC_REG_RES_FIFO@GOTPAGE
Lloh26:
	ldr	x23, [x23, _MMC_REG_RES_FIFO@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_mxcmci_readw
	mov	x20, x0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_mxcmci_readw
	mov	x21, x0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_mxcmci_readw
	lsl	w8, w21, #8
	orr	w8, w8, w20, lsl #24
	orr	w8, w8, w0, asr #8
	ldr	x9, [x22, #8]
	str	w8, [x9]
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_TIME_OUT_RESP,4,2       ; @STATUS_TIME_OUT_RESP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD TIMEOUT\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_STATUS_RESP_CRC_ERR,4,2        ; @STATUS_RESP_CRC_ERR
	.comm	_MMC_RSP_CRC,4,2                ; @MMC_RSP_CRC
l_.str.1:                               ; @.str.1
	.asciz	"cmd crc error\n"

	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_MMC_RSP_PRESENT,4,2            ; @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.comm	_MMC_REG_RES_FIFO,4,2           ; @MMC_REG_RES_FIFO
	.no_dead_strip	_mxcmci_read_response
.subsections_via_symbols
