	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc770_tx_interrupt
_cc770_tx_interrupt:                    ## @cc770_tx_interrupt
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_obj2msgobj
	movl	%eax, %r15d
	movq	_msgobj@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	%r15d, %r12d
	movl	(%rax,%r12,8), %esi
	movq	%r13, %rdi
	callq	_cc770_read_reg
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_MSGVAL_RES@GOTPCREL(%rip), %rax
	movq	_TXIE_RES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	(%rbx), %rax
	movq	_RXIE_RES@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	4(%rax,%r12,8), %esi
	movq	_INTPND_RES@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r13, %rdi
	callq	_cc770_write_reg
	movq	_RMTPND_RES@GOTPCREL(%rip), %rax
	movq	_TXRQST_RES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MSGLST_RES@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	(%rbx), %rax
	movl	(%rax,%r12,8), %esi
	movq	_NEWDAT_RES@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r13, %rdi
	callq	_cc770_write_reg
	xorl	%edi, %edi
	cmpq	$0, (%r13)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_1:
	movl	%r15d, %ebx
	movq	_MSGLST_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	andl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	incl	12(%r14)
	incl	8(%r14)
LBB0_3:
	movq	_NEWDAT_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_cc770_rx
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cc770_tx                       ## TAILCALL
LBB0_4:
	movq	(%r13), %rdi
	movq	(%rdi), %rax
	movl	(%rax), %eax
	addl	%eax, 4(%r14)
	incl	(%r14)
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_can_put_echo_skb
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_can_get_echo_skb
	movq	$0, (%r13)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_msgobj,8,3                     ## @msgobj
	.comm	_MSGVAL_RES,4,2                 ## @MSGVAL_RES
	.comm	_TXIE_RES,4,2                   ## @TXIE_RES
	.comm	_RXIE_RES,4,2                   ## @RXIE_RES
	.comm	_INTPND_RES,4,2                 ## @INTPND_RES
	.comm	_RMTPND_RES,4,2                 ## @RMTPND_RES
	.comm	_TXRQST_RES,4,2                 ## @TXRQST_RES
	.comm	_MSGLST_RES,4,2                 ## @MSGLST_RES
	.comm	_NEWDAT_RES,4,2                 ## @NEWDAT_RES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing tx skb in tx interrupt\n"

	.comm	_MSGLST_SET,4,2                 ## @MSGLST_SET
	.comm	_NEWDAT_SET,4,2                 ## @NEWDAT_SET
	.no_dead_strip	_cc770_tx_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc770_tx_interrupt
_cc770_tx_interrupt:                    ; @cc770_tx_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x21
	bl	_obj2msgobj
	mov	x21, x0
Lloh0:
	adrp	x23, _msgobj@GOTPAGE
Lloh1:
	ldr	x23, [x23, _msgobj@GOTPAGEOFF]
	ldr	x8, [x23]
	mov	w9, w0
	lsl	x24, x9, #3
	ldr	w1, [x8, x24]
	mov	x0, x20
	bl	_cc770_read_reg
	mov	x22, x0
	ldr	x8, [x23]
	add	x8, x8, x24
	ldr	w1, [x8, #4]
Lloh2:
	adrp	x8, _MSGVAL_RES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSGVAL_RES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _TXIE_RES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TXIE_RES@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _RXIE_RES@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RXIE_RES@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _INTPND_RES@GOTPAGE
Lloh12:
	ldr	x9, [x9, _INTPND_RES@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_cc770_write_reg
	ldr	x8, [x23]
	ldr	w1, [x8, x24]
Lloh14:
	adrp	x8, _RMTPND_RES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RMTPND_RES@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _TXRQST_RES@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TXRQST_RES@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _MSGLST_RES@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MSGLST_RES@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _NEWDAT_RES@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NEWDAT_RES@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_cc770_write_reg
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netdev_err
LBB0_2:
Lloh28:
	adrp	x8, _MSGLST_SET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MSGLST_SET@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	and	w0, w8, w22
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	ldr	d0, [x19, #8]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x19, #8]
LBB0_4:
Lloh31:
	adrp	x8, _NEWDAT_SET@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NEWDAT_SET@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	and	w0, w8, w22
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_cc770_rx
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cc770_tx
LBB0_6:
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	w8, [x8]
	ldp	w10, w9, [x19]
	add	w8, w9, w8
	add	w9, w10, #1
	stp	w9, w8, [x19]
	mov	x1, x19
	mov	w2, #0
	bl	_can_put_echo_skb
	mov	x0, x19
	mov	w1, #0
	bl	_can_get_echo_skb
	str	xzr, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netif_wake_queue
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_msgobj,8,3                     ; @msgobj
	.comm	_MSGVAL_RES,4,2                 ; @MSGVAL_RES
	.comm	_TXIE_RES,4,2                   ; @TXIE_RES
	.comm	_RXIE_RES,4,2                   ; @RXIE_RES
	.comm	_INTPND_RES,4,2                 ; @INTPND_RES
	.comm	_RMTPND_RES,4,2                 ; @RMTPND_RES
	.comm	_TXRQST_RES,4,2                 ; @TXRQST_RES
	.comm	_MSGLST_RES,4,2                 ; @MSGLST_RES
	.comm	_NEWDAT_RES,4,2                 ; @NEWDAT_RES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing tx skb in tx interrupt\n"

	.comm	_MSGLST_SET,4,2                 ; @MSGLST_SET
	.comm	_NEWDAT_SET,4,2                 ; @NEWDAT_SET
	.no_dead_strip	_cc770_tx_interrupt
.subsections_via_symbols
