	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_xxx_newhook
_ng_xxx_newhook:                        ## @ng_xxx_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_XXX_HOOK_DLCI_LEADIN@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_XXX_HOOK_DOWNSTREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	_NG_XXX_HOOK_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:
	movq	%r14, 8(%r15)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NG_HOOK_SET_PRIVATE
	jmp	LBB0_18
LBB0_4:
	movl	(%r13), %edi
	callq	_strlen
	movslq	%eax, %rbx
	movsbl	(%r12,%rbx), %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:
	addq	%rbx, %r12
	cmpb	$48, (%r12)
	jne	LBB0_7
## %bb.6:
	cmpb	$0, 1(%r12)
	jne	LBB0_14
LBB0_7:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_strtoul
	movq	-48(%rbp), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_14
## %bb.8:
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:
	cmpl	$1023, %eax                     ## imm = 0x3FF
	jg	LBB0_14
## %bb.10:
	movq	_XXX_NUM_DLCIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.11:
	movq	32(%r15), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rsi)
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rdx
	addq	$16, %rsi
	cmpq	%rdx, %rcx
	jne	LBB0_12
	jmp	LBB0_21
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
	jmp	LBB0_18
LBB0_16:
	movq	%r15, %rsi
	addq	$16, %rsi
	movq	%r14, 24(%r15)
	movq	%r14, %rdi
	callq	_NG_HOOK_SET_PRIVATE
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%edx, %edx
LBB0_20:
	cmpl	%ecx, %edx
	jne	LBB0_25
LBB0_21:
	testl	%ecx, %ecx
	jle	LBB0_26
## %bb.22:
	movq	32(%r15), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$-2, (%rsi)
	je	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	incq	%rdx
	addq	$16, %rsi
	cmpq	%rdx, %rcx
	jne	LBB0_23
	jmp	LBB0_28
LBB0_25:
	movq	32(%r15), %rsi
	movl	%edx, %ebx
	jmp	LBB0_30
LBB0_26:
	xorl	%edx, %edx
LBB0_27:
	cmpl	%ecx, %edx
	jne	LBB0_29
LBB0_28:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_29:
	movq	32(%r15), %rsi
	movl	%edx, %ebx
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movl	%eax, (%rsi,%rcx)
LBB0_30:
	shlq	$4, %rbx
	cmpq	$0, 8(%rsi,%rbx)
	je	LBB0_32
## %bb.31:
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_32:
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_NG_HOOK_SET_PRIVATE
	movq	32(%r15), %rax
	movq	%r14, 8(%rax,%rbx)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_XXX_HOOK_DLCI_LEADIN,4,2    ## @NG_XXX_HOOK_DLCI_LEADIN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XXX_NUM_DLCIS,4,2              ## @XXX_NUM_DLCIS
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.comm	_NG_XXX_HOOK_DOWNSTREAM,4,2     ## @NG_XXX_HOOK_DOWNSTREAM
	.comm	_NG_XXX_HOOK_DEBUG,4,2          ## @NG_XXX_HOOK_DEBUG
	.comm	_SCF_RUNNING,4,2                ## @SCF_RUNNING
	.no_dead_strip	_ng_xxx_newhook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_xxx_newhook
_ng_xxx_newhook:                        ; @ng_xxx_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	x19, x1
	bl	_NG_NODE_PRIVATE
	mov	x20, x0
Lloh0:
	adrp	x23, _NG_XXX_HOOK_DLCI_LEADIN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NG_XXX_HOOK_DLCI_LEADIN@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_XXX_HOOK_DOWNSTREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NG_XXX_HOOK_DOWNSTREAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.2:
Lloh5:
	adrp	x8, _NG_XXX_HOOK_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NG_XXX_HOOK_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strcmp
	cbnz	x0, LBB0_14
; %bb.3:
	str	x19, [x20, #8]
	mov	x0, x19
	mov	x1, #0
	b	LBB0_17
LBB0_4:
	ldr	w0, [x23]
	bl	_strlen
	add	x21, x21, w0, sxtw
	ldrsb	w0, [x21]
	bl	_isdigit
	cbz	w0, LBB0_14
; %bb.5:
	ldrb	w8, [x21]
	cmp	w8, #48
	b.ne	LBB0_7
; %bb.6:
	ldrb	w8, [x21, #1]
	cbnz	w8, LBB0_14
LBB0_7:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #10
	bl	_strtoul
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_14
; %bb.8:
	tbnz	w0, #31, LBB0_14
; %bb.9:
	cmp	w0, #1023
	b.gt	LBB0_14
; %bb.10:
Lloh8:
	adrp	x8, _XXX_NUM_DLCIS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XXX_NUM_DLCIS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.11:
	mov	x9, #0
	ldr	x10, [x20, #32]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, w0
	b.eq	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_12
	b	LBB0_21
LBB0_14:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_16:
	add	x1, x20, #16
	str	x19, [x20, #24]
	mov	x0, x19
LBB0_17:
	bl	_NG_HOOK_SET_PRIVATE
	mov	w0, #0
LBB0_18:
	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_19:
	mov	w9, #0
LBB0_20:
	cmp	w9, w8
	b.ne	LBB0_25
LBB0_21:
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.22:
	mov	x9, #0
	ldr	x10, [x20, #32]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmn	w11, #2
	b.eq	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_23
	b	LBB0_28
LBB0_25:
	ldr	x8, [x20, #32]
	mov	w9, w9
	b	LBB0_30
LBB0_26:
	mov	w9, #0
LBB0_27:
	cmp	w9, w8
	b.ne	LBB0_29
LBB0_28:
Lloh13:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_15
LBB0_29:
	ldr	x8, [x20, #32]
	mov	w9, w9
	lsl	x10, x9, #4
	str	w0, [x8, x10]
LBB0_30:
	add	x10, x8, x9, lsl #4
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_32
; %bb.31:
Lloh15:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
	b	LBB0_15
LBB0_32:
	lsl	x21, x9, #4
	add	x1, x8, x21
	mov	x0, x19
	bl	_NG_HOOK_SET_PRIVATE
	mov	w0, #0
	ldr	x8, [x20, #32]
	add	x8, x8, x21
	str	x19, [x8, #8]
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_XXX_HOOK_DLCI_LEADIN,4,2    ; @NG_XXX_HOOK_DLCI_LEADIN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XXX_NUM_DLCIS,4,2              ; @XXX_NUM_DLCIS
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.comm	_NG_XXX_HOOK_DOWNSTREAM,4,2     ; @NG_XXX_HOOK_DOWNSTREAM
	.comm	_NG_XXX_HOOK_DEBUG,4,2          ; @NG_XXX_HOOK_DEBUG
	.comm	_SCF_RUNNING,4,2                ; @SCF_RUNNING
	.no_dead_strip	_ng_xxx_newhook
.subsections_via_symbols
