	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_slot_by_index
_free_slot_by_index:                    ## @free_slot_by_index
	.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	_FINFO@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movslq	%edi, %rax
	leaq	(%rax,%rax,2), %rbx
	movq	_FINFO_ACTIVE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, (%r12,%rbx,8)
	je	LBB0_1
## %bb.2:
	leaq	(%r12,%rbx,8), %r15
	movl	20(%r12,%rbx,8), %edi
	callq	_netbuffree
	movq	_svc_maxfd@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, 8(%r12,%rbx,8)
	jl	LBB0_4
## %bb.3:
	decq	%rcx
	movq	%rcx, (%rax)
LBB0_4:
	movl	16(%r12,%rbx,8), %edi
	callq	_free
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%r15)
	movq	_rpcb_rmtcalls@GOTPCREL(%rip), %rax
	decl	(%rax)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FINFO,8,3                      ## @FINFO
	.comm	_FINFO_ACTIVE,4,2               ## @FINFO_ACTIVE
	.comm	_svc_maxfd,8,3                  ## @svc_maxfd
	.comm	_rpcb_rmtcalls,4,2              ## @rpcb_rmtcalls
	.no_dead_strip	_free_slot_by_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_slot_by_index
_free_slot_by_index:                    ; @free_slot_by_index
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _FINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FINFO@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	w8, #24
	smaddl	x19, w0, w8, x21
	ldr	w8, [x19]
Lloh3:
	adrp	x20, _FINFO_ACTIVE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _FINFO_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	sxtw	x22, w0
	mov	w8, #24
	madd	x23, x22, x8, x21
	ldr	w0, [x23, #20]
	bl	_netbuffree
	ldr	x10, [x23, #8]
Lloh5:
	adrp	x8, _svc_maxfd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _svc_maxfd@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x10, x9
	b.lt	LBB0_3
; %bb.2:
	sub	x9, x9, #1
	str	x9, [x8]
LBB0_3:
	mov	w8, #24
	madd	x8, x22, x8, x21
	ldr	w0, [x8, #16]
	bl	_free
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh7:
	adrp	x8, _rpcb_rmtcalls@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rpcb_rmtcalls@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FINFO,8,3                      ; @FINFO
	.comm	_FINFO_ACTIVE,4,2               ; @FINFO_ACTIVE
	.comm	_svc_maxfd,8,3                  ; @svc_maxfd
	.comm	_rpcb_rmtcalls,4,2              ; @rpcb_rmtcalls
	.no_dead_strip	_free_slot_by_index
.subsections_via_symbols
