	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc2520_read_rxfifo
_cc2520_read_rxfifo:                    ## @cc2520_read_rxfifo
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -72(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -64(%rbp)
	movq	%rax, -56(%rbp)
	movl	%edx, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	%rsi, -80(%rbp)
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_spi_message_init
	leaq	-72(%rbp), %rdi
	movq	%r15, %rsi
	callq	_spi_message_add_tail
	leaq	-96(%rbp), %rdi
	movq	%r15, %rsi
	callq	_spi_message_add_tail
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_CC2520_CMD_RXBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movslq	-72(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -72(%rbp)
	movl	%eax, (%rcx,%rdx,4)
	movq	16(%rbx), %rdi
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_vdbg
	movq	(%rbx), %rax
	movq	16(%rbx), %rdi
	movl	4(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_vdbg
	movq	16(%rbx), %rdi
	movq	%r15, %rsi
	callq	_spi_sync
	movl	%eax, %r12d
	movq	16(%rbx), %rdi
	leaq	L_.str.2(%rip), %r13
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_dev_vdbg
	movl	-48(%rbp), %r15d
	testl	%r15d, %r15d
	cmovel	%r12d, %r15d
	movq	16(%rbx), %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_dev_vdbg
	movq	(%rbx), %rax
	movq	16(%rbx), %rdi
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_vdbg
	movq	(%rbx), %rax
	movq	16(%rbx), %rdi
	movl	4(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_vdbg
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CC2520_CMD_RXBUF,4,2           ## @CC2520_CMD_RXBUF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read rxfifo buf[0] = %02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"buf[1] = %02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"status = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"return status buf[0] = %02x\n"

L_.str.4:                               ## @.str.4
	.asciz	"length buf[1] = %02x\n"

	.no_dead_strip	_cc2520_read_rxfifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc2520_read_rxfifo
_cc2520_read_rxfifo:                    ; @cc2520_read_rxfifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	str	wzr, [sp, #32]
	ldr	x8, [x0]
	stp	x8, x8, [sp, #40]
	str	w2, [sp, #8]
	stp	xzr, x1, [sp, #16]
	sub	x0, x29, #40
	bl	_spi_message_init
	add	x0, sp, #32
	sub	x1, x29, #40
	bl	_spi_message_add_tail
	add	x0, sp, #8
	sub	x1, x29, #40
	bl	_spi_message_add_tail
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _CC2520_CMD_RXBUF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CC2520_CMD_RXBUF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldrsw	x10, [sp, #32]
	add	w11, w10, #1
	str	w11, [sp, #32]
	str	w8, [x9, x10, lsl #2]
	ldr	x0, [x19, #16]
	ldr	w2, [x9]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_vdbg
	ldr	x0, [x19, #16]
	ldr	x8, [x19]
	ldr	w2, [x8, #4]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_vdbg
	ldr	x0, [x19, #16]
	sub	x1, x29, #40
	bl	_spi_sync
	mov	x21, x0
	ldr	x0, [x19, #16]
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_dev_vdbg
	ldur	w8, [x29, #-40]
	cmp	w8, #0
	csel	w21, w21, w8, eq
	ldr	x0, [x19, #16]
	mov	x1, x22
	mov	x2, x21
	bl	_dev_vdbg
	ldr	x0, [x19, #16]
	ldr	x8, [x19]
	ldr	w2, [x8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_vdbg
	ldr	x0, [x19, #16]
	ldr	x8, [x19]
	ldr	w2, [x8, #4]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_vdbg
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CC2520_CMD_RXBUF,4,2           ; @CC2520_CMD_RXBUF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read rxfifo buf[0] = %02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"buf[1] = %02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"status = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"return status buf[0] = %02x\n"

l_.str.4:                               ; @.str.4
	.asciz	"length buf[1] = %02x\n"

	.no_dead_strip	_cc2520_read_rxfifo
.subsections_via_symbols
