	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipcp_SetIPaddress
_ipcp_SetIPaddress:                     ## @ipcp_SetIPaddress
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	leaq	-40(%rbp), %rdi
	movl	%edx, %esi
	callq	_ncpaddr_setip4
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_ncpaddr_setip4
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_ncprange_sethost
	movl	%ebx, %edi
	callq	_addr2mask
	movl	(%r14), %esi
	movq	_INADDR_ANY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	je	LBB0_3
## %bb.1:
	movl	%esi, %ecx
	andl	%eax, %ecx
	cmpl	%eax, %ecx
	jne	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rdi
	callq	_ncprange_setip4mask
LBB0_3:
	movl	40(%r15), %edi
	movq	_IFACE_ADD_FIRST@GOTPCREL(%rip), %rax
	movq	_IFACE_FORCE_ADD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	leaq	16(%r15), %r14
	movq	_IFACE_SYSTEM@GOTPCREL(%rip), %rbx
	orl	(%rbx), %r8d
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r14, %rsi
	callq	_iface_Add
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_OPT_IFACEALIAS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_Enabled
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	cmpq	$0, 24(%r15)
	jg	LBB0_9
	jmp	LBB0_8
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_6:
	movl	40(%r15), %edi
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IFACE_CLEAR_ALIASES@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_iface_Clear
	cmpq	$0, 24(%r15)
	jg	LBB0_9
LBB0_8:
	cmpq	$0, 32(%r15)
	jle	LBB0_10
LBB0_9:
	leaq	-48(%rbp), %rdi
	leaq	-72(%rbp), %r12
	leaq	-64(%rbp), %r14
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_ncprange_getsa
	leaq	-40(%rbp), %rdi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_ncpaddr_getsa
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_rt_Update
LBB0_10:
	movq	_OPT_SROUTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_Enabled
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	16(%r15), %esi
	leaq	-56(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	callq	_route_Change
LBB0_12:
	movl	$1, %r14d
	cmpq	$0, 8(%r15)
	je	LBB0_14
## %bb.13:
	movl	(%r15), %esi
	leaq	-56(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	callq	_route_Change
LBB0_14:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_IFACE_ADD_FIRST,4,2            ## @IFACE_ADD_FIRST
	.comm	_IFACE_FORCE_ADD,4,2            ## @IFACE_FORCE_ADD
	.comm	_IFACE_SYSTEM,4,2               ## @IFACE_SYSTEM
	.comm	_OPT_IFACEALIAS,4,2             ## @OPT_IFACEALIAS
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_IFACE_CLEAR_ALIASES,4,2        ## @IFACE_CLEAR_ALIASES
	.comm	_OPT_SROUTES,4,2                ## @OPT_SROUTES
	.no_dead_strip	_ipcp_SetIPaddress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipcp_SetIPaddress
_ipcp_SetIPaddress:                     ; @ipcp_SetIPaddress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	and	x1, x2, #0xffffffff
	add	x0, sp, #32
	bl	_ncpaddr_setip4
	and	x20, x20, #0xffffffff
	add	x0, sp, #40
	mov	x1, x20
	bl	_ncpaddr_setip4
	add	x0, sp, #24
	add	x1, sp, #40
	bl	_ncprange_sethost
	mov	x0, x20
	bl	_addr2mask
	ldr	w1, [x21]
Lloh0:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w9, w1, w0
	cmp	w1, w8
	ccmp	w9, w0, #0, ne
	b.ne	LBB0_2
; %bb.1:
	add	x0, sp, #24
	bl	_ncprange_setip4mask
LBB0_2:
	ldr	w0, [x19, #40]
	add	x20, x19, #16
Lloh3:
	adrp	x8, _IFACE_ADD_FIRST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFACE_ADD_FIRST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IFACE_FORCE_ADD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFACE_FORCE_ADD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x21, _IFACE_SYSTEM@GOTPAGE
Lloh10:
	ldr	x21, [x21, _IFACE_SYSTEM@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w4, w8, w9
	add	x2, sp, #24
	add	x3, sp, #32
	mov	x1, x20
	bl	_iface_Add
	cbz	w0, LBB0_13
; %bb.3:
Lloh11:
	adrp	x8, _OPT_IFACEALIAS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPT_IFACEALIAS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_Enabled
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #40]
Lloh14:
	adrp	x8, _AF_INET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _IFACE_CLEAR_ALIASES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IFACE_CLEAR_ALIASES@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w3, w9, w8
	mov	x1, x20
	bl	_iface_Clear
LBB0_5:
	ldr	x8, [x19, #24]
	cmp	x8, #0
	b.gt	LBB0_7
; %bb.6:
	ldr	x8, [x19, #32]
	cmp	x8, #1
	b.lt	LBB0_8
LBB0_7:
	add	x0, sp, #24
	add	x1, sp, #8
	mov	x2, sp
	bl	_ncprange_getsa
	add	x0, sp, #32
	add	x1, sp, #16
	bl	_ncpaddr_getsa
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x19
	mov	x4, #0
	mov	x5, #0
	bl	_rt_Update
LBB0_8:
Lloh20:
	adrp	x8, _OPT_SROUTES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OPT_SROUTES@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_Enabled
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w1, [x19, #16]
	add	x2, sp, #40
	add	x3, sp, #32
	mov	x0, x19
	bl	_route_Change
LBB0_10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w1, [x19]
	add	x2, sp, #40
	add	x3, sp, #32
	mov	x0, x19
	bl	_route_Change
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_IFACE_ADD_FIRST,4,2            ; @IFACE_ADD_FIRST
	.comm	_IFACE_FORCE_ADD,4,2            ; @IFACE_FORCE_ADD
	.comm	_IFACE_SYSTEM,4,2               ; @IFACE_SYSTEM
	.comm	_OPT_IFACEALIAS,4,2             ; @OPT_IFACEALIAS
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_IFACE_CLEAR_ALIASES,4,2        ; @IFACE_CLEAR_ALIASES
	.comm	_OPT_SROUTES,4,2                ; @OPT_SROUTES
	.no_dead_strip	_ipcp_SetIPaddress
.subsections_via_symbols
