	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addrouteforif
_addrouteforif:                         ## @addrouteforif
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movq	_IS_BROKE@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	testl	%eax, (%r12)
	jne	LBB0_20
## %bb.1:
	movq	%rdi, %rbx
	movq	_IS_SUBNET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_check_net_syn
LBB0_3:
	movq	_IFF_POINTOPOINT@GOTPCREL(%rip), %rax
	movq	_IFF_LOOPBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_5
## %bb.4:
	movl	36(%rbx), %r14d
	jmp	LBB0_6
LBB0_5:
	movl	32(%rbx), %edi
	callq	_htonl
	movl	%eax, %r14d
LBB0_6:
	movq	%rbx, _addrouteforif.new+24(%rip)
	movq	8(%rbx), %rax
	movq	%rax, _addrouteforif.new(%rip)
	movq	%rax, _addrouteforif.new+8(%rip)
	movl	28(%rbx), %eax
	movl	%eax, _addrouteforif.new+20(%rip)
	movq	_now@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, _addrouteforif.new+16(%rip)
	movl	(%rbx), %eax
	movq	_IS_REMOTE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.7:
	movq	_IS_EXTERNAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_check_remote
	testl	%eax, %eax
	je	LBB0_20
LBB0_9:
	movl	16(%rbx), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_del_static
	movl	16(%rbx), %esi
	movl	%r14d, %edi
	callq	_rtget
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	16(%rax), %rcx
	cmpq	%rbx, %rcx
	jne	LBB0_12
## %bb.11:
	movq	(%rax), %rdx
	cmpq	8(%rbx), %rdx
	je	LBB0_21
LBB0_12:
	movq	_IS_DUP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rbx)
	je	LBB0_15
## %bb.13:
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	movl	(%r12), %edx
	testl	%edx, (%rcx)
	je	LBB0_21
LBB0_15:
	movq	%rax, %rdi
	callq	_rtdelete
LBB0_16:
	movl	24(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 24(%rbx)
	testl	%eax, %eax
	jle	LBB0_18
## %bb.17:
	movl	20(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_trace_act
LBB0_18:
	movl	16(%rbx), %esi
	movq	_RS_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_addrouteforif.new(%rip), %rcx
	movl	%r14d, %edi
	callq	_rtadd
	jmp	LBB0_19
LBB0_21:
	movq	_RS_IF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	8(%rax), %ecx
	movq	_RS_NET_SYN@GOTPCREL(%rip), %rdx
	movq	_RS_LOCAL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	notl	%esi
	andl	%ecx, %esi
	leaq	_addrouteforif.new(%rip), %rdx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_rtchange
LBB0_19:
	movl	$1, %r15d
LBB0_20:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_addrouteforif.new,32,3 ## @addrouteforif.new
	.comm	_IS_BROKE,4,2                   ## @IS_BROKE
	.comm	_IS_SUBNET,4,2                  ## @IS_SUBNET
	.comm	_IFF_POINTOPOINT,4,2            ## @IFF_POINTOPOINT
	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_now,4,2                        ## @now
	.comm	_IS_REMOTE,4,2                  ## @IS_REMOTE
	.comm	_IS_EXTERNAL,4,2                ## @IS_EXTERNAL
	.comm	_IS_DUP,4,2                     ## @IS_DUP
	.comm	_RS_IF,4,2                      ## @RS_IF
	.comm	_RS_NET_SYN,4,2                 ## @RS_NET_SYN
	.comm	_RS_LOCAL,4,2                   ## @RS_LOCAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"re-install interface %s"

	.no_dead_strip	_addrouteforif
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addrouteforif
_addrouteforif:                         ; @addrouteforif
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _IS_BROKE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IS_BROKE@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_22
LBB0_2:
	mov	x19, x0
Lloh2:
	adrp	x9, _IS_SUBNET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IS_SUBNET@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_check_net_syn
LBB0_4:
	ldr	w8, [x19, #4]
Lloh5:
	adrp	x9, _IFF_POINTOPOINT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFF_POINTOPOINT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _IFF_LOOPBACK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IFF_LOOPBACK@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w20, [x19, #36]
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #32]
	bl	_htonl
	mov	x20, x0
LBB0_7:
Lloh11:
	adrp	x8, _addrouteforif.new@PAGE
Lloh12:
	add	x8, x8, _addrouteforif.new@PAGEOFF
	str	x19, [x8, #24]
	ldr	x9, [x19, #8]
	stp	x9, x9, [x8]
	ldr	w9, [x19, #28]
Lloh13:
	adrp	x10, _now@GOTPAGE
Lloh14:
	ldr	x10, [x10, _now@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #16]
	ldr	w8, [x19]
Lloh16:
	adrp	x9, _IS_REMOTE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IS_REMOTE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
Lloh19:
	adrp	x9, _IS_EXTERNAL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IS_EXTERNAL@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_check_remote
	cbz	w0, LBB0_22
LBB0_10:
	ldr	w1, [x19, #16]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_del_static
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_rtget
	cbz	x0, LBB0_17
; %bb.11:
	ldr	x8, [x0, #16]
	cmp	x8, x19
	b.ne	LBB0_13
; %bb.12:
	ldr	x9, [x0]
	ldr	x10, [x19, #8]
	cmp	x9, x10
	b.eq	LBB0_20
LBB0_13:
	ldr	w9, [x19]
Lloh22:
	adrp	x10, _IS_DUP@GOTPAGE
Lloh23:
	ldr	x10, [x10, _IS_DUP@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_16
; %bb.14:
	cbz	x8, LBB0_16
; %bb.15:
	ldr	w8, [x8]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_20
LBB0_16:
	bl	_rtdelete
LBB0_17:
	ldr	w8, [x19, #24]
	add	w9, w8, #1
	str	w9, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.18:
	ldr	w1, [x19, #20]
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trace_act
LBB0_19:
	ldr	w1, [x19, #16]
Lloh27:
	adrp	x8, _RS_IF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RS_IF@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x3, _addrouteforif.new@PAGE
Lloh31:
	add	x3, x3, _addrouteforif.new@PAGEOFF
	mov	x0, x20
	bl	_rtadd
	b	LBB0_21
LBB0_20:
	ldr	w8, [x0, #8]
Lloh32:
	adrp	x9, _RS_IF@GOTPAGE
Lloh33:
	ldr	x9, [x9, _RS_IF@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh35:
	adrp	x9, _RS_NET_SYN@GOTPAGE
Lloh36:
	ldr	x9, [x9, _RS_NET_SYN@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	adrp	x10, _RS_LOCAL@GOTPAGE
Lloh39:
	ldr	x10, [x10, _RS_LOCAL@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w1, w8, w9
Lloh41:
	adrp	x2, _addrouteforif.new@PAGE
Lloh42:
	add	x2, x2, _addrouteforif.new@PAGEOFF
	mov	w3, #0
	bl	_rtchange
LBB0_21:
	mov	w0, #1
LBB0_22:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_addrouteforif.new,32,3 ; @addrouteforif.new
	.comm	_IS_BROKE,4,2                   ; @IS_BROKE
	.comm	_IS_SUBNET,4,2                  ; @IS_SUBNET
	.comm	_IFF_POINTOPOINT,4,2            ; @IFF_POINTOPOINT
	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_now,4,2                        ; @now
	.comm	_IS_REMOTE,4,2                  ; @IS_REMOTE
	.comm	_IS_EXTERNAL,4,2                ; @IS_EXTERNAL
	.comm	_IS_DUP,4,2                     ; @IS_DUP
	.comm	_RS_IF,4,2                      ; @RS_IF
	.comm	_RS_NET_SYN,4,2                 ; @RS_NET_SYN
	.comm	_RS_LOCAL,4,2                   ; @RS_LOCAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"re-install interface %s"

	.no_dead_strip	_addrouteforif
.subsections_via_symbols
