	.file	"extr_av1.c_UpdateDecoderFormat.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	UpdateDecoderFormat, @function
UpdateDecoderFormat:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 112
	mov	rbp, QWORD PTR 112[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	edi, DWORD PTR 8[rbp]
	test	edi, edi
	je	.L1
	mov	rax, QWORD PTR AV1_PROFILE_MAIN[rip]
	cmp	QWORD PTR 72[rbx], rax
	jl	.L28
.L3:
	lea	r13, 8[rsp]
	lea	r12, 4[rsp]
	mov	rdx, r13
	mov	rsi, r12
	call	AV1_get_frame_max_dimensions@PLT
	mov	r8d, DWORD PTR 108[rbx]
	test	r8d, r8d
	jne	.L29
	mov	eax, DWORD PTR 4[rsp]
	mov	edx, DWORD PTR 8[rsp]
	cmp	DWORD PTR 16[rbx], eax
	je	.L30
.L9:
	mov	DWORD PTR 16[rbx], eax
	mov	DWORD PTR 20[rbx], eax
	mov	DWORD PTR 28[rbx], edx
	mov	DWORD PTR 24[rbx], edx
.L8:
	mov	esi, DWORD PTR 100[rbx]
	test	esi, esi
	je	.L10
	mov	ecx, DWORD PTR 96[rbx]
	test	ecx, ecx
	jne	.L11
.L10:
	mov	edi, DWORD PTR 8[rbp]
	mov	rdx, r13
	mov	rsi, r12
	call	AV1_get_frame_rate@PLT
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR 4[rsp]
	mov	edx, DWORD PTR 8[rsp]
	cmp	DWORD PTR 32[rbx], eax
	je	.L31
.L13:
	mov	DWORD PTR 32[rbx], eax
	mov	DWORD PTR 36[rbx], edx
.L11:
	mov	rax, QWORD PTR COLOR_PRIMARIES_UNDEF[rip]
	cmp	QWORD PTR 88[rbx], rax
	je	.L32
.L15:
	mov	edx, DWORD PTR 80[rbx]
	test	edx, edx
	jne	.L1
	mov	eax, DWORD PTR 12[rbx]
	test	eax, eax
	je	.L33
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L34
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	edi, DWORD PTR 104[rbx]
	test	edi, edi
	jne	.L8
	mov	eax, DWORD PTR 4[rsp]
	mov	edx, DWORD PTR 8[rsp]
	cmp	DWORD PTR 16[rbx], eax
	jne	.L9
.L30:
	cmp	eax, edx
	jne	.L9
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rdx, 48[rsp]
	lea	rsi, 44[rsp]
	lea	rcx, 52[rsp]
	call	AV1_get_profile_level@PLT
	mov	eax, DWORD PTR 44[rsp]
	mov	edx, DWORD PTR 48[rsp]
	cmp	DWORD PTR [rbx], eax
	je	.L4
.L5:
	mov	DWORD PTR [rbx], eax
	mov	DWORD PTR 4[rbx], edx
.L6:
	mov	edi, DWORD PTR 8[rbp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L33:
	mov	r8, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR 8[rbp]
	lea	rdi, 8[rbx]
	mov	edx, 1
	lea	rcx, 4[r8]
	call	AV1_create_DecoderConfigurationRecord@PLT
	mov	DWORD PTR 12[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	cmp	DWORD PTR 36[rbx], edx
	jne	.L13
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	DWORD PTR 4[rbx], edx
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L32:
	mov	edi, DWORD PTR 8[rbp]
	lea	rcx, 24[rsp]
	lea	rdx, 32[rsp]
	lea	rsi, 16[rsp]
	lea	r8, 12[rsp]
	call	AV1_get_colorimetry@PLT
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR 16[rsp]
	cmp	rax, QWORD PTR COLOR_PRIMARIES_UNDEF[rip]
	je	.L15
	mov	rdx, QWORD PTR 32[rsp]
	mov	rcx, QWORD PTR 24[rsp]
	cmp	rax, QWORD PTR 40[rbx]
	je	.L35
.L17:
	mov	QWORD PTR 40[rbx], rax
	mov	eax, DWORD PTR 12[rsp]
	mov	QWORD PTR 48[rbx], rdx
	mov	QWORD PTR 56[rbx], rcx
	mov	DWORD PTR 64[rbx], eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L35:
	cmp	QWORD PTR 48[rbx], rdx
	jne	.L17
	cmp	QWORD PTR 56[rbx], rcx
	jne	.L17
	jmp	.L15
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	UpdateDecoderFormat, .-UpdateDecoderFormat
	.comm	COLOR_PRIMARIES_UNDEF,8,8
	.comm	AV1_PROFILE_MAIN,8,8
	.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_av1.c_UpdateDecoderFormat.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	UpdateDecoderFormat, %function
UpdateDecoderFormat:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #84]
	mov	r4, r0
	ldr	r0, [r5, #4]
	ldr	r3, .L45
	sub	sp, sp, #48
	cmp	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	beq	.L1
	ldr	r3, .L45+4
	ldr	r2, [r4, #56]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L37
.L3:
	add	r2, sp, #12
	add	r1, sp, #8
	bl	AV1_get_frame_max_dimensions
	ldr	r3, [r4, #80]
	cmp	r3, #0
	bne	.L38
.L7:
	ldr	r1, [r4, #16]
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #12]
	cmp	r1, r3
	beq	.L39
.L9:
	str	r3, [r4, #16]
	str	r3, [r4, #20]
	str	r2, [r4, #28]
	str	r2, [r4, #24]
.L8:
	ldr	r3, [r4, #72]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [r4, #68]
	cmp	r3, #0
	bne	.L11
.L10:
	ldr	r0, [r5, #4]
	add	r2, sp, #12
	add	r1, sp, #8
	bl	AV1_get_frame_rate
	cmp	r0, #0
	beq	.L11
	ldr	r3, [sp, #8]
	ldr	r1, [r4, #32]
	ldr	r2, [sp, #12]
	cmp	r1, r3
	beq	.L40
.L13:
	str	r3, [r4, #32]
	str	r2, [r4, #36]
.L11:
	ldr	r6, .L45+8
	ldr	r2, [r4, #64]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L41
.L15:
	ldr	r3, [r4, #60]
	cmp	r3, #0
	bne	.L1
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L42
.L1:
	ldr	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L43
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, pc}
.L38:
	ldr	r3, [r4, #76]
	cmp	r3, #0
	bne	.L8
	b	.L7
.L37:
	add	r3, sp, #40
	add	r2, sp, #36
	add	r1, sp, #32
	bl	AV1_get_profile_level
	ldr	r2, [r4]
	ldr	r3, [sp, #32]
	cmp	r2, r3
	ldr	r2, [sp, #36]
	beq	.L4
.L5:
	str	r3, [r4]
	str	r2, [r4, #4]
.L6:
	ldr	r0, [r5, #4]
	b	.L3
.L42:
	ldr	r2, [r5]
	ldr	r1, [r5, #4]
	add	r3, r2, #4
	str	r2, [sp]
	add	r0, r4, #8
	mov	r2, #1
	bl	AV1_create_DecoderConfigurationRecord
	str	r0, [r4, #12]
	b	.L1
.L40:
	ldr	r1, [r4, #36]
	cmp	r1, r2
	bne	.L13
	b	.L11
.L4:
	ldr	r1, [r4, #4]
	cmp	r1, r2
	bne	.L5
	b	.L6
.L39:
	cmp	r3, r2
	bne	.L9
	b	.L8
.L41:
	add	r3, sp, #28
	ldr	r0, [r5, #4]
	add	r2, sp, #24
	str	r3, [sp]
	add	r1, sp, #16
	add	r3, sp, #20
	bl	AV1_get_colorimetry
	cmp	r0, #0
	beq	.L15
	ldr	r2, [r6]
	ldr	r3, [sp, #16]
	cmp	r3, r2
	beq	.L15
	ldr	r1, [r4, #40]
	ldr	r2, [sp, #24]
	cmp	r3, r1
	ldr	r1, [sp, #20]
	beq	.L44
.L17:
	ldr	r0, [sp, #28]
	str	r3, [r4, #40]
	str	r2, [r4, #44]
	str	r1, [r4, #48]
	str	r0, [r4, #52]
	b	.L15
.L44:
	ldr	r0, [r4, #44]
	cmp	r0, r2
	bne	.L17
	ldr	r0, [r4, #48]
	cmp	r0, r1
	bne	.L17
	b	.L15
.L43:
	bl	__stack_chk_fail
.L46:
	.align	2
.L45:
	.word	.LC0
	.word	AV1_PROFILE_MAIN
	.word	COLOR_PRIMARIES_UNDEF
	.size	UpdateDecoderFormat, .-UpdateDecoderFormat
	.comm	COLOR_PRIMARIES_UNDEF,4,4
	.comm	AV1_PROFILE_MAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
