	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function route4_change
_route4_change:                         ## @route4_change
	.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
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TCA_OPTIONS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %r12
	movq	_TCA_ROUTE4_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	testq	%r12, %r12
	je	LBB0_6
## %bb.1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r13
	movq	_route4_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_nla_parse_nested
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.3:
	movl	(%rbx), %ecx
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.4:
	cmpl	%r14d, %ecx
	je	LBB0_14
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_36
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	testl	%r14d, %r14d
	cmovel	%r14d, %r12d
	jmp	LBB0_36
LBB0_8:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	testq	%r13, %r13
	jne	LBB0_11
## %bb.9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_tcf_tree_lock
	movq	%rbx, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, 8(%rdi)
	callq	_tcf_tree_unlock
LBB0_11:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:
	movq	%rax, %rbx
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_TCA_RATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	movq	%r13, %r8
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	pushq	$1
	pushq	(%r15,%rax,8)
	callq	_route4_set_parms
	addq	$16, %rsp
	testl	%eax, %eax
	jns	LBB0_15
## %bb.13:
	movl	%eax, %r12d
	jmp	LBB0_20
LBB0_14:
	xorl	%eax, %eax
	cmpq	$0, 16(%rbx)
	cmovel	%eax, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_TCA_RATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	movq	%r13, %r8
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	pushq	$0
	pushq	(%r15,%rax,8)
	callq	_route4_set_parms
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_7
LBB0_15:
	movswl	2(%rbx), %edi
	callq	_from_hash
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	%rbx, %rsi
	leaq	(%rcx,%rax,8), %rbx
	movq	(%rcx,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.16:
	movq	%rsi, %rdx
	movl	(%rsi), %ecx
	cmpl	(%rax), %ecx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_25
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	(%rax), %ecx
	jge	LBB0_17
	jmp	LBB0_24
LBB0_7:
	movl	%eax, %r12d
	jmp	LBB0_36
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_36
LBB0_21:
	movq	%rsi, %rdx
	xorl	%eax, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	addq	$8, %rbx
LBB0_25:
	movq	%rdx, %r14
	movq	%rax, 8(%rdx)
	movq	%r15, %rdi
	callq	_tcf_tree_lock
	movq	%r14, (%rbx)
	movq	%r14, %rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	testl	%r12d, %r12d
	je	LBB0_35
## %bb.26:
	cmpl	%r12d, (%rbx)
	je	LBB0_35
## %bb.27:
	movl	%r12d, %edi
	callq	_to_hash
	movl	%eax, %r14d
	sarl	$16, %r12d
	movl	%r12d, %edi
	callq	_from_hash
	movq	(%r13), %rcx
	movl	%r14d, %edx
	movq	(%rcx,%rdx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_35
## %bb.28:
	movq	(%rcx), %rdx
	movl	%eax, %eax
	movq	(%rdx,%rax,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_35
## %bb.29:
	cmpq	%rbx, %rcx
	je	LBB0_33
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	cmpq	%rbx, %rcx
	jne	LBB0_30
## %bb.32:
	addq	$8, %rax
	jmp	LBB0_34
LBB0_33:
	leaq	(%rdx,%rax,8), %rax
LBB0_34:
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
LBB0_35:
	movq	%r15, %rdi
	callq	_tcf_tree_unlock
	movl	(%r15), %edi
	movl	4(%rbx), %edx
	movq	%r13, %rsi
	callq	_route4_reset_fastmap
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	xorl	%r12d, %r12d
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TCA_OPTIONS,8,3                ## @TCA_OPTIONS
	.comm	_TCA_ROUTE4_MAX,4,2             ## @TCA_ROUTE4_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_route4_policy,4,2              ## @route4_policy
	.comm	_TCA_RATE,8,3                   ## @TCA_RATE
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_route4_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function route4_change
_route4_change:                         ; @route4_change
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x4
	mov	x25, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x21, [x0, #8]
Lloh3:
	adrp	x8, _TCA_OPTIONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCA_OPTIONS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x2, [x3, x8, lsl #3]
Lloh6:
	adrp	x8, _TCA_ROUTE4_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCA_ROUTE4_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	w8, w1, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x26, x9, x8
	mov	sp, x26
	cbz	x2, LBB0_6
; %bb.1:
Lloh11:
	adrp	x8, _route4_policy@GOTPAGE
Lloh12:
	ldr	x8, [x8, _route4_policy@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x26
	bl	_nla_parse_nested
	tbnz	w0, #31, LBB0_29
; %bb.2:
	ldr	x22, [x19]
	cbz	x22, LBB0_7
; %bb.3:
	ldr	w8, [x22]
	cbz	w23, LBB0_13
; %bb.4:
	cmp	w8, w23
	b.eq	LBB0_13
; %bb.5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_33
LBB0_6:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w23, #0
	csneg	w28, wzr, w8, eq
	b	LBB0_33
LBB0_7:
Lloh20:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w28, w8
Lloh23:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	cbnz	x21, LBB0_10
; %bb.8:
	ldr	w1, [x22]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_31
; %bb.9:
	mov	x21, x0
	mov	x0, x20
	bl	_tcf_tree_lock
	str	x21, [x20, #8]
	mov	x0, x20
	bl	_tcf_tree_unlock
LBB0_10:
	ldr	w1, [x22]
	mov	w0, #24
	bl	_kzalloc
	mov	x22, x0
	cbz	x0, LBB0_32
; %bb.11:
Lloh25:
	adrp	x8, _TCA_RATE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TCA_RATE@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	x6, [x25, x8, lsl #3]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	mov	x4, x21
	mov	x5, x26
	mov	w7, #1
	bl	_route4_set_parms
	tbnz	w0, #31, LBB0_30
; %bb.12:
	mov	w27, #0
	b	LBB0_14
LBB0_13:
	ldr	x9, [x22, #16]
	cmp	x9, #0
	csel	w27, wzr, w8, eq
Lloh28:
	adrp	x8, _TCA_RATE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TCA_RATE@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldr	x6, [x25, x8, lsl #3]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	mov	x4, x21
	mov	x5, x26
	mov	w7, #0
	bl	_route4_set_parms
	tbnz	w0, #31, LBB0_29
LBB0_14:
	ldrsh	w0, [x22, #2]
	bl	_from_hash
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	add	x23, x8, w0, uxtw #3
	ldr	x8, [x23]
	cbz	x8, LBB0_19
; %bb.15:
	ldr	w9, [x22]
	ldr	w10, [x8]
	cmp	w9, w10
	b.lt	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x10, x8
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w11, [x8]
	cmp	w9, w11
	b.ge	LBB0_16
LBB0_18:
	add	x23, x10, #8
LBB0_19:
	str	x8, [x22, #8]
	mov	x0, x20
	bl	_tcf_tree_lock
	str	x22, [x23]
	cbz	w27, LBB0_28
; %bb.20:
	ldr	w8, [x22]
	cmp	w8, w27
	b.eq	LBB0_28
; %bb.21:
	mov	x0, x27
	bl	_to_hash
	mov	x23, x0
	asr	w0, w27, #16
	bl	_from_hash
	ldr	x8, [x21]
	ldr	x8, [x8, w23, uxtw #3]
	cbz	x8, LBB0_28
; %bb.22:
	ldr	x8, [x8]
	add	x9, x8, w0, uxtw #3
	ldr	x8, [x9]
	cbz	x8, LBB0_28
; %bb.23:
	cmp	x8, x22
	b.eq	LBB0_27
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	cmp	x8, x22
	b.ne	LBB0_24
; %bb.26:
	add	x9, x9, #8
LBB0_27:
	ldr	x8, [x22, #8]
	str	x8, [x9]
LBB0_28:
	mov	x0, x20
	bl	_tcf_tree_unlock
	ldr	w0, [x20]
	ldr	w2, [x22, #4]
	mov	x1, x21
	bl	_route4_reset_fastmap
	mov	w28, #0
	str	x22, [x19]
	b	LBB0_33
LBB0_29:
	mov	x28, x0
	b	LBB0_33
LBB0_30:
	mov	x28, x0
	b	LBB0_32
LBB0_31:
	mov	x22, #0
LBB0_32:
	mov	x0, x22
	bl	_kfree
LBB0_33:
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.34:
	mov	x0, x28
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_TCA_OPTIONS,8,3                ; @TCA_OPTIONS
	.comm	_TCA_ROUTE4_MAX,4,2             ; @TCA_ROUTE4_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_route4_policy,4,2              ; @route4_policy
	.comm	_TCA_RATE,8,3                   ; @TCA_RATE
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_route4_change
.subsections_via_symbols
