	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et131x_handle_send_pkts
_et131x_handle_send_pkts:               ## @et131x_handle_send_pkts
	.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, %r12
	movq	8(%rdi), %rdi
	callq	_readl
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_INDEX10
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	24(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	movq	_ET_DMA10_WRAP@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_free_send_packet
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	24(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movl	%edi, %eax
	xorl	%r14d, %eax
	testl	%eax, (%r13)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_INDEX10
	cmpl	%eax, %r15d
	jge	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	16(%r12)
	movq	8(%rbx), %rax
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 32(%r12)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_free_send_packet
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	24(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	movl	%eax, %ecx
	xorl	%r14d, %ecx
	testl	%ecx, (%r13)
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_ET_DMA10_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	%eax, %r15d
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	decl	16(%r12)
	movq	8(%rbx), %rax
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	$0, 32(%r12)
	jmp	LBB0_11
LBB0_12:
	movq	_NUM_TCB@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	cmpl	%eax, 16(%r12)
	jg	LBB0_14
## %bb.13:
	movl	4(%r12), %edi
	callq	_netif_wake_queue
LBB0_14:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ET_DMA10_WRAP,4,2              ## @ET_DMA10_WRAP
	.comm	_ET_DMA10_MASK,4,2              ## @ET_DMA10_MASK
	.comm	_NUM_TCB,4,2                    ## @NUM_TCB
	.no_dead_strip	_et131x_handle_send_pkts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et131x_handle_send_pkts
_et131x_handle_send_pkts:               ; @et131x_handle_send_pkts
	.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	x19, x0
	ldr	x0, [x0, #8]
	bl	_readl
	mov	x20, x0
	bl	_INDEX10
	mov	x21, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x22, [x19, #24]
	cbz	x22, LBB0_12
; %bb.1:
Lloh0:
	adrp	x23, _ET_DMA10_WRAP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ET_DMA10_WRAP@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x22
	bl	_free_send_packet
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x22, [x19, #24]
	cbz	x22, LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	eor	w8, w0, w20
	ldr	w9, [x23]
	tst	w8, w9
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_INDEX10
	cmp	w21, w0
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #16]
	sub	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x8, [x22, #8]
	str	x8, [x19, #24]
	cbnz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x19, #32]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x22
	bl	_free_send_packet
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x22, [x19, #24]
	cbz	x22, LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	eor	w9, w8, w20
	ldr	w10, [x23]
	tst	w9, w10
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh2:
	adrp	x9, _ET_DMA10_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ET_DMA10_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w21, w8
	b.le	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19, #16]
	sub	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x8, [x22, #8]
	str	x8, [x19, #24]
	cbnz	x8, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	str	xzr, [x19, #32]
	b	LBB0_7
LBB0_12:
	ldr	w8, [x19, #16]
Lloh5:
	adrp	x9, _NUM_TCB@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NUM_TCB@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	mov	w10, #21846
	movk	w10, #21845, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	cmp	w8, w9
	b.gt	LBB0_14
; %bb.13:
	ldr	w0, [x19, #4]
	bl	_netif_wake_queue
LBB0_14:
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ET_DMA10_WRAP,4,2              ; @ET_DMA10_WRAP
	.comm	_ET_DMA10_MASK,4,2              ; @ET_DMA10_MASK
	.comm	_NUM_TCB,4,2                    ; @NUM_TCB
	.no_dead_strip	_et131x_handle_send_pkts
.subsections_via_symbols
