	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_hook_next
_find_hook_next:                        ## @find_hook_next
	.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	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_snmp_node@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_NGM_GENERIC_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NGM_LISTNODES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ng_dialog_id
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r12
	movq	(%r12), %rsi
	movq	8(%r12), %rdi
	movq	_ncmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$16, %edx
	callq	_qsort
	cmpq	%r13, %r15
	je	LBB0_2
## %bb.3:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	subq	%r13, %r15
	movq	8(%r12), %rdx
	movq	8(%r14), %rcx
	movq	(%rcx,%r13,8), %rcx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rdi
	cmpq	%rcx, %rdi
	jge	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	addq	$16, %rdx
	cmpq	%r14, %rax
	jne	LBB0_5
## %bb.7:
	movq	%rax, %r14
	jmp	LBB0_15
LBB0_2:
	xorl	%r14d, %r14d
LBB0_15:
	cmpq	(%r12), %r14
	jae	LBB0_20
## %bb.16:
	movq	%r14, %r15
	shlq	$4, %r15
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r15), %rdi
	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_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %rbx
	movq	(%rax), %r13
	movq	8(%r13), %rsi
	testq	%rsi, %rsi
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rbx, %rdi
	callq	_free
	incq	%r14
	addq	$16, %r15
	cmpq	(%r12), %r14
	jb	LBB0_17
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movl	$-1, %ecx
LBB0_21:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	(%r13), %rdi
	movq	_hook_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$16, %edx
	callq	_qsort
	movq	8(%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	(%r13), %rax
	movups	(%rax), %xmm0
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	xorl	%ecx, %ecx
	jmp	LBB0_21
LBB0_9:
	cmpq	$1, %r15
	je	LBB0_15
## %bb.10:
	cmpq	%rcx, %rdi
	jg	LBB0_15
## %bb.11:
	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_20
## %bb.12:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:
	movq	(%rax), %rdi
	movq	_hook_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$16, %edx
	callq	_qsort
LBB0_14:
	movq	%rbx, %rdi
	callq	_free
	incq	%r14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_snmp_node,8,3                  ## @snmp_node
	.comm	_NGM_GENERIC_COOKIE,4,2         ## @NGM_GENERIC_COOKIE
	.comm	_NGM_LISTNODES,4,2              ## @NGM_LISTNODES
	.comm	_ncmp,4,2                       ## @ncmp
	.comm	_NGM_LISTHOOKS,4,2              ## @NGM_LISTHOOKS
	.comm	_hook_cmp,4,2                   ## @hook_cmp
	.no_dead_strip	_find_hook_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_hook_next
_find_hook_next:                        ; @find_hook_next
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x27, [x0]
Lloh0:
	adrp	x8, _snmp_node@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snmp_node@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x24, _NGM_GENERIC_COOKIE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NGM_GENERIC_COOKIE@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh5:
	adrp	x8, _NGM_LISTNODES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NGM_LISTNODES@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, #0
	mov	w4, #0
	bl	_ng_dialog_id
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x0
	ldr	x25, [x0]
	ldp	x1, x0, [x25]
Lloh8:
	adrp	x8, _ncmp@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ncmp@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	w2, #16
	bl	_qsort
	cmp	x27, x22
	b.eq	LBB0_7
; %bb.2:
	ldr	x8, [x25]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x26, #0
	sub	x9, x27, x22
	ldr	x11, [x25, #8]
	ldr	x10, [x23, #8]
	ldr	x10, [x10, x22, lsl #3]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x11]
	cmp	x0, x10
	b.ge	LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	add	x11, x11, #16
	cmp	x8, x26
	b.ne	LBB0_4
; %bb.6:
	mov	x26, x8
	b	LBB0_8
LBB0_7:
	mov	x26, #0
LBB0_8:
	ldr	x8, [x25]
	cmp	x26, x8
	b.hs	LBB0_13
; %bb.9:
	lsl	x23, x26, #4
Lloh11:
	adrp	x27, _NGM_LISTHOOKS@GOTPAGE
Lloh12:
	ldr	x27, [x27, _NGM_LISTHOOKS@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #8]
	ldr	x0, [x8, x23]
	ldr	w1, [x24]
	ldr	w2, [x27]
	mov	x3, #0
	mov	w4, #0
	bl	_ng_dialog_id
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x22, x0
	ldr	x28, [x0]
	ldr	x1, [x28, #8]
	cbnz	x1, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_free
	add	x26, x26, #1
	ldr	x8, [x25]
	add	x23, x23, #16
	cmp	x26, x8
	b.lo	LBB0_10
LBB0_13:
	mov	x0, x21
	bl	_free
LBB0_14:
	mov	w0, #-1
LBB0_15:
	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
LBB0_16:
	ldr	x0, [x28]
Lloh13:
	adrp	x8, _hook_cmp@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hook_cmp@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	w2, #16
	bl	_qsort
	ldp	x9, x8, [x28]
	str	x8, [x20]
	ldr	q0, [x9]
	str	q0, [x19]
	mov	x0, x21
	bl	_free
	mov	x0, x22
	bl	_free
	mov	w0, #0
	b	LBB0_15
LBB0_17:
	cmp	x9, #1
	b.eq	LBB0_8
; %bb.18:
	cmp	x0, x10
	b.gt	LBB0_8
; %bb.19:
	ldr	w1, [x24]
Lloh16:
	adrp	x8, _NGM_LISTHOOKS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NGM_LISTHOOKS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x3, #0
	mov	w4, #0
	bl	_ng_dialog_id
	cbz	x0, LBB0_13
; %bb.20:
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_22
; %bb.21:
	ldr	x0, [x8]
Lloh19:
	adrp	x8, _hook_cmp@GOTPAGE
Lloh20:
	ldr	x8, [x8, _hook_cmp@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	w2, #16
	bl	_qsort
LBB0_22:
	mov	x0, x22
	bl	_free
	add	x26, x26, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_snmp_node,8,3                  ; @snmp_node
	.comm	_NGM_GENERIC_COOKIE,4,2         ; @NGM_GENERIC_COOKIE
	.comm	_NGM_LISTNODES,4,2              ; @NGM_LISTNODES
	.comm	_ncmp,4,2                       ; @ncmp
	.comm	_NGM_LISTHOOKS,4,2              ; @NGM_LISTHOOKS
	.comm	_hook_cmp,4,2                   ; @hook_cmp
	.no_dead_strip	_find_hook_next
.subsections_via_symbols
