	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function destroy
_destroy:                               ## @destroy
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	32(%rbx), %r15
	movq	_CREATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_isc_msgcat@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ISC_MSGSET_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ISC_MSG_DESTROYING@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_socket_log
	movl	24(%rbx), %edi
	callq	_ISC_LIST_EMPTY
	movq	%rax, %rdi
	callq	_INSIST
	movl	20(%rbx), %edi
	callq	_ISC_LIST_EMPTY
	movq	%rax, %rdi
	callq	_INSIST
	movl	16(%rbx), %edi
	callq	_ISC_LIST_EMPTY
	movq	%rax, %rdi
	callq	_INSIST
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	callq	_INSIST
	movl	(%rbx), %eax
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	16(%r15), %eax
	setl	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_REQUIRE
	movl	(%rbx), %edx
	testl	%edx, %edx
	js	LBB0_5
## %bb.4:
	movl	$-1, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_closesocket
LBB0_5:
	movq	%r15, %rdi
	callq	_LOCK
	movl	8(%r15), %edi
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_ISC_LIST_UNLINK
	movq	%r14, %rdi
	callq	_free_socket
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UNLOCK                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CREATION,4,2                   ## @CREATION
	.comm	_isc_msgcat,4,2                 ## @isc_msgcat
	.comm	_ISC_MSGSET_SOCKET,4,2          ## @ISC_MSGSET_SOCKET
	.comm	_ISC_MSG_DESTROYING,4,2         ## @ISC_MSG_DESTROYING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"destroying"

	.comm	_link,4,2                       ## @link
	.no_dead_strip	_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function destroy
_destroy:                               ; @destroy
	.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
	ldr	x21, [x0]
	ldr	x19, [x21, #32]
Lloh0:
	adrp	x8, _CREATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CREATION@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _isc_msgcat@GOTPAGE
Lloh4:
	ldr	x8, [x8, _isc_msgcat@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _ISC_MSGSET_SOCKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISC_MSGSET_SOCKET@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _ISC_MSG_DESTROYING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISC_MSG_DESTROYING@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x6, l_.str@PAGE
Lloh13:
	add	x6, x6, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	bl	_socket_log
	ldr	w0, [x21, #24]
	bl	_ISC_LIST_EMPTY
	bl	_INSIST
	ldr	w0, [x21, #20]
	bl	_ISC_LIST_EMPTY
	bl	_INSIST
	ldr	w0, [x21, #16]
	bl	_ISC_LIST_EMPTY
	bl	_INSIST
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_INSIST
	ldr	w8, [x21]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x19, #16]
	cmp	w8, w9
	cset	w0, lt
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_REQUIRE
	ldr	w2, [x21]
	tbnz	w2, #31, LBB0_5
; %bb.4:
	mov	w8, #-1
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_closesocket
LBB0_5:
	mov	x0, x19
	bl	_LOCK
	ldr	w0, [x19, #8]
Lloh14:
	adrp	x8, _link@GOTPAGE
Lloh15:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_ISC_LIST_UNLINK
	mov	x0, x20
	bl	_free_socket
	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
	b	_UNLOCK
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CREATION,4,2                   ; @CREATION
	.comm	_isc_msgcat,4,2                 ; @isc_msgcat
	.comm	_ISC_MSGSET_SOCKET,4,2          ; @ISC_MSGSET_SOCKET
	.comm	_ISC_MSG_DESTROYING,4,2         ; @ISC_MSG_DESTROYING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"destroying"

	.comm	_link,4,2                       ; @link
	.no_dead_strip	_destroy
.subsections_via_symbols
