	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rv10_encode_picture_header  ## -- Begin function ff_rv10_encode_picture_header
	.p2align	4, 0x90
_ff_rv10_encode_picture_header:         ## @ff_rv10_encode_picture_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	20(%rdi), %r14
	movq	%r14, %rdi
	callq	_avpriv_align_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	(%rbx), %rax
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_put_bits
	movl	16(%rbx), %edx
	imull	12(%rbx), %edx
	cmpl	$4096, %edx                     ## imm = 0x1000
	jb	LBB0_1
## %bb.2:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_avpriv_report_missing_feature
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	movl	$6, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$6, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	16(%rbx), %edx
	imull	12(%rbx), %edx
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_put_bits
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_P,8,3          ## @AV_PICTURE_TYPE_P
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Encoding frames with %d (>= 4096) macroblocks"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rv10_encode_picture_header  ; -- Begin function ff_rv10_encode_picture_header
	.p2align	2
_ff_rv10_encode_picture_header:         ; @ff_rv10_encode_picture_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	add	x19, x0, #20
	mov	x0, x19
	bl	_avpriv_align_put_bits
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w2, eq
	mov	x0, x19
	mov	w1, #1
	bl	_put_bits
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w1, #5
	bl	_put_bits
	ldp	w8, w9, [x20, #12]
	mul	w2, w9, w8
	cmp	w2, #1, lsl #12                 ; =4096
	b.lo	LBB0_2
; %bb.1:
	ldr	w0, [x20, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_avpriv_report_missing_feature
Lloh5:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_2:
	mov	x0, x19
	mov	w1, #6
	mov	w2, #0
	bl	_put_bits
	mov	x0, x19
	mov	w1, #6
	mov	w2, #0
	bl	_put_bits
	ldp	w8, w9, [x20, #12]
	mul	w2, w9, w8
	mov	x0, x19
	mov	w1, #12
	bl	_put_bits
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	bl	_put_bits
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_P,8,3          ; @AV_PICTURE_TYPE_P
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Encoding frames with %d (>= 4096) macroblocks"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
.subsections_via_symbols
