	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_sdio_read_rx_len
_if_sdio_read_rx_len:                   ## @if_sdio_read_rx_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$-129, %eax
	addl	(%rdi), %eax
	cmpl	$1, %eax
	ja	LBB0_2
## %bb.1:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_if_sdio_read_scratch
	testq	%r14, %r14
	jne	LBB0_5
	jmp	LBB0_6
LBB0_2:
	movl	8(%rbx), %edi
	movq	_IF_SDIO_RX_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_sdio_readb
	movl	%eax, %edx
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmpl	$0, -20(%rbp)
	je	LBB0_3
## %bb.4:
	testq	%r14, %r14
	je	LBB0_6
LBB0_5:
	movl	-20(%rbp), %ecx
	movl	%ecx, (%r14)
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movb	4(%rbx), %cl
	shll	%cl, %edx
	movl	%edx, %eax
	testq	%r14, %r14
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_IF_SDIO_RX_LEN,4,2             ## @IF_SDIO_RX_LEN
	.no_dead_strip	_if_sdio_read_rx_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_sdio_read_rx_len
_if_sdio_read_rx_len:                   ; @if_sdio_read_rx_len
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	sub	w8, w8, #129
	cmp	w8, #1
	b.hi	LBB0_2
; %bb.1:
	add	x1, sp, #12
	mov	x0, x20
	bl	_if_sdio_read_scratch
	cbnz	x19, LBB0_4
	b	LBB0_5
LBB0_2:
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x8, _IF_SDIO_RX_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IF_SDIO_RX_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_sdio_readb
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.3:
	mov	w0, #65535
	cbz	x19, LBB0_5
LBB0_4:
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldr	w8, [x20, #4]
	lsl	w0, w0, w8
	cbnz	x19, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_SDIO_RX_LEN,4,2             ; @IF_SDIO_RX_LEN
	.no_dead_strip	_if_sdio_read_rx_len
.subsections_via_symbols
