	.file	"extr_hdac.c_hdac_find_stream.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hdac_find_stream, @function
hdac_find_stream:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	je	.L2
	mov	r8d, DWORD PTR 4[rdi]
	test	r8d, r8d
	jle	.L4
	movsx	rsi, DWORD PTR [rdi]
	mov	rax, QWORD PTR 16[rdi]
	mov	rcx, rsi
	lea	rsi, [rax+rsi*4]
	add	r8d, ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	add	ecx, 1
	add	rsi, 4
	cmp	ecx, r8d
	je	.L4
.L9:
	mov	eax, ecx
	cmp	DWORD PTR [rsi], edx
	jne	.L20
	cmp	ecx, -1
	je	.L4
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jg	.L21
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR 8[rdi]
	test	esi, esi
	jle	.L17
	movsx	r8, DWORD PTR [rdi]
	movsx	rcx, DWORD PTR 4[rdi]
	mov	rdi, QWORD PTR 16[rdi]
	lea	eax, [r8+rcx]
	add	rcx, r8
	lea	rcx, [rdi+rcx*4]
	add	esi, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	add	eax, 1
	add	rcx, 4
	cmp	eax, esi
	je	.L17
.L10:
	cmp	DWORD PTR [rcx], edx
	jne	.L22
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rsi, QWORD PTR 16[rdi]
	lea	r8d, -1[rax]
	xor	ecx, ecx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rax, 1[rcx]
	cmp	rcx, r8
	je	.L4
	mov	rcx, rax
.L6:
	mov	eax, ecx
	cmp	DWORD PTR [rsi+rcx*4], edx
	jne	.L23
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	hdac_find_stream, .-hdac_find_stream
	.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_hdac.c_hdac_find_stream.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hdac_find_stream, %function
hdac_find_stream:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, lr}
	mov	lr, r0
	beq	.L2
	ldr	r4, [r0, #4]
	cmp	r4, #0
	ble	.L4
	ldr	r3, [r0]
	ldr	r1, [r0, #12]
	lsl	r0, r3, #2
	sub	r0, r0, #4
	add	r4, r4, r3
	add	r1, r1, r0
	b	.L9
.L20:
	cmp	r3, r4
	beq	.L4
.L9:
	ldr	ip, [r1, #4]!
	mov	r0, r3
	cmp	ip, r2
	add	r3, r3, #1
	bne	.L20
	cmn	r0, #1
	popne	{r4, pc}
.L4:
	ldr	r0, [lr, #8]
	cmp	r0, #0
	ble	.L18
	ldm	lr, {r3, ip}
	ldr	r1, [lr, #12]
	add	r3, r3, ip
	add	lr, r0, r3
	add	r1, r1, r3, lsl #2
.L10:
	ldr	ip, [r1], #4
	mov	r0, r3
	cmp	ip, r2
	add	r3, r3, #1
	popeq	{r4, pc}
	cmp	r3, lr
	bne	.L10
.L18:
	mvn	r0, #0
	pop	{r4, pc}
.L2:
	ldr	ip, [r0]
	cmp	ip, #0
	ble	.L4
	mov	r0, r1
	ldr	r3, [lr, #12]
	sub	r3, r3, #4
.L6:
	ldr	r1, [r3, #4]!
	cmp	r1, r2
	popeq	{r4, pc}
	add	r0, r0, #1
	cmp	r0, ip
	bne	.L6
	b	.L4
	.size	hdac_find_stream, .-hdac_find_stream
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
