	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_one2many_newhook
_ng_one2many_newhook:                   ## @ng_one2many_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
	movq	%rsi, %r14
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r15
	movq	_NG_ONE2MANY_HOOK_MANY_PREFIX@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_NG_ONE2MANY_HOOK_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.2:
	movq	_NG_ONE2MANY_ONE_LINKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %rbx
	addq	$8, %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_10
LBB0_3:
	movq	_EISCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movl	(%r13), %edi
	callq	_strlen
	movslq	%eax, %rbx
	movsbl	(%r12,%rbx), %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	addq	%rbx, %r12
	cmpb	$48, (%r12)
	jne	LBB0_7
## %bb.6:
	cmpb	$0, 1(%r12)
	jne	LBB0_12
LBB0_7:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_strtoul
	movq	-48(%rbp), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_12
## %bb.8:
	movq	_NG_ONE2MANY_MAX_LINKS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_12
## %bb.9:
	movslq	%eax, %rbx
	shlq	$4, %rbx
	addq	24(%r15), %rbx
	cmpq	$0, 8(%rbx)
	jne	LBB0_3
LBB0_10:
	movslq	%eax, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_NG_HOOK_SET_PRIVATE
	movq	%r14, 8(%rbx)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bzero
	movq	_NG_ONE2MANY_ONE_LINKNUM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	(%rax), %r12d
	je	LBB0_14
## %bb.11:
	movq	(%r15), %rax
	movl	$1, (%rax,%r12,4)
	movq	%r15, %rdi
	callq	_ng_one2many_update_many
	jmp	LBB0_14
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_ONE2MANY_HOOK_MANY_PREFIX,4,2 ## @NG_ONE2MANY_HOOK_MANY_PREFIX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NG_ONE2MANY_MAX_LINKS,8,3      ## @NG_ONE2MANY_MAX_LINKS
	.comm	_NG_ONE2MANY_HOOK_ONE,4,2       ## @NG_ONE2MANY_HOOK_ONE
	.comm	_NG_ONE2MANY_ONE_LINKNUM,4,2    ## @NG_ONE2MANY_ONE_LINKNUM
	.comm	_EISCONN,4,2                    ## @EISCONN
	.no_dead_strip	_ng_one2many_newhook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_one2many_newhook
_ng_one2many_newhook:                   ; @ng_one2many_newhook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x20, x1
	bl	_NG_NODE_PRIVATE
	mov	x19, x0
Lloh0:
	adrp	x23, _NG_ONE2MANY_HOOK_MANY_PREFIX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NG_ONE2MANY_HOOK_MANY_PREFIX@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strncmp
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _NG_ONE2MANY_HOOK_ONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NG_ONE2MANY_HOOK_ONE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strcmp
	cbnz	x0, LBB0_8
; %bb.2:
Lloh5:
	adrp	x8, _NG_ONE2MANY_ONE_LINKNUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NG_ONE2MANY_ONE_LINKNUM@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	add	x21, x19, #8
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_12
LBB0_3:
Lloh8:
	adrp	x8, _EISCONN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	ldr	w0, [x23]
	bl	_strlen
	add	x21, x21, w0, sxtw
	ldrsb	w0, [x21]
	bl	_isdigit
	cbz	w0, LBB0_8
; %bb.5:
	ldrb	w8, [x21]
	cmp	w8, #48
	b.ne	LBB0_7
; %bb.6:
	ldrb	w8, [x21, #1]
	cbnz	w8, LBB0_8
LBB0_7:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #10
	bl	_strtoul
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
Lloh10:
	adrp	x9, _NG_ONE2MANY_MAX_LINKS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NG_ONE2MANY_MAX_LINKS@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x0, x9, #0, eq
	b.lt	LBB0_11
LBB0_8:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	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
	add	sp, sp, #80
	ret
LBB0_11:
	ldr	x8, [x19, #24]
	lsl	x9, x0, #32
	add	x21, x8, x9, asr #28
	mov	x23, x0
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_3
LBB0_12:
	sxtw	x22, w23
	mov	x0, x20
	mov	x1, x22
	bl	_NG_HOOK_SET_PRIVATE
	str	x20, [x21, #8]
	mov	x0, x21
	mov	w1, #4
	bl	_bzero
Lloh15:
	adrp	x8, _NG_ONE2MANY_ONE_LINKNUM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NG_ONE2MANY_ONE_LINKNUM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w23, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_ng_one2many_update_many
LBB0_14:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_ONE2MANY_HOOK_MANY_PREFIX,4,2 ; @NG_ONE2MANY_HOOK_MANY_PREFIX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NG_ONE2MANY_MAX_LINKS,8,3      ; @NG_ONE2MANY_MAX_LINKS
	.comm	_NG_ONE2MANY_HOOK_ONE,4,2       ; @NG_ONE2MANY_HOOK_ONE
	.comm	_NG_ONE2MANY_ONE_LINKNUM,4,2    ; @NG_ONE2MANY_ONE_LINKNUM
	.comm	_EISCONN,4,2                    ; @EISCONN
	.no_dead_strip	_ng_one2many_newhook
.subsections_via_symbols
