	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function server_close_fd
_server_close_fd:                       ## @server_close_fd
	.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	%rsi, %r15
	movq	%rdi, %r14
	leaq	16(%rdi), %r12
	movq	%rsi, %rdi
	movq	%r12, %rsi
	callq	_FD_ISSET
	movl	%eax, %edi
	callq	_assert
	movq	8(%r14), %rax
	movq	%r15, %rbx
	shlq	$4, %rbx
	movl	8(%rax,%rbx), %edi
	callq	_assert
	movq	%r15, %rdi
	callq	_close
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_FD_CLR
	cmpq	%r15, (%r14)
	jne	LBB0_2
## %bb.1:
	leaq	-1(%r15), %rax
	movq	%rax, (%r14)
LBB0_2:
	movq	8(%r14), %rdi
	movq	(%rdi,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	callq	_free
	movq	8(%r14), %rdi
LBB0_4:
	addq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	xorl	%eax, %eax
	callq	_provider_get_first
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rbx
	testq	%r14, %r14
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_provider_get_next
	movq	%rax, %r14
	cmpq	%r15, (%rbx)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_provider_unregister
	jmp	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_server_close_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function server_close_fd
_server_close_fd:                       ; @server_close_fd
	.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	x19, x1
	mov	x20, x0
	add	x21, x0, #16
	mov	x0, x1
	mov	x1, x21
	bl	_FD_ISSET
	bl	_assert
	ldr	x8, [x20, #8]
	add	x8, x8, x19, lsl #4
	ldr	w0, [x8, #8]
	bl	_assert
	mov	x0, x19
	bl	_close
	mov	x0, x19
	mov	x1, x21
	bl	_FD_CLR
	ldr	x8, [x20]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.1:
	sub	x8, x19, #1
	str	x8, [x20]
LBB0_2:
	ldr	x8, [x20, #8]
	lsl	x9, x19, #4
	ldr	x0, [x8, x9]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_free
	ldr	x8, [x20, #8]
LBB0_4:
	add	x0, x8, x19, lsl #4
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	bl	_provider_get_first
	cbz	x0, LBB0_9
; %bb.5:
	mov	x20, x0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x20, x21
	cbz	x21, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_provider_get_next
	mov	x21, x0
	ldr	x8, [x20]
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_provider_unregister
	b	LBB0_6
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_server_close_fd
.subsections_via_symbols
