	.file	"extr_vp3.c_vp3_draw_horiz_band.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vp3_draw_horiz_band, @function
vp3_draw_horiz_band:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12d, esi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR AV_NUM_DATA_POINTERS[rip]
	mov	rdi, rsp
	mov	r14, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L27:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L27
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L28
.L4:
	lea	r15, 3[rsp]
	mov	rax, QWORD PTR 24[rbx]
	mov	r8, r15
	and	r15, -4
	shr	r8, 2
	cmp	QWORD PTR HAVE_THREADS[rip], 0
	jne	.L29
.L5:
	cmp	QWORD PTR 8[rax], 0
	je	.L25
	mov	r13d, DWORD PTR 4[rbx]
	mov	r9d, r12d
	mov	DWORD PTR 4[rbx], r12d
	sub	r9d, r13d
	cmp	QWORD PTR 32[rbx], 0
	jne	.L11
	mov	r13d, DWORD PTR [rbx]
	sub	r13d, r12d
.L11:
	mov	rdx, QWORD PTR 16[rbx]
	mov	ecx, DWORD PTR 8[rbx]
	mov	eax, r13d
	mov	rdx, QWORD PTR [rdx]
	sar	eax, cl
	mov	ecx, DWORD PTR [rdx]
	imul	ecx, r13d
	mov	DWORD PTR 0[0+r8*4], ecx
	mov	ecx, DWORD PTR 4[rdx]
	imul	ecx, eax
	mov	DWORD PTR 4[0+r8*4], ecx
	imul	eax, DWORD PTR 8[rdx]
	mov	edx, DWORD PTR AV_NUM_DATA_POINTERS[rip]
	mov	DWORD PTR 8[0+r8*4], eax
	cmp	edx, 3
	jle	.L14
	sub	edx, 4
	lea	rax, 12[r15]
	lea	rdx, 16[r15+rdx*4]
	.p2align 4,,10
	.p2align 3
.L13:
	mov	DWORD PTR [rax], 0
	add	rax, 4
	cmp	rax, rdx
	jne	.L13
.L14:
	xor	eax, eax
	mov	DWORD PTR -72[rbp], r9d
	call	emms_c@PLT
	mov	rax, QWORD PTR 24[rbx]
	mov	rsi, QWORD PTR 16[rbx]
	mov	ecx, r13d
	mov	r9d, DWORD PTR -72[rbp]
	mov	r8d, 3
	mov	rdx, r15
	mov	rdi, rax
	call	[QWORD PTR 8[rax]]
.L25:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, r14
	jne	.L30
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR FF_THREAD_FRAME[rip], edx
	je	.L5
	cmp	QWORD PTR 32[rbx], 0
	mov	edx, DWORD PTR [rbx]
	mov	eax, r12d
	je	.L6
	mov	eax, edx
	sub	eax, r12d
.L6:
	cmp	eax, edx
	lea	esi, -1[rax]
	cmove	esi, DWORD PTR INT_MAX[rip]
	xor	edx, edx
	lea	rdi, 16[rbx]
	mov	QWORD PTR -72[rbp], r8
	call	ff_thread_report_progress@PLT
	mov	rax, QWORD PTR 24[rbx]
	mov	r8, QWORD PTR -72[rbp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L28:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vp3_draw_horiz_band, .-vp3_draw_horiz_band
	.comm	INT_MAX,4,4
	.comm	HAVE_THREADS,8,8
	.comm	FF_THREAD_FRAME,4,4
	.comm	AV_NUM_DATA_POINTERS,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_vp3.c_vp3_draw_horiz_band.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vp3_draw_horiz_band, %function
vp3_draw_horiz_band:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r7, .L26
	ldr	r2, .L26+4
	ldr	r3, [r7]
	ldr	r2, [r2]
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	mov	r5, sp
	sub	sp, sp, r3
	ldr	r3, .L26+8
	cmp	r2, #0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r4, r0
	mov	r10, r1
	ldr	r3, [r0, #16]
	add	r6, sp, #8
	beq	.L2
	ldr	r2, .L26+12
	ldr	r1, [r3]
	ldr	r2, [r2]
	tst	r1, r2
	bne	.L24
.L2:
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #12]
	ldr	r8, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, #0
	str	r10, [r4, #4]
	sub	r9, r10, r8
	ldreq	r8, [r4]
	ldr	r1, [r2]
	subeq	r8, r8, r10
	mul	r1, r8, r1
	ldr	r3, [r4, #8]
	str	r1, [r6]
	ldr	r1, [r2, #4]
	asr	r3, r8, r3
	mul	r1, r3, r1
	str	r1, [r6, #4]
	ldr	r2, [r2, #8]
	ldr	r0, [r7]
	mul	r3, r2, r3
	cmp	r0, #3
	movgt	r2, #3
	movgt	ip, #0
	str	r3, [r6, #8]
	addgt	r1, r6, #8
	ble	.L11
.L10:
	add	r2, r2, #1
	cmp	r2, r0
	str	ip, [r1, #4]!
	bne	.L10
.L11:
	bl	emms_c
	mov	r3, #3
	ldr	r0, [r4, #16]
	ldr	r1, [r4, #12]
	stm	sp, {r3, r9}
	mov	r2, r6
	mov	r3, r8
	ldr	r4, [r0, #4]
	blx	r4
.L22:
	ldr	r3, .L26+8
	mov	sp, r5
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	ldr	r2, [r0, #20]
	ldr	r3, [r0]
	cmp	r2, #0
	moveq	r1, r10
	subne	r1, r3, r10
	cmp	r1, r3
	ldreq	r3, .L26+16
	mov	r2, #0
	ldreq	r1, [r3]
	add	r0, r0, #12
	subne	r1, r1, #1
	bl	ff_thread_report_progress
	ldr	r3, [r4, #16]
	b	.L2
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	AV_NUM_DATA_POINTERS
	.word	HAVE_THREADS
	.word	.LC0
	.word	FF_THREAD_FRAME
	.word	INT_MAX
	.size	vp3_draw_horiz_band, .-vp3_draw_horiz_band
	.comm	INT_MAX,4,4
	.comm	HAVE_THREADS,4,4
	.comm	FF_THREAD_FRAME,4,4
	.comm	AV_NUM_DATA_POINTERS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
