	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_peer_hook_id                ## -- Begin function ng_peer_hook_id
	.p2align	4, 0x90
_ng_peer_hook_id:                       ## @ng_peer_hook_id
	.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
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	_NGM_GENERIC_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NGM_LISTHOOKS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ng_dialog_id
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r15
	movq	(%rax), %rbx
	movl	$-1, %r12d
	cmpq	$0, 8(%rbx)
	je	LBB0_15
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	$12, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	(%rax,%r15), %edi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	8(%rbx), %rax
	addq	$16, %r15
	cmpq	%rax, %r14
	jb	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movq	8(%rbx), %rax
LBB0_6:
	cmpq	%rax, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_15
## %bb.7:
	movq	(%rbx), %rax
	shlq	$4, %r14
	movl	4(%rax,%r14), %edi
	movl	8(%rax,%r14), %r12d
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	movq	(%rbx), %rcx
	movl	(%rcx,%r14), %esi
	testq	%rax, %rax
	je	LBB0_8
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strcpy
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_8:
	leaq	L_.str.2(%rip), %rax
	movl	%esi, %edi
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	(%rbx), %rax
	movl	(%rax,%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	(%rbx), %rax
	movl	(%rax,%r14), %esi
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	movl	%r12d, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_ng_peer_hook_id
	movl	%eax, %r12d
LBB0_15:
	movq	%r15, %rdi
	callq	_free
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	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"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_peer_hook_id                ; -- Begin function ng_peer_hook_id
	.p2align	2
_ng_peer_hook_id:                       ; @ng_peer_hook_id
	.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	x21, 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_17
; %bb.1:
	mov	x19, x0
	ldr	x22, [x0]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x23, #0
	mov	w24, #12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x24]
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	x8, [x22, #8]
	add	x24, x24, #16
	cmp	x23, x8
	b.lo	LBB0_3
; %bb.5:
	cmp	x23, x8
	b.ne	LBB0_8
LBB0_6:
	mov	w20, #-1
	b	LBB0_16
LBB0_7:
	ldr	x8, [x22, #8]
	cmp	x23, x8
	b.eq	LBB0_6
LBB0_8:
	ldr	x8, [x22]
	lsl	x23, x23, #4
	add	x8, x8, x23
	ldp	w0, w21, [x8, #4]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	ldr	x8, [x22]
	ldr	w1, [x8, x23]
	cbz	x0, LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_strcpy
	mov	w20, #0
	b	LBB0_16
LBB0_10:
Lloh8:
	adrp	x8, l_.str.2@PAGE
Lloh9:
	add	x8, x8, l_.str.2@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x22]
	ldr	w0, [x8, x23]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.12:
	ldr	x8, [x22]
	ldr	w1, [x8, x23]
	b	LBB0_9
LBB0_13:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x21
	mov	x2, x20
	bl	_ng_peer_hook_id
	mov	x20, x0
LBB0_16:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	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
LBB0_17:
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"

.subsections_via_symbols
