	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_point_close               ## -- Begin function comm_point_close
	.p2align	4, 0x90
_comm_point_close:                      ## @comm_point_close
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$-1, (%rdi)
	je	LBB0_4
## %bb.2:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_ub_event_del
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
LBB0_4:
	movl	40(%rbx), %edi
	callq	_tcl_close_connection
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_tcp_req_info_clear
LBB0_6:
	movl	(%rbx), %edx
	cmpl	$-1, %edx
	je	LBB0_12
## %bb.7:
	cmpl	$0, 24(%rbx)
	jne	LBB0_12
## %bb.8:
	movq	8(%rbx), %rax
	movq	_comm_tcp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	_comm_http@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_10:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movq	_UB_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ub_winsock_tcp_wouldblock
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movq	_UB_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ub_winsock_tcp_wouldblock
	movl	(%rbx), %edx
LBB0_11:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_verbose
	movl	(%rbx), %edi
	callq	_close
LBB0_12:
	movl	$-1, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
LBB0_13:
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not event_del on close"

	.comm	_comm_tcp,8,3                   ## @comm_tcp
	.comm	_comm_http,8,3                  ## @comm_http
	.comm	_UB_EV_READ,4,2                 ## @UB_EV_READ
	.comm	_UB_EV_WRITE,4,2                ## @UB_EV_WRITE
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
L_.str.1:                               ## @.str.1
	.asciz	"close fd %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_point_close               ; -- Begin function comm_point_close
	.p2align	2
_comm_point_close:                      ; @comm_point_close
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_12
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_ub_event_del
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
LBB0_4:
	ldr	w0, [x19, #40]
	bl	_tcl_close_connection
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_tcp_req_info_clear
LBB0_6:
	ldr	w2, [x19]
	cmn	w2, #1
	b.eq	LBB0_11
; %bb.7:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_11
; %bb.8:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _comm_tcp@GOTPAGE
Lloh3:
	ldr	x9, [x9, _comm_tcp@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _comm_http@GOTPAGE
Lloh6:
	ldr	x10, [x10, _comm_http@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _UB_EV_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UB_EV_READ@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_ub_winsock_tcp_wouldblock
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _UB_EV_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UB_EV_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_ub_winsock_tcp_wouldblock
	ldr	w2, [x19]
LBB0_10:
Lloh14:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_verbose
	ldr	w0, [x19]
	bl	_close
LBB0_11:
	mov	w8, #-1
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_12:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not event_del on close"

	.comm	_comm_tcp,8,3                   ; @comm_tcp
	.comm	_comm_http,8,3                  ; @comm_http
	.comm	_UB_EV_READ,4,2                 ; @UB_EV_READ
	.comm	_UB_EV_WRITE,4,2                ; @UB_EV_WRITE
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
l_.str.1:                               ; @.str.1
	.asciz	"close fd %d"

.subsections_via_symbols
