	.file	"extr_snmp_netgraph.c_find_hook.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	find_hook, @function
find_hook:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r8d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR NGM_LISTHOOKS[rip]
	mov	esi, DWORD PTR NGM_GENERIC_COOKIE[rip]
	mov	QWORD PTR 8[rsp], rcx
	xor	ecx, ecx
	call	ng_dialog_id@PLT
	test	rax, rax
	je	.L6
	mov	r15, QWORD PTR [rax]
	mov	r13, rax
	cmp	QWORD PTR 8[r15], 0
	je	.L3
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	cmp	QWORD PTR 8[r15], rbx
	jbe	.L3
.L5:
	mov	rax, QWORD PTR [r15]
	lea	r12, 0[0+rbx*4]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	strlen@PLT
	cmp	rax, rbp
	jne	.L4
	mov	rax, QWORD PTR [r15]
	mov	rdx, rbp
	mov	rsi, r14
	mov	edi, DWORD PTR [rax+rbx*4]
	call	strncmp@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR [r15]
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdi, r13
	mov	eax, DWORD PTR [rax+r12]
	mov	DWORD PTR [rcx], eax
	call	free@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, r13
	call	free@PLT
	mov	eax, -1
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	find_hook, .-find_hook
	.comm	NGM_LISTHOOKS,4,4
	.comm	NGM_GENERIC_COOKIE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_snmp_netgraph.c_find_hook.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_hook, %function
find_hook:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	sub	sp, sp, #12
	mov	r9, r1
	mov	r6, r2
	ldr	r1, .L13
	ldr	r2, .L13+4
	str	r4, [sp]
	mov	r10, r3
	ldr	r2, [r2]
	mov	r3, r4
	ldr	r1, [r1]
	bl	ng_dialog_id
	subs	r8, r0, #0
	beq	.L6
	ldr	r5, [r8]
	ldr	r3, [r5, #4]
	cmp	r3, r4
	bne	.L5
	b	.L3
.L4:
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L3
.L5:
	ldr	r3, [r5]
	lsl	r7, r4, #2
	ldr	r0, [r3, r4, lsl #2]
	bl	strlen
	cmp	r0, r6
	bne	.L4
	ldr	r3, [r5]
	mov	r2, r6
	mov	r1, r9
	ldr	r0, [r3, r4, lsl #2]
	bl	strncmp
	subs	fp, r0, #0
	bne	.L4
	ldr	r3, [r5]
	mov	r0, r8
	ldr	r3, [r3, r7]
	str	r3, [r10]
	bl	free
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r0, r8
	bl	free
	mvn	fp, #0
.L1:
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mvn	fp, #0
	b	.L1
.L14:
	.align	2
.L13:
	.word	NGM_GENERIC_COOKIE
	.word	NGM_LISTHOOKS
	.size	find_hook, .-find_hook
	.comm	NGM_LISTHOOKS,4,4
	.comm	NGM_GENERIC_COOKIE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
