	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_rmhook_tee_id               ## -- Begin function ng_rmhook_tee_id
	.p2align	4, 0x90
_ng_rmhook_tee_id:                      ## @ng_rmhook_tee_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	%rsi, %r13
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ng_shutdown_id
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movb	$1, %r12b
	movq	%rbx, %r13
	movq	%r14, %rbx
	testq	%r14, %r14
	je	LBB0_19
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_NGM_GENERIC_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NGM_LISTHOOKS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ng_dialog_id
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r15
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r12
	cmpq	$0, 8(%r12)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$20, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movl	(%rax,%rbx), %edi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	movq	8(%r12), %rax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jb	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rax, %r14
	jne	LBB0_9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rax
	cmpq	%rax, %r14
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	leaq	(%r14,%r14,2), %rbx
	movl	8(%rax,%rbx,8), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	movl	$0, %r14d
	movl	$0, %esi
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movl	16(%rax,%rbx,8), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	movq	(%r12), %rcx
	testq	%rax, %rax
	movq	%rbx, %r14
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%rcx,%r14,8), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	movq	%r14, %rdx
	movl	$0, %r14d
	movl	$0, %esi
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%rdx, %r14
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rsi
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rcx,%r14,8), %r14
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsi, %rbx
	movq	%r15, %rdi
	callq	_free
	testb	$1, -56(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ng_rmhook_id
	jmp	LBB0_18
LBB0_8:
	movq	%r15, %rdi
	callq	_free
LBB0_19:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NGM_GENERIC_COOKIE,4,2         ## @NGM_GENERIC_COOKIE
	.comm	_NGM_LISTHOOKS,4,2              ## @NGM_LISTHOOKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tee"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_rmhook_tee_id               ; -- Begin function ng_rmhook_tee_id
	.p2align	2
_ng_rmhook_tee_id:                      ; @ng_rmhook_tee_id
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x23, x0
	mov	w28, #0
Lloh0:
	adrp	x25, _NGM_GENERIC_COOKIE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NGM_GENERIC_COOKIE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _NGM_LISTHOOKS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _NGM_LISTHOOKS@GOTPAGEOFF]
	mov	w27, #24
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_ng_shutdown_id
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #1
	mov	x22, x20
	mov	x23, x21
	cbz	x21, LBB0_20
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	x0, x23
	mov	x3, #0
	mov	w4, #0
	bl	_ng_dialog_id
	cbz	x0, LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	ldr	x20, [x0]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	mov	w19, #20
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20]
	ldr	w0, [x8, x19]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x21, x21, #1
	ldr	x8, [x20, #8]
	add	x19, x19, #24
	cmp	x21, x8
	b.lo	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x21, x8
	b.ne	LBB0_10
	b	LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	cmp	x21, x8
	b.eq	LBB0_19
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	madd	x8, x21, x27, x8
	ldr	w0, [x8, #8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	mov	x20, #0
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	madd	x8, x21, x27, x8
	ldr	w0, [x8, #16]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	ldr	x8, [x20]
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x21, x27, x8
	ldr	w0, [x8, #16]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
Lloh10:
	adrp	x20, l_.str.1@PAGE
Lloh11:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh12:
	adrp	x20, l_.str.2@PAGE
Lloh13:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	x9, x21, x27
	ldr	x21, [x8, x9]
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_free
	mov	x0, x23
	tbnz	w28, #0, LBB0_1
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x22
	bl	_ng_rmhook_id
	b	LBB0_2
LBB0_19:
	mov	x0, x24
	bl	_free
LBB0_20:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NGM_GENERIC_COOKIE,4,2         ; @NGM_GENERIC_COOKIE
	.comm	_NGM_LISTHOOKS,4,2              ; @NGM_LISTHOOKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tee"

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

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

.subsections_via_symbols
