	.file	"extr_..stb.h_stb__historyfind.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stb__historyfind, @function
stb__historyfind:
.LFB0:
	.cfi_startproc
	endbr64
	mov	esi, DWORD PTR STB_MALLOC_HISTORY_COUNT[rip]
	mov	eax, DWORD PTR stb__history_pos[rip]
	test	esi, esi
	jle	.L5
	mov	r9, QWORD PTR stb__alloc_history[rip]
	xor	edx, edx
	lea	r8d, -1[rsi]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	add	edx, 1
	cmp	edx, esi
	je	.L5
.L4:
	sub	eax, 1
	cmovs	eax, r8d
	movsx	rcx, eax
	cmp	QWORD PTR [r9+rcx*8], rdi
	jne	.L8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	stb__historyfind, .-stb__historyfind
	.comm	stb__history_pos,4,4
	.comm	stb__alloc_history,8,8
	.comm	STB_MALLOC_HISTORY_COUNT,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_..stb.h_stb__historyfind.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stb__historyfind, %function
stb__historyfind:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L12
	ldr	r3, .L12+4
	ldr	r1, [r2]
	mov	ip, r0
	cmp	r1, #0
	ldr	r0, [r3]
	ble	.L5
	mov	r3, #0
	ldr	r2, .L12+8
	str	lr, [sp, #-4]!
	ldr	lr, [r2]
.L4:
	subs	r0, r0, #1
	submi	r0, r1, #1
	ldr	r2, [lr, r0, lsl #2]
	add	r3, r3, #1
	cmp	r2, ip
	ldreq	pc, [sp], #4
	cmp	r3, r1
	bne	.L4
	mvn	r0, #0
	ldr	pc, [sp], #4
.L5:
	mvn	r0, #0
	bx	lr
.L13:
	.align	2
.L12:
	.word	STB_MALLOC_HISTORY_COUNT
	.word	stb__history_pos
	.word	stb__alloc_history
	.size	stb__historyfind, .-stb__historyfind
	.comm	stb__history_pos,4,4
	.comm	stb__alloc_history,4,4
	.comm	STB_MALLOC_HISTORY_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
