	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iface_Add                      ## -- Begin function iface_Add
	.p2align	4, 0x90
_iface_Add:                             ## @iface_Add
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_ncprange_family
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_ID0socket
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.1:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ncprange_getaddr
	cmpl	$0, (%rbx)
	je	LBB0_12
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	leaq	-72(%rbp), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	leaq	(%rax,%r15), %rdi
	addq	$8, %rdi
	movq	%r14, %rsi
	callq	_ncprange_contains
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rax
	leaq	(%rax,%r15), %rdi
	addq	$4, %rdi
	movq	%r12, %rsi
	callq	_ncpaddr_equal
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movl	(%rbx), %eax
	addq	$12, %r15
	cmpq	%rax, %r13
	jb	LBB0_3
## %bb.6:
	leal	(%rax,%rax,2), %eax
	leal	12(,%rax,4), %esi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_7:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_log_Printf
	jmp	LBB0_31
LBB0_8:
	movq	_IFACE_FORCE_ADD@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_29
## %bb.9:
	movq	8(%rbx), %rax
	leaq	(%rax,%r15), %rdi
	addq	$8, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_ncprange_equal
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:
	movq	8(%rbx), %rax
	leaq	(%rax,%r15), %rdi
	addq	$4, %rdi
	movq	%r12, %rsi
	callq	_ncpaddr_equal
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_22
LBB0_12:
	movl	$12, %esi
LBB0_13:
	movq	8(%rbx), %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	%rax, 8(%rbx)
	leaq	-80(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ncprange_copy
	leaq	-84(%rbp), %rdi
	movq	%r12, %rsi
	callq	_ncpaddr_copy
	movq	_IFACE_SYSTEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	andl	%r14d, %eax
	setne	%cl
	movl	%ecx, -88(%rbp)
	movl	16(%rbx), %edi
	leaq	-88(%rbp), %rsi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_iface_addr_Add
	testl	%eax, %eax
	je	LBB0_23
## %bb.15:
	movq	_IFACE_ADD_FIRST@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_24
## %bb.16:
	movq	8(%rbx), %rsi
	leaq	12(%rsi), %rdi
	movl	(%rbx), %eax
	shll	$2, %eax
	leal	(%rax,%rax,2), %edx
	callq	_memmove
	movl	(%rbx), %eax
	xorl	%ecx, %ecx
	jmp	LBB0_25
LBB0_17:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_log_Printf
LBB0_29:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_30
LBB0_18:
	movl	16(%rbx), %edi
	movq	8(%rbx), %rsi
	addq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_iface_addr_Zap
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movq	8(%rbx), %rsi
	addq	%r15, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ncp_IfaceAddrDeleted
LBB0_20:
	movq	8(%rbx), %rax
	leaq	(%rax,%r15), %rdi
	addq	$8, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_ncprange_copy
	movq	8(%rbx), %rax
	leaq	(%rax,%r15), %rdi
	addq	$4, %rdi
	movq	%r12, %rsi
	callq	_ncpaddr_copy
	movl	16(%rbx), %edi
	movq	8(%rbx), %rsi
	addq	%r15, %rsi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_iface_addr_Add
	testl	%eax, %eax
	je	LBB0_27
## %bb.21:
	movl	%r12d, %edi
LBB0_22:
	callq	_close
	addq	8(%rbx), %r15
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	jmp	LBB0_26
LBB0_23:
	movl	%r12d, %edi
LBB0_30:
	callq	_close
	xorl	%r15d, %r15d
	jmp	LBB0_31
LBB0_24:
	movl	(%rbx), %eax
	movq	%rax, %rcx
LBB0_25:
	incl	%eax
	movl	%eax, (%rbx)
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %r14
	movq	8(%rbx), %rdi
	addq	%r14, %rdi
	leaq	-88(%rbp), %rsi
	movl	$12, %edx
	callq	_memcpy
	movl	%r12d, %edi
	callq	_close
	addq	8(%rbx), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
LBB0_26:
	callq	_ncp_IfaceAddrAdded
	movl	$1, %r15d
LBB0_31:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	testl	%r14d, %r14d
	je	LBB0_29
## %bb.28:
	movq	8(%rbx), %rax
	notl	%r13d
	addl	(%rbx), %r13d
	shll	$2, %r13d
	leal	(%r13,%r13,2), %edx
	leaq	(%rax,%r15), %rdi
	leaq	(%rax,%r15), %rsi
	addq	$12, %rsi
	callq	_memmove
	decl	(%rbx)
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iface_Add: socket(): %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_IFACE_FORCE_ADD,4,2            ## @IFACE_FORCE_ADD
L_.str.1:                               ## @.str.1
	.asciz	"iface_inAdd: realloc: %s\n"

	.comm	_IFACE_SYSTEM,4,2               ## @IFACE_SYSTEM
	.comm	_IFACE_ADD_FIRST,4,2            ## @IFACE_ADD_FIRST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iface_Add                      ; -- Begin function iface_Add
	.p2align	2
_iface_Add:                             ; @iface_Add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x24, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	bl	_ncprange_family
Lloh0:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_ID0socket
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x0
	add	x1, sp, #24
	mov	x0, x23
	bl	_ncprange_getaddr
	ldr	w8, [x20]
	cbz	w8, LBB0_15
; %bb.2:
	mov	x25, #0
	mov	x26, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	add	x0, x8, #8
	add	x1, sp, #24
	bl	_ncprange_contains
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	add	x0, x8, #4
	mov	x1, x22
	bl	_ncpaddr_equal
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	ldr	w8, [x20]
	add	x25, x25, #12
	cmp	x26, x8
	b.lo	LBB0_3
; %bb.6:
	mov	w9, #12
	orr	w10, wzr, #0xc
	madd	w1, w8, w9, w10
	b	LBB0_16
LBB0_7:
Lloh3:
	adrp	x8, _LogERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_log_Printf
	mov	w0, #0
	b	LBB0_25
LBB0_8:
Lloh11:
	adrp	x8, _IFACE_FORCE_ADD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFACE_FORCE_ADD@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_21
; %bb.9:
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	add	x0, x8, #8
	mov	x1, x23
	bl	_ncprange_equal
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	add	x0, x8, #4
	mov	x1, x22
	bl	_ncpaddr_equal
	cbnz	x0, LBB0_14
LBB0_11:
	ldr	w0, [x20, #16]
	ldr	x8, [x20, #8]
	add	x1, x8, x25
	mov	x2, x19
	bl	_iface_addr_Zap
	mov	x24, x0
	cbz	w0, LBB0_13
; %bb.12:
	ldr	x8, [x20, #8]
	add	x1, x8, x25
	mov	x0, x21
	bl	_ncp_IfaceAddrDeleted
LBB0_13:
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	add	x0, x8, #8
	mov	x1, x23
	bl	_ncprange_copy
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	add	x0, x8, #4
	mov	x1, x22
	bl	_ncpaddr_copy
	ldr	w0, [x20, #16]
	ldr	x8, [x20, #8]
	add	x1, x8, x25
	mov	x2, x19
	bl	_iface_addr_Add
	cbz	w0, LBB0_26
LBB0_14:
	mov	x0, x19
	bl	_close
	ldr	x8, [x20, #8]
	add	x1, x8, x25
	b	LBB0_24
LBB0_15:
	mov	w1, #12
LBB0_16:
	ldr	x0, [x20, #8]
	bl	_realloc
	cbz	x0, LBB0_20
; %bb.17:
	str	x0, [x20, #8]
	add	x25, sp, #8
	add	x0, x25, #8
	mov	x1, x23
	bl	_ncprange_copy
	orr	x0, x25, #0x4
	mov	x1, x22
	bl	_ncpaddr_copy
Lloh14:
	adrp	x8, _IFACE_SYSTEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IFACE_SYSTEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w24
	cset	w8, ne
	str	w8, [sp, #8]
	ldr	w0, [x20, #16]
	add	x1, sp, #8
	mov	x2, x19
	bl	_iface_addr_Add
	cbz	w0, LBB0_21
; %bb.18:
Lloh17:
	adrp	x8, _IFACE_ADD_FIRST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IFACE_ADD_FIRST@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_22
; %bb.19:
	ldr	x1, [x20, #8]
	add	x0, x1, #12
	ldr	w8, [x20]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #2
	bl	_memmove
	mov	x9, #0
	ldr	w8, [x20]
	b	LBB0_23
LBB0_20:
Lloh20:
	adrp	x8, _LogERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
Lloh23:
	adrp	x8, _errno@GOTPAGE
Lloh24:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_log_Printf
LBB0_21:
	mov	x0, x19
	bl	_close
	mov	w0, #0
	b	LBB0_25
LBB0_22:
	ldr	w8, [x20]
	mov	x9, x8
LBB0_23:
	add	w8, w8, #1
	str	w8, [x20]
	ldr	x8, [x20, #8]
	add	x9, x9, x9, lsl #1
	lsl	x22, x9, #2
	add	x0, x8, x22
	add	x1, sp, #8
	mov	w2, #12
	bl	_memcpy
	mov	x0, x19
	bl	_close
	ldr	x8, [x20, #8]
	add	x1, x8, x22
LBB0_24:
	mov	x0, x21
	bl	_ncp_IfaceAddrAdded
	mov	w0, #1
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_26:
	cbz	w24, LBB0_21
; %bb.27:
	ldr	x8, [x20, #8]
	ldr	w9, [x20]
	mvn	w10, w26
	add	w9, w10, w9
	add	w9, w9, w9, lsl #1
	lsl	w2, w9, #2
	add	x0, x8, x25
	add	x1, x0, #12
	bl	_memmove
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iface_Add: socket(): %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_IFACE_FORCE_ADD,4,2            ; @IFACE_FORCE_ADD
l_.str.1:                               ; @.str.1
	.asciz	"iface_inAdd: realloc: %s\n"

	.comm	_IFACE_SYSTEM,4,2               ; @IFACE_SYSTEM
	.comm	_IFACE_ADD_FIRST,4,2            ; @IFACE_ADD_FIRST
.subsections_via_symbols
