	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc770_start_xmit
_cc770_start_xmit:                      ## @cc770_start_xmit
	.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
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_CC770_OBJ_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_obj2msgobj
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_can_dropped_invalid_skb
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	_msgobj@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %esi
	movq	%r15, %rdi
	callq	_cc770_read_reg
	movq	_TXRQST_UNC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_TXRQST_SET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_err
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %r13
	jmp	LBB0_4
LBB0_3:
	movq	%r14, (%r15)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_cc770_tx
LBB0_4:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CC770_OBJ_TX,4,2               ## @CC770_OBJ_TX
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_msgobj,8,3                     ## @msgobj
	.comm	_TXRQST_UNC,4,2                 ## @TXRQST_UNC
	.comm	_TXRQST_SET,4,2                 ## @TXRQST_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX register is still occupied!\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.no_dead_strip	_cc770_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc770_start_xmit
_cc770_start_xmit:                      ; @cc770_start_xmit
	.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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _CC770_OBJ_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CC770_OBJ_TX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_obj2msgobj
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_can_dropped_invalid_skb
	cbnz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_netif_stop_queue
Lloh3:
	adrp	x8, _msgobj@GOTPAGE
Lloh4:
	ldr	x8, [x8, _msgobj@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w1, [x8, w22, uxtw #2]
	mov	x0, x21
	bl	_cc770_read_reg
Lloh6:
	adrp	x8, _TXRQST_UNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TXRQST_UNC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _TXRQST_SET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TXRQST_SET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh14:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	str	x20, [x21]
	mov	x0, x19
	mov	x1, x22
	bl	_cc770_tx
LBB0_4:
Lloh16:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CC770_OBJ_TX,4,2               ; @CC770_OBJ_TX
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_msgobj,8,3                     ; @msgobj
	.comm	_TXRQST_UNC,4,2                 ; @TXRQST_UNC
	.comm	_TXRQST_SET,4,2                 ; @TXRQST_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX register is still occupied!\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.no_dead_strip	_cc770_start_xmit
.subsections_via_symbols
