	.file	"extr_rv10enc.c_ff_rv10_encode_picture_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Encoding frames with %d (>= 4096) macroblocks"
	.text
	.p2align 4
	.globl	ff_rv10_encode_picture_header
	.type	ff_rv10_encode_picture_header, @function
ff_rv10_encode_picture_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rbp, 20[rdi]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	rdi, rbp
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	avpriv_align_put_bits@PLT
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rbp
	call	put_bits@PLT
	xor	edx, edx
	mov	esi, 1
	mov	rdi, rbp
	mov	rax, QWORD PTR AV_PICTURE_TYPE_P[rip]
	cmp	QWORD PTR [rbx], rax
	sete	dl
	call	put_bits@PLT
	xor	edx, edx
	mov	esi, 1
	mov	rdi, rbp
	call	put_bits@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, 5
	mov	rdi, rbp
	call	put_bits@PLT
	mov	edx, DWORD PTR 12[rbx]
	imul	edx, DWORD PTR 16[rbx]
	cmp	edx, 4095
	ja	.L5
	mov	rdi, rbp
	xor	edx, edx
	mov	esi, 6
	call	put_bits@PLT
	mov	rdi, rbp
	xor	edx, edx
	mov	esi, 6
	call	put_bits@PLT
	mov	edx, DWORD PTR 12[rbx]
	imul	edx, DWORD PTR 16[rbx]
	mov	rdi, rbp
	mov	esi, 12
	call	put_bits@PLT
	mov	rdi, rbp
	xor	edx, edx
	mov	esi, 3
	call	put_bits@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rbx]
	lea	rsi, .LC0[rip]
	call	avpriv_report_missing_feature@PLT
	mov	edi, DWORD PTR ENOSYS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	AVERROR@PLT
	.cfi_endproc
.LFE0:
	.size	ff_rv10_encode_picture_header, .-ff_rv10_encode_picture_header
	.comm	ENOSYS,4,4
	.comm	AV_PICTURE_TYPE_P,8,8
	.comm	AV_PICTURE_TYPE_I,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_rv10enc.c_ff_rv10_encode_picture_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Encoding frames with %d (>= 4096) macroblocks\000"
	.text
	.align	2
	.global	ff_rv10_encode_picture_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_rv10_encode_picture_header, %function
ff_rv10_encode_picture_header:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	add	r5, r0, #16
	mov	r4, r0
	mov	r0, r5
	bl	avpriv_align_put_bits
	mov	r2, #1
	mov	r0, r5
	mov	r1, r2
	bl	put_bits
	ldr	r3, .L6
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r1, #1
	sub	r2, r2, r3
	clz	r2, r2
	mov	r0, r5
	lsr	r2, r2, #5
	bl	put_bits
	mov	r2, #0
	mov	r1, #1
	mov	r0, r5
	bl	put_bits
	ldr	r2, [r4, #4]
	mov	r0, r5
	mov	r1, #5
	bl	put_bits
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #12]
	mul	r2, r3, r2
	cmp	r2, #4096
	bcs	.L5
	mov	r2, #0
	mov	r1, #6
	mov	r0, r5
	bl	put_bits
	mov	r2, #0
	mov	r1, #6
	mov	r0, r5
	bl	put_bits
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #12]
	mov	r1, #12
	mul	r2, r3, r2
	mov	r0, r5
	bl	put_bits
	mov	r0, r5
	mov	r2, #0
	mov	r1, #3
	bl	put_bits
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r0, [r4, #20]
	ldr	r1, .L6+4
	bl	avpriv_report_missing_feature
	pop	{r4, r5, r6, lr}
	ldr	r3, .L6+8
	ldr	r0, [r3]
	b	AVERROR
.L7:
	.align	2
.L6:
	.word	AV_PICTURE_TYPE_P
	.word	.LC0
	.word	ENOSYS
	.size	ff_rv10_encode_picture_header, .-ff_rv10_encode_picture_header
	.comm	ENOSYS,4,4
	.comm	AV_PICTURE_TYPE_P,4,4
	.comm	AV_PICTURE_TYPE_I,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
