	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kern_out
_kern_out:                              ## @kern_out
	.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
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	_HOPCNT_INFINITY@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movl	28(%rdi), %edi
	callq	_htonl
	movl	24(%r15), %esi
	movl	%eax, %edi
	cmpq	%rbx, %r12
	jne	LBB0_2
## %bb.1:
	xorl	%edx, %edx
	callq	_kern_find
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_26
LBB0_2:
	callq	_kern_add
LBB0_3:
	movl	(%rax), %ecx
	movq	_KS_NEW@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.4:
	movq	_KS_ADD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_AGS_GATEWAY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 8(%r15)
	je	LBB0_6
## %bb.5:
	movq	_KS_GATEWAY@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
LBB0_6:
	movq	16(%r15), %rcx
	movq	%rcx, 8(%rax)
	movq	(%r15), %rcx
	movq	%rcx, 16(%rax)
	jmp	LBB0_26
LBB0_7:
	movq	_KS_STATIC@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_26
## %bb.8:
	movq	16(%r15), %rsi
	movq	16(%rax), %rdx
	cmpq	%rsi, 8(%rax)
	jne	LBB0_10
## %bb.9:
	cmpq	(%r15), %rdx
	je	LBB0_13
LBB0_10:
	cmpq	(%r14), %rdx
	jne	LBB0_12
## %bb.11:
	movq	_KS_DEL_ADD@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
LBB0_12:
	movq	%rsi, 8(%rax)
	movq	(%r15), %rdx
	movq	%rdx, 16(%rax)
	movq	_KS_CHANGE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, (%rax)
LBB0_13:
	movq	_KS_DYNAMIC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	_KS_DELETED@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%esi, %edi
	testl	%ecx, %edi
	je	LBB0_15
## %bb.14:
	notl	%esi
	andl	%esi, %ecx
	movl	%ecx, (%rax)
	movq	_KS_ADD@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_KS_DEL_ADD@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, (%rax)
LBB0_15:
	movq	_KS_GATEWAY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	_AGS_GATEWAY@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	8(%r15), %edi
	testl	%ecx, %esi
	je	LBB0_18
## %bb.16:
	testl	%edi, %edi
	jne	LBB0_21
## %bb.17:
	notl	%esi
	andl	%esi, %ecx
	jmp	LBB0_20
LBB0_18:
	testl	%edi, %edi
	je	LBB0_21
## %bb.19:
	orl	%esi, %ecx
LBB0_20:
	movl	%ecx, (%rax)
	movq	_KS_ADD@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_KS_DEL_ADD@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, (%rax)
LBB0_21:
	cmpq	(%r14), %rdx
	jne	LBB0_24
## %bb.22:
	movq	_KS_DEL_ADD@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_24
## %bb.23:
	movq	_KS_DELETE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	jmp	LBB0_25
LBB0_24:
	movq	_KS_DELETE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %ecx
LBB0_25:
	movl	%ecx, (%rax)
LBB0_26:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOPCNT_INFINITY,8,3            ## @HOPCNT_INFINITY
	.comm	_KS_NEW,4,2                     ## @KS_NEW
	.comm	_KS_ADD,4,2                     ## @KS_ADD
	.comm	_AGS_GATEWAY,4,2                ## @AGS_GATEWAY
	.comm	_KS_GATEWAY,4,2                 ## @KS_GATEWAY
	.comm	_KS_STATIC,4,2                  ## @KS_STATIC
	.comm	_KS_DEL_ADD,4,2                 ## @KS_DEL_ADD
	.comm	_KS_CHANGE,4,2                  ## @KS_CHANGE
	.comm	_KS_DYNAMIC,4,2                 ## @KS_DYNAMIC
	.comm	_KS_DELETED,4,2                 ## @KS_DELETED
	.comm	_KS_DELETE,4,2                  ## @KS_DELETE
	.no_dead_strip	_kern_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kern_out
_kern_out:                              ; @kern_out
	.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
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x20, _HOPCNT_INFINITY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HOPCNT_INFINITY@GOTPAGEOFF]
	ldr	x22, [x20]
	ldr	w0, [x0, #28]
	bl	_htonl
	ldr	w1, [x19, #24]
	cmp	x21, x22
	b.ne	LBB0_2
; %bb.1:
	mov	w2, #0
	bl	_kern_find
	cbnz	x0, LBB0_3
	b	LBB0_26
LBB0_2:
	bl	_kern_add
LBB0_3:
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _KS_NEW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _KS_NEW@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
Lloh5:
	adrp	x8, _KS_ADD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KS_ADD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	w9, [x19, #8]
Lloh8:
	adrp	x10, _AGS_GATEWAY@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AGS_GATEWAY@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x9, _KS_GATEWAY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _KS_GATEWAY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	stp	x8, x9, [x0, #8]
	b	LBB0_26
LBB0_7:
Lloh14:
	adrp	x9, _KS_STATIC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _KS_STATIC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_26
; %bb.8:
	ldr	x10, [x19, #16]
	ldp	x11, x9, [x0, #8]
	cmp	x11, x10
	b.ne	LBB0_10
; %bb.9:
	ldr	x11, [x19]
	cmp	x9, x11
	b.eq	LBB0_13
LBB0_10:
	ldr	x11, [x20]
	cmp	x9, x11
	b.ne	LBB0_12
; %bb.11:
Lloh17:
	adrp	x9, _KS_DEL_ADD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _KS_DEL_ADD@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_12:
	ldr	x9, [x19]
	stp	x10, x9, [x0, #8]
Lloh20:
	adrp	x10, _KS_CHANGE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _KS_CHANGE@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x0]
LBB0_13:
Lloh23:
	adrp	x10, _KS_DYNAMIC@GOTPAGE
Lloh24:
	ldr	x10, [x10, _KS_DYNAMIC@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
Lloh26:
	adrp	x11, _KS_DELETED@GOTPAGE
Lloh27:
	ldr	x11, [x11, _KS_DELETED@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
	orr	w11, w11, w10
	tst	w11, w8
	b.eq	LBB0_15
; %bb.14:
	bic	w8, w8, w10
	str	w8, [x0]
Lloh29:
	adrp	x10, _KS_ADD@GOTPAGE
Lloh30:
	ldr	x10, [x10, _KS_ADD@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
Lloh32:
	adrp	x11, _KS_DEL_ADD@GOTPAGE
Lloh33:
	ldr	x11, [x11, _KS_DEL_ADD@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	orr	w8, w10, w8
	orr	w8, w8, w11
	str	w8, [x0]
LBB0_15:
Lloh35:
	adrp	x10, _KS_GATEWAY@GOTPAGE
Lloh36:
	ldr	x10, [x10, _KS_GATEWAY@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	ldr	w11, [x19, #8]
Lloh38:
	adrp	x12, _AGS_GATEWAY@GOTPAGE
Lloh39:
	ldr	x12, [x12, _AGS_GATEWAY@GOTPAGEOFF]
Lloh40:
	ldr	w12, [x12]
	and	w11, w12, w11
	tst	w10, w8
	b.eq	LBB0_18
; %bb.16:
	cbnz	w11, LBB0_21
; %bb.17:
	bic	w8, w8, w10
	b	LBB0_20
LBB0_18:
	cbz	w11, LBB0_21
; %bb.19:
	orr	w8, w10, w8
LBB0_20:
	str	w8, [x0]
Lloh41:
	adrp	x10, _KS_ADD@GOTPAGE
Lloh42:
	ldr	x10, [x10, _KS_ADD@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
Lloh44:
	adrp	x11, _KS_DEL_ADD@GOTPAGE
Lloh45:
	ldr	x11, [x11, _KS_DEL_ADD@GOTPAGEOFF]
Lloh46:
	ldr	w11, [x11]
	orr	w8, w10, w8
	orr	w8, w8, w11
	str	w8, [x0]
LBB0_21:
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_24
; %bb.22:
Lloh47:
	adrp	x9, _KS_DEL_ADD@GOTPAGE
Lloh48:
	ldr	x9, [x9, _KS_DEL_ADD@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
Lloh50:
	adrp	x9, _KS_DELETE@GOTPAGE
Lloh51:
	ldr	x9, [x9, _KS_DELETE@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_25
LBB0_24:
Lloh53:
	adrp	x9, _KS_DELETE@GOTPAGE
Lloh54:
	ldr	x9, [x9, _KS_DELETE@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	bic	w8, w8, w9
LBB0_25:
	str	w8, [x0]
LBB0_26:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_HOPCNT_INFINITY,8,3            ; @HOPCNT_INFINITY
	.comm	_KS_NEW,4,2                     ; @KS_NEW
	.comm	_KS_ADD,4,2                     ; @KS_ADD
	.comm	_AGS_GATEWAY,4,2                ; @AGS_GATEWAY
	.comm	_KS_GATEWAY,4,2                 ; @KS_GATEWAY
	.comm	_KS_STATIC,4,2                  ; @KS_STATIC
	.comm	_KS_DEL_ADD,4,2                 ; @KS_DEL_ADD
	.comm	_KS_CHANGE,4,2                  ; @KS_CHANGE
	.comm	_KS_DYNAMIC,4,2                 ; @KS_DYNAMIC
	.comm	_KS_DELETED,4,2                 ; @KS_DELETED
	.comm	_KS_DELETE,4,2                  ; @KS_DELETE
	.no_dead_strip	_kern_out
.subsections_via_symbols
