	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc2520_tx
_cc2520_tx:                             ## @cc2520_tx
	.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	%rsi, %rbx
	movq	(%rdi), %r14
	movl	$0, -44(%rbp)
	cmpq	$0, 24(%r14)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	xorl	%edi, %edi
	callq	_crc_ccitt
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_skb_put
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_put_unaligned_le16
	movl	(%rbx), %r12d
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %r12d
	addl	$2, %r12d
LBB0_3:
	movq	_CC2520_CMD_SFLUSHTX@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_cc2520_cmd_strobe
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_cc2520_write_txfifo
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_cc2520_get_status
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	_CC2520_STATUS_TX_UNDERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_8
## %bb.7:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_8:
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	(%r14), %edi
	callq	_WARN_ON
	movl	$1, (%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_CC2520_CMD_STXONCCA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_cc2520_cmd_strobe
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	$0, (%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_12
LBB0_9:
	leaq	8(%r14), %rdi
	callq	_wait_for_completion_interruptible
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_cc2520_cmd_strobe
	movq	_CC2520_CMD_SRXON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_cc2520_cmd_strobe
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CC2520_CMD_SFLUSHTX,4,2        ## @CC2520_CMD_SFLUSHTX
	.comm	_CC2520_STATUS_TX_UNDERFLOW,4,2 ## @CC2520_STATUS_TX_UNDERFLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cc2520 tx underflow exception\n"

	.comm	_CC2520_CMD_STXONCCA,4,2        ## @CC2520_CMD_STXONCCA
	.comm	_CC2520_CMD_SRXON,4,2           ## @CC2520_CMD_SRXON
	.no_dead_strip	_cc2520_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc2520_tx
_cc2520_tx:                             ; @cc2520_tx
	.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	x21, x1
	ldr	x19, [x0]
	str	wzr, [sp, #12]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w2, w1, [x21]
	mov	w0, #0
	bl	_crc_ccitt
	mov	x20, x0
	mov	x0, x21
	mov	w1, #2
	bl	_skb_put
	mov	x1, x0
	mov	x0, x20
	bl	_put_unaligned_le16
	ldr	w22, [x21]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x21]
	add	w22, w8, #2
LBB0_3:
Lloh0:
	adrp	x23, _CC2520_CMD_SFLUSHTX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CC2520_CMD_SFLUSHTX@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_cc2520_cmd_strobe
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.4:
	ldp	w3, w2, [x21]
	mov	x0, x19
	mov	x1, x22
	bl	_cc2520_write_txfifo
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.5:
	add	x1, sp, #12
	mov	x0, x19
	bl	_cc2520_get_status
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.6:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _CC2520_STATUS_TX_UNDERFLOW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CC2520_STATUS_TX_UNDERFLOW@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x0, [x19, #16]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w20, #0
	b	LBB0_12
LBB0_8:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w0, [x19]
	bl	_WARN_ON
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh7:
	adrp	x8, _CC2520_CMD_STXONCCA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CC2520_CMD_STXONCCA@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cc2520_cmd_strobe
	mov	x20, x0
	cbz	w0, LBB0_10
LBB0_9:
	mov	x0, x21
	bl	_spin_lock_irqsave
	str	wzr, [x19]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	b	LBB0_12
LBB0_10:
	add	x0, x19, #8
	bl	_wait_for_completion_interruptible
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
; %bb.11:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_cc2520_cmd_strobe
Lloh10:
	adrp	x8, _CC2520_CMD_SRXON@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CC2520_CMD_SRXON@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cc2520_cmd_strobe
LBB0_12:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CC2520_CMD_SFLUSHTX,4,2        ; @CC2520_CMD_SFLUSHTX
	.comm	_CC2520_STATUS_TX_UNDERFLOW,4,2 ; @CC2520_STATUS_TX_UNDERFLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cc2520 tx underflow exception\n"

	.comm	_CC2520_CMD_STXONCCA,4,2        ; @CC2520_CMD_STXONCCA
	.comm	_CC2520_CMD_SRXON,4,2           ; @CC2520_CMD_SRXON
	.no_dead_strip	_cc2520_tx
.subsections_via_symbols
