	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_cs_send_cmd
_if_cs_send_cmd:                        ## @if_cs_send_cmd
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_if_cs_disable_ints
	movq	_IF_CS_CARD_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_if_cs_read16
	movq	_IF_CS_BIT_COMMAND@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	jne	LBB0_5
## %bb.1:
	movl	$101, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r12d
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_mdelay
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_if_cs_read16
	testl	%eax, (%r13)
	je	LBB0_2
LBB0_5:
	movq	_IF_CS_CMD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_if_cs_write16
	movq	_IF_CS_CMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%r15d, %ecx
	shrl	$31, %ecx
	addl	%r15d, %ecx
	sarl	%ecx
	movq	%rbx, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_if_cs_write16_rep
	testb	$1, %r15b
	je	LBB0_7
## %bb.6:
	movl	(%r14), %esi
	movslq	%r15d, %rax
	movl	-4(%r12,%rax,4), %edx
	movq	%rbx, %rdi
	callq	_if_cs_write8
LBB0_7:
	movq	_IF_CS_HOST_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_if_cs_write16
	movq	_IF_CS_HOST_INT_CAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_if_cs_write16
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movl	$-1, %r14d
LBB0_8:
	movq	%rbx, %rdi
	callq	_if_cs_enable_ints
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_COMMAND,4,2          ## @IF_CS_BIT_COMMAND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"card not ready for commands\n"

	.comm	_IF_CS_CMD_LEN,4,2              ## @IF_CS_CMD_LEN
	.comm	_IF_CS_CMD,4,2                  ## @IF_CS_CMD
	.comm	_IF_CS_HOST_STATUS,4,2          ## @IF_CS_HOST_STATUS
	.comm	_IF_CS_HOST_INT_CAUSE,4,2       ## @IF_CS_HOST_INT_CAUSE
	.no_dead_strip	_if_cs_send_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_cs_send_cmd
_if_cs_send_cmd:                        ; @if_cs_send_cmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_if_cs_disable_ints
Lloh0:
	adrp	x24, _IF_CS_CARD_STATUS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IF_CS_CARD_STATUS@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_if_cs_read16
Lloh2:
	adrp	x23, _IF_CS_BIT_COMMAND@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IF_CS_BIT_COMMAND@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.1:
	mov	w25, #101
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w25, w25, #1
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_mdelay
	ldr	w1, [x24]
	mov	x0, x19
	bl	_if_cs_read16
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_4:
Lloh4:
	adrp	x8, _IF_CS_CMD_LEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IF_CS_CMD_LEN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_if_cs_write16
Lloh7:
	adrp	x22, _IF_CS_CMD@GOTPAGE
Lloh8:
	ldr	x22, [x22, _IF_CS_CMD@GOTPAGEOFF]
	ldr	w1, [x22]
	cmp	w21, #0
	cinc	w8, w21, lt
	asr	w3, w8, #1
	mov	x0, x19
	mov	x2, x20
	bl	_if_cs_write16_rep
	tbz	w21, #0, LBB0_6
; %bb.5:
	ldr	w1, [x22]
	sub	w8, w21, #1
	ldr	w2, [x20, w8, sxtw #2]
	mov	x0, x19
	bl	_if_cs_write8
LBB0_6:
Lloh9:
	adrp	x8, _IF_CS_HOST_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IF_CS_HOST_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_if_cs_write16
Lloh12:
	adrp	x8, _IF_CS_HOST_INT_CAUSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IF_CS_HOST_INT_CAUSE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_if_cs_write16
	mov	w20, #0
	b	LBB0_8
LBB0_7:
	ldr	w0, [x22]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	mov	w20, #-1
LBB0_8:
	mov	x0, x19
	bl	_if_cs_enable_ints
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_CS_CARD_STATUS,4,2          ; @IF_CS_CARD_STATUS
	.comm	_IF_CS_BIT_COMMAND,4,2          ; @IF_CS_BIT_COMMAND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"card not ready for commands\n"

	.comm	_IF_CS_CMD_LEN,4,2              ; @IF_CS_CMD_LEN
	.comm	_IF_CS_CMD,4,2                  ; @IF_CS_CMD
	.comm	_IF_CS_HOST_STATUS,4,2          ; @IF_CS_HOST_STATUS
	.comm	_IF_CS_HOST_INT_CAUSE,4,2       ; @IF_CS_HOST_INT_CAUSE
	.no_dead_strip	_if_cs_send_cmd
.subsections_via_symbols
