	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spider_net_resync_tail_ptr
_spider_net_resync_tail_ptr:            ## @spider_net_resync_tail_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, %r14
	movq	8(%rdi), %rbx
	movl	(%rbx), %edi
	callq	_spider_net_get_descr_status
	movl	(%r14), %ecx
	xorl	%r15d, %r15d
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.1:
	movq	_SPIDER_NET_DESCR_CARDOWNED@GOTPCREL(%rip), %r12
	movq	_SPIDER_NET_DESCR_NOT_IN_USE@GOTPCREL(%rip), %r13
	cmpl	(%r12), %eax
	je	LBB0_3
## %bb.2:
	cmpl	(%r13), %eax
	jne	LBB0_7
LBB0_3:
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %r15d
	movq	8(%rbx), %rbx
	movl	(%rbx), %edi
	callq	_spider_net_get_descr_status
	movl	(%r14), %ecx
	cmpl	%ecx, %r15d
	jge	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	1(%r15), %edx
	cmpl	(%r12), %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	(%r13), %eax
	je	LBB0_6
LBB0_7:
	movq	%rbx, 8(%r14)
	cmpl	%ecx, %r15d
	sete	%al
	testl	%r15d, %r15d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPIDER_NET_DESCR_CARDOWNED,4,2 ## @SPIDER_NET_DESCR_CARDOWNED
	.comm	_SPIDER_NET_DESCR_NOT_IN_USE,4,2 ## @SPIDER_NET_DESCR_NOT_IN_USE
	.no_dead_strip	_spider_net_resync_tail_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_tail_ptr
_spider_net_resync_tail_ptr:            ; @spider_net_resync_tail_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	x20, [x0, #8]
	ldr	w0, [x20]
	bl	_spider_net_get_descr_status
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
Lloh0:
	adrp	x22, _SPIDER_NET_DESCR_CARDOWNED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SPIDER_NET_DESCR_CARDOWNED@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh2:
	adrp	x23, _SPIDER_NET_DESCR_NOT_IN_USE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SPIDER_NET_DESCR_NOT_IN_USE@GOTPAGEOFF]
	ldr	w10, [x23]
	cmp	w0, w9
	ccmp	w0, w10, #4, ne
	b.ne	LBB0_5
; %bb.2:
	mov	w9, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x9
	ldr	x20, [x20, #8]
	ldr	w0, [x20]
	bl	_spider_net_get_descr_status
	ldr	w8, [x19]
	cmp	w21, w8
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x22]
	ldr	w11, [x23]
	add	w9, w21, #1
	cmp	w0, w10
	ccmp	w0, w11, #4, ne
	b.eq	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	str	x20, [x19, #8]
	cmp	w21, #0
	ccmp	w21, w8, #4, ne
	cset	w0, eq
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SPIDER_NET_DESCR_CARDOWNED,4,2 ; @SPIDER_NET_DESCR_CARDOWNED
	.comm	_SPIDER_NET_DESCR_NOT_IN_USE,4,2 ; @SPIDER_NET_DESCR_NOT_IN_USE
	.no_dead_strip	_spider_net_resync_tail_ptr
.subsections_via_symbols
