	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg4_encode_vol_header
_mpeg4_encode_vol_header:               ## @mpeg4_encode_vol_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CONFIG_MPEG4_ENCODER@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_24
## %bb.1:
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r14
	movl	$5, %r15d
	movq	_ADV_SIMPLE_VO_TYPE@GOTPCREL(%rip), %rax
	cmpq	$0, 72(%rdi)
	jne	LBB0_2
## %bb.3:
	cmpl	$0, (%r14)
	je	LBB0_5
LBB0_2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	leaq	36(%r14), %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	addl	$256, %r13d                     ## imm = 0x100
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	%r13d, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	addl	$288, %r12d                     ## imm = 0x120
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	%r12d, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	_FF_BUG_MS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, 8(%r14)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	%r15d, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$1, %edx
LBB0_9:
	callq	_put_bits
	movq	40(%r14), %rax
	movq	16(%rax), %rdi
	callq	_ff_h263_aspect_to_info
	movl	%eax, 12(%r14)
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	%eax, %edx
	callq	_put_bits
	movl	12(%r14), %eax
	movq	_FF_ASPECT_EXTENDED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.10:
	movq	40(%r14), %rax
	leaq	16(%rax), %rdi
	leaq	20(%rax), %rsi
	movl	16(%rax), %edx
	movl	20(%rax), %ecx
	movl	$255, %r8d
	callq	_av_reduce
	movq	40(%r14), %rax
	movl	16(%rax), %edx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	40(%r14), %rax
	movl	20(%rax), %edx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_put_bits
LBB0_11:
	movl	(%r12), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
LBB0_13:
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	_RECT_SHAPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2, %r15d
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	40(%r14), %rax
	movl	12(%rax), %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_put_bits
	cmpl	$0, 20(%r14)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jg	LBB0_15
## %bb.14:
	movl	$1, 20(%r14)
LBB0_15:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	24(%r14), %edx
	movq	%rbx, %rdi
	movl	$13, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	28(%r14), %edx
	movq	%rbx, %rdi
	movl	$13, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	xorl	%edx, %edx
	cmpq	$0, 64(%r14)
	sete	%dl
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movzbl	%r12b, %eax
	subl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	32(%r14), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
	cmpl	$0, 32(%r14)
	je	LBB0_17
## %bb.16:
	movq	40(%r14), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_ff_write_quant_matrix
	movq	40(%r14), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_ff_write_quant_matrix
LBB0_17:
	testb	%r12b, %r12b
	jne	LBB0_19
## %bb.18:
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
LBB0_19:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	xorl	%edx, %edx
	cmpq	$0, 56(%r14)
	sete	%dl
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
	xorl	%edx, %edx
	cmpq	$0, 48(%r14)
	setne	%dl
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
	cmpq	$0, 48(%r14)
	je	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
LBB0_21:
	testb	%r12b, %r12b
	jne	LBB0_23
## %bb.22:
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
LBB0_23:
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	callq	_ff_mpeg4_stuffing
	movq	40(%r14), %rax
	movq	_AV_CODEC_FLAG_BITEXACT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_25
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	%rbx, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$434, %edx                      ## imm = 0x1B2
	callq	_put_bits
	movq	_LIBAVCODEC_IDENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avpriv_put_string              ## TAILCALL
LBB0_5:
	movl	$1, %r15d
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SIMPLE_VO_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_MPEG4_ENCODER,4,2       ## @CONFIG_MPEG4_ENCODER
	.comm	_ADV_SIMPLE_VO_TYPE,4,2         ## @ADV_SIMPLE_VO_TYPE
	.comm	_SIMPLE_VO_TYPE,4,2             ## @SIMPLE_VO_TYPE
	.comm	_FF_BUG_MS,4,2                  ## @FF_BUG_MS
	.comm	_FF_ASPECT_EXTENDED,4,2         ## @FF_ASPECT_EXTENDED
	.comm	_RECT_SHAPE,4,2                 ## @RECT_SHAPE
	.comm	_AV_CODEC_FLAG_BITEXACT,4,2     ## @AV_CODEC_FLAG_BITEXACT
	.comm	_LIBAVCODEC_IDENT,4,2           ## @LIBAVCODEC_IDENT
	.no_dead_strip	_mpeg4_encode_vol_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg4_encode_vol_header
_mpeg4_encode_vol_header:               ; @mpeg4_encode_vol_header
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _CONFIG_MPEG4_ENCODER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_MPEG4_ENCODER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_22
; %bb.1:
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0, #72]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w24, #0
	mov	w21, #5
Lloh3:
	adrp	x8, _ADV_SIMPLE_VO_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADV_SIMPLE_VO_TYPE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w8, [x19]
	mov	w9, #5
Lloh5:
	adrp	x10, _ADV_SIMPLE_VO_TYPE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ADV_SIMPLE_VO_TYPE@GOTPAGEOFF]
	mov	w11, #1
Lloh7:
	adrp	x12, _SIMPLE_VO_TYPE@GOTPAGE
Lloh8:
	ldr	x12, [x12, _SIMPLE_VO_TYPE@GOTPAGEOFF]
	cmp	w8, #0
	csel	w24, wzr, w11, ne
	csel	x8, x10, x12, ne
	csel	w21, w9, w11, ne
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	add	x20, x19, #36
	mov	x0, x20
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
	add	w2, w23, #256
	mov	x0, x20
	mov	w1, #16
	bl	_put_bits
	mov	x0, x20
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
	add	w2, w22, #288
	mov	x0, x20
	mov	w1, #16
	bl	_put_bits
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x22, _FF_BUG_MS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _FF_BUG_MS@GOTPAGEOFF]
	ldr	w9, [x22]
	mov	x0, x20
	mov	w1, #1
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w2, #0
	b	LBB0_7
LBB0_6:
	mov	w2, #1
	bl	_put_bits
	mov	x0, x20
	mov	w1, #4
	mov	x2, x21
	bl	_put_bits
	mov	x0, x20
	mov	w1, #3
	mov	w2, #1
LBB0_7:
	bl	_put_bits
	ldr	x8, [x19, #40]
	ldr	x0, [x8, #16]
	bl	_ff_h263_aspect_to_info
	mov	x2, x0
	str	w0, [x19, #12]
	mov	x0, x20
	mov	w1, #4
	bl	_put_bits
	ldr	w8, [x19, #12]
Lloh11:
	adrp	x9, _FF_ASPECT_EXTENDED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FF_ASPECT_EXTENDED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
	ldr	x0, [x19, #40]
	ldr	w2, [x0, #16]!
	mov	x1, x0
	ldr	w3, [x1, #4]!
	mov	w4, #255
	bl	_av_reduce
	ldr	x8, [x19, #40]
	ldr	w2, [x8, #16]
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x19, #40]
	ldr	w2, [x8, #20]
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
LBB0_9:
	ldr	w8, [x19, #8]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	mov	x0, x20
	mov	w1, #2
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [x19, #16]
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
LBB0_11:
	mov	w21, #1
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
Lloh14:
	adrp	x8, _RECT_SHAPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RECT_SHAPE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #2
	bl	_put_bits
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	x8, [x19, #40]
	ldr	w2, [x8, #12]
	mov	x0, x20
	mov	w1, #16
	bl	_put_bits
	ldr	w8, [x19, #20]
	cmp	w8, #0
	b.gt	LBB0_13
; %bb.12:
	str	w21, [x19, #20]
LBB0_13:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [x19, #24]
	mov	x0, x20
	mov	w1, #13
	bl	_put_bits
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [x19, #28]
	mov	x0, x20
	mov	w1, #13
	bl	_put_bits
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	x8, [x19, #64]
	cmp	x8, #0
	cset	w2, eq
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	cmp	w24, #0
	cinc	w1, w21, eq
	mov	x0, x20
	mov	w2, #0
	bl	_put_bits
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	ldr	w2, [x19, #32]
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_15
; %bb.14:
	ldr	x8, [x19, #40]
	ldr	w1, [x8, #8]
	mov	x0, x20
	bl	_ff_write_quant_matrix
	ldr	x8, [x19, #40]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_ff_write_quant_matrix
LBB0_15:
	tbnz	w24, #0, LBB0_17
; %bb.16:
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
LBB0_17:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	x8, [x19, #56]
	cmp	x8, #0
	cset	w2, eq
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	ldr	x8, [x19, #48]
	cmp	x8, #0
	cset	w2, ne
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_19
; %bb.18:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
LBB0_19:
	tbnz	w24, #0, LBB0_21
; %bb.20:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
LBB0_21:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	mov	x0, x20
	bl	_ff_mpeg4_stuffing
	ldr	x8, [x19, #40]
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _AV_CODEC_FLAG_BITEXACT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AV_CODEC_FLAG_BITEXACT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
LBB0_22:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	x0, x20
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
	mov	x0, x20
	mov	w1, #16
	mov	w2, #434
	bl	_put_bits
Lloh20:
	adrp	x8, _LIBAVCODEC_IDENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LIBAVCODEC_IDENT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_avpriv_put_string
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_MPEG4_ENCODER,4,2       ; @CONFIG_MPEG4_ENCODER
	.comm	_ADV_SIMPLE_VO_TYPE,4,2         ; @ADV_SIMPLE_VO_TYPE
	.comm	_SIMPLE_VO_TYPE,4,2             ; @SIMPLE_VO_TYPE
	.comm	_FF_BUG_MS,4,2                  ; @FF_BUG_MS
	.comm	_FF_ASPECT_EXTENDED,4,2         ; @FF_ASPECT_EXTENDED
	.comm	_RECT_SHAPE,4,2                 ; @RECT_SHAPE
	.comm	_AV_CODEC_FLAG_BITEXACT,4,2     ; @AV_CODEC_FLAG_BITEXACT
	.comm	_LIBAVCODEC_IDENT,4,2           ; @LIBAVCODEC_IDENT
	.no_dead_strip	_mpeg4_encode_vol_header
.subsections_via_symbols
