	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fix_kern
_fix_kern:                              ## @fix_kern
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_age_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_need_kern@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_rhead@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_walk_kern@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_rn_walktree
	movq	_kern_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ag_flush
	movq	_KHASH_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.1:
	xorl	%edx, %edx
	movq	_KS_STATIC@GOTPCREL(%rip), %r14
	movq	_KS_DELETE@GOTPCREL(%rip), %r15
	movq	_KS_DYNAMIC@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	_KHASH_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
	movq	_khash_bins@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rcx,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,8), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kern_check_static
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	16(%rbx), %rax
	addq	$16, %rbx
	movq	%rbx, %r13
	testq	%rax, %rax
	je	LBB0_13
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=3
	movq	8(%rbx), %rsi
	movq	_now@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jg	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=3
	testl	%eax, (%r15)
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=3
	testl	%eax, (%r12)
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=3
	movq	_RTM_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_kern_ioctl
	movq	16(%rbx), %rax
	movq	%rax, (%r13)
	movq	%rbx, %rdi
	callq	_free
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_KS_DEL_ADD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	_RTM_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_kern_ioctl
	movl	(%rbx), %eax
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_RTM_ADD@GOTPCREL(%rip), %rcx
	movq	_KS_ADD@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	_RTM_CHANGE@GOTPCREL(%rip), %rcx
	movq	_KS_CHANGE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r12), %edx
	movq	_KS_GATEWAY@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	andl	%eax, %edx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	_RTF_GATEWAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	_kern_ioctl
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_KS_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_KS_ADD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_KS_DEL_ADD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	orl	(%r15), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	_need_kern@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIM_SEC
	movl	(%r15), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_7
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_age_timer,4,2                  ## @age_timer
	.comm	_need_kern,4,2                  ## @need_kern
	.comm	_rhead,4,2                      ## @rhead
	.comm	_walk_kern,4,2                  ## @walk_kern
	.comm	_kern_out,4,2                   ## @kern_out
	.comm	_KHASH_SIZE,4,2                 ## @KHASH_SIZE
	.comm	_khash_bins,8,3                 ## @khash_bins
	.comm	_KS_STATIC,4,2                  ## @KS_STATIC
	.comm	_now,8,3                        ## @now
	.comm	_KS_DELETE,4,2                  ## @KS_DELETE
	.comm	_KS_DYNAMIC,4,2                 ## @KS_DYNAMIC
	.comm	_RTM_DELETE,4,2                 ## @RTM_DELETE
	.comm	_KS_DEL_ADD,4,2                 ## @KS_DEL_ADD
	.comm	_KS_ADD,4,2                     ## @KS_ADD
	.comm	_RTM_ADD,4,2                    ## @RTM_ADD
	.comm	_KS_GATEWAY,4,2                 ## @KS_GATEWAY
	.comm	_RTF_GATEWAY,4,2                ## @RTF_GATEWAY
	.comm	_KS_CHANGE,4,2                  ## @KS_CHANGE
	.comm	_RTM_CHANGE,4,2                 ## @RTM_CHANGE
	.no_dead_strip	_fix_kern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fix_kern
_fix_kern:                              ; @fix_kern
	.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
Lloh0:
	adrp	x8, _age_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _age_timer@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _need_kern@GOTPAGE
Lloh4:
	ldr	x9, [x9, _need_kern@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _rhead@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rhead@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _walk_kern@GOTPAGE
Lloh10:
	ldr	x8, [x8, _walk_kern@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_rn_walktree
Lloh12:
	adrp	x8, _kern_out@GOTPAGE
Lloh13:
	ldr	x8, [x8, _kern_out@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w0, #0
	mov	w1, #0
	bl	_ag_flush
Lloh15:
	adrp	x8, _KHASH_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KHASH_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x22, #0
Lloh18:
	adrp	x24, _KS_STATIC@GOTPAGE
Lloh19:
	ldr	x24, [x24, _KS_STATIC@GOTPAGEOFF]
Lloh20:
	adrp	x25, _now@GOTPAGE
Lloh21:
	ldr	x25, [x25, _now@GOTPAGEOFF]
Lloh22:
	adrp	x26, _KS_DELETE@GOTPAGE
Lloh23:
	ldr	x26, [x26, _KS_DELETE@GOTPAGEOFF]
Lloh24:
	adrp	x27, _KS_DEL_ADD@GOTPAGE
Lloh25:
	ldr	x27, [x27, _KS_DEL_ADD@GOTPAGEOFF]
Lloh26:
	adrp	x28, _KS_ADD@GOTPAGE
Lloh27:
	ldr	x28, [x28, _KS_ADD@GOTPAGEOFF]
Lloh28:
	adrp	x21, _KS_DYNAMIC@GOTPAGE
Lloh29:
	ldr	x21, [x21, _KS_DYNAMIC@GOTPAGEOFF]
Lloh30:
	adrp	x20, _RTM_DELETE@GOTPAGE
Lloh31:
	ldr	x20, [x20, _RTM_DELETE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
Lloh32:
	adrp	x8, _KHASH_SIZE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _KHASH_SIZE@GOTPAGEOFF]
Lloh34:
	ldrsw	x8, [x8]
	cmp	x22, x8
	b.ge	LBB0_20
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_5 Depth 3
Lloh35:
	adrp	x8, _khash_bins@GOTPAGE
Lloh36:
	ldr	x8, [x8, _khash_bins@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	add	x23, x8, x22, lsl #3
	ldr	x8, [x23]
	cbz	x8, LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_5 Depth 3
	mov	x19, x8
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=3
	ldr	x1, [x19, #8]
	ldr	x9, [x25]
	cmp	x1, x9
	b.gt	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=3
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=3
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=3
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_kern_ioctl
	ldr	x8, [x19, #16]
	str	x8, [x23]
	mov	x0, x19
	bl	_free
	ldr	x19, [x23]
	cbnz	x19, LBB0_5
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=2
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_kern_ioctl
	ldr	w8, [x19]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w10, [x28]
Lloh38:
	adrp	x9, _RTM_ADD@GOTPAGE
Lloh39:
	ldr	x9, [x9, _RTM_ADD@GOTPAGEOFF]
	tst	w10, w8
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=2
Lloh40:
	adrp	x9, _KS_CHANGE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _KS_CHANGE@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x9]
Lloh43:
	adrp	x9, _RTM_CHANGE@GOTPAGE
Lloh44:
	ldr	x9, [x9, _RTM_CHANGE@GOTPAGEOFF]
	tst	w10, w8
	b.eq	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w1, [x9]
Lloh45:
	adrp	x9, _KS_GATEWAY@GOTPAGE
Lloh46:
	ldr	x9, [x9, _KS_GATEWAY@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	ldr	w10, [x21]
	orr	w9, w10, w9
Lloh48:
	adrp	x10, _RTF_GATEWAY@GOTPAGE
Lloh49:
	ldr	x10, [x10, _RTF_GATEWAY@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w2, wzr, w10, eq
	mov	x0, x19
	bl	_kern_ioctl
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x28]
Lloh51:
	adrp	x9, _KS_CHANGE@GOTPAGE
Lloh52:
	ldr	x9, [x9, _KS_CHANGE@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x26]
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x19
	mov	w1, #0
	bl	_kern_check_static
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=2
Lloh54:
	adrp	x8, _need_kern@GOTPAGE
Lloh55:
	ldr	x8, [x8, _need_kern@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	bl	_LIM_SEC
	ldr	w8, [x26]
	ldr	w9, [x19]
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=2
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [x19, #16]!
	mov	x23, x19
	cbnz	x8, LBB0_4
	b	LBB0_2
LBB0_20:
	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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_age_timer,4,2                  ; @age_timer
	.comm	_need_kern,4,2                  ; @need_kern
	.comm	_rhead,4,2                      ; @rhead
	.comm	_walk_kern,4,2                  ; @walk_kern
	.comm	_kern_out,4,2                   ; @kern_out
	.comm	_KHASH_SIZE,4,2                 ; @KHASH_SIZE
	.comm	_khash_bins,8,3                 ; @khash_bins
	.comm	_KS_STATIC,4,2                  ; @KS_STATIC
	.comm	_now,8,3                        ; @now
	.comm	_KS_DELETE,4,2                  ; @KS_DELETE
	.comm	_KS_DYNAMIC,4,2                 ; @KS_DYNAMIC
	.comm	_RTM_DELETE,4,2                 ; @RTM_DELETE
	.comm	_KS_DEL_ADD,4,2                 ; @KS_DEL_ADD
	.comm	_KS_ADD,4,2                     ; @KS_ADD
	.comm	_RTM_ADD,4,2                    ; @RTM_ADD
	.comm	_KS_GATEWAY,4,2                 ; @KS_GATEWAY
	.comm	_RTF_GATEWAY,4,2                ; @RTF_GATEWAY
	.comm	_KS_CHANGE,4,2                  ; @KS_CHANGE
	.comm	_RTM_CHANGE,4,2                 ; @RTM_CHANGE
	.no_dead_strip	_fix_kern
.subsections_via_symbols
