	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipcp_Setup                     ## -- Begin function ipcp_Setup
	.p2align	4, 0x90
_ipcp_Setup:                            ## @ipcp_Setup
	.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	%rdi, %r13
	movq	104(%rdi), %rax
	movq	16(%rax), %r15
	movq	$0, 112(%rdi)
	movq	_INADDR_NONE@GOTPCREL(%rip), %rbx
	cmpq	%rsi, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	56(%r13), %rsi
LBB0_2:
	movq	%rsi, 160(%r13)
	leaq	52(%r13), %r14
	movq	%r14, %rdi
	callq	_iplist_isvalid
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	cmpl	$0, (%r15)
	je	LBB0_10
## %bb.4:
	movl	$4, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movl	(%r15), %eax
	addq	$8, %rbx
	cmpq	%rax, %r12
	jae	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	callq	_ncpaddr_getip4
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-56(%rbp), %esi
	movq	%r14, %rdi
	callq	_iplist_ip2pos
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_iplist_setcurpos
	leaq	-48(%rbp), %rdi
	movl	%eax, %esi
	callq	_ncpaddr_setip4
	movl	(%r15), %eax
LBB0_9:
	movq	_INADDR_NONE@GOTPCREL(%rip), %rbx
	cmpl	%r12d, %eax
	jne	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	callq	_iplist_setrandpos
	leaq	-48(%rbp), %rdi
	movl	%eax, %esi
	callq	_ncpaddr_setip4
LBB0_11:
	leaq	48(%r13), %rdi
	leaq	-48(%rbp), %rsi
	callq	_ncprange_sethost
LBB0_12:
	leaq	48(%r13), %rdi
	leaq	136(%r13), %rsi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 144(%r13)
	callq	_ncprange_getip4addr
	movq	$0, 128(%r13)
	cmpq	$0, 40(%r13)
	je	LBB0_13
## %bb.28:
	movl	36(%r13), %edi
	movl	%edi, 120(%r13)
	movq	_LogIPCP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_inet_ntoa
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_log_Printf
	jmp	LBB0_20
LBB0_13:
	cmpl	$0, (%r15)
	je	LBB0_19
## %bb.14:
	leaq	32(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ncprange_getaddr
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ncprange_contains
	testq	%rax, %rax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	movl	(%r15), %eax
	addq	$8, %r14
	cmpq	%rax, %rbx
	jb	LBB0_15
	jmp	LBB0_18
LBB0_16:
	leaq	120(%r13), %rsi
	leaq	-48(%rbp), %rdi
	callq	_ncpaddr_getip4
	movl	(%r15), %eax
LBB0_18:
	cmpl	%ebx, %eax
	movq	_INADDR_NONE@GOTPCREL(%rip), %rbx
	jne	LBB0_20
LBB0_19:
	leaq	32(%r13), %rdi
	leaq	120(%r13), %rsi
	callq	_ncprange_getip4addr
LBB0_20:
	movl	24(%r13), %edi
	callq	_IsEnabled
	testq	%rax, %rax
	je	LBB0_21
LBB0_23:
	movq	_PROTO_VJCOMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$16, %eax
	movl	8(%r13), %esi
	movl	%esi, %ecx
	shll	$8, %ecx
	addl	%ecx, %eax
	addl	$-256, %eax
	cltq
	addq	16(%r13), %rax
	movq	%rax, 96(%r13)
	jmp	LBB0_25
LBB0_21:
	movq	104(%r13), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_24
## %bb.22:
	cmpq	$0, (%rax)
	jne	LBB0_23
LBB0_24:
	movq	$0, 96(%r13)
	movl	8(%r13), %esi
LBB0_25:
	leaq	88(%r13), %rdi
	decl	%esi
	callq	_sl_compress_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%r13)
	movq	(%r13), %rsi
	movq	(%rsi), %rax
	cmpq	(%rbx), %rax
	je	LBB0_27
## %bb.26:
	movl	64(%r13), %edi
	movl	$4, %edx
	callq	_memcpy
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INADDR_NONE,8,3                ## @INADDR_NONE
	.comm	_LogIPCP,4,2                    ## @LogIPCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using trigger address %s\n"

	.comm	_PROTO_VJCOMP,4,2               ## @PROTO_VJCOMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipcp_Setup                     ; -- Begin function ipcp_Setup
	.p2align	2
_ipcp_Setup:                            ; @ipcp_Setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x8, [x0, #104]
	ldr	x22, [x8, #16]
	str	xzr, [x0, #112]
Lloh0:
	adrp	x21, _INADDR_NONE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INADDR_NONE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	ldr	x1, [x19, #56]
LBB0_2:
	str	x1, [x19, #160]
	add	x20, x19, #52
	mov	x0, x20
	bl	_iplist_isvalid
	cbz	x0, LBB0_12
; %bb.3:
	ldr	w8, [x22]
	cbz	w8, LBB0_10
; %bb.4:
	mov	x23, #0
	mov	w24, #4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldr	w8, [x22]
	add	x24, x24, #8
	cmp	x23, x8
	b.hs	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x0, x8, x24
	mov	x1, sp
	bl	_ncpaddr_getip4
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [sp]
	mov	x0, x20
	bl	_iplist_ip2pos
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.8:
	mov	x1, x0
	mov	x0, x20
	bl	_iplist_setcurpos
	mov	x1, x0
	add	x0, sp, #8
	bl	_ncpaddr_setip4
	ldr	w8, [x22]
LBB0_9:
	cmp	w8, w23
	b.ne	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_iplist_setrandpos
	mov	x1, x0
	add	x0, sp, #8
	bl	_ncpaddr_setip4
LBB0_11:
	add	x0, x19, #48
	add	x1, sp, #8
	bl	_ncprange_sethost
LBB0_12:
	add	x0, x19, #48
	add	x1, x19, #136
	stp	xzr, xzr, [x19, #144]
	bl	_ncprange_getip4addr
	str	xzr, [x19, #128]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w0, [x19, #36]
	str	w0, [x19, #120]
Lloh2:
	adrp	x8, _LogIPCP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LogIPCP@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	bl	_inet_ntoa
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_log_Printf
	b	LBB0_20
LBB0_14:
	ldr	w8, [x22]
	cbz	w8, LBB0_19
; %bb.15:
	mov	x24, #0
	mov	x23, #0
	add	x20, x19, #32
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x0, x8, x24
	add	x1, sp, #8
	bl	_ncprange_getaddr
	add	x1, sp, #8
	mov	x0, x20
	bl	_ncprange_contains
	cbnz	x0, LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x23, x23, #1
	ldr	w8, [x22]
	add	x24, x24, #8
	cmp	x23, x8
	b.lo	LBB0_16
; %bb.18:
	cmp	w8, w23
	b.ne	LBB0_20
LBB0_19:
	add	x0, x19, #32
	add	x1, x19, #120
	bl	_ncprange_getip4addr
LBB0_20:
	ldr	w0, [x19, #24]
	bl	_IsEnabled
	cbz	x0, LBB0_22
LBB0_21:
Lloh7:
	adrp	x8, _PROTO_VJCOMP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PROTO_VJCOMP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w9, w8, #16
	ldr	w8, [x19, #8]
	add	w9, w9, w8, lsl #8
	sub	w9, w9, #256
	ldr	x10, [x19, #16]
	add	x9, x10, w9, sxtw
	str	x9, [x19, #96]
	b	LBB0_25
LBB0_22:
	ldr	x8, [x19, #104]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_24
; %bb.23:
	ldr	x8, [x8]
	cbnz	x8, LBB0_21
LBB0_24:
	str	xzr, [x19, #96]
	ldr	w8, [x19, #8]
LBB0_25:
	add	x0, x19, #88
	sub	w1, w8, #1
	bl	_sl_compress_init
	stp	xzr, xzr, [x19, #72]
	ldr	x1, [x19]
	ldr	x8, [x1]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_27
; %bb.26:
	ldr	w0, [x19, #64]
	mov	w2, #4
	bl	_memcpy
LBB0_27:
	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
	add	sp, sp, #80
	ret
LBB0_28:
	add	x1, x19, #120
	add	x0, sp, #8
	bl	_ncpaddr_getip4
	ldr	w8, [x22]
	cmp	w8, w23
	b.eq	LBB0_19
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_INADDR_NONE,8,3                ; @INADDR_NONE
	.comm	_LogIPCP,4,2                    ; @LogIPCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using trigger address %s\n"

	.comm	_PROTO_VJCOMP,4,2               ; @PROTO_VJCOMP
.subsections_via_symbols
