	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et131x_handle_recv_pkts
_et131x_handle_recv_pkts:               ## @et131x_handle_recv_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MAX_PACKETS_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	cmovll	%eax, %r14d
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.1:
	leaq	44(%rbx), %r12
	xorl	%eax, %eax
	movb	$1, %r15b
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=2
	testb	$1, %r15b
	je	LBB0_14
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_list_empty
	testq	%rax, %rax
	jne	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_nic_rx_pkts
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, 24(%rbx)
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rax, %r13
	movq	16(%rbx), %rdi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$0, (%r13)
	je	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
	incl	(%rax)
	movq	32(%rbx), %rax
	movq	_RFD_LOW_WATER_MARK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	%r14d, %eax
	setl	%r15b
	jne	LBB0_2
	jmp	LBB0_15
LBB0_14:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%r14d, %eax
	jne	LBB0_17
	jmp	LBB0_15
LBB0_12:
	xorl	%eax, %eax
	cmpl	%r14d, %eax
	je	LBB0_15
LBB0_17:
	movl	$0, 40(%rbx)
	jmp	LBB0_18
LBB0_13:
	xorl	%edi, %edi
	cmpq	$0, 32(%rbx)
	setne	%dil
	callq	_WARN_ON
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_15:
	movl	$1, 40(%rbx)
	movq	_PARM_TX_TIME_INT_DEF@GOTPCREL(%rip), %rax
	movq	_NANO_IN_A_MICRO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	imull	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_writel
	movl	%r14d, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PACKETS_HANDLED,4,2        ## @MAX_PACKETS_HANDLED
	.comm	_RFD_LOW_WATER_MARK,8,3         ## @RFD_LOW_WATER_MARK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RFD's are running out\n"

	.comm	_PARM_TX_TIME_INT_DEF,4,2       ## @PARM_TX_TIME_INT_DEF
	.comm	_NANO_IN_A_MICRO,4,2            ## @NANO_IN_A_MICRO
	.no_dead_strip	_et131x_handle_recv_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_recv_pkts
_et131x_handle_recv_pkts:               ; @et131x_handle_recv_pkts
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX_PACKETS_HANDLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PACKETS_HANDLED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	csel	w24, w8, w1, lt
	cmp	w24, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w20, #0
	add	x21, x19, #44
	mov	w26, #1
Lloh3:
	adrp	x25, _RFD_LOW_WATER_MARK@GOTPAGE
Lloh4:
	ldr	x25, [x25, _RFD_LOW_WATER_MARK@GOTPAGEOFF]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	tbz	w26, #0, LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_list_empty
	cbnz	x0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_nic_rx_pkts
	cbz	x0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	x0, [x19, #16]
	bl	_netif_carrier_ok
	cbz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x19, #32]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_dev_warn
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	cmp	w20, w24
	cset	w26, lt
	b.ne	LBB0_3
	b	LBB0_15
LBB0_11:
	mov	w20, #0
LBB0_12:
	cmp	w20, w24
	b.eq	LBB0_15
; %bb.13:
	str	wzr, [x19, #40]
	b	LBB0_16
LBB0_14:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	mov	x24, x20
LBB0_15:
	mov	w8, #1
	str	w8, [x19, #40]
Lloh7:
	adrp	x8, _PARM_TX_TIME_INT_DEF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PARM_TX_TIME_INT_DEF@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _NANO_IN_A_MICRO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NANO_IN_A_MICRO@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	mul	w0, w9, w8
	ldr	x1, [x19]
	bl	_writel
	mov	x20, x24
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PACKETS_HANDLED,4,2        ; @MAX_PACKETS_HANDLED
	.comm	_RFD_LOW_WATER_MARK,8,3         ; @RFD_LOW_WATER_MARK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RFD's are running out\n"

	.comm	_PARM_TX_TIME_INT_DEF,4,2       ; @PARM_TX_TIME_INT_DEF
	.comm	_NANO_IN_A_MICRO,4,2            ; @NANO_IN_A_MICRO
	.no_dead_strip	_et131x_handle_recv_pkts
.subsections_via_symbols
