	.file	"extr_nfp_resource.c_nfp_cpp_resource_find.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Grabbing device lock not supported\n"
	.text
	.p2align 4
	.type	nfp_cpp_resource_find, @function
nfp_cpp_resource_find:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	edx, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	esi, 3
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR NFP_RESOURCE_TBL_TARGET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	NFP_CPP_ID@PLT
	mov	edi, DWORD PTR 20[rbp]
	mov	esi, DWORD PTR NFP_RESOURCE_TBL_NAME[rip]
	mov	r13, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L12
	mov	edi, DWORD PTR 20[rbp]
	mov	esi, DWORD PTR NFP_RESOURCE_ENTRY_NAME_SZ[rip]
	call	crc32_posix@PLT
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR NFP_RESOURCE_TBL_ENTRIES[rip]
	test	eax, eax
	jle	.L4
	xor	ebx, ebx
	lea	r14, 16[rsp]
.L7:
	mov	edx, DWORD PTR NFP_RESOURCE_TBL_BASE[rip]
	lea	eax, [rbx+rbx*4]
	mov	rcx, r14
	mov	rsi, r13
	mov	r8d, 40
	mov	rdi, r12
	lea	r15d, [rdx+rax*8]
	mov	edx, r15d
	call	nfp_cpp_read@PLT
	cmp	eax, 40
	jne	.L13
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR 48[rsp], rax
	je	.L6
	add	ebx, 1
	cmp	DWORD PTR NFP_RESOURCE_TBL_ENTRIES[rip], ebx
	jg	.L7
.L4:
	mov	eax, DWORD PTR ENOENT[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rcx, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR NFP_RESOURCE_TBL_TARGET[rip]
	mov	edx, r15d
	mov	rdi, r12
	call	nfp_cpp_mutex_alloc@PLT
	mov	edx, DWORD PTR 40[rsp]
	mov	esi, DWORD PTR 16[rsp]
	mov	DWORD PTR 16[rbp], eax
	mov	edi, DWORD PTR 44[rsp]
	call	NFP_CPP_ID@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR 32[rsp]
	sal	eax, 8
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR 24[rsp]
	sal	eax, 8
	mov	DWORD PTR 4[rbp], eax
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 72
	.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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	nfp_err@PLT
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nfp_cpp_resource_find, .-nfp_cpp_resource_find
	.comm	NFP_RESOURCE_TBL_TARGET,4,4
	.comm	NFP_RESOURCE_TBL_NAME,4,4
	.comm	NFP_RESOURCE_TBL_ENTRIES,4,4
	.comm	NFP_RESOURCE_TBL_BASE,4,4
	.comm	NFP_RESOURCE_ENTRY_NAME_SZ,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOENT,4,4
	.comm	EIO,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_nfp_resource.c_nfp_cpp_resource_find.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Grabbing device lock not supported\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfp_cpp_resource_find, %function
nfp_cpp_resource_find:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L15
	mov	r6, r0
	ldr	r0, [r3]
	ldr	r3, .L15+4
	sub	sp, sp, #44
	mov	r5, r1
	mov	r2, #0
	mov	r1, #3
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	NFP_CPP_ID
	ldr	r3, .L15+8
	mov	r7, r0
	ldr	r1, [r3]
	ldr	r0, [r5, #16]
	bl	strcmp
	cmp	r0, #0
	beq	.L12
	ldr	r3, .L15+12
	ldr	r0, [r5, #16]
	ldr	r1, [r3]
	bl	crc32_posix
	ldr	r9, .L15+16
	mov	r8, r0
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L4
	mov	r4, #0
	ldr	fp, .L15+20
.L7:
	mov	r3, #24
	ldr	r10, [fp]
	add	r2, r4, r4, lsl #1
	add	r10, r10, r2, lsl #3
	str	r3, [sp]
	mov	r2, r10
	mov	r1, r7
	mov	r0, r6
	add	r3, sp, #12
	bl	nfp_cpp_read
	cmp	r0, #24
	bne	.L13
	ldr	r3, [sp, #32]
	cmp	r3, r8
	beq	.L6
	ldr	r3, [r9]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L7
.L4:
	ldr	r3, .L15+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L6:
	ldr	r1, .L15
	mov	r3, r8
	mov	r2, r10
	ldr	r1, [r1]
	mov	r0, r6
	bl	nfp_cpp_mutex_alloc
	ldr	r2, [sp, #24]
	str	r0, [r5, #12]
	ldr	r1, [sp, #12]
	ldr	r0, [sp, #28]
	bl	NFP_CPP_ID
	str	r0, [r5, #8]
	mov	r0, #0
	ldr	r2, [sp, #20]
	ldr	r3, [sp, #16]
	lsl	r2, r2, #8
	lsl	r3, r3, #8
	stm	r5, {r2, r3}
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r0, r6
	ldr	r1, .L15+28
	bl	nfp_err
	ldr	r3, .L15+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L13:
	ldr	r3, .L15+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	NFP_RESOURCE_TBL_TARGET
	.word	.LC1
	.word	NFP_RESOURCE_TBL_NAME
	.word	NFP_RESOURCE_ENTRY_NAME_SZ
	.word	NFP_RESOURCE_TBL_ENTRIES
	.word	NFP_RESOURCE_TBL_BASE
	.word	ENOENT
	.word	.LC0
	.word	EOPNOTSUPP
	.word	EIO
	.size	nfp_cpp_resource_find, .-nfp_cpp_resource_find
	.comm	NFP_RESOURCE_TBL_TARGET,4,4
	.comm	NFP_RESOURCE_TBL_NAME,4,4
	.comm	NFP_RESOURCE_TBL_ENTRIES,4,4
	.comm	NFP_RESOURCE_TBL_BASE,4,4
	.comm	NFP_RESOURCE_ENTRY_NAME_SZ,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOENT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
