	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_listening_ports_open           ## -- Begin function listening_ports_open
	.p2align	4, 0x90
_listening_ports_open:                  ## @listening_ports_open
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -88(%rbp)
	movl	(%rdi), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-80(%rbp), %rdi
	movl	$32, %esi
	callq	_snprintf
	movl	12(%rbx), %ecx
	xorl	%eax, %eax
	cmpq	$0, 80(%rbx)
	je	LBB0_1
## %bb.2:
	cmpl	$0, 76(%rbx)
	setne	%r12b
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
LBB0_3:
	movl	4(%rbx), %r13d
	cmpq	$0, 16(%rbx)
	cmovel	%eax, %ecx
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	leaq	-120(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -112(%rbp)
	movl	24(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, -112(%rbp)
LBB0_5:
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -120(%rbp)
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.6:
	movzbl	%r12b, %esi
	testl	%esi, %esi
	jne	LBB0_14
## %bb.7:
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	jle	LBB0_13
## %bb.9:
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r12
	movslq	24(%rbx), %rax
	cmpq	%rax, %r12
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_str_is_ip6
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)
	movq	32(%rbx), %rax
	movq	(%rax,%r12,8), %rdi
	movl	76(%rbx), %edx
	movl	72(%rbx), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	68(%rbx), %eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	64(%rbx), %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	60(%rbx), %r13d
	movl	56(%rbx), %r14d
	movl	52(%rbx), %r15d
	movl	48(%rbx), %r10d
	movl	44(%rbx), %r11d
	movl	40(%rbx), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	leaq	-120(%rbp), %r8
	leaq	-80(%rbp), %r9
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	%r15
	pushq	%r14
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	pushq	%r13
	pushq	-136(%rbp)                      ## 8-byte Folded Reload
	pushq	-144(%rbp)                      ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	leaq	-88(%rbp), %rax
	pushq	%rax
	callq	_ports_create_if
	addq	$96, %rsp
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_15
LBB0_14:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdi
	testl	%esi, %esi
	cmovneq	%rax, %rdi
	movl	76(%rbx), %edx
	movl	72(%rbx), %r14d
	movl	68(%rbx), %r15d
	movl	64(%rbx), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	60(%rbx), %r13d
	movl	56(%rbx), %eax
	movl	52(%rbx), %r10d
	movl	48(%rbx), %r11d
	movl	40(%rbx), %r12d
	movl	44(%rbx), %ebx
	subq	$8, %rsp
	leaq	-120(%rbp), %r8
	leaq	-80(%rbp), %r9
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	pushq	%r12
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	pushq	%rax
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	pushq	%r13
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	%r15
	pushq	%r14
	leaq	-88(%rbp), %rax
	pushq	%rax
	callq	_ports_create_if
	addq	$96, %rsp
	testl	%eax, %eax
	je	LBB0_15
LBB0_13:
	movq	-88(%rbp), %rax
	jmp	LBB0_17
LBB0_15:
	movq	-88(%rbp), %rdi
	callq	_listening_ports_free
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_AI_PASSIVE,4,2                 ## @AI_PASSIVE
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_AF_INET,8,3                    ## @AF_INET
L_.str.3:                               ## @.str.3
	.asciz	"0.0.0.0"

L_.str.4:                               ## @.str.4
	.asciz	"127.0.0.1"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_listening_ports_open           ; -- Begin function listening_ports_open
	.p2align	2
_listening_ports_open:                  ; @listening_ports_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	xzr, [sp, #64]
	ldr	w3, [x0]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #72
	mov	w1, #32
	bl	_snprintf
	ldr	w8, [x20, #12]
	ldr	x9, [x20, #80]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w9, [x20, #76]
	cmp	w9, #0
	cset	w22, ne
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	ldr	w23, [x20, #4]
	ldr	x9, [x20, #16]
	cmp	x9, #0
	csel	w21, wzr, w8, eq
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh5:
	adrp	x8, _AI_PASSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AI_PASSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
	str	w9, [sp, #56]
	ldr	w8, [x20, #24]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.4:
Lloh8:
	adrp	x10, _AI_NUMERICHOST@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [sp, #56]
LBB0_5:
Lloh11:
	adrp	x9, _AF_UNSPEC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AF_UNSPEC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	str	x9, [sp, #48]
	cbz	w23, LBB0_16
; %bb.6:
	tbnz	w22, #0, LBB0_13
; %bb.7:
	cbz	w8, LBB0_13
; %bb.8:
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.9:
	mov	x22, #0
Lloh14:
	adrp	x23, _AF_INET@GOTPAGE
Lloh15:
	ldr	x23, [x23, _AF_INET@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20, #24]
	cmp	x22, x8
	b.ge	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	ldr	x0, [x8, x22, lsl #3]
	bl	_str_is_ip6
	cbnz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x23]
	str	x8, [sp, #48]
	ldr	x8, [x20, #32]
	ldr	x0, [x8, x22, lsl #3]
	ldp	w7, w2, [x20, #72]
	ldp	w9, w8, [x20, #64]
	ldp	w11, w10, [x20, #56]
	ldp	w13, w12, [x20, #48]
	ldp	w15, w14, [x20, #40]
	stp	w14, w15, [sp, #36]
	stp	w12, w13, [sp, #28]
	str	w11, [sp, #24]
	add	x4, sp, #48
	add	x5, sp, #72
	str	x19, [sp, #16]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	add	x6, sp, #64
	mov	w1, #0
	mov	x3, x21
	bl	_ports_create_if
	cbnz	w0, LBB0_10
	b	LBB0_15
LBB0_13:
Lloh16:
	adrp	x8, _AF_INET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [sp, #48]
Lloh19:
	adrp	x8, l_.str.4@PAGE
Lloh20:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh21:
	adrp	x9, l_.str.3@PAGE
Lloh22:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w22, #0
	csel	x0, x9, x8, ne
	ldp	w7, w2, [x20, #72]
	ldp	w9, w8, [x20, #64]
	ldp	w11, w10, [x20, #56]
	ldp	w13, w12, [x20, #48]
	ldp	w15, w14, [x20, #40]
	stp	w14, w15, [sp, #36]
	stp	w12, w13, [sp, #28]
	str	w11, [sp, #24]
	add	x4, sp, #48
	add	x5, sp, #72
	str	x19, [sp, #16]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	add	x6, sp, #64
	mov	x1, x22
	mov	x3, x21
	bl	_ports_create_if
	cbz	w0, LBB0_15
LBB0_14:
	ldr	x0, [sp, #64]
	b	LBB0_17
LBB0_15:
	ldr	x0, [sp, #64]
	bl	_listening_ports_free
LBB0_16:
	mov	x0, #0
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_AI_PASSIVE,4,2                 ; @AI_PASSIVE
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_AF_INET,8,3                    ; @AF_INET
l_.str.3:                               ; @.str.3
	.asciz	"0.0.0.0"

l_.str.4:                               ; @.str.4
	.asciz	"127.0.0.1"

.subsections_via_symbols
