	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ngb_mod_event
_ngb_mod_event:                         ## @ngb_mod_event
	.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
	cmpl	$128, %esi
	je	LBB0_10
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_11
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_NG_WORKLIST_LOCK_INIT
	movq	_ng_typelist_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_rw_init
	movq	_ng_idhash_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_rw_init
	movq	_ng_namehash_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_rw_init
	movq	_ng_topo_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_rw_init
	movq	_UMA_ALIGN_CACHE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	leaq	L_.str.4(%rip), %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	callq	_uma_zcreate
	addq	$16, %rsp
	movq	_ng_qzone@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_maxalloc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_uma_zone_set_max
	movl	(%r14), %eax
	leaq	L_.str.5(%rip), %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	callq	_uma_zcreate
	addq	$16, %rsp
	movq	_ng_qdzone@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_maxdata@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_uma_zone_set_max
	movq	_numthreads@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_4
## %bb.3:
	movq	$0, -48(%rbp)
	jmp	LBB0_5
LBB0_10:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_mp_ncpus@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	$0, -48(%rbp)
	testl	%eax, %eax
	jle	LBB0_13
LBB0_5:
	xorl	%ebx, %ebx
	leaq	L_.str.6(%rip), %r15
	leaq	-48(%rbp), %r14
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ngthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RFHIGHPID@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	xorl	%r9d, %r9d
	pushq	%rbx
	leaq	L_.str.7(%rip), %rax
	pushq	%rax
	pushq	%r15
	callq	_kproc_kthread_add
	addq	$32, %rsp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_6
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_7:
	movl	%ebx, (%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ng_typelist_lock,4,2           ## @ng_typelist_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"netgraph types"

	.comm	_ng_idhash_lock,4,2             ## @ng_idhash_lock
L_.str.1:                               ## @.str.1
	.asciz	"netgraph idhash"

	.comm	_ng_namehash_lock,4,2           ## @ng_namehash_lock
L_.str.2:                               ## @.str.2
	.asciz	"netgraph namehash"

	.comm	_ng_topo_lock,4,2               ## @ng_topo_lock
L_.str.3:                               ## @.str.3
	.asciz	"netgraph topology mutex"

L_.str.4:                               ## @.str.4
	.asciz	"NetGraph items"

	.comm	_UMA_ALIGN_CACHE,4,2            ## @UMA_ALIGN_CACHE
	.comm	_ng_qzone,4,2                   ## @ng_qzone
	.comm	_maxalloc,4,2                   ## @maxalloc
L_.str.5:                               ## @.str.5
	.asciz	"NetGraph data items"

	.comm	_ng_qdzone,4,2                  ## @ng_qdzone
	.comm	_maxdata,4,2                    ## @maxdata
	.comm	_numthreads,4,2                 ## @numthreads
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
	.comm	_ngthread,4,2                   ## @ngthread
	.comm	_RFHIGHPID,4,2                  ## @RFHIGHPID
L_.str.6:                               ## @.str.6
	.asciz	"ng_queue"

L_.str.7:                               ## @.str.7
	.asciz	"ng_queue%d"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_ng_nodelist_mtx,4,2            ## @ng_nodelist_mtx
	.comm	_ngq_mtx,4,2                    ## @ngq_mtx
	.no_dead_strip	_ngb_mod_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ngb_mod_event
_ngb_mod_event:                         ; @ngb_mod_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
	bl	_NG_WORKLIST_LOCK_INIT
Lloh0:
	adrp	x0, _ng_typelist_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ng_typelist_lock@GOTPAGEOFF]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rw_init
Lloh4:
	adrp	x0, _ng_idhash_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _ng_idhash_lock@GOTPAGEOFF]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_rw_init
Lloh8:
	adrp	x0, _ng_namehash_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ng_namehash_lock@GOTPAGEOFF]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_rw_init
Lloh12:
	adrp	x0, _ng_topo_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _ng_topo_lock@GOTPAGEOFF]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_rw_init
Lloh16:
	adrp	x19, _UMA_ALIGN_CACHE@GOTPAGE
Lloh17:
	ldr	x19, [x19, _UMA_ALIGN_CACHE@GOTPAGEOFF]
	ldr	w6, [x19]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w1, #4
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	w7, #0
	bl	_uma_zcreate
Lloh20:
	adrp	x8, _ng_qzone@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ng_qzone@GOTPAGEOFF]
Lloh22:
	str	w0, [x8]
Lloh23:
	adrp	x8, _maxalloc@GOTPAGE
Lloh24:
	ldr	x8, [x8, _maxalloc@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_uma_zone_set_max
	ldr	w6, [x19]
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	w1, #4
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	w7, #0
	bl	_uma_zcreate
Lloh28:
	adrp	x8, _ng_qdzone@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ng_qdzone@GOTPAGEOFF]
Lloh30:
	str	w0, [x8]
Lloh31:
	adrp	x8, _maxdata@GOTPAGE
Lloh32:
	ldr	x8, [x8, _maxdata@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_uma_zone_set_max
Lloh34:
	adrp	x21, _numthreads@GOTPAGE
Lloh35:
	ldr	x21, [x21, _numthreads@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	str	xzr, [sp, #24]
	b	LBB0_8
LBB0_4:
Lloh36:
	adrp	x8, _EBUSY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh38:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_7:
Lloh40:
	adrp	x8, _mp_ncpus@GOTPAGE
Lloh41:
	ldr	x8, [x8, _mp_ncpus@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [x21]
	str	xzr, [sp, #24]
	cmp	w8, #1
	b.lt	LBB0_11
LBB0_8:
	mov	w22, #0
Lloh43:
	adrp	x23, _ngthread@GOTPAGE
Lloh44:
	ldr	x23, [x23, _ngthread@GOTPAGEOFF]
Lloh45:
	adrp	x24, _RFHIGHPID@GOTPAGE
Lloh46:
	ldr	x24, [x24, _RFHIGHPID@GOTPAGEOFF]
Lloh47:
	adrp	x19, l_.str.6@PAGE
Lloh48:
	add	x19, x19, l_.str.6@PAGEOFF
Lloh49:
	adrp	x20, l_.str.7@PAGE
Lloh50:
	add	x20, x20, l_.str.7@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w4, [x24]
	str	w22, [sp]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x1, #0
	mov	w5, #0
	mov	x6, x19
	mov	x7, x20
	bl	_kproc_kthread_add
	cbnz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w22, w22, #1
	ldr	w8, [x21]
	cmp	w22, w8
	b.lt	LBB0_9
LBB0_11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	mov	w0, #0
	str	w22, [x21]
LBB0_13:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_ng_typelist_lock,4,2           ; @ng_typelist_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"netgraph types"

	.comm	_ng_idhash_lock,4,2             ; @ng_idhash_lock
l_.str.1:                               ; @.str.1
	.asciz	"netgraph idhash"

	.comm	_ng_namehash_lock,4,2           ; @ng_namehash_lock
l_.str.2:                               ; @.str.2
	.asciz	"netgraph namehash"

	.comm	_ng_topo_lock,4,2               ; @ng_topo_lock
l_.str.3:                               ; @.str.3
	.asciz	"netgraph topology mutex"

l_.str.4:                               ; @.str.4
	.asciz	"NetGraph items"

	.comm	_UMA_ALIGN_CACHE,4,2            ; @UMA_ALIGN_CACHE
	.comm	_ng_qzone,4,2                   ; @ng_qzone
	.comm	_maxalloc,4,2                   ; @maxalloc
l_.str.5:                               ; @.str.5
	.asciz	"NetGraph data items"

	.comm	_ng_qdzone,4,2                  ; @ng_qdzone
	.comm	_maxdata,4,2                    ; @maxdata
	.comm	_numthreads,4,2                 ; @numthreads
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
	.comm	_ngthread,4,2                   ; @ngthread
	.comm	_RFHIGHPID,4,2                  ; @RFHIGHPID
l_.str.6:                               ; @.str.6
	.asciz	"ng_queue"

l_.str.7:                               ; @.str.7
	.asciz	"ng_queue%d"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_ng_nodelist_mtx,4,2            ; @ng_nodelist_mtx
	.comm	_ngq_mtx,4,2                    ; @ngq_mtx
	.no_dead_strip	_ngb_mod_event
.subsections_via_symbols
