	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_ccatm_newhook
_ng_ccatm_newhook:                      ## @ng_ccatm_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, %rbx
	movq	%rsi, %r15
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	_M_NG_CCATM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:
	movq	%rax, %rbx
	movl	$0, (%rax)
	movq	%r14, 24(%rax)
	movq	%r15, 16(%rax)
	movl	4(%r14), %r12d
	movq	%r15, %rdi
	callq	_NG_HOOK_NAME
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_cc_user_create
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_NG_HOOK_SET_PRIVATE
	jmp	LBB0_12
LBB0_6:
	cmpb	$0, 3(%rbx)
	je	LBB0_13
## %bb.7:
	addq	$3, %rbx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtoul
	movl	%eax, %r12d
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_13
## %bb.8:
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.9:
	movq	_M_NG_CCATM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	%r14, 24(%rax)
	movq	%r15, 16(%rax)
	movl	4(%r14), %edi
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_cc_port_create
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_NG_HOOK_SET_PRIVATE
	movq	_ng_ccatm_rcvuni@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_NG_HOOK_SET_RCVDATA
LBB0_12:
	movq	%r15, %rdi
	callq	_NG_HOOK_FORCE_QUEUE
	incl	(%r14)
	jmp	LBB0_17
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_14:
	movq	%r15, 16(%r14)
	movq	_ng_ccatm_rcvdump@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	%r15, 8(%r14)
	movq	_ng_ccatm_rcvmanage@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_NG_HOOK_SET_RCVDATA
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_18:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_free
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uni"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_M_NG_CCATM,4,2                 ## @M_NG_CCATM
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ng_ccatm_rcvuni,4,2            ## @ng_ccatm_rcvuni
L_.str.1:                               ## @.str.1
	.asciz	"dump"

	.comm	_ng_ccatm_rcvdump,4,2           ## @ng_ccatm_rcvdump
L_.str.2:                               ## @.str.2
	.asciz	"manage"

	.comm	_ng_ccatm_rcvmanage,4,2         ## @ng_ccatm_rcvmanage
	.no_dead_strip	_ng_ccatm_newhook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_ccatm_newhook
_ng_ccatm_newhook:                      ; @ng_ccatm_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	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.3:
Lloh6:
	adrp	x23, _M_NG_CCATM@GOTPAGE
Lloh7:
	ldr	x23, [x23, _M_NG_CCATM@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh8:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_19
; %bb.4:
	mov	x21, x0
	str	wzr, [x0]
	stp	x19, x20, [x0, #16]
	ldr	w22, [x20, #4]
	mov	x0, x19
	bl	_NG_HOOK_NAME
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_cc_user_create
	cbz	x0, LBB0_16
; %bb.5:
	str	x0, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_NG_HOOK_SET_PRIVATE
	b	LBB0_15
LBB0_6:
	ldrb	w8, [x21, #3]!
	cbz	w8, LBB0_8
; %bb.7:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #10
	bl	_strtoul
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, #0
	ccmp	w0, #0, #4, eq
	b.ne	LBB0_12
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_20
LBB0_9:
	str	x19, [x20, #16]
Lloh13:
	adrp	x8, _ng_ccatm_rcvdump@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ng_ccatm_rcvdump@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	str	x19, [x20, #8]
Lloh15:
	adrp	x8, _ng_ccatm_rcvmanage@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ng_ccatm_rcvmanage@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NG_HOOK_SET_RCVDATA
	mov	w0, #0
	b	LBB0_21
LBB0_12:
	mov	x21, x0
Lloh17:
	adrp	x23, _M_NG_CCATM@GOTPAGE
Lloh18:
	ldr	x23, [x23, _M_NG_CCATM@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh19:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_19
; %bb.13:
	mov	x22, x0
	mov	w8, #1
	str	w8, [x0]
	stp	x19, x20, [x0, #16]
	ldr	w0, [x20, #4]
	mov	x1, x22
	mov	x2, x21
	bl	_cc_port_create
	cbz	x0, LBB0_17
; %bb.14:
	str	x0, [x22, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_NG_HOOK_SET_PRIVATE
Lloh22:
	adrp	x8, _ng_ccatm_rcvuni@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ng_ccatm_rcvuni@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NG_HOOK_SET_RCVDATA
LBB0_15:
	mov	x0, x19
	bl	_NG_HOOK_FORCE_QUEUE
	mov	w0, #0
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_21
LBB0_16:
	ldr	w1, [x23]
	mov	x0, x21
	b	LBB0_18
LBB0_17:
	ldr	w1, [x23]
	mov	x0, x22
LBB0_18:
	bl	_free
LBB0_19:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
LBB0_21:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uni"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M_NG_CCATM,4,2                 ; @M_NG_CCATM
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ng_ccatm_rcvuni,4,2            ; @ng_ccatm_rcvuni
l_.str.1:                               ; @.str.1
	.asciz	"dump"

	.comm	_ng_ccatm_rcvdump,4,2           ; @ng_ccatm_rcvdump
l_.str.2:                               ; @.str.2
	.asciz	"manage"

	.comm	_ng_ccatm_rcvmanage,4,2         ; @ng_ccatm_rcvmanage
	.no_dead_strip	_ng_ccatm_newhook
.subsections_via_symbols
