	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_tx_buf_complete
_write_tx_buf_complete:                 ## @write_tx_buf_complete
	.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, %r15
	movl	24(%rdi), %edi
	callq	_ieee802154_get_fc_from_skb
	movl	%eax, %r14d
	movq	_BIT_TXNTRIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_ieee802154_is_secen
	xorl	%r12d, %r12d
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BIT_TXNSECEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	orl	%r13d, %ebx
	movl	%r14d, %edi
	callq	_ieee802154_is_ackreq
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_BIT_TXNACKREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	orl	%r12d, %ebx
	movq	$0, (%r15)
	movq	_REG_TXNCON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MRF24J40_WRITESHORT
	movq	16(%r15), %rcx
	movl	%eax, (%rcx)
	movl	%ebx, 4(%rcx)
	movl	8(%r15), %edi
	movq	%r15, %rsi
	callq	_spi_async
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_printdev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT_TXNTRIG,4,2                ## @BIT_TXNTRIG
	.comm	_BIT_TXNSECEN,4,2               ## @BIT_TXNSECEN
	.comm	_BIT_TXNACKREQ,4,2              ## @BIT_TXNACKREQ
	.comm	_REG_TXNCON,4,2                 ## @REG_TXNCON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI write Failed for transmit buf\n"

	.no_dead_strip	_write_tx_buf_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_tx_buf_complete
_write_tx_buf_complete:                 ; @write_tx_buf_complete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_ieee802154_get_fc_from_skb
	mov	x20, x0
Lloh0:
	adrp	x8, _BIT_TXNTRIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT_TXNTRIG@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_ieee802154_is_secen
Lloh3:
	adrp	x8, _BIT_TXNSECEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIT_TXNSECEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w21, w8, w21
	mov	x0, x20
	bl	_ieee802154_is_ackreq
Lloh6:
	adrp	x8, _BIT_TXNACKREQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIT_TXNACKREQ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w21, w8
	str	xzr, [x19]
Lloh9:
	adrp	x8, _REG_TXNCON@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_TXNCON@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_MRF24J40_WRITESHORT
	ldr	x8, [x19, #16]
	stp	w0, w20, [x8]
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_spi_async
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_printdev
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_err
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT_TXNTRIG,4,2                ; @BIT_TXNTRIG
	.comm	_BIT_TXNSECEN,4,2               ; @BIT_TXNSECEN
	.comm	_BIT_TXNACKREQ,4,2              ; @BIT_TXNACKREQ
	.comm	_REG_TXNCON,4,2                 ; @REG_TXNCON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI write Failed for transmit buf\n"

	.no_dead_strip	_write_tx_buf_complete
.subsections_via_symbols
