	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipcp_UseHisaddr                ## -- Begin function ipcp_UseHisaddr
	.p2align	4, 0x90
_ipcp_UseHisaddr:                       ## @ipcp_UseHisaddr
	.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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	16(%r15), %r13
	movq	%r13, %rdi
	callq	_iplist_reset
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strpbrk
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_iplist_setsrc
	movq	%r13, %rdi
	callq	_iplist_isvalid
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%r13, %rdi
	callq	_iplist_setrandpos
	movl	24(%r15), %esi
	movq	%r15, %rdi
	callq	_ChooseHisAddr
	movq	%rax, (%r15)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_ncprange_aton
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	leaq	12(%r15), %r13
	movq	%r13, %rdi
	callq	_ncprange_family
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.6:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ncprange_getip4addr
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ncprange_getip4addr
	testl	%r14d, %r14d
	movl	$0, %ebx
	je	LBB0_10
## %bb.7:
	movq	-56(%rbp), %rsi
	movq	(%r15), %rdx
	movq	%r15, %rdi
	callq	_ipcp_SetIPaddress
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_16
LBB0_8:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_9:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ncprange_setip4host
LBB0_10:
	movq	(%r15), %rsi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_ncpaddr_setip4
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_bundle_AdjustFilters
	movl	$1, %ebx
	jmp	LBB0_16
LBB0_12:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_13:
	movq	%r12, %rdx
LBB0_14:
	callq	_log_Printf
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %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	",-"

	.comm	_INADDR_ANY,8,3                 ## @INADDR_ANY
	.comm	_LogWARN,4,2                    ## @LogWARN
L_.str.1:                               ## @.str.1
	.asciz	"%s: None available !\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Invalid range !\n"

	.comm	_AF_INET,8,3                    ## @AF_INET
L_.str.3:                               ## @.str.3
	.asciz	"%s: Not an AF_INET address !\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipcp_UseHisaddr                ; -- Begin function ipcp_UseHisaddr
	.p2align	2
_ipcp_UseHisaddr:                       ; @ipcp_UseHisaddr
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x23, x19, #16
	mov	x0, x23
	bl	_iplist_reset
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strpbrk
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x23
	mov	x1, x21
	bl	_iplist_setsrc
	mov	x0, x23
	bl	_iplist_isvalid
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x23
	bl	_iplist_setrandpos
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_ChooseHisAddr
	str	x0, [x19]
Lloh2:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.3:
Lloh5:
	adrp	x8, _LogWARN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x2, [x23]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_ncprange_aton
	cbz	x0, LBB0_14
; %bb.5:
	add	x23, x19, #12
	mov	x0, x23
	bl	_ncprange_family
Lloh10:
	adrp	x8, _AF_INET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.6:
	add	x1, sp, #8
	mov	x0, x23
	bl	_ncprange_getip4addr
	mov	x0, x20
	mov	x1, x19
	bl	_ncprange_getip4addr
	cbz	w22, LBB0_10
; %bb.7:
	ldr	x1, [sp, #8]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_ipcp_SetIPaddress
	cbnz	w0, LBB0_10
	b	LBB0_14
LBB0_8:
Lloh13:
	adrp	x8, _LogWARN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_9:
	mov	x1, x0
	mov	x0, x20
	bl	_ncprange_setip4host
LBB0_10:
	ldr	x1, [x19]
	mov	x0, sp
	bl	_ncpaddr_setip4
	mov	x2, sp
	mov	x0, x19
	mov	x1, #0
	bl	_bundle_AdjustFilters
	mov	w0, #1
	b	LBB0_14
LBB0_11:
Lloh18:
	adrp	x8, _LogWARN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x2, x21
LBB0_13:
	bl	_log_Printf
	mov	w0, #0
LBB0_14:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	",-"

	.comm	_INADDR_ANY,8,3                 ; @INADDR_ANY
	.comm	_LogWARN,4,2                    ; @LogWARN
l_.str.1:                               ; @.str.1
	.asciz	"%s: None available !\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Invalid range !\n"

	.comm	_AF_INET,8,3                    ; @AF_INET
l_.str.3:                               ; @.str.3
	.asciz	"%s: Not an AF_INET address !\n"

.subsections_via_symbols
