	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_hook
_find_hook:                             ## @find_hook
	.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	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r15
	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_1
## %bb.2:
	movq	%rax, %r12
	movq	(%rax), %r14
	cmpq	$0, 8(%r14)
	je	LBB0_8
## %bb.3:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	cmpq	8(%r14), %r13
	jae	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %edi
	callq	_strlen
	cmpq	%rbx, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_8:
	movl	$-1, %ebx
LBB0_9:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_10
LBB0_1:
	movl	$-1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %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
	.no_dead_strip	_find_hook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_hook
_find_hook:                             ; @find_hook
	.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	x19, x3
	mov	x21, x2
	mov	x22, 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_9
; %bb.1:
	mov	x20, x0
	ldr	x23, [x0]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x24, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldr	x8, [x23, #8]
	cmp	x24, x8
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x24, lsl #2]
	bl	_strlen
	cmp	x0, x21
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x24, lsl #2]
	mov	x1, x22
	mov	x2, x21
	bl	_strncmp
	cbnz	x0, LBB0_3
; %bb.6:
	mov	w21, #0
	ldr	x8, [x23]
	ldr	w8, [x8, x24, lsl #2]
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
	mov	w21, #-1
LBB0_8:
	mov	x0, x20
	bl	_free
	b	LBB0_10
LBB0_9:
	mov	w21, #-1
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NGM_GENERIC_COOKIE,4,2         ; @NGM_GENERIC_COOKIE
	.comm	_NGM_LISTHOOKS,4,2              ; @NGM_LISTHOOKS
	.no_dead_strip	_find_hook
.subsections_via_symbols
