	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IfaceAddCommand
_IfaceAddCommand:                       ## @IfaceAddCommand
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	movslq	4(%rdi), %rax
	leal	1(%rax), %edx
	cmpl	%edx, %ecx
	jne	LBB0_6
## %bb.1:
	movq	24(%rbx), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ncprange_aton
	testl	%eax, %eax
	je	LBB0_18
## %bb.2:
	leaq	-48(%rbp), %rdi
	callq	_ncpaddr_init
LBB0_3:
	movq	_IFACE_ADD_LAST@GOTPCREL(%rip), %rax
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rcx
	xorl	%r8d, %r8d
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_IFACE_FORCE_ADD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
LBB0_5:
	orl	(%rax), %r8d
	movl	4(%rsi), %edi
	leaq	-32(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_iface_Add
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
	jmp	LBB0_19
LBB0_6:
	leal	2(%rax), %edx
	cmpl	%edx, %ecx
	jne	LBB0_11
## %bb.7:
	movq	24(%rbx), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ncprange_aton
	movl	$1, %ecx
	testl	%eax, %eax
	je	LBB0_18
LBB0_8:
	movq	24(%rbx), %rax
	movslq	4(%rbx), %rdx
	movl	%ecx, %ecx
	addq	%rdx, %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ncpaddr_aton
	movl	$-1, %r14d
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	leaq	-32(%rbp), %rdi
	callq	_ncprange_family
	movq	%rax, %r15
	leaq	-48(%rbp), %rdi
	callq	_ncpaddr_family
	cmpq	%rax, %r15
	je	LBB0_3
## %bb.10:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_log_Printf
	jmp	LBB0_19
LBB0_18:
	movl	$-1, %r14d
	jmp	LBB0_19
LBB0_11:
	movl	%eax, %edx
	addl	$3, %edx
	movl	$-1, %r14d
	cmpl	%edx, %ecx
	jne	LBB0_19
## %bb.12:
	movq	24(%rbx), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ncpaddr_aton
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:
	leaq	-40(%rbp), %rdi
	callq	_ncpaddr_family
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.14:
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %r15
	movq	%r15, %rsi
	callq	_ncprange_sethost
	movq	24(%rbx), %rax
	movslq	4(%rbx), %rcx
	movl	4(%rax,%rcx,4), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ncpaddr_aton
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	leaq	-40(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_ncpaddr_getip4
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	movl	-56(%rbp), %esi
	leaq	-32(%rbp), %rdi
	callq	_ncprange_setip4mask
	movl	$2, %ecx
	testl	%eax, %eax
	jne	LBB0_8
LBB0_19:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_LogWARN,4,2                    ## @LogWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IfaceAddCommand: src and dst address families differ\n"

	.comm	_IFACE_ADD_LAST,4,2             ## @IFACE_ADD_LAST
	.comm	_IFACE_FORCE_ADD,4,2            ## @IFACE_FORCE_ADD
	.no_dead_strip	_IfaceAddCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IfaceAddCommand
_IfaceAddCommand:                       ; @IfaceAddCommand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w9, w8, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	w10, w8, #1
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.1:
	ldr	x9, [x19, #24]
	ldr	w2, [x9, x8, lsl #2]
	add	x0, sp, #8
	mov	x1, #0
	bl	_ncprange_aton
	cbz	w0, LBB0_17
; %bb.2:
	add	x0, sp, #24
	bl	_ncpaddr_init
LBB0_3:
Lloh0:
	adrp	x8, _IFACE_ADD_LAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFACE_ADD_LAST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IFACE_FORCE_ADD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFACE_FORCE_ADD@GOTPAGEOFF]
	ldp	x1, x10, [x19, #8]
	ldr	x10, [x10]
Lloh5:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w4, w9, w8
	ldr	w0, [x1, #4]
	add	x2, sp, #8
	add	x3, sp, #24
	bl	_iface_Add
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_18
LBB0_4:
	add	w10, w8, #2
	cmp	w9, w10
	b.ne	LBB0_10
; %bb.5:
	ldr	x9, [x19, #24]
	ldr	w2, [x9, x8, lsl #2]
	add	x0, sp, #8
	mov	x1, #0
	bl	_ncprange_aton
	cbz	w0, LBB0_17
; %bb.6:
	mov	w8, #1
LBB0_7:
	ldr	x9, [x19, #24]
	ldr	w10, [x19, #4]
	add	w8, w10, w8
	ldr	w2, [x9, w8, sxtw #2]
	add	x0, sp, #24
	mov	x1, #0
	bl	_ncpaddr_aton
	cbz	w0, LBB0_17
; %bb.8:
	add	x0, sp, #8
	bl	_ncprange_family
	mov	x20, x0
	add	x0, sp, #24
	bl	_ncpaddr_family
	cmp	x20, x0
	b.eq	LBB0_3
; %bb.9:
Lloh6:
	adrp	x8, _LogWARN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	b	LBB0_17
LBB0_10:
	add	w10, w8, #3
	cmp	w9, w10
	b.ne	LBB0_17
; %bb.11:
	ldr	x9, [x19, #24]
	ldr	w2, [x9, x8, lsl #2]
	add	x0, sp, #16
	mov	x1, #0
	bl	_ncpaddr_aton
	cbz	w0, LBB0_17
; %bb.12:
	add	x0, sp, #16
	bl	_ncpaddr_family
Lloh11:
	adrp	x8, _AF_INET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.13:
	add	x0, sp, #8
	add	x1, sp, #16
	bl	_ncprange_sethost
	ldr	x8, [x19, #24]
	ldrsw	x9, [x19, #4]
	add	x8, x8, x9, lsl #2
	ldr	w2, [x8, #4]
	add	x0, sp, #16
	mov	x1, #0
	bl	_ncpaddr_aton
	cbz	w0, LBB0_17
; %bb.14:
	add	x0, sp, #16
	mov	x1, sp
	bl	_ncpaddr_getip4
	cbz	w0, LBB0_17
; %bb.15:
	ldr	w1, [sp]
	add	x0, sp, #8
	bl	_ncprange_setip4mask
	cbz	w0, LBB0_17
; %bb.16:
	mov	w8, #2
	b	LBB0_7
LBB0_17:
	mov	w0, #-1
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_LogWARN,4,2                    ; @LogWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IfaceAddCommand: src and dst address families differ\n"

	.comm	_IFACE_ADD_LAST,4,2             ; @IFACE_ADD_LAST
	.comm	_IFACE_FORCE_ADD,4,2            ; @IFACE_FORCE_ADD
	.no_dead_strip	_IfaceAddCommand
.subsections_via_symbols
