	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ngs_newhook
_ngs_newhook:                           ## @ngs_newhook
	.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	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r15
	movq	_M_NETGRAPH_SOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r13), %eax
	addl	%eax, %eax
	cmpl	(%r15), %eax
	jle	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_ngs_rehash
LBB0_4:
	movl	%r14d, (%rbx)
	movq	_HASHINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hash32_str
	movslq	(%r15), %rdi
	andq	%rax, %rdi
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_NG_HOOK_SET_PRIVATE
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NETGRAPH_SOCK,4,2            ## @M_NETGRAPH_SOCK
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HASHINIT,4,2                   ## @HASHINIT
	.comm	_next,4,2                       ## @next
	.no_dead_strip	_ngs_newhook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ngs_newhook
_ngs_newhook:                           ; @ngs_newhook
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
	bl	_NG_NODE_PRIVATE
	mov	x21, x0
Lloh0:
	adrp	x8, _M_NETGRAPH_SOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_NETGRAPH_SOCK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w0, #4
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	ldr	w8, [x23]
	ldr	w9, [x21]
	cmp	w9, w8, lsl #1
	b.ge	LBB0_3
; %bb.2:
	mov	x0, x23
	bl	_ngs_rehash
LBB0_3:
	str	w19, [x22]
Lloh6:
	adrp	x8, _HASHINIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HASHINIT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hash32_str
	ldrsw	x8, [x21]
	and	x8, x0, x8
	ldr	x9, [x21, #8]
	add	x0, x9, x8, lsl #2
Lloh9:
	adrp	x8, _next@GOTPAGE
Lloh10:
	ldr	x8, [x8, _next@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_LIST_INSERT_HEAD
	mov	x0, x19
	mov	x1, x22
	bl	_NG_HOOK_SET_PRIVATE
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NETGRAPH_SOCK,4,2            ; @M_NETGRAPH_SOCK
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HASHINIT,4,2                   ; @HASHINIT
	.comm	_next,4,2                       ; @next
	.no_dead_strip	_ngs_newhook
.subsections_via_symbols
