	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spider_net_set_low_watermark
_spider_net_set_low_watermark:          ## @spider_net_set_low_watermark
	.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	%rdi, %r14
	movq	8(%rdi), %r12
	movq	16(%rdi), %rax
	cmpq	%rax, %r12
	je	LBB0_1
## %bb.2:
	movq	_SPIDER_NET_DESCR_NOT_IN_USE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	movq	%r12, %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rsi
	movl	(%rsi), %esi
	notl	%esi
	testl	%esi, %ecx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movq	8(%rdx), %rdx
	cmpq	%rax, %rdx
	jne	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movl	(%r14), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_16
## %bb.6:
	leal	(%rbx,%rbx,2), %eax
	movl	%eax, %ebx
	shrl	$2, %ebx
	cmpl	$4, %eax
	jb	LBB0_12
## %bb.7:
	cmpl	$2, %ebx
	movl	$1, %ecx
	cmovael	%ebx, %ecx
	leal	-1(%rcx), %edx
	movl	%ecx, %eax
	andl	$7, %eax
	cmpl	$7, %edx
	jb	LBB0_10
## %bb.8:
	andl	$-8, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdx
	movq	8(%rdx), %rdx
	movq	8(%rdx), %rdx
	movq	8(%rdx), %rdx
	movq	8(%rdx), %rdx
	movq	8(%rdx), %rdx
	movq	8(%rdx), %rdx
	movq	8(%rdx), %r12
	addl	$-8, %ecx
	jne	LBB0_9
LBB0_10:
	testl	%eax, %eax
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r12
	decl	%eax
	jne	LBB0_11
LBB0_12:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_SPIDER_NET_DESCR_TXDESFLG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r12), %rdx
	orl	%ecx, (%rdx)
	movq	24(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.13:
	cmpq	%r12, %rcx
	je	LBB0_15
## %bb.14:
	movq	(%rcx), %rcx
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rcx)
LBB0_15:
	movq	%r12, 24(%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPIDER_NET_DESCR_NOT_IN_USE,4,2 ## @SPIDER_NET_DESCR_NOT_IN_USE
	.comm	_SPIDER_NET_DESCR_TXDESFLG,4,2  ## @SPIDER_NET_DESCR_TXDESFLG
	.no_dead_strip	_spider_net_set_low_watermark
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spider_net_set_low_watermark
_spider_net_set_low_watermark:          ; @spider_net_set_low_watermark
	.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	x20, x0
	ldp	x22, x8, [x0, #8]
	cmp	x22, x8
	b.eq	LBB0_4
; %bb.1:
	mov	w19, #0
Lloh0:
	adrp	x9, _SPIDER_NET_DESCR_NOT_IN_USE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPIDER_NET_DESCR_NOT_IN_USE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x10, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	w11, [x11]
	bics	wzr, w9, w11
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w19, w19, #1
	ldr	x10, [x10, #8]
	cmp	x10, x8
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	ldr	w8, [x20]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w19, w8, asr #2
	b.lt	LBB0_12
; %bb.6:
	add	w8, w19, w19, lsl #1
	lsr	w19, w8, #2
	cmp	w8, #4
	b.lo	LBB0_9
; %bb.7:
	cmp	w19, #1
	csinc	w8, w19, wzr, hi
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x22, #8]
	subs	w8, w8, #1
	b.ne	LBB0_8
LBB0_9:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _SPIDER_NET_DESCR_TXDESFLG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPIDER_NET_DESCR_TXDESFLG@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	x10, [x22]
	ldr	w11, [x10]
	orr	w9, w11, w9
	str	w9, [x10]
	ldr	x9, [x20, #24]
	cmp	x9, #0
	ccmp	x9, x22, #4, ne
	b.eq	LBB0_11
; %bb.10:
	ldr	x9, [x9]
	ldr	w10, [x9]
	ldr	w8, [x8]
	bic	w8, w10, w8
	str	w8, [x9]
LBB0_11:
	str	x22, [x20, #24]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_12:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SPIDER_NET_DESCR_NOT_IN_USE,4,2 ; @SPIDER_NET_DESCR_NOT_IN_USE
	.comm	_SPIDER_NET_DESCR_TXDESFLG,4,2  ; @SPIDER_NET_DESCR_TXDESFLG
	.no_dead_strip	_spider_net_set_low_watermark
.subsections_via_symbols
