	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_closeAndCleanup                ## -- Begin function closeAndCleanup
	.p2align	4, 0x90
_closeAndCleanup:                       ## @closeAndCleanup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_stateTable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$5, %rcx
	cmpq	$0, 88(%rax,%rcx)
	je	LBB0_4
## %bb.1:
	movl	%edi, %ebx
	cmpl	%edi, (%rax,%rcx)
	jne	LBB0_4
## %bb.2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%rax,%rcx)
	movq	72(%rax,%rcx), %rdx
	movq	(%rdx), %rsi
	movq	$0, (%rsi)
	movq	8(%rdx), %rsi
	movq	$0, (%rsi)
	movq	16(%rdx), %rsi
	movq	$0, (%rsi)
	movq	24(%rdx), %rsi
	movq	$0, (%rsi)
	movq	32(%rdx), %rdx
	movq	$0, (%rdx)
	movq	64(%rax,%rcx), %rdx
	movq	$0, (%rdx)
	movq	56(%rax,%rcx), %rdx
	movq	$0, (%rdx)
	movups	%xmm0, 32(%rax,%rcx)
	movups	%xmm0, 16(%rax,%rcx)
	movq	$0, 48(%rax,%rcx)
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_4
## %bb.3:
	addq	%rcx, %rax
	addq	$8, %rax
	movq	$0, (%rax)
	movq	_SHUT_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_shutdown
	movl	$1, -24(%rbp)
	movq	$0, -16(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_LINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rcx
	movl	%ebx, %edi
	movl	$16, %r8d
	callq	_setsockopt
	movl	%ebx, %edi
	callq	_close
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stateTable,8,3                 ## @stateTable
	.comm	_SHUT_RDWR,4,2                  ## @SHUT_RDWR
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_LINGER,4,2                  ## @SO_LINGER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_closeAndCleanup                ; -- Begin function closeAndCleanup
	.p2align	2
_closeAndCleanup:                       ; @closeAndCleanup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _stateTable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stateTable@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #96
	smaddl	x9, w0, w9, x8
	ldr	x9, [x9, #88]
	cbz	x9, LBB0_4
; %bb.1:
	mov	x19, x0
	sxtw	x9, w19
	mov	w10, #96
	mul	x10, x9, x10
	ldr	w10, [x8, x10]
	cmp	w10, w0
	b.ne	LBB0_4
; %bb.2:
	mov	w10, #96
	madd	x8, x9, x10, x8
	stp	xzr, xzr, [x8, #80]
	ldr	x9, [x8, #72]
	ldr	x10, [x9]
	str	xzr, [x10]
	ldr	x10, [x9, #8]
	str	xzr, [x10]
	ldr	x10, [x9, #16]
	str	xzr, [x10]
	ldr	x10, [x9, #24]
	str	xzr, [x10]
	ldr	x9, [x9, #32]
	str	xzr, [x9]
	ldr	x9, [x8, #64]
	str	xzr, [x9]
	ldr	x9, [x8, #56]
	str	xzr, [x9]
	ldr	x9, [x8, #8]!
	str	xzr, [x8, #40]
	movi.2d	v0, #0000000000000000
	stur	q0, [x8, #24]
	stur	q0, [x8, #8]
	cbz	x9, LBB0_4
; %bb.3:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _SHUT_RDWR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHUT_RDWR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_shutdown
	mov	w8, #1
	str	w8, [sp]
	str	xzr, [sp, #8]
Lloh6:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _SO_LINGER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SO_LINGER@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x19
	mov	w4, #16
	bl	_setsockopt
	mov	x0, x19
	bl	_close
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_stateTable,8,3                 ; @stateTable
	.comm	_SHUT_RDWR,4,2                  ; @SHUT_RDWR
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_LINGER,4,2                  ; @SO_LINGER
.subsections_via_symbols
