	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc2520_get_status
_cc2520_get_status:                     ## @cc2520_get_status
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -40(%rbp)
	movq	%rax, -32(%rbp)
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_spi_message_init
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_spi_message_add_tail
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_CC2520_CMD_SNOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movslq	-48(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -48(%rbp)
	movl	%eax, (%rcx,%rdx,4)
	movq	16(%rbx), %rdi
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_vdbg
	movq	16(%rbx), %rdi
	movq	%r15, %rsi
	callq	_spi_sync
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
LBB0_2:
	movq	16(%rbx), %rdi
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_vdbg
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CC2520_CMD_SNOP,4,2            ## @CC2520_CMD_SNOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get status command buf[0] = %02x\n"

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

	.no_dead_strip	_cc2520_get_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc2520_get_status
_cc2520_get_status:                     ; @cc2520_get_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp]
	ldr	x8, [x0, #8]
	stp	x8, x8, [sp, #8]
	add	x0, sp, #24
	bl	_spi_message_init
	mov	x0, sp
	add	x1, sp, #24
	bl	_spi_message_add_tail
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _CC2520_CMD_SNOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CC2520_CMD_SNOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldrsw	x10, [sp]
	add	w11, w10, #1
	str	w11, [sp]
	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]
	add	x1, sp, #24
	bl	_spi_sync
	mov	x21, x0
	ldr	x8, [x19, #8]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w9, [x8]
	str	w9, [x20]
LBB0_2:
	ldr	x0, [x19, #16]
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_vdbg
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CC2520_CMD_SNOP,4,2            ; @CC2520_CMD_SNOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get status command buf[0] = %02x\n"

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

	.no_dead_strip	_cc2520_get_status
.subsections_via_symbols
