	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_cs_receive_cmdres
_if_cs_receive_cmdres:                  ## @if_cs_receive_cmdres
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_IF_CS_CARD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_if_cs_read16
	movq	_IF_CS_BIT_RESP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.1:
	movl	8(%rbx), %edi
	movq	_IF_CS_RESP_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_if_cs_read16
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	_LBS_CMD_BUFFER_SIZE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jl	LBB0_7
## %bb.3:
	movl	8(%rbx), %edi
	movq	_IF_CS_RESP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movslq	%eax, %rcx
	shrq	$2, %rcx
	movq	%r15, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_if_cs_read16_rep
	movl	(%r14), %eax
	testb	$1, %al
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	movl	(%r12), %esi
	callq	_if_cs_read8
	movslq	(%r14), %rcx
	movl	%eax, -4(%r15,%rcx,4)
	movl	(%r14), %eax
LBB0_5:
	addl	$-8, %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_DNLD_RES_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
	movl	$0, (%r14)
	jmp	LBB0_8
LBB0_7:
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_8:
	movl	$-1, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IF_CS_CARD_STATUS,4,2          ## @IF_CS_CARD_STATUS
	.comm	_IF_CS_BIT_RESP,4,2             ## @IF_CS_BIT_RESP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no cmd response in card\n"

	.comm	_IF_CS_RESP_LEN,4,2             ## @IF_CS_RESP_LEN
	.comm	_LBS_CMD_BUFFER_SIZE,4,2        ## @LBS_CMD_BUFFER_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"card cmd buffer has invalid # of bytes (%d)\n"

	.comm	_IF_CS_RESP,4,2                 ## @IF_CS_RESP
	.comm	_DNLD_RES_RECEIVED,4,2          ## @DNLD_RES_RECEIVED
	.no_dead_strip	_if_cs_receive_cmdres
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_cs_receive_cmdres
_if_cs_receive_cmdres:                  ; @if_cs_receive_cmdres
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _IF_CS_CARD_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IF_CS_CARD_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_if_cs_read16
Lloh3:
	adrp	x8, _IF_CS_BIT_RESP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IF_CS_BIT_RESP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _IF_CS_RESP_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IF_CS_RESP_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_if_cs_read16
	str	w0, [x20]
Lloh9:
	adrp	x8, _LBS_CMD_BUFFER_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LBS_CMD_BUFFER_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w8, w0, #8, ne
	b.ge	LBB0_4
; %bb.2:
	ldr	w8, [x19, #12]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_netdev_err
	mov	w0, #-1
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19, #12]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	str	wzr, [x20]
	mov	w0, #-1
	b	LBB0_7
LBB0_4:
	ldr	w8, [x19, #8]
Lloh16:
	adrp	x22, _IF_CS_RESP@GOTPAGE
Lloh17:
	ldr	x22, [x22, _IF_CS_RESP@GOTPAGEOFF]
	ldr	w1, [x22]
	sxtw	x9, w0
	lsr	x3, x9, #2
	mov	x0, x8
	mov	x2, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_if_cs_read16_rep
	ldr	w8, [x20]
	tbz	w8, #0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
	ldr	w1, [x22]
	bl	_if_cs_read8
	ldrsw	x8, [x20]
	add	x8, x21, x8, lsl #2
	stur	w0, [x8, #-4]
	ldr	w8, [x20]
LBB0_6:
	sub	w8, w8, #8
	str	w8, [x20]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh18:
	adrp	x8, _DNLD_RES_RECEIVED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DNLD_RES_RECEIVED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_CS_CARD_STATUS,4,2          ; @IF_CS_CARD_STATUS
	.comm	_IF_CS_BIT_RESP,4,2             ; @IF_CS_BIT_RESP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no cmd response in card\n"

	.comm	_IF_CS_RESP_LEN,4,2             ; @IF_CS_RESP_LEN
	.comm	_LBS_CMD_BUFFER_SIZE,4,2        ; @LBS_CMD_BUFFER_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"card cmd buffer has invalid # of bytes (%d)\n"

	.comm	_IF_CS_RESP,4,2                 ; @IF_CS_RESP
	.comm	_DNLD_RES_RECEIVED,4,2          ; @DNLD_RES_RECEIVED
	.no_dead_strip	_if_cs_receive_cmdres
.subsections_via_symbols
