	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __lpc_handle_xmit
___lpc_handle_xmit:                     ## @__lpc_handle_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movl	28(%rax), %edi
	callq	_LPC_ENET_TXCONSUMEINDEX
	movl	%eax, %edi
	callq	_readl
	movl	(%r15), %ecx
	cmpl	%eax, %ecx
	jne	LBB0_1
LBB0_13:
	movq	_ENET_TX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, 24(%r15)
	jg	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	12(%r14), %r12
	leaq	8(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %rax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	(%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%r13d, (%rax)
	movl	28(%r15), %edi
	callq	_LPC_ENET_TXCONSUMEINDEX
	movl	%eax, %edi
	callq	_readl
	movl	(%r15), %ecx
	cmpl	%eax, %ecx
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rax
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	movl	(%rcx,%rax,4), %r13d
	movl	(%rdx,%rax,4), %ebx
	decl	24(%r15)
	incl	%eax
	movl	%eax, (%r15)
	movq	_ENET_TX_DESC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$0, %ecx
	cmovgel	%ecx, %eax
	movl	%eax, (%r15)
	movl	%ebx, %edi
	callq	_TXSTATUS_COLLISIONS_GET
	addl	%eax, 20(%r14)
	movq	_TXSTATUS_ERROR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TXSTATUS_UNDERRUN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%r14)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TXSTATUS_LATECOLL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	(%r12)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TXSTATUS_EXCESSCOLL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	(%r12)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r13d
	movq	%r12, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_TXSTATUS_EXCESSDEFER@GOTPCREL(%rip), %rdx
	testl	%ebx, (%rdx)
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENET_TX_DESC,4,2               ## @ENET_TX_DESC
	.comm	_TXSTATUS_ERROR,4,2             ## @TXSTATUS_ERROR
	.comm	_TXSTATUS_UNDERRUN,4,2          ## @TXSTATUS_UNDERRUN
	.comm	_TXSTATUS_LATECOLL,4,2          ## @TXSTATUS_LATECOLL
	.comm	_TXSTATUS_EXCESSCOLL,4,2        ## @TXSTATUS_EXCESSCOLL
	.comm	_TXSTATUS_EXCESSDEFER,4,2       ## @TXSTATUS_EXCESSDEFER
	.no_dead_strip	___lpc_handle_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __lpc_handle_xmit
___lpc_handle_xmit:                     ; @__lpc_handle_xmit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x0, #28]
	bl	_LPC_ENET_TXCONSUMEINDEX
	bl	_readl
	ldr	w8, [x20]
Lloh0:
	adrp	x22, _ENET_TX_DESC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ENET_TX_DESC@GOTPAGEOFF]
	cmp	w8, w0
	b.ne	LBB0_5
LBB0_1:
	ldr	w8, [x20, #24]
	ldr	w9, [x22]
	cmp	w9, #0
	cinc	w9, w9, lt
	cmp	w8, w9, asr #1
	b.gt	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_netif_wake_queue
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	add	x23, x19, #12
	add	x24, x19, #8
	add	x25, x19, #4
Lloh2:
	adrp	x26, _TXSTATUS_ERROR@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TXSTATUS_ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x28, _TXSTATUS_EXCESSDEFER@GOTPAGE
Lloh5:
	ldr	x28, [x28, _TXSTATUS_EXCESSDEFER@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x9, x25
	mov	x8, x19
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x8]
	add	w9, w9, w27
	str	w9, [x8]
	ldr	w0, [x20, #28]
	bl	_LPC_ENET_TXCONSUMEINDEX
	bl	_readl
	ldr	w8, [x20]
	cmp	w8, w0
	b.eq	LBB0_1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sbfiz	x9, x8, #2, #32
	ldp	x10, x11, [x20, #8]
	ldr	w27, [x10, x9]
	ldr	w21, [x11, x9]
	ldr	w9, [x20, #24]
	sub	w9, w9, #1
	str	w9, [x20, #24]
	add	w9, w8, #1
	str	w9, [x20]
	ldr	w10, [x22]
	cmp	w9, w10
	csinc	w8, wzr, w8, ge
	str	w8, [x20]
	mov	x0, x21
	bl	_TXSTATUS_COLLISIONS_GET
	ldr	w8, [x19, #20]
	add	w8, w8, w0
	str	w8, [x19, #20]
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh6:
	adrp	x8, _TXSTATUS_UNDERRUN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TXSTATUS_UNDERRUN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh9:
	adrp	x8, _TXSTATUS_LATECOLL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TXSTATUS_LATECOLL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh12:
	adrp	x8, _TXSTATUS_EXCESSCOLL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TXSTATUS_EXCESSCOLL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w10, [x28]
	mov	w27, #1
	mov	x9, x23
	mov	x8, x24
	tst	w10, w21
	b.ne	LBB0_7
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENET_TX_DESC,4,2               ; @ENET_TX_DESC
	.comm	_TXSTATUS_ERROR,4,2             ; @TXSTATUS_ERROR
	.comm	_TXSTATUS_UNDERRUN,4,2          ; @TXSTATUS_UNDERRUN
	.comm	_TXSTATUS_LATECOLL,4,2          ; @TXSTATUS_LATECOLL
	.comm	_TXSTATUS_EXCESSCOLL,4,2        ; @TXSTATUS_EXCESSCOLL
	.comm	_TXSTATUS_EXCESSDEFER,4,2       ; @TXSTATUS_EXCESSDEFER
	.no_dead_strip	___lpc_handle_xmit
.subsections_via_symbols
