	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usdhi6_resp_read
_usdhi6_resp_read:                      ## @usdhi6_resp_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_mmc_resp_type
	movq	_MMC_RSP_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_USDHI6_SD_INFO1_RSP_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.2:
	movq	%rbx, %rdi
	callq	_mmc_resp_type
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_USDHI6_SD_RSP10@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_usdhi6_read
	movl	%eax, %ecx
	shll	$8, %ecx
	orl	%ecx, 12(%r15)
	sarl	$24, %eax
	movl	%eax, 8(%r15)
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_usdhi6_read
	movl	%eax, %ecx
	shll	$8, %ecx
	orl	%ecx, 8(%r15)
	sarl	$24, %eax
	movl	%eax, 4(%r15)
	movq	(%rbx), %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	callq	_usdhi6_read
	movl	%eax, %ecx
	shll	$8, %ecx
	orl	%ecx, 4(%r15)
	sarl	$24, %eax
	movl	%eax, (%r15)
	movq	(%rbx), %rsi
	addq	$24, %rsi
	movq	%r14, %rdi
	callq	_usdhi6_read
	shll	$8, %eax
	orl	(%r15), %eax
	jmp	LBB0_9
LBB0_11:
	movl	4(%r14), %edi
	callq	_mmc_dev
	movq	8(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	movq	8(%rbx), %rax
	movq	_MMC_READ_MULTIPLE_BLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_MMC_WRITE_MULTIPLE_BLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.7:
	movq	_USDHI6_SD_RSP10@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_USDHI6_SD_RSP54@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_usdhi6_read
LBB0_9:
	movl	%eax, (%r15)
	movl	4(%r14), %edi
	callq	_mmc_dev
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_RSP_NONE,4,2               ## @MMC_RSP_NONE
	.comm	_USDHI6_SD_INFO1_RSP_END,4,2    ## @USDHI6_SD_INFO1_RSP_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD%d: response expected but is missing!\n"

	.comm	_MMC_RSP_136,4,2                ## @MMC_RSP_136
	.comm	_USDHI6_SD_RSP10,8,3            ## @USDHI6_SD_RSP10
	.comm	_MMC_READ_MULTIPLE_BLOCK,8,3    ## @MMC_READ_MULTIPLE_BLOCK
	.comm	_MMC_WRITE_MULTIPLE_BLOCK,8,3   ## @MMC_WRITE_MULTIPLE_BLOCK
	.comm	_USDHI6_SD_RSP54,8,3            ## @USDHI6_SD_RSP54
L_.str.1:                               ## @.str.1
	.asciz	"Response 0x%x\n"

	.no_dead_strip	_usdhi6_resp_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usdhi6_resp_read
_usdhi6_resp_read:                      ; @usdhi6_resp_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	x21, [x20]
	mov	x0, x20
	bl	_mmc_resp_type
Lloh0:
	adrp	x8, _MMC_RSP_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_RSP_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _USDHI6_SD_INFO1_RSP_END@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USDHI6_SD_INFO1_RSP_END@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_mmc_resp_type
Lloh6:
	adrp	x8, _MMC_RSP_136@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMC_RSP_136@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
Lloh9:
	adrp	x20, _USDHI6_SD_RSP10@GOTPAGE
Lloh10:
	ldr	x20, [x20, _USDHI6_SD_RSP10@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_usdhi6_read
	ldr	w8, [x21, #12]
	orr	w8, w8, w0, lsl #8
	asr	w9, w0, #24
	stp	w9, w8, [x21, #8]
	ldr	x8, [x20]
	add	x1, x8, #8
	mov	x0, x19
	bl	_usdhi6_read
	ldr	w8, [x21, #8]
	orr	w8, w8, w0, lsl #8
	asr	w9, w0, #24
	stp	w9, w8, [x21, #4]
	ldr	x8, [x20]
	add	x1, x8, #16
	mov	x0, x19
	bl	_usdhi6_read
	ldr	w8, [x21, #4]
	orr	w8, w8, w0, lsl #8
	asr	w9, w0, #24
	stp	w9, w8, [x21]
	ldr	x8, [x20]
	add	x1, x8, #24
	mov	x0, x19
	bl	_usdhi6_read
	ldr	w8, [x21]
	orr	w0, w8, w0, lsl #8
	b	LBB0_10
LBB0_5:
	ldr	w0, [x19, #4]
	bl	_mmc_dev
	ldr	x2, [x20, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_err
LBB0_6:
	ldr	x8, [x20, #8]
Lloh13:
	adrp	x9, _MMC_READ_MULTIPLE_BLOCK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MMC_READ_MULTIPLE_BLOCK@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _MMC_WRITE_MULTIPLE_BLOCK@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MMC_WRITE_MULTIPLE_BLOCK@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _USDHI6_SD_RSP54@GOTPAGE
Lloh20:
	ldr	x8, [x8, _USDHI6_SD_RSP54@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh21:
	adrp	x8, _USDHI6_SD_RSP10@GOTPAGE
Lloh22:
	ldr	x8, [x8, _USDHI6_SD_RSP10@GOTPAGEOFF]
LBB0_9:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_usdhi6_read
LBB0_10:
	str	w0, [x21]
	ldr	w0, [x19, #4]
	bl	_mmc_dev
	ldr	w2, [x21]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_RSP_NONE,4,2               ; @MMC_RSP_NONE
	.comm	_USDHI6_SD_INFO1_RSP_END,4,2    ; @USDHI6_SD_INFO1_RSP_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD%d: response expected but is missing!\n"

	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.comm	_USDHI6_SD_RSP10,8,3            ; @USDHI6_SD_RSP10
	.comm	_MMC_READ_MULTIPLE_BLOCK,8,3    ; @MMC_READ_MULTIPLE_BLOCK
	.comm	_MMC_WRITE_MULTIPLE_BLOCK,8,3   ; @MMC_WRITE_MULTIPLE_BLOCK
	.comm	_USDHI6_SD_RSP54,8,3            ; @USDHI6_SD_RSP54
l_.str.1:                               ; @.str.1
	.asciz	"Response 0x%x\n"

	.no_dead_strip	_usdhi6_resp_read
.subsections_via_symbols
