	.file	"extr_typelib.c_find_ne_resource.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No resources in NE dll\n"
.LC1:
	.string	"No typeid entry found for %p\n"
.LC2:
	.string	"No resid entry found for %p\n"
	.text
	.p2align 4
	.type	find_ne_resource, @function
find_ne_resource:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edx, DWORD PTR SEEK_CUR[rip]
	mov	QWORD PTR 8[rsp], rcx
	mov	QWORD PTR 16[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	LZSeek@PLT
	lea	rsi, 32[rsp]
	mov	edx, 8
	mov	edi, ebp
	mov	ebx, eax
	call	LZRead@PLT
	cmp	eax, 8
	jne	.L48
	mov	eax, DWORD PTR 32[rsp]
	sub	eax, DWORD PTR 36[rsp]
	mov	r15d, eax
	je	.L51
	mov	edi, eax
	call	heap_alloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L48
	add	ebx, DWORD PTR 36[rsp]
	mov	edx, DWORD PTR SEEK_SET[rip]
	mov	edi, ebp
	mov	esi, ebx
	call	LZSeek@PLT
	mov	edx, r15d
	mov	rsi, r14
	mov	edi, ebp
	call	LZRead@PLT
	cmp	eax, r15d
	jne	.L49
	mov	edi, r12d
	lea	rbx, 8[r14]
	call	IS_INTRESOURCE@PLT
	mov	edi, r12d
	test	eax, eax
	jne	.L7
	call	strlen@PLT
	mov	ebp, eax
	movsx	rax, DWORD PTR 8[r14]
	test	eax, eax
	jne	.L10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	movsx	rax, DWORD PTR 4[rbx]
	lea	rax, [rax+rax*2]
	lea	rbx, 8[rbx+rax*8]
	movsx	rax, DWORD PTR [rbx]
	test	eax, eax
	je	.L8
.L10:
	test	ah, -128
	jne	.L11
	lea	rdi, [r14+rax*4]
	cmp	DWORD PTR [rdi], ebp
	jne	.L11
	add	rdi, 1
	mov	edx, ebp
	mov	esi, r12d
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, r13d
	lea	rbp, 8[rbx]
	call	IS_INTRESOURCE@PLT
	mov	edi, r13d
	test	eax, eax
	jne	.L14
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	jle	.L15
	sub	eax, 1
	lea	rax, [rax+rax*2]
	lea	rbx, 32[rbx+rax*8]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	add	rbp, 24
	cmp	rbp, rbx
	je	.L15
.L17:
	movsx	rax, DWORD PTR 0[rbp]
	test	ah, -128
	jne	.L18
	lea	rdi, [r14+rax*4]
	cmp	DWORD PTR [rdi], edx
	jne	.L18
	add	rdi, 1
	mov	esi, r13d
	mov	DWORD PTR 28[rsp], edx
	call	strncasecmp@PLT
	mov	edx, DWORD PTR 28[rsp]
	test	eax, eax
	jne	.L18
.L19:
	mov	rbx, QWORD PTR 8[rsp]
	test	rbx, rbx
	je	.L21
	mov	rcx, QWORD PTR [r14]
	mov	rax, QWORD PTR 8[rbp]
	sal	rax, cl
	mov	DWORD PTR [rbx], eax
.L21:
	mov	rbx, QWORD PTR 16[rsp]
	test	rbx, rbx
	je	.L22
	mov	rcx, QWORD PTR [r14]
	mov	rax, QWORD PTR 16[rbp]
	sal	rax, cl
	mov	DWORD PTR [rbx], eax
.L22:
	mov	rdi, r14
	call	heap_free@PLT
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, r12d
	lea	rdi, .LC1[rip]
.L47:
	xor	eax, eax
	call	TRACE@PLT
.L49:
	mov	rdi, r14
	call	heap_free@PLT
.L48:
	mov	eax, DWORD PTR FALSE[rip]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L52
	add	rsp, 56
	.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
.L51:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	TRACE@PLT
	mov	eax, DWORD PTR FALSE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	call	LOWORD@PLT
	mov	edx, DWORD PTR 8[r14]
	or	ah, -128
	test	edx, edx
	jne	.L13
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L53:
	movsx	rdx, DWORD PTR 4[rbx]
	lea	rdx, [rdx+rdx*2]
	lea	rbx, 8[rbx+rdx*8]
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	je	.L8
.L13:
	cmp	eax, edx
	jne	.L53
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L14:
	call	LOWORD@PLT
	mov	edx, DWORD PTR 4[rbx]
	or	ah, -128
	test	edx, edx
	jle	.L15
	sub	edx, 1
	lea	rdx, [rdx+rdx*2]
	lea	rdx, 32[rbx+rdx*8]
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	eax, DWORD PTR 0[rbp]
	je	.L19
	add	rbp, 24
	cmp	rbp, rdx
	jne	.L20
.L15:
	mov	esi, r12d
	lea	rdi, .LC2[rip]
	jmp	.L47
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	find_ne_resource, .-find_ne_resource
	.comm	TRUE,4,4
	.comm	SEEK_SET,4,4
	.comm	SEEK_CUR,4,4
	.comm	FALSE,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_typelib.c_find_ne_resource.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No resources in NE dll\012\000"
	.align	2
.LC1:
	.ascii	"No typeid entry found for %p\012\000"
	.align	2
.LC2:
	.ascii	"No resid entry found for %p\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_ne_resource, %function
find_ne_resource:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r2
	ldr	r2, .L54
	mov	r7, r3
	ldr	r3, .L54+4
	sub	sp, sp, #20
	ldr	r2, [r2]
	mov	r5, r1
	mov	r1, #0
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r8, [sp, #56]
	bl	LZSeek
	mov	r2, #8
	mov	r10, r0
	add	r1, sp, #4
	mov	r0, r4
	bl	LZRead
	cmp	r0, #8
	bne	.L48
	ldmib	sp, {r0, r3}
	subs	fp, r0, r3
	beq	.L51
	mov	r0, fp
	bl	heap_alloc
	subs	r9, r0, #0
	beq	.L48
	ldr	r3, .L54+8
	ldr	r1, [sp, #8]
	ldr	r2, [r3]
	add	r1, r10, r1
	mov	r0, r4
	bl	LZSeek
	mov	r2, fp
	mov	r1, r9
	mov	r0, r4
	bl	LZRead
	cmp	r0, fp
	bne	.L49
	mov	r0, r5
	bl	IS_INTRESOURCE
	cmp	r0, #0
	add	r4, r9, #8
	mov	r0, r5
	bne	.L7
	bl	strlen
	ldr	r3, [r9, #8]
	mov	r10, r0
	cmp	r3, #0
	bne	.L10
	b	.L8
.L11:
	ldr	ip, [r4, #4]
	add	ip, ip, ip, lsl #1
	lsl	ip, ip, #2
	add	ip, ip, #8
	ldr	r3, [r4, ip]!
	cmp	r3, #0
	beq	.L8
.L10:
	tst	r3, #32768
	bne	.L11
	ldr	r2, [r9, r3, lsl #2]
	add	r3, r9, r3, lsl #2
	cmp	r2, r10
	bne	.L11
	mov	r2, r10
	mov	r1, r5
	add	r0, r3, #1
	bl	strncasecmp
	cmp	r0, #0
	bne	.L11
.L12:
	mov	r0, r6
	bl	IS_INTRESOURCE
	cmp	r0, #0
	add	r10, r4, #8
	mov	r0, r6
	bne	.L14
	bl	strlen
	ldr	r4, [r4, #4]
	mov	fp, r0
	cmp	r4, #0
	bgt	.L17
	b	.L15
.L18:
	subs	r4, r4, #1
	add	r10, r10, #12
	beq	.L15
.L17:
	ldr	r0, [r10]
	tst	r0, #32768
	bne	.L18
	ldr	r3, [r9, r0, lsl #2]
	add	r0, r9, r0, lsl #2
	cmp	r3, fp
	bne	.L18
	mov	r2, fp
	mov	r1, r6
	add	r0, r0, #1
	bl	strncasecmp
	cmp	r0, #0
	bne	.L18
.L19:
	cmp	r7, #0
	ldrne	r3, [r10, #4]
	ldrne	r2, [r9]
	mov	r0, r9
	lslne	r3, r3, r2
	strne	r3, [r7]
	cmp	r8, #0
	ldrne	r3, [r10, #8]
	ldrne	r2, [r9]
	lslne	r3, r3, r2
	strne	r3, [r8]
	bl	heap_free
	ldr	r3, .L54+12
	ldr	r0, [r3]
	b	.L1
.L8:
	mov	r1, r5
	ldr	r0, .L54+16
.L47:
	bl	TRACE
.L49:
	mov	r0, r9
	bl	heap_free
.L48:
	ldr	r3, .L54+20
	ldr	r0, [r3]
.L1:
	ldr	r3, .L54+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L52
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L51:
	ldr	r0, .L54+24
	bl	TRACE
	ldr	r3, .L54+20
	ldr	r0, [r3]
	b	.L1
.L7:
	bl	LOWORD
	ldr	r3, [r9, #8]
	orr	r0, r0, #32768
	cmp	r3, #0
	bne	.L13
	b	.L8
.L53:
	ldr	r3, [r4, #4]
	add	r3, r3, r3, lsl #1
	lsl	r3, r3, #2
	add	r3, r3, #8
	ldr	r3, [r4, r3]!
	cmp	r3, #0
	beq	.L8
.L13:
	cmp	r3, r0
	bne	.L53
	b	.L12
.L14:
	bl	LOWORD
	ldr	r3, [r4, #4]
	orr	r0, r0, #32768
	cmp	r3, #0
	ble	.L15
.L20:
	ldr	r2, [r10]
	cmp	r2, r0
	beq	.L19
	subs	r3, r3, #1
	add	r10, r10, #12
	bne	.L20
.L15:
	mov	r1, r5
	ldr	r0, .L54+28
	b	.L47
.L52:
	bl	__stack_chk_fail
.L55:
	.align	2
.L54:
	.word	SEEK_CUR
	.word	.LC3
	.word	SEEK_SET
	.word	TRUE
	.word	.LC1
	.word	FALSE
	.word	.LC0
	.word	.LC2
	.size	find_ne_resource, .-find_ne_resource
	.comm	TRUE,4,4
	.comm	SEEK_SET,4,4
	.comm	SEEK_CUR,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
