	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eth_check_num_used
_eth_check_num_used:                    ## @eth_check_num_used
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	_TX_DESCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_TX_DESC_RESERVE@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	xorl	%eax, %eax
	cmpq	%rbx, %r14
	setge	%al
	cmpl	%eax, 8(%rdi)
	jne	LBB0_1
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, 8(%rdi)
	movq	_switch_port_tab@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.2:
	movq	(%rcx), %rdi
	cmpq	%rbx, %r14
	jge	LBB0_6
## %bb.3:
	callq	_netif_wake_queue
	movq	(%r15), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	(%rax), %rdi
	jmp	LBB0_5
LBB0_8:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	(%rax), %rdi
	cmpq	%rbx, %r14
	jge	LBB0_10
LBB0_5:
	callq	_netif_wake_queue
	jmp	LBB0_11
LBB0_6:
	callq	_netif_stop_queue
	movq	(%r15), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	(%rax), %rdi
LBB0_10:
	callq	_netif_stop_queue
LBB0_11:
	movq	(%r15), %rax
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.12:
	movq	(%rcx), %rdi
	cmpq	%rbx, %r14
	jge	LBB0_15
## %bb.13:
	callq	_netif_wake_queue
	movq	(%r15), %rax
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movq	(%rax), %rdi
	jmp	LBB0_19
LBB0_20:
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	movq	(%rax), %rdi
	cmpq	%rbx, %r14
	jge	LBB0_17
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_15:
	callq	_netif_stop_queue
	movq	(%r15), %rax
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.16:
	movq	(%rax), %rdi
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_stop_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_DESCS,8,3                   ## @TX_DESCS
	.comm	_TX_DESC_RESERVE,8,3            ## @TX_DESC_RESERVE
	.comm	_switch_port_tab,8,3            ## @switch_port_tab
	.no_dead_strip	_eth_check_num_used
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eth_check_num_used
_eth_check_num_used:                    ; @eth_check_num_used
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _TX_DESCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_DESCS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _TX_DESC_RESERVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TX_DESC_RESERVE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x20, x8, x9
	cmp	x19, x20
	cset	w8, ge
	ldr	w9, [x0, #8]
	cmp	w9, w8
	b.ne	LBB0_2
LBB0_1:
	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_2:
	str	w8, [x0, #8]
Lloh6:
	adrp	x21, _switch_port_tab@GOTPAGE
Lloh7:
	ldr	x21, [x21, _switch_port_tab@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.3:
	ldr	x0, [x9]
	cmp	x19, x20
	b.ge	LBB0_9
; %bb.4:
	bl	_netif_wake_queue
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
; %bb.5:
	ldr	x0, [x8]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
; %bb.7:
	ldr	x0, [x8]
	cmp	x19, x20
	b.ge	LBB0_11
LBB0_8:
	bl	_netif_wake_queue
	b	LBB0_12
LBB0_9:
	bl	_netif_stop_queue
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x0, [x8]
LBB0_11:
	bl	_netif_stop_queue
LBB0_12:
	ldr	x8, [x21]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_16
; %bb.13:
	ldr	x0, [x9]
	cmp	x19, x20
	b.ge	LBB0_19
; %bb.14:
	bl	_netif_wake_queue
	ldr	x8, [x21]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_1
; %bb.15:
	ldr	x0, [x8]
	b	LBB0_18
LBB0_16:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_1
; %bb.17:
	ldr	x0, [x8]
	cmp	x19, x20
	b.ge	LBB0_21
LBB0_18:
	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
	b	_netif_wake_queue
LBB0_19:
	bl	_netif_stop_queue
	ldr	x8, [x21]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_1
; %bb.20:
	ldr	x0, [x8]
LBB0_21:
	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
	b	_netif_stop_queue
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_DESCS,8,3                   ; @TX_DESCS
	.comm	_TX_DESC_RESERVE,8,3            ; @TX_DESC_RESERVE
	.comm	_switch_port_tab,8,3            ; @switch_port_tab
	.no_dead_strip	_eth_check_num_used
.subsections_via_symbols
