	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_netflow_fib_init            ## -- Begin function ng_netflow_fib_init
	.p2align	4, 0x90
_ng_netflow_fib_init:                   ## @ng_netflow_fib_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_priv_to_fib
	movq	%rax, %rbx
	movq	_KTR_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_CTR1
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_1
LBB0_6:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_M_NETGRAPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	leaq	12(%rax), %rdi
	movq	_MTX_DEF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_mtx_init
	movq	%r12, %rdi
	addq	$8, %rdi
	movl	(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_mtx_init
	movl	%r13d, (%r12)
	movl	%r13d, 4(%r12)
	movslq	%r13d, %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_atomic_cmpset_ptr
	movq	%rax, %rbx
	movq	_KTR_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_priv_to_fib
	movq	%rax, %r8
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	leaq	L_.str.4(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %edx
	movq	%r12, %rcx
	callq	_CTR3
	incl	(%r14)
	jmp	LBB0_6
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %edx
	movq	%r12, %rcx
	callq	_CTR3
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_destroy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_destroy
	movq	_M_NETGRAPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_KTR_NET,4,2                    ## @KTR_NET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ng_netflow(): fib init: %d"

	.comm	_M_NETGRAPH,4,2                 ## @M_NETGRAPH
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"export dgram lock"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
L_.str.2:                               ## @.str.2
	.asciz	"export9 dgram lock"

L_.str.3:                               ## @.str.3
	.asciz	"ng_netflow(): fib init: %d setup %p but got %p"

L_.str.4:                               ## @.str.4
	.asciz	"ng_netflow(): fib %d setup to %p (%p)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_netflow_fib_init            ; -- Begin function ng_netflow_fib_init
	.p2align	2
_ng_netflow_fib_init:                   ; @ng_netflow_fib_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_priv_to_fib
	mov	x21, x0
Lloh0:
	adrp	x24, _KTR_NET@GOTPAGE
Lloh1:
	ldr	x24, [x24, _KTR_NET@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_CTR1
	cbz	x21, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh4:
	adrp	x26, _M_NETGRAPH@GOTPAGE
Lloh5:
	ldr	x26, [x26, _M_NETGRAPH@GOTPAGEOFF]
Lloh6:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #4
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	add	x22, x0, #12
Lloh12:
	adrp	x25, _MTX_DEF@GOTPAGE
Lloh13:
	ldr	x25, [x25, _MTX_DEF@GOTPAGEOFF]
	ldr	w3, [x25]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_mtx_init
	add	x23, x21, #8
	ldr	w3, [x25]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	bl	_mtx_init
	stp	w19, w19, [x21]
	ldr	x8, [x20, #8]
	add	x0, x8, w19, sxtw #2
	mov	x1, #0
	mov	x2, x21
	bl	_atomic_cmpset_ptr
	mov	x25, x0
	ldr	w24, [x24]
	mov	x0, x20
	mov	x1, x19
	bl	_priv_to_fib
	mov	x4, x0
	cbz	x25, LBB0_7
; %bb.5:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x24
	mov	x2, x19
	mov	x3, x21
	bl	_CTR3
	mov	w0, #0
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_2
LBB0_6:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	b	LBB0_2
LBB0_7:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	mov	x2, x19
	mov	x3, x21
	bl	_CTR3
	mov	x0, x22
	bl	_mtx_destroy
	mov	x0, x23
	bl	_mtx_destroy
	ldr	w1, [x26]
	mov	x0, x21
	bl	_free
	b	LBB0_1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_KTR_NET,4,2                    ; @KTR_NET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ng_netflow(): fib init: %d"

	.comm	_M_NETGRAPH,4,2                 ; @M_NETGRAPH
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"export dgram lock"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
l_.str.2:                               ; @.str.2
	.asciz	"export9 dgram lock"

l_.str.3:                               ; @.str.3
	.asciz	"ng_netflow(): fib init: %d setup %p but got %p"

l_.str.4:                               ; @.str.4
	.asciz	"ng_netflow(): fib %d setup to %p (%p)"

.subsections_via_symbols
