	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_listen_create                  ## -- Begin function listen_create
	.p2align	4, 0x90
_listen_create:                         ## @listen_create
	.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
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	%rax, %rbx
	movq	$0, (%rax)
	movq	%r13, %rdi
	callq	_sldns_buffer_new
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_stream_wait_lock_inited@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jne	LBB0_5
## %bb.4:
	movq	_stream_wait_count_lock@GOTPCREL(%rip), %rdi
	callq	_lock_basic_init
	movl	$1, (%r12)
	.p2align	4, 0x90
LBB0_5:
	testq	%r14, %r14
	je	LBB0_22
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	_listen_type_udp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_listen_type_udp_dnscrypt@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_listen_type_tcp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_listen_type_tcp_dnscrypt@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_listen_type_ssl@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r14), %esi
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	pushq	40(%rbp)
	pushq	32(%rbp)
	pushq	16(%rbx)
	callq	_comm_point_create_tcp
	addq	$32, %rsp
	movq	%rax, %r12
	movq	16(%rbp), %rax
	movq	%rax, 24(%r12)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r14), %esi
	movq	16(%rbx), %rdx
	movq	%r15, %rdi
	movq	32(%rbp), %rcx
	movq	40(%rbp), %r8
	callq	_comm_point_create_udp
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r14), %esi
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	pushq	40(%rbp)
	pushq	32(%rbp)
	pushq	16(%rbx)
	callq	_comm_point_create_tcp
	addq	$32, %rsp
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_listen_type_udpancil@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_listen_type_udpancil_dnscrypt@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r14), %esi
	movq	16(%rbx), %rdx
	movq	%r15, %rdi
	movq	32(%rbp), %rcx
	movq	40(%rbp), %r8
	callq	_comm_point_create_udp_ancil
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_20
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%rbp), %rax
	movq	%rax, 16(%r12)
	movl	$1, (%r12)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_listen_cp_insert
	testl	%eax, %eax
	je	LBB0_15
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	LBB0_6
LBB0_22:
	cmpq	$0, (%rbx)
	jne	LBB0_27
## %bb.23:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_24
LBB0_2:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_26
LBB0_20:
	leaq	L_.str(%rip), %rdi
LBB0_24:
	callq	_log_err
	jmp	LBB0_25
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	callq	_log_err
	movq	%r12, %rdi
	callq	_comm_point_delete
LBB0_25:
	movq	%rbx, %rdi
	callq	_listen_delete
LBB0_26:
	xorl	%ebx, %ebx
LBB0_27:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stream_wait_lock_inited,4,2    ## @stream_wait_lock_inited
	.comm	_stream_wait_count_lock,4,2     ## @stream_wait_count_lock
	.comm	_listen_type_udp,8,3            ## @listen_type_udp
	.comm	_listen_type_udp_dnscrypt,8,3   ## @listen_type_udp_dnscrypt
	.comm	_listen_type_tcp,8,3            ## @listen_type_tcp
	.comm	_listen_type_tcp_dnscrypt,8,3   ## @listen_type_tcp_dnscrypt
	.comm	_listen_type_ssl,8,3            ## @listen_type_ssl
	.comm	_listen_type_udpancil,8,3       ## @listen_type_udpancil
	.comm	_listen_type_udpancil_dnscrypt,8,3 ## @listen_type_udpancil_dnscrypt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't create commpoint"

L_.str.1:                               ## @.str.1
	.asciz	"malloc failed"

L_.str.2:                               ## @.str.2
	.asciz	"Could not open sockets to accept queries."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_listen_create                  ; -- Begin function listen_create
	.p2align	2
_listen_create:                         ; @listen_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x5, [sp, #24]                   ; 8-byte Folded Spill
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x27, x0
	mov	w0, #24
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_24
; %bb.1:
	str	xzr, [x19]
	mov	x0, x25
	bl	_sldns_buffer_new
	str	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.2:
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
Lloh0:
	adrp	x21, _stream_wait_lock_inited@GOTPAGE
Lloh1:
	ldr	x21, [x21, _stream_wait_lock_inited@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.3:
	cbnz	x26, LBB0_6
	b	LBB0_17
LBB0_4:
	mov	x0, x19
	bl	_free
	b	LBB0_23
LBB0_5:
Lloh2:
	adrp	x0, _stream_wait_count_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _stream_wait_count_lock@GOTPAGEOFF]
	bl	_lock_basic_init
	mov	w8, #1
	str	w8, [x21]
	cbz	x26, LBB0_17
LBB0_6:
	ldp	x28, x21, [x29, #16]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
Lloh4:
	adrp	x9, _listen_type_udp@GOTPAGE
Lloh5:
	ldr	x9, [x9, _listen_type_udp@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _listen_type_udp_dnscrypt@GOTPAGE
Lloh8:
	ldr	x10, [x10, _listen_type_udp_dnscrypt@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x26, #16]
	ldr	x2, [x19, #16]
	mov	x0, x27
	mov	x3, x28
	mov	x4, x21
	bl	_comm_point_create_udp
	mov	x22, x0
	cbnz	x0, LBB0_15
	b	LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh10:
	adrp	x9, _listen_type_tcp@GOTPAGE
Lloh11:
	ldr	x9, [x9, _listen_type_tcp@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _listen_type_tcp_dnscrypt@GOTPAGE
Lloh14:
	ldr	x10, [x10, _listen_type_tcp_dnscrypt@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x26, #16]
	ldr	x6, [x19, #16]
	str	x21, [sp]
	mov	x0, x27
	mov	x2, x24
	mov	x3, x23
	ldr	x4, [sp, #24]                   ; 8-byte Folded Reload
	mov	x5, x25
	mov	x7, x28
	bl	_comm_point_create_tcp
	mov	x22, x0
	cbnz	x0, LBB0_15
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh16:
	adrp	x9, _listen_type_ssl@GOTPAGE
Lloh17:
	ldr	x9, [x9, _listen_type_ssl@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x26, #16]
	ldr	x6, [x19, #16]
	str	x21, [sp]
	mov	x0, x27
	mov	x2, x24
	mov	x3, x23
	ldr	x4, [sp, #24]                   ; 8-byte Folded Reload
	mov	x5, x25
	mov	x7, x28
	bl	_comm_point_create_tcp
	mov	x22, x0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [x0, #24]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh19:
	adrp	x9, _listen_type_udpancil@GOTPAGE
Lloh20:
	ldr	x9, [x9, _listen_type_udpancil@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
Lloh22:
	adrp	x10, _listen_type_udpancil_dnscrypt@GOTPAGE
Lloh23:
	ldr	x10, [x10, _listen_type_udpancil_dnscrypt@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x26, #16]
	ldr	x2, [x19, #16]
	mov	x0, x27
	mov	x3, x28
	mov	x4, x21
	bl	_comm_point_create_udp_ancil
	mov	x22, x0
	cbz	x0, LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x20, [x22, #16]
	mov	w8, #1
	str	w8, [x22]
	mov	x0, x22
	mov	x1, x19
	bl	_listen_cp_insert
	cbz	w0, LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x26, [x26, #8]
	cbnz	x26, LBB0_7
LBB0_17:
	ldr	x8, [x19]
	cbnz	x8, LBB0_24
; %bb.18:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
LBB0_20:
	bl	_log_err
	b	LBB0_22
LBB0_21:
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
	mov	x0, x22
	bl	_comm_point_delete
LBB0_22:
	mov	x0, x19
	bl	_listen_delete
LBB0_23:
	mov	x19, #0
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_stream_wait_lock_inited,4,2    ; @stream_wait_lock_inited
	.comm	_stream_wait_count_lock,4,2     ; @stream_wait_count_lock
	.comm	_listen_type_udp,8,3            ; @listen_type_udp
	.comm	_listen_type_udp_dnscrypt,8,3   ; @listen_type_udp_dnscrypt
	.comm	_listen_type_tcp,8,3            ; @listen_type_tcp
	.comm	_listen_type_tcp_dnscrypt,8,3   ; @listen_type_tcp_dnscrypt
	.comm	_listen_type_ssl,8,3            ; @listen_type_ssl
	.comm	_listen_type_udpancil,8,3       ; @listen_type_udpancil
	.comm	_listen_type_udpancil_dnscrypt,8,3 ; @listen_type_udpancil_dnscrypt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't create commpoint"

l_.str.1:                               ; @.str.1
	.asciz	"malloc failed"

l_.str.2:                               ; @.str.2
	.asciz	"Could not open sockets to accept queries."

.subsections_via_symbols
