	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function close_connection
_close_connection:                      ## @close_connection
	.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	_gdb_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	_write_event@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_mevent_delete
	movq	_read_event@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_mevent_delete_close
	movq	$0, (%r15)
	movq	$0, (%rbx)
	movq	_cur_comm@GOTPCREL(%rip), %rdi
	callq	_io_buffer_reset
	movq	_cur_resp@GOTPCREL(%rip), %rdi
	callq	_io_buffer_reset
	movq	_cur_fd@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	xorl	%eax, %eax
	callq	_gdb_resume_vcpus
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gdb_lock,4,2                   ## @gdb_lock
	.comm	_write_event,8,3                ## @write_event
	.comm	_read_event,8,3                 ## @read_event
	.comm	_cur_comm,4,2                   ## @cur_comm
	.comm	_cur_resp,4,2                   ## @cur_resp
	.comm	_cur_fd,4,2                     ## @cur_fd
	.no_dead_strip	_close_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function close_connection
_close_connection:                      ; @close_connection
	.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
Lloh0:
	adrp	x19, _gdb_lock@GOTPAGE
Lloh1:
	ldr	x19, [x19, _gdb_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_pthread_mutex_lock
Lloh2:
	adrp	x20, _write_event@GOTPAGE
Lloh3:
	ldr	x20, [x20, _write_event@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_mevent_delete
Lloh4:
	adrp	x21, _read_event@GOTPAGE
Lloh5:
	ldr	x21, [x21, _read_event@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_mevent_delete_close
	str	xzr, [x20]
	str	xzr, [x21]
Lloh6:
	adrp	x0, _cur_comm@GOTPAGE
Lloh7:
	ldr	x0, [x0, _cur_comm@GOTPAGEOFF]
	bl	_io_buffer_reset
Lloh8:
	adrp	x0, _cur_resp@GOTPAGE
Lloh9:
	ldr	x0, [x0, _cur_resp@GOTPAGEOFF]
	bl	_io_buffer_reset
Lloh10:
	adrp	x8, _cur_fd@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cur_fd@GOTPAGEOFF]
	mov	w9, #-1
Lloh12:
	str	w9, [x8]
	bl	_gdb_resume_vcpus
	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	_pthread_mutex_unlock
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_gdb_lock,4,2                   ; @gdb_lock
	.comm	_write_event,8,3                ; @write_event
	.comm	_read_event,8,3                 ; @read_event
	.comm	_cur_comm,4,2                   ; @cur_comm
	.comm	_cur_resp,4,2                   ; @cur_resp
	.comm	_cur_fd,4,2                     ; @cur_fd
	.no_dead_strip	_close_connection
.subsections_via_symbols
