	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rv20_encode_picture_header  ## -- Begin function ff_rv20_encode_picture_header
	.p2align	4, 0x90
_ff_rv20_encode_picture_header:         ## @ff_rv20_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	76(%rdi), %r14
	movq	(%rdi), %rdx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	8(%rbx), %rdx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$8, %esi
	movl	%r15d, %edx
	callq	_put_sbits
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%rbx)
	movq	%rbx, %rdi
	callq	_ff_h263_encode_mba
	movq	16(%rbx), %rdx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_put_bits
	xorl	%edi, %edi
	cmpl	$1, 24(%rbx)
	sete	%dil
	callq	_av_assert0
	xorl	%edi, %edi
	cmpq	$0, 32(%rbx)
	sete	%dil
	callq	_av_assert0
	xorl	%edi, %edi
	cmpq	$0, 40(%rbx)
	sete	%dil
	callq	_av_assert0
	xorl	%edi, %edi
	cmpq	$0, 48(%rbx)
	sete	%dil
	callq	_av_assert0
	xorl	%edi, %edi
	cmpl	$1, 56(%rbx)
	sete	%dil
	callq	_av_assert0
	xorl	%edi, %edi
	cmpl	$1, 60(%rbx)
	sete	%dil
	callq	_av_assert0
	movq	(%rbx), %rax
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, 64(%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_ff_aic_dc_scale_table@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ff_mpeg1_dc_scale_table@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movl	%eax, 72(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_ff_aic_dc_scale_table,4,2      ## @ff_aic_dc_scale_table
	.comm	_ff_mpeg1_dc_scale_table,4,2    ## @ff_mpeg1_dc_scale_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rv20_encode_picture_header  ; -- Begin function ff_rv20_encode_picture_header
	.p2align	2
_ff_rv20_encode_picture_header:         ; @ff_rv20_encode_picture_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #76
	ldr	x2, [x0]
	mov	x0, x21
	mov	w1, #2
	bl	_put_bits
	mov	x0, x21
	mov	w1, #1
	mov	x2, #0
	bl	_put_bits
	ldr	x2, [x19, #8]
	mov	x0, x21
	mov	w1, #5
	bl	_put_bits
	mov	x0, x21
	mov	w1, #8
	mov	x2, x20
	bl	_put_sbits
	stp	xzr, xzr, [x19, #80]
	mov	x0, x19
	bl	_ff_h263_encode_mba
	ldr	x2, [x19, #16]
	mov	x0, x21
	mov	w1, #1
	bl	_put_bits
	ldr	w8, [x19, #24]
	cmp	w8, #1
	cset	w0, eq
	bl	_av_assert0
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, eq
	bl	_av_assert0
	ldr	x8, [x19, #40]
	cmp	x8, #0
	cset	w0, eq
	bl	_av_assert0
	ldr	x8, [x19, #48]
	cmp	x8, #0
	cset	w0, eq
	bl	_av_assert0
	ldr	w8, [x19, #56]
	cmp	w8, #1
	cset	w0, eq
	bl	_av_assert0
	ldr	w8, [x19, #60]
	cmp	w8, #1
	cset	w0, eq
	bl	_av_assert0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ff_aic_dc_scale_table@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ff_aic_dc_scale_table@GOTPAGEOFF]
Lloh5:
	adrp	x11, _ff_mpeg1_dc_scale_table@GOTPAGE
Lloh6:
	ldr	x11, [x11, _ff_mpeg1_dc_scale_table@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	cset	w9, eq
	str	w9, [x19, #64]
	ldr	w8, [x8]
	stp	w8, w8, [x19, #68]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_ff_aic_dc_scale_table,4,2      ; @ff_aic_dc_scale_table
	.comm	_ff_mpeg1_dc_scale_table,4,2    ; @ff_mpeg1_dc_scale_table
.subsections_via_symbols
