	.file	"extr_libvpxenc.c_set_roi_map.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Invalid AVRegionOfInterest.self_size.\n"
	.align 8
.LC2:
	.string	"AVRegionOfInterest.qoffset.den must not be zero.\n"
	.align 8
.LC4:
	.string	"ROI only supports %d segments (and segment 0 is reserved for non-ROIs), skipping the left ones.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"roi_map alloc failed.\n"
	.text
	.p2align 4
	.type	set_roi_map, @function
set_roi_map:
.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
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r9d
	sub	rsp, 568
	.cfi_def_cfa_offset 624
	mov	eax, DWORD PTR 624[rsp]
	mov	QWORD PTR 16[rsp], rdi
	lea	rdi, 32[rsp]
	mov	DWORD PTR 24[rsp], edx
	mov	edx, 24
	mov	DWORD PTR 28[rsp], ecx
	mov	ecx, 63
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 552[rsp], rax
	xor	eax, eax
	rep stosq
	mov	DWORD PTR [rdi], 0
	mov	rdi, r8
	call	memset@PLT
	mov	rcx, QWORD PTR 8[r13]
	mov	DWORD PTR 284[rsp], 1
	mov	esi, DWORD PTR [rcx]
	mov	DWORD PTR 8[rsp], esi
	test	esi, esi
	je	.L2
	mov	eax, DWORD PTR 0[r13]
	cdq
	idiv	esi
	mov	ebp, eax
	test	edx, edx
	jne	.L2
	test	eax, eax
	jle	.L11
	xor	r15d, r15d
	mov	r12d, 1
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	movss	xmm0, DWORD PTR 24[rax]
	mov	edx, 63
	mov	esi, -63
	divss	xmm0, xmm1
	mulss	xmm0, DWORD PTR .LC3[rip]
	cvttss2si	edi, xmm0
	call	av_clip@PLT
	lea	edx, 63[rax]
	movsx	rdx, edx
	mov	ecx, DWORD PTR 32[rsp+rdx*4]
	test	ecx, ecx
	jne	.L9
	cmp	DWORD PTR 12[rsp], r12d
	je	.L42
	lea	ecx, 1[r12]
	mov	DWORD PTR 32[rsp+rdx*4], ecx
	mov	rdx, QWORD PTR [r14]
	mov	DWORD PTR [rdx+r12*4], eax
	movsx	r12, ecx
.L9:
	add	r15d, 1
	cmp	ebp, r15d
	jle	.L11
	mov	rcx, QWORD PTR 8[r13]
.L12:
	mov	eax, DWORD PTR 8[rsp]
	pxor	xmm2, xmm2
	imul	eax, r15d
	cdqe
	add	rax, rcx
	movss	xmm1, DWORD PTR 20[rax]
	ucomiss	xmm1, xmm2
	jp	.L6
	jne	.L6
	lea	rdx, .LC2[rip]
.L39:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rdi, QWORD PTR 16[rsp]
	xor	eax, eax
	call	av_log@PLT
	mov	rax, QWORD PTR 552[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L38
	mov	edi, DWORD PTR EINVAL[rip]
.L37:
	add	rsp, 568
	.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
	jmp	AVERROR@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdx, .LC0[rip]
	jmp	.L39
.L42:
	mov	ecx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR AV_LOG_WARNING[rip]
	lea	rdx, .LC4[rip]
	xor	eax, eax
	mov	rdi, QWORD PTR 16[rsp]
	call	av_log@PLT
.L11:
	mov	eax, DWORD PTR 28[rsp]
	mov	esi, 4
	lea	eax, -1[rax+rbx]
	cdq
	idiv	ebx
	mov	DWORD PTR 8[r14], eax
	mov	edi, eax
	mov	eax, DWORD PTR 24[rsp]
	lea	eax, -1[rax+rbx]
	cdq
	idiv	ebx
	mov	DWORD PTR 12[r14], eax
	imul	edi, eax
	call	av_mallocz_array@PLT
	mov	QWORD PTR 16[r14], rax
	test	rax, rax
	je	.L43
	mov	r9d, ebp
	sub	r9d, 1
	jns	.L15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	sub	r9d, 1
	cmp	r9d, -1
	je	.L1
.L15:
	mov	r10d, DWORD PTR 8[rsp]
	mov	r11d, DWORD PTR 8[r14]
	xor	esi, esi
	mov	DWORD PTR 24[rsp], r9d
	imul	r10d, r9d
	movsx	r10, r10d
	add	r10, QWORD PTR 8[r13]
	mov	eax, DWORD PTR 4[r10]
	mov	rbp, r10
	cdq
	idiv	ebx
	mov	edx, r11d
	mov	edi, eax
	call	av_clip@PLT
	mov	r11d, DWORD PTR 8[r14]
	xor	esi, esi
	mov	r12d, eax
	mov	eax, DWORD PTR 8[rbp]
	add	eax, ebx
	sub	eax, 1
	cdq
	idiv	ebx
	mov	edx, r11d
	mov	edi, eax
	call	av_clip@PLT
	mov	r11d, DWORD PTR 12[r14]
	xor	esi, esi
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR 12[rbp]
	cdq
	idiv	ebx
	mov	edx, r11d
	mov	edi, eax
	call	av_clip@PLT
	mov	r11d, DWORD PTR 12[r14]
	xor	esi, esi
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR 16[rbp]
	add	eax, ebx
	sub	eax, 1
	cdq
	idiv	ebx
	mov	edx, r11d
	mov	edi, eax
	call	av_clip@PLT
	movss	xmm0, DWORD PTR 24[rbp]
	divss	xmm0, DWORD PTR 20[rbp]
	mulss	xmm0, DWORD PTR .LC3[rip]
	mov	esi, -63
	mov	edx, 63
	mov	r15d, eax
	cvttss2si	edi, xmm0
	call	av_clip@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	ecx, DWORD PTR 16[rsp]
	add	eax, 63
	mov	r9d, DWORD PTR 24[rsp]
	cdqe
	mov	esi, DWORD PTR 32[rsp+rax*4]
	test	esi, esi
	je	.L17
	sub	esi, 1
	cmp	r12d, ecx
	jge	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	r8d, r15d
	jge	.L21
	mov	rdi, QWORD PTR 16[r14]
	mov	edx, r8d
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR 12[r14]
	imul	eax, r12d
	add	eax, edx
	add	edx, 1
	cdqe
	mov	DWORD PTR [rdi+rax*4], esi
	cmp	r15d, edx
	jne	.L19
.L21:
	add	r12d, 1
	cmp	ecx, r12d
	jne	.L18
	sub	r9d, 1
	cmp	r9d, -1
	jne	.L15
.L1:
	mov	rax, QWORD PTR 552[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L38
	add	rsp, 568
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L43:
	.cfi_restore_state
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rdi, QWORD PTR 16[rsp]
	lea	rdx, .LC5[rip]
	call	av_log@PLT
	mov	rax, QWORD PTR 552[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L38
	mov	edi, DWORD PTR ENOMEM[rip]
	jmp	.L37
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	set_roi_map, .-set_roi_map
	.comm	MAX_DELTA_Q,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	AV_LOG_WARNING,4,4
	.comm	AV_LOG_ERROR,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC3:
	.long	1115422720
	.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_libvpxenc.c_set_roi_map.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid AVRegionOfInterest.self_size.\012\000"
	.global	__aeabi_fcmpeq
	.align	2
.LC1:
	.ascii	"AVRegionOfInterest.qoffset.den must not be zero.\012"
	.ascii	"\000"
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_f2iz
	.align	2
.LC2:
	.ascii	"ROI only supports %d segments (and segment 0 is res"
	.ascii	"erved for non-ROIs), skipping the left ones.\012\000"
	.global	__aeabi_idiv
	.align	2
.LC3:
	.ascii	"roi_map alloc failed.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_roi_map, %function
set_roi_map:
	@ args = 12, pretend = 0, frame = 544
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	ip, r2
	mov	lr, r0
	mov	r4, r1
	mov	r7, #1
	sub	sp, sp, #548
	str	r3, [sp, #28]
	ldr	r3, .L44
	str	r1, [sp, #4]
	str	lr, [sp, #12]
	str	ip, [sp, #24]
	ldr	r3, [r3]
	str	r3, [sp, #540]
	mov	r3,#0
	ldr	r5, [sp, #584]
	ldr	r3, [sp, #592]
	mov	r2, #508
	mov	r1, #0
	add	r0, sp, #32
	str	r3, [sp, #8]
	ldr	r8, [sp, #588]
	bl	memset
	mov	r2, #16
	mov	r0, r5
	mov	r1, #0
	bl	memset
	ldr	r3, [r4, #4]
	str	r7, [sp, #284]
	ldr	r2, [r3]
	str	r3, [sp, #16]
	cmp	r2, #0
	str	r2, [sp]
	beq	.L2
	ldr	r0, [r4]
	mov	r1, r2
	bl	__aeabi_idivmod
	subs	r4, r1, #0
	ldr	r3, [sp, #16]
	str	r0, [sp, #20]
	bne	.L2
	ldr	r10, [sp, #20]
	cmp	r10, #0
	ble	.L11
	mov	r6, r4
	mov	r9, #0
	str	r8, [sp, #16]
	b	.L12
.L35:
	mov	r1, r8
	ldr	r0, [fp, #24]	@ float
	bl	__aeabi_fdiv
	ldr	r1, .L44+4
	bl	__aeabi_fmul
	bl	__aeabi_f2iz
	mov	r2, #63
	mvn	r1, #62
	bl	av_clip
	add	r2, sp, #544
	add	r3, r0, #63
	add	r3, r2, r3, lsl #2
	ldr	r2, [r3, #-512]
	cmp	r2, #0
	bne	.L9
	ldr	r2, [sp, #8]
	cmp	r2, r7
	beq	.L42
	ldr	r1, [r5]
	add	r2, r7, #1
	str	r0, [r1, r7, lsl #2]
	mov	r7, r2
	str	r2, [r3, #-512]
.L9:
	ldr	r3, [sp]
	add	r4, r4, #1
	cmp	r10, r4
	add	r6, r6, r3
	beq	.L36
	ldr	r3, [sp, #4]
	ldr	r3, [r3, #4]
.L12:
	add	fp, r3, r6
	ldr	r8, [fp, #20]	@ float
	mov	r1, r9
	mov	r0, r8
	bl	__aeabi_fcmpeq
	cmp	r0, #0
	beq	.L35
	ldr	r3, .L44+8
	ldr	r2, .L44+12
	ldr	r1, [r3]
	ldr	r0, [sp, #12]
	bl	av_log
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [sp, #540]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L40
.L8:
	ldr	r3, .L44+16
.L39:
	ldr	r0, [r3]
	add	sp, sp, #548
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	AVERROR
.L2:
	ldr	r3, .L44+8
	ldr	r2, .L44+20
	ldr	r1, [r3]
	ldr	r0, [sp, #12]
	bl	av_log
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [sp, #540]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	b	.L40
.L36:
	ldr	r8, [sp, #16]
.L11:
	ldr	r3, [sp, #28]
	mov	r1, r8
	add	r0, r3, r8
	sub	r0, r0, #1
	bl	__aeabi_idiv
	mov	r4, r0
	ldr	r3, [sp, #24]
	mov	r1, r8
	add	r0, r8, r3
	str	r4, [r5, #4]
	sub	r0, r0, #1
	bl	__aeabi_idiv
	mov	r1, #4
	str	r0, [r5, #8]
	mul	r0, r4, r0
	bl	av_mallocz_array
	cmp	r0, #0
	str	r0, [r5, #12]
	beq	.L43
	ldr	r3, [sp, #20]
	subs	r10, r3, #1
	bmi	.L1
	ldr	fp, [sp]
	mul	fp, r10, fp
	b	.L22
.L17:
	ldr	r3, [sp]
	sub	r10, r10, #1
	cmn	r10, #1
	sub	fp, fp, r3
	beq	.L1
.L22:
	ldr	r3, [sp, #4]
	ldr	r4, [r5, #4]
	ldr	r6, [r3, #4]
	mov	r1, r8
	add	r6, fp, r6
	ldr	r0, [r6, #4]
	bl	__aeabi_idiv
	mov	r2, r4
	mov	r1, #0
	bl	av_clip
	mov	r4, r0
	ldr	r0, [r6, #8]
	ldr	r7, [r5, #4]
	add	r0, r8, r0
	mov	r1, r8
	sub	r0, r0, #1
	bl	__aeabi_idiv
	mov	r2, r7
	mov	r1, #0
	bl	av_clip
	ldr	r7, [r5, #8]
	mov	r1, r8
	mov	r9, r0
	ldr	r0, [r6, #12]
	bl	__aeabi_idiv
	mov	r2, r7
	mov	r1, #0
	bl	av_clip
	mov	r7, r0
	ldr	r0, [r6, #16]
	ldr	r2, [r5, #8]
	add	r0, r8, r0
	mov	r1, r8
	sub	r0, r0, #1
	str	r2, [sp, #8]
	bl	__aeabi_idiv
	mov	r1, #0
	ldr	r2, [sp, #8]
	bl	av_clip
	mov	r2, r0
	ldr	r1, [r6, #20]	@ float
	ldr	r0, [r6, #24]	@ float
	mov	r6, r2
	bl	__aeabi_fdiv
	ldr	r1, .L44+4
	bl	__aeabi_fmul
	bl	__aeabi_f2iz
	mov	r2, #63
	mvn	r1, #62
	bl	av_clip
	add	r3, sp, #544
	add	r0, r3, r0, lsl #2
	ldr	r0, [r0, #-260]
	cmp	r0, #0
	beq	.L17
	cmp	r4, r9
	bge	.L17
	sub	r0, r0, #1
.L18:
	cmp	r7, r6
	movlt	r3, r7
	ldrlt	r1, [r5, #12]
	bge	.L21
.L19:
	ldr	r2, [r5, #8]
	mla	r2, r4, r2, r3
	add	r3, r3, #1
	cmp	r6, r3
	str	r0, [r1, r2, lsl #2]
	bne	.L19
.L21:
	add	r4, r4, #1
	cmp	r9, r4
	bne	.L18
	b	.L17
.L1:
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [sp, #540]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L40
	mov	r0, #0
	add	sp, sp, #548
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L42:
	ldr	r2, .L44+24
	ldr	r3, [sp, #8]
	ldr	r1, [r2]
	ldr	r0, [sp, #12]
	ldr	r2, .L44+28
	ldr	r8, [sp, #16]
	bl	av_log
	b	.L11
.L43:
	ldr	r3, .L44+8
	ldr	r2, .L44+32
	ldr	r1, [r3]
	ldr	r0, [sp, #12]
	bl	av_log
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [sp, #540]
	eors	r2, r3, r2
	mov	r3, #0
	ldreq	r3, .L44+36
	beq	.L39
.L40:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	.LC4
	.word	1115422720
	.word	AV_LOG_ERROR
	.word	.LC1
	.word	EINVAL
	.word	.LC0
	.word	AV_LOG_WARNING
	.word	.LC2
	.word	.LC3
	.word	ENOMEM
	.size	set_roi_map, .-set_roi_map
	.comm	MAX_DELTA_Q,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	AV_LOG_WARNING,4,4
	.comm	AV_LOG_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
