	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function comm_point_create_tcp_handler
_comm_point_create_tcp_handler:         ## @comm_point_create_tcp_handler
	.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, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$1, %edi
	movl	$208, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	movl	$1, %edi
	movl	$208, %esi
	callq	_calloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%r15, 200(%rax)
	movl	$-1, (%rbx)
	movq	%r13, %rdi
	callq	_sldns_buffer_new
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movl	$208, %edi
	callq	_malloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 184(%rbx)
	movq	%r14, 176(%rbx)
	movl	172(%r14), %eax
	movl	%eax, 172(%rbx)
	movl	168(%r14), %eax
	movl	%eax, 168(%rbx)
	movq	$0, 48(%rbx)
	movups	%xmm0, 128(%rbx)
	movups	%xmm0, 144(%rbx)
	movq	$0, 160(%rbx)
	movq	_comm_tcp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%rbx)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 4(%rbx)
	movups	%xmm0, 104(%rbx)
	movq	%rbx, 72(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 64(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%rbx)
	testq	%r12, %r12
	je	LBB0_9
## %bb.6:
	movq	%r12, %rdi
	callq	_tcp_req_info_create
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, (%rax)
	movq	$1, 4(%rbx)
LBB0_9:
	movq	48(%r14), %rax
	movq	%rax, 48(%rbx)
	movq	%rbx, 48(%r14)
	movq	_UB_EV_PERSIST@GOTPCREL(%rip), %rax
	movq	_UB_EV_READ@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %edx
	orw	(%rax), %dx
	movq	_UB_EV_TIMEOUT@GOTPCREL(%rip), %rax
	orw	(%rax), %dx
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_comm_point_tcp_handle_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movswl	%dx, %edx
	movq	%rbx, %r8
	callq	_ub_event_new
	movq	16(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	16(%rbx), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_15
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	callq	_log_err
	movq	48(%rbx), %rax
	movq	%rax, 48(%r14)
	movq	40(%rbx), %rdi
	callq	_tcp_req_info_delete
	jmp	LBB0_11
LBB0_4:
	movq	32(%rbx), %rdi
	callq	_sldns_buffer_free
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
LBB0_11:
	movq	32(%rbx), %rdi
	callq	_sldns_buffer_free
	movq	24(%rbx), %rdi
	callq	_free
LBB0_12:
	movq	16(%rbx), %rdi
	callq	_free
LBB0_13:
	movq	%rbx, %rdi
	callq	_free
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_comm_tcp,4,2                   ## @comm_tcp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not create tcp commpoint"

	.comm	_UB_EV_PERSIST,2,1              ## @UB_EV_PERSIST
	.comm	_UB_EV_READ,2,1                 ## @UB_EV_READ
	.comm	_UB_EV_TIMEOUT,2,1              ## @UB_EV_TIMEOUT
	.comm	_comm_point_tcp_handle_callback,4,2 ## @comm_point_tcp_handle_callback
L_.str.1:                               ## @.str.1
	.asciz	"could not basetset tcphdl event"

	.no_dead_strip	_comm_point_create_tcp_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function comm_point_create_tcp_handler
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
lCPI0_1:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_comm_point_create_tcp_handler:         ; @comm_point_create_tcp_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x5
	mov	x24, x4
	mov	x22, x3
	mov	x25, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #1
	mov	w1, #208
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_14
; %bb.1:
	mov	w0, #1
	mov	w1, #208
	bl	_calloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.2:
	str	x21, [x0, #200]
	mov	w8, #-1
	str	w8, [x19]
	mov	x0, x25
	bl	_sldns_buffer_new
	str	x0, [x19, #32]
	cbz	x0, LBB0_12
; %bb.3:
	mov	w0, #208
	bl	_malloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.4:
	stp	xzr, xzr, [x19, #184]
	str	x20, [x19, #176]
	ldr	d0, [x20, #168]
	str	d0, [x19, #168]
	str	xzr, [x19, #160]
	movi.2d	v0, #0000000000000000
Lloh0:
	adrp	x8, _comm_tcp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _comm_tcp@GOTPAGEOFF]
	stp	q0, q0, [x19, #128]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #120]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	stp	xzr, xzr, [x19, #104]
	stp	x24, x19, [x19, #64]
	stp	xzr, x23, [x19, #48]
	cbz	x22, LBB0_7
; %bb.5:
	mov	x0, x22
	bl	_tcp_req_info_create
	str	x0, [x19, #40]
	cbz	x0, LBB0_10
; %bb.6:
	str	x19, [x0]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x19, #4]
LBB0_7:
	ldr	x8, [x20, #48]
	str	x8, [x19, #48]
	str	x19, [x20, #48]
Lloh7:
	adrp	x8, _UB_EV_PERSIST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UB_EV_PERSIST@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh9:
	adrp	x9, _UB_EV_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UB_EV_READ@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _UB_EV_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _UB_EV_TIMEOUT@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x21]
	ldr	w0, [x9]
	ldr	w1, [x19]
Lloh13:
	adrp	x9, _comm_point_tcp_handle_callback@GOTPAGE
Lloh14:
	ldr	x9, [x9, _comm_point_tcp_handle_callback@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x9]
	sxth	w2, w8
	mov	x4, x19
	bl	_ub_event_new
	ldr	x8, [x19, #16]
	str	x0, [x8, #16]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_14
; %bb.8:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
	ldp	x0, x8, [x19, #40]
	str	x8, [x20, #48]
	bl	_tcp_req_info_delete
	b	LBB0_11
LBB0_9:
	ldr	x0, [x19, #32]
	bl	_sldns_buffer_free
	b	LBB0_12
LBB0_10:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
LBB0_11:
	ldr	x0, [x19, #32]
	bl	_sldns_buffer_free
	ldr	x0, [x19, #24]
	bl	_free
LBB0_12:
	ldr	x0, [x19, #16]
	bl	_free
LBB0_13:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_comm_tcp,4,2                   ; @comm_tcp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not create tcp commpoint"

	.comm	_UB_EV_PERSIST,2,1              ; @UB_EV_PERSIST
	.comm	_UB_EV_READ,2,1                 ; @UB_EV_READ
	.comm	_UB_EV_TIMEOUT,2,1              ; @UB_EV_TIMEOUT
	.comm	_comm_point_tcp_handle_callback,4,2 ; @comm_point_tcp_handle_callback
l_.str.1:                               ; @.str.1
	.asciz	"could not basetset tcphdl event"

	.no_dead_strip	_comm_point_create_tcp_handler
.subsections_via_symbols
