	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_outside_network_create         ## -- Begin function outside_network_create
	.p2align	4, 0x90
_outside_network_create:                ## @outside_network_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	$1, %edi
	movl	$192, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %rbx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	120(%rbp), %r14d
	movq	32(%rbp), %r13
	movq	24(%rbp), %r15
	leaq	188(%rax), %rsi
	leaq	184(%rax), %rdx
	movq	%r12, %rdi
	callq	_comm_base_timept
	movq	%r12, 88(%rbx)
	movq	%r15, (%rbx)
	movq	$0, 176(%rbx)
	movq	%r13, 168(%rbx)
	movq	40(%rbp), %rax
	movq	%rax, 160(%rbx)
	movq	112(%rbp), %rax
	movq	%rax, 152(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 128(%rbx)
	movq	72(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	88(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	96(%rbp), %rax
	movq	%rax, 120(%rbx)
	movl	48(%rbp), %eax
	movl	%eax, 24(%rbx)
	movl	104(%rbp), %eax
	movl	%eax, 28(%rbx)
	movl	80(%rbp), %eax
	movl	%eax, 32(%rbx)
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movl	$1, 36(%rbx)
	movslq	%r14d, %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, 112(%rbx)
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	subl	%eax, %r14d
	imull	$1000, %r14d, %eax              ## imm = 0x3E8
	movl	%eax, 116(%rbx)
LBB0_3:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_21
## %bb.4:
	cmpl	$0, 64(%rbp)
	je	LBB0_21
## %bb.5:
	leaq	40(%rbx), %r8
	movq	%rbx, %r12
	addq	$48, %r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_calc_num46
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	je	LBB0_30
LBB0_7:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_30
LBB0_9:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_sldns_buffer_new
	movl	%eax, 80(%rbx)
	testl	%eax, %eax
	je	LBB0_30
## %bb.10:
	movq	_pending_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rbtree_create
	movq	%rax, 104(%rbx)
	testq	%rax, %rax
	je	LBB0_30
## %bb.11:
	movq	_serviced_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rbtree_create
	movq	%rax, 96(%rbx)
	testq	%rax, %rax
	je	LBB0_30
## %bb.12:
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_create_pending_tcp
	testl	%eax, %eax
	je	LBB0_30
## %bb.13:
	movq	_outnet_udp_cb@GOTPCREL(%rip), %r14
	movq	%r13, %r15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_30
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %r12
	movq	88(%rbx), %rdi
	movl	80(%rbx), %edx
	movl	(%r14), %ecx
	movl	$-1, %esi
	movq	%rbx, %r8
	callq	_comm_point_create_udp
	movl	%eax, 8(%r12)
	testl	%eax, %eax
	je	LBB0_27
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	72(%rbx), %rax
	movq	%rax, (%r12)
	movq	%r12, 72(%rbx)
	decq	%r15
	jne	LBB0_14
## %bb.17:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_28
## %bb.18:
	jle	LBB0_34
## %bb.19:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_20:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	jmp	LBB0_33
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_31
LBB0_22:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%r15
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%r13
	cmpq	%r13, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_34
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r13,8), %rdi
	callq	_str_is_ip6
	movq	(%r12,%r13,8), %rdi
	callq	_str_is_ip6
	testl	%r14d, %r14d
	je	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	testq	%rax, %rax
	jne	LBB0_23
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	leaq	(,%r15,4), %rdi
	addq	56(%rbx), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rsi
	movq	56(%rbp), %rdx
	movl	64(%rbp), %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_setup_if
	testl	%eax, %eax
	jne	LBB0_22
	jmp	LBB0_30
LBB0_27:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_32
LBB0_28:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_34
## %bb.29:
	movq	56(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	56(%rbp), %rdx
	movl	64(%rbp), %ecx
	movq	%r13, %r8
	callq	_setup_if
	testl	%eax, %eax
	jne	LBB0_34
LBB0_30:
	leaq	L_.str(%rip), %rdi
LBB0_31:
	callq	_log_err
LBB0_32:
	movq	%rbx, %rdi
	callq	_outside_network_delete
LBB0_33:
	xorl	%ebx, %ebx
LBB0_34:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc failed"

L_.str.1:                               ## @.str.1
	.asciz	"no outgoing ports available"

	.comm	_pending_cmp,4,2                ## @pending_cmp
	.comm	_serviced_cmp,4,2               ## @serviced_cmp
	.comm	_outnet_udp_cb,4,2              ## @outnet_udp_cb
L_.str.2:                               ## @.str.2
	.asciz	"0.0.0.0"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_outside_network_create         ; -- Begin function outside_network_create
	.p2align	2
_outside_network_create:                ; @outside_network_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x25, x7
	mov	x21, x5
	mov	x23, x4
	mov	x22, x3
	mov	x20, x2
	mov	x24, x1
	mov	x26, x0
	mov	w0, #1
	mov	w1, #192
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_20
; %bb.1:
	str	x24, [sp]                       ; 8-byte Folded Spill
	stp	w21, w23, [sp, #8]              ; 8-byte Folded Spill
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	ldr	w27, [x29, #104]
	ldr	x28, [x29, #96]
	ldr	w8, [x29, #88]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	ldr	x8, [x29, #80]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x24, [x29, #72]
	ldr	w8, [x29, #64]
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	ldr	x20, [x29, #56]
	ldr	w21, [x29, #32]
	add	x1, x19, #188
	add	x2, x19, #184
	ldp	x22, x23, [x29, #16]
	mov	x0, x26
	bl	_comm_base_timept
	str	x26, [x19, #88]
	stp	x22, xzr, [x19, #168]
	stp	x28, x23, [x19, #152]
	stp	xzr, xzr, [x19, #128]
	stp	x25, x20, [x19]
	str	x24, [x19, #16]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x8, [x19, #120]
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	stp	w21, w8, [x19, #24]
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	str	w8, [x19, #32]
	cbz	w27, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19, #36]
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w27, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	mov	w9, #1000
	msub	w10, w8, w9, w27
	mul	w9, w10, w9
	stp	w8, w9, [x19, #112]
LBB0_3:
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	cbz	x20, LBB0_21
; %bb.4:
	ldr	w23, [x29, #48]
	cbz	w23, LBB0_21
; %bb.5:
	add	x4, x19, #40
	add	x26, x19, #48
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	ldp	w2, w1, [sp, #8]                ; 8-byte Folded Reload
	mov	w3, #0
	mov	x5, x26
	bl	_calc_num46
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_7
; %bb.6:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_30
LBB0_7:
	ldr	x0, [x26]
	cbz	x0, LBB0_9
; %bb.8:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_30
LBB0_9:
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	mov	x0, x21
	bl	_sldns_buffer_new
	str	w0, [x19, #80]
	cbz	w0, LBB0_30
; %bb.10:
Lloh0:
	adrp	x8, _pending_cmp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pending_cmp@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rbtree_create
	str	x0, [x19, #104]
	cbz	x0, LBB0_30
; %bb.11:
Lloh3:
	adrp	x8, _serviced_cmp@GOTPAGE
Lloh4:
	ldr	x8, [x8, _serviced_cmp@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_rbtree_create
	str	x0, [x19, #96]
	cbz	x0, LBB0_30
; %bb.12:
	mov	x0, x19
	mov	x1, x21
	bl	_create_pending_tcp
	cbz	w0, LBB0_30
; %bb.13:
	ldr	x25, [x29, #40]
Lloh6:
	adrp	x27, _outnet_udp_cb@GOTPAGE
Lloh7:
	ldr	x27, [x27, _outnet_udp_cb@GOTPAGEOFF]
	mov	x28, x20
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	cbz	x0, LBB0_30
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x26, x0
	ldr	x0, [x19, #88]
	ldr	w2, [x19, #80]
	ldr	w3, [x27]
	mov	w1, #-1
	mov	x4, x19
	bl	_comm_point_create_udp
	str	w0, [x26, #8]
	cbz	w0, LBB0_27
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #72]
	str	x8, [x26]
	str	x26, [x19, #72]
	subs	x28, x28, #1
	b.ne	LBB0_14
; %bb.17:
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_28
; %bb.18:
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.19:
	mov	x26, #0
	mov	w24, w8
	ldr	w21, [sp, #8]                   ; 4-byte Folded Reload
	b	LBB0_24
LBB0_20:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	b	LBB0_33
LBB0_21:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_31
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x26, x26, #1
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x22, x22, #8
	subs	x24, x24, #1
	b.eq	LBB0_33
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	bl	_str_is_ip6
	ldr	x0, [x22]
	bl	_str_is_ip6
	cbz	w21, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	cbnz	x0, LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x19, #56]
	add	x0, x8, x26, lsl #2
	ldr	x1, [x22]
	mov	x2, x25
	mov	x3, x23
	mov	x4, x20
	bl	_setup_if
	cbnz	w0, LBB0_22
	b	LBB0_30
LBB0_27:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	mov	x0, x26
	bl	_free
	b	LBB0_32
LBB0_28:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_33
; %bb.29:
	ldr	x0, [x19, #56]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x25
	mov	x3, x23
	mov	x4, x20
	bl	_setup_if
	cbnz	w0, LBB0_33
LBB0_30:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
LBB0_31:
	bl	_log_err
LBB0_32:
	mov	x0, x19
	bl	_outside_network_delete
	mov	x19, #0
LBB0_33:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failed"

l_.str.1:                               ; @.str.1
	.asciz	"no outgoing ports available"

	.comm	_pending_cmp,4,2                ; @pending_cmp
	.comm	_serviced_cmp,4,2               ; @serviced_cmp
	.comm	_outnet_udp_cb,4,2              ; @outnet_udp_cb
l_.str.2:                               ; @.str.2
	.asciz	"0.0.0.0"

.subsections_via_symbols
