	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_sdio_host_to_card
_if_sdio_host_to_card:                  ## @if_sdio_host_to_card
	.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
	cmpl	$65509, %ecx                    ## imm = 0xFFE5
	jb	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movl	%ecx, %ebx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movl	24(%r13), %edi
	leal	4(%rbx), %r15d
	movl	%r15d, %esi
	callq	_sdio_align_size
	movl	%eax, %r14d
	leal	24(%r14), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	$0, 16(%rax)
	movl	%r14d, (%rax)
	movzbl	%r15b, %eax
	movq	8(%r12), %rdi
	movl	%eax, (%rdi)
	shrl	$8, %r15d
	movl	%r15d, 4(%rdi)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, 8(%rdi)
	movl	$0, 12(%rdi)
	addq	$16, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	leaq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.8:
	addq	$16, %rax
	jmp	LBB0_9
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_6:
	leaq	16(%r13), %rax
LBB0_9:
	movq	%r12, (%rax)
	cmpl	$128, %r14d
	je	LBB0_13
## %bb.10:
	cmpl	$129, %r14d
	jne	LBB0_14
## %bb.11:
	movq	_DNLD_CMD_SENT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_13:
	movq	_DNLD_DATA_SENT@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_lbs_deb_sdio
LBB0_15:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	4(%r13), %edi
	movq	%r13, %rsi
	callq	_queue_work
	xorl	%eax, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DNLD_CMD_SENT,4,2              ## @DNLD_CMD_SENT
	.comm	_DNLD_DATA_SENT,4,2             ## @DNLD_DATA_SENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown packet type %d\n"

	.no_dead_strip	_if_sdio_host_to_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_sdio_host_to_card
_if_sdio_host_to_card:                  ; @if_sdio_host_to_card
	.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	w8, #65509
	cmp	w3, w8
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x22, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x19, #24]
	add	w25, w3, #4
	mov	x1, x25
	bl	_sdio_align_size
	mov	x26, x0
	add	w0, w0, #24
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x23, x0
	str	xzr, [x0, #16]
	str	w26, [x0]
	and	w8, w25, #0xff
	ldr	x9, [x0, #8]
	lsr	w10, w25, #8
	stp	w8, w10, [x9]
	stp	w21, wzr, [x9, #8]
	add	x0, x9, #16
	mov	x1, x24
	mov	x2, x22
	bl	_memcpy
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x8, x19
	ldr	x9, [x8, #16]!
	cbz	x9, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	ldr	x9, [x9, #16]
	cbnz	x9, LBB0_4
; %bb.5:
	add	x8, x8, #16
LBB0_6:
	str	x23, [x8]
	cmp	w21, #128
	b.eq	LBB0_11
; %bb.7:
	cmp	w21, #129
	b.ne	LBB0_13
; %bb.8:
Lloh5:
	adrp	x8, _DNLD_CMD_SENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DNLD_CMD_SENT@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_11:
Lloh9:
	adrp	x8, _DNLD_DATA_SENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DNLD_DATA_SENT@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_14
LBB0_13:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_lbs_deb_sdio
LBB0_14:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
	mov	w0, #0
LBB0_15:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DNLD_CMD_SENT,4,2              ; @DNLD_CMD_SENT
	.comm	_DNLD_DATA_SENT,4,2             ; @DNLD_DATA_SENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown packet type %d\n"

	.no_dead_strip	_if_sdio_host_to_card
.subsections_via_symbols
