	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spider_net_resync_head_ptr
_spider_net_resync_head_ptr:            ## @spider_net_resync_head_ptr
	.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, %r15
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_spider_net_get_descr_status
	movq	_SPIDER_NET_DESCR_NOT_IN_USE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r15), %r13
	movl	(%r13), %edi
	callq	_spider_net_get_descr_status
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.2:
	movq	_SPIDER_NET_DESCR_CARDOWNED@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_6
## %bb.3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r13
	movl	(%r13), %edi
	callq	_spider_net_get_descr_status
	cmpl	(%r15), %ebx
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	(%r12), %eax
	je	LBB0_4
LBB0_6:
	movq	%r13, 8(%r15)
	movq	%r14, %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	_SPIDER_NET_DESCR_NOT_IN_USE,4,2 ## @SPIDER_NET_DESCR_NOT_IN_USE
	.comm	_SPIDER_NET_DESCR_CARDOWNED,4,2 ## @SPIDER_NET_DESCR_CARDOWNED
	.no_dead_strip	_spider_net_resync_head_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spider_net_resync_head_ptr
_spider_net_resync_head_ptr:            ; @spider_net_resync_head_ptr
	.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	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_spider_net_get_descr_status
Lloh0:
	adrp	x8, _SPIDER_NET_DESCR_NOT_IN_USE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPIDER_NET_DESCR_NOT_IN_USE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	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
	ret
LBB0_2:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x21, [x19, #8]
	ldr	w0, [x21]
	bl	_spider_net_get_descr_status
	ldr	w8, [x19]
Lloh3:
	adrp	x22, _SPIDER_NET_DESCR_CARDOWNED@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SPIDER_NET_DESCR_CARDOWNED@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, #1
	ccmp	w0, w9, #0, ge
	b.ne	LBB0_5
; %bb.3:
	mov	w23, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x21, #8]
	ldr	w0, [x21]
	bl	_spider_net_get_descr_status
	ldr	w8, [x19]
	ldr	w9, [x22]
	cmp	w23, w8
	add	w23, w23, #1
	ccmp	w0, w9, #0, lt
	b.eq	LBB0_4
LBB0_5:
	str	x21, [x19, #8]
	mov	x0, x20
	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 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_CARDOWNED,4,2 ; @SPIDER_NET_DESCR_CARDOWNED
	.no_dead_strip	_spider_net_resync_head_ptr
.subsections_via_symbols
