	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_point_create_tcp          ## -- Begin function comm_point_create_tcp
	.p2align	4, 0x90
_comm_point_create_tcp:                 ## @comm_point_create_tcp
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$200, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r12
	movl	$1, %edi
	movl	$200, %esi
	callq	_calloc
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	%ebx, %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 192(%rax)
	movl	%r15d, (%r12)
	movq	$0, 24(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 168(%r12)
	movq	$0, 184(%r12)
	movl	%r14d, 4(%r12)
	movq	%r13, 160(%r12)
	movups	%xmm0, 136(%r12)
	movq	$0, 152(%r12)
	movl	%ecx, 8(%r12)
	movq	$0, 128(%r12)
	movl	%ecx, %r14d
	movslq	%ecx, %rdi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	$0, 120(%r12)
	movq	_comm_tcp_accept@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r12)
	movups	%xmm0, 80(%r12)
	movups	%xmm0, 96(%r12)
	movq	_UB_EV_READ@GOTPCREL(%rip), %rax
	movq	_UB_EV_PERSIST@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %edx
	orw	(%rax), %dx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	movq	_comm_point_tcp_accept_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movswl	%dx, %edx
	movq	%r12, %r8
	callq	_ub_event_new
	movq	32(%r12), %rcx
	movq	%rax, 32(%rcx)
	movq	32(%r12), %rax
	movq	32(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.4:
	movq	24(%r12), %rsi
	callq	_ub_event_add
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_6:
	movq	32(%r12), %rdi
	callq	_free
LBB0_7:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str(%rip), %rdi
LBB0_9:
	callq	_log_err
LBB0_10:
	movq	%r12, %rdi
	callq	_comm_point_delete
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.14:
	movl	%r14d, %eax
	movq	24(%rbp), %r13
	movq	16(%rbp), %r14
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	32(%rbp), %r9
	callq	_comm_point_create_tcp_handler
	movq	16(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	16(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_10
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_15
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_comm_tcp_accept,4,2            ## @comm_tcp_accept
	.comm	_UB_EV_READ,2,1                 ## @UB_EV_READ
	.comm	_UB_EV_PERSIST,2,1              ## @UB_EV_PERSIST
	.comm	_comm_point_tcp_accept_callback,4,2 ## @comm_point_tcp_accept_callback
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not baseset tcpacc event"

L_.str.1:                               ## @.str.1
	.asciz	"could not add tcpacc event"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_point_create_tcp          ; -- Begin function comm_point_create_tcp
	.p2align	2
_comm_point_create_tcp:                 ; @comm_point_create_tcp
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x7
	mov	x21, x6
	mov	x22, x5
	mov	x25, x4
	mov	x26, x3
	mov	x24, x2
	mov	x27, x1
	mov	x23, x0
	mov	w0, #1
	mov	w1, #200
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
	mov	w0, #1
	mov	w1, #200
	bl	_calloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_7
; %bb.2:
	str	x23, [x0, #192]
	str	xzr, [x19, #24]
	stp	xzr, xzr, [x19, #176]
	stp	w27, w26, [x19]
	stp	x25, xzr, [x19, #160]
	stp	xzr, xzr, [x19, #144]
	str	w24, [x19, #8]
	sxtw	x0, w24
	stp	xzr, xzr, [x19, #128]
	mov	w1, #8
	bl	_calloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.3:
	str	xzr, [x19, #120]
Lloh0:
	adrp	x8, _comm_tcp_accept@GOTPAGE
Lloh1:
	ldr	x8, [x8, _comm_tcp_accept@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #112]
	stp	xzr, xzr, [x19, #40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #80]
Lloh3:
	adrp	x8, _UB_EV_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UB_EV_READ@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh5:
	adrp	x9, _UB_EV_PERSIST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UB_EV_PERSIST@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x23]
	ldr	w0, [x9]
	ldr	w1, [x19]
Lloh7:
	adrp	x9, _comm_point_tcp_accept_callback@GOTPAGE
Lloh8:
	ldr	x9, [x9, _comm_point_tcp_accept_callback@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x9]
	sxth	w2, w8
	mov	x4, x19
	bl	_ub_event_new
	ldr	x8, [x19, #32]
	str	x0, [x8, #32]
	ldr	x8, [x19, #32]
	ldr	x0, [x8, #32]
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x1, [x19, #24]
	bl	_ub_event_add
	cbz	x0, LBB0_13
; %bb.5:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19, #32]
	bl	_free
LBB0_7:
	mov	x0, x19
	bl	_free
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	bl	_log_err
LBB0_10:
	mov	x0, x19
	bl	_comm_point_delete
LBB0_11:
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	cmp	w24, #1
	b.lt	LBB0_12
; %bb.14:
	mov	x26, #0
	ldr	x25, [x29, #16]
	mov	w8, w24
	lsl	x24, x8, #3
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x25
	bl	_comm_point_create_tcp_handler
	ldr	x8, [x19, #16]
	str	x0, [x8, x26]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x26]
	cbz	x8, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x26, x26, #8
	cmp	x24, x26
	b.ne	LBB0_15
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_comm_tcp_accept,4,2            ; @comm_tcp_accept
	.comm	_UB_EV_READ,2,1                 ; @UB_EV_READ
	.comm	_UB_EV_PERSIST,2,1              ; @UB_EV_PERSIST
	.comm	_comm_point_tcp_accept_callback,4,2 ; @comm_point_tcp_accept_callback
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not baseset tcpacc event"

l_.str.1:                               ; @.str.1
	.asciz	"could not add tcpacc event"

.subsections_via_symbols
