	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i2400ms_rx_get_size          ## -- Begin function __i2400ms_rx_get_size
	.p2align	4, 0x90
___i2400ms_rx_get_size:                 ## @__i2400ms_rx_get_size
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rdx
	movl	$7, %edi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_d_fnstart
	movq	_I2400MS_INTR_GET_SIZE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sdio_readb
	movl	-44(%rbp), %r8d
	testl	%r8d, %r8d
	js	LBB0_1
## %bb.3:
	movl	%eax, %r12d
	leal	1(%rbx), %r13d
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_sdio_readb
	movl	-44(%rbp), %r8d
	testl	%r8d, %r8d
	js	LBB0_4
## %bb.5:
	movl	%eax, %r13d
	addl	$2, %ebx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sdio_readb
	movl	-44(%rbp), %r8d
	testl	%r8d, %r8d
	js	LBB0_6
## %bb.7:
	movzbl	%r13b, %ecx
	shll	$8, %r12d
	movzwl	%r12w, %edx
	orl	%ecx, %edx
	shll	$8, %edx
	movzbl	%al, %r12d
	orl	%edx, %r12d
	leaq	L_.str.2(%rip), %rdx
	movl	$6, %edi
	movq	%r15, %rsi
	movq	%r12, %rcx
	callq	_d_printf
	movl	%r12d, %ebx
	jmp	LBB0_8
LBB0_1:
	xorl	%edx, %edx
	jmp	LBB0_2
LBB0_4:
	movl	$1, %edx
	movl	%r13d, %ebx
	jmp	LBB0_2
LBB0_6:
	movl	$2, %edx
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_dev_err
	movl	-44(%rbp), %ebx
	movslq	%ebx, %r12
LBB0_8:
	leaq	L_.str.3(%rip), %rdx
	movl	$7, %edi
	movq	%r15, %rsi
	movq	%r14, %rcx
	movq	%r12, %r8
	callq	_d_fnend
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(i2400ms %p)\n"

	.comm	_I2400MS_INTR_GET_SIZE_ADDR,4,2 ## @I2400MS_INTR_GET_SIZE_ADDR
L_.str.1:                               ## @.str.1
	.asciz	"RX: Can't read byte %d of RX size from 0x%08x: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"RX: rx_size is %ld\n"

L_.str.3:                               ## @.str.3
	.asciz	"(i2400ms %p) = %ld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i2400ms_rx_get_size          ; -- Begin function __i2400ms_rx_get_size
	.p2align	2
___i2400ms_rx_get_size:                 ; @__i2400ms_rx_get_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #7
	mov	x1, x20
	mov	x3, x19
	bl	_d_fnstart
Lloh2:
	adrp	x8, _I2400MS_INTR_GET_SIZE_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2400MS_INTR_GET_SIZE_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_sdio_readb
	ldr	w4, [sp, #12]
	tbnz	w4, #31, LBB0_4
; %bb.1:
	mov	x22, x0
	add	w24, w21, #1
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x24
	bl	_sdio_readb
	ldr	w4, [sp, #12]
	tbnz	w4, #31, LBB0_5
; %bb.2:
	mov	x23, x0
	add	w21, w21, #2
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_sdio_readb
	ldr	w4, [sp, #12]
	tbnz	w4, #31, LBB0_6
; %bb.3:
	bfi	w23, w22, #8, #8
	and	w21, w0, #0xff
	bfi	w21, w23, #8, #16
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #6
	mov	x1, x20
	mov	x3, x21
	bl	_d_printf
	mov	x22, x21
	b	LBB0_8
LBB0_4:
	mov	w2, #0
	b	LBB0_7
LBB0_5:
	mov	w2, #1
	mov	x21, x24
	b	LBB0_7
LBB0_6:
	mov	w2, #2
LBB0_7:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_dev_err
	ldr	w22, [sp, #12]
	sxtw	x21, w22
LBB0_8:
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #7
	mov	x1, x20
	mov	x3, x19
	mov	x4, x21
	bl	_d_fnend
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(i2400ms %p)\n"

	.comm	_I2400MS_INTR_GET_SIZE_ADDR,4,2 ; @I2400MS_INTR_GET_SIZE_ADDR
l_.str.1:                               ; @.str.1
	.asciz	"RX: Can't read byte %d of RX size from 0x%08x: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"RX: rx_size is %ld\n"

l_.str.3:                               ; @.str.3
	.asciz	"(i2400ms %p) = %ld\n"

.subsections_via_symbols
