	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et131x_tx
_et131x_tx:                             ## @et131x_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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	_NUM_TCB@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	decl	%eax
	cmpl	%eax, 16(%r15)
	jl	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_netif_queue_stopped
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_netif_stop_queue
LBB0_3:
	movq	%rbx, %rdi
	callq	_netif_trans_update
	movl	16(%r15), %eax
	cmpl	(%r12), %eax
	jge	LBB0_7
## %bb.4:
	movq	_FMP_ADAPTER_FAIL_SEND_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
	movq	8(%r15), %rax
	incl	(%rax)
LBB0_8:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_send_packet
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TCB,4,2                    ## @NUM_TCB
	.comm	_FMP_ADAPTER_FAIL_SEND_MASK,4,2 ## @FMP_ADAPTER_FAIL_SEND_MASK
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_et131x_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et131x_tx
_et131x_tx:                             ; @et131x_tx
	.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	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x22, _NUM_TCB@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_TCB@GOTPAGEOFF]
	ldr	w9, [x22]
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_netif_queue_stopped
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_netif_stop_queue
LBB0_3:
	mov	x0, x21
	bl	_netif_trans_update
	ldr	w8, [x20, #16]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.4:
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _FMP_ADAPTER_FAIL_SEND_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FMP_ADAPTER_FAIL_SEND_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_6:
Lloh5:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh7:
	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
LBB0_7:
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	w0, LBB0_5
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_send_packet
	cbnz	x0, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TCB,4,2                    ; @NUM_TCB
	.comm	_FMP_ADAPTER_FAIL_SEND_MASK,4,2 ; @FMP_ADAPTER_FAIL_SEND_MASK
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_et131x_tx
.subsections_via_symbols
