	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_next_node_id_internal
_ng_next_node_id_internal:              ## @ng_next_node_id_internal
	.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
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_NGM_GENERIC_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NGM_LISTHOOKS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ng_dialog_id
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %r14
	cmpq	$0, 8(%r14)
	je	LBB0_16
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	$12, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx), %edi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	8(%r14), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jb	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movq	8(%r14), %rax
LBB0_6:
	xorl	%r13d, %r13d
	cmpq	%rax, %r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_16
## %bb.7:
	movq	(%r14), %rax
	shlq	$4, %r12
	movl	4(%rax,%r12), %r13d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.8:
	movl	(%rax,%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_14:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.15:
	movq	(%r14), %rax
	movl	(%rax,%r12), %edi
	callq	_strcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%r13d, %ecx
	movl	%ecx, %r13d
	jmp	LBB0_16
LBB0_9:
	movq	(%r14), %rax
	movl	8(%rax,%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movq	(%r14), %rax
	movl	8(%rax,%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.3(%rip), %rdx
LBB0_11:
	movl	%r13d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ng_next_node_id
	movl	%eax, %r13d
LBB0_16:
	movq	%rbx, %rdi
	callq	_free
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_NGM_GENERIC_COOKIE,4,2         ## @NGM_GENERIC_COOKIE
	.comm	_NGM_LISTHOOKS,4,2              ## @NGM_LISTHOOKS
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get hook list: %m"

L_.str.1:                               ## @.str.1
	.asciz	"tee"

L_.str.2:                               ## @.str.2
	.asciz	"left"

L_.str.3:                               ## @.str.3
	.asciz	"right"

	.no_dead_strip	_ng_next_node_id_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_next_node_id_internal
_ng_next_node_id_internal:              ; @ng_next_node_id_internal
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _NGM_GENERIC_COOKIE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NGM_GENERIC_COOKIE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _NGM_LISTHOOKS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NGM_LISTHOOKS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, #0
	mov	w4, #0
	bl	_ng_dialog_id
	cbz	x0, LBB0_18
; %bb.1:
	mov	x19, x0
	ldr	x23, [x0]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x24, #0
	mov	w25, #12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x25]
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldr	x8, [x23, #8]
	add	x25, x25, #16
	cmp	x24, x8
	b.lo	LBB0_3
; %bb.5:
	cmp	x24, x8
	b.ne	LBB0_9
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	x0, x19
	bl	_free
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x23, #8]
	cmp	x24, x8
	b.eq	LBB0_6
LBB0_9:
	ldr	x8, [x23]
	add	x9, x8, x24, lsl #4
	ldr	w21, [x9, #4]
	lsl	x25, x24, #4
	cbz	w22, LBB0_11
; %bb.10:
	ldr	w0, [x8, x25]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_13
LBB0_11:
	cbz	x20, LBB0_7
; %bb.12:
	ldr	x8, [x23]
	ldr	w0, [x8, x25]
	mov	x1, x20
	bl	_strcmp
	cmp	x0, #0
	csel	w21, w21, wzr, eq
	b	LBB0_7
LBB0_13:
	ldr	x8, [x23]
	add	x8, x8, x24, lsl #4
	ldr	w0, [x8, #8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x8, [x23]
	add	x8, x8, x24, lsl #4
	ldr	w0, [x8, #8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_11
; %bb.15:
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_17:
	mov	x0, x21
	mov	x1, x20
	bl	_ng_next_node_id
	mov	x21, x0
	b	LBB0_7
LBB0_18:
Lloh16:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NGM_GENERIC_COOKIE,4,2         ; @NGM_GENERIC_COOKIE
	.comm	_NGM_LISTHOOKS,4,2              ; @NGM_LISTHOOKS
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get hook list: %m"

l_.str.1:                               ; @.str.1
	.asciz	"tee"

l_.str.2:                               ; @.str.2
	.asciz	"left"

l_.str.3:                               ; @.str.3
	.asciz	"right"

	.no_dead_strip	_ng_next_node_id_internal
.subsections_via_symbols
