	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_studio_vop_header
_decode_studio_vop_header:              ## @decode_studio_vop_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	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_get_bits_left
	cmpl	$33, %eax
	jl	LBB0_9
## %bb.1:
	leaq	8(%r13), %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%r13)
	movq	_mpeg4_decode_studio_mb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r13)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_decode_smpte_tc
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %r12
	addq	(%r12), %rax
	movq	%rax, 8(%r13)
	movq	%r15, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_skip_bits1
	movq	%r15, %rdi
	callq	_skip_bits1
	movq	%r15, %rdi
	callq	_get_bits1
	xorl	$1, %eax
	movl	%eax, 16(%r13)
LBB0_3:
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_reset_studio_dc_predictors
LBB0_6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movq	_BIN_ONLY_SHAPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_get_bits1
	movl	%eax, 20(%r13)
	movq	%r15, %rdi
	callq	_get_bits1
	movl	%eax, 24(%r13)
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%rax, 64(%r13)
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%rax, 56(%r13)
	movq	%r15, %rdi
	callq	_get_bits1
	movl	%eax, 28(%r13)
LBB0_8:
	leaq	48(%r13), %rsi
	cmpl	$0, 20(%r13)
	movl	36(%r13), %edi
	movq	_ff_alternate_vertical_scan@GOTPCREL(%rip), %r12
	movq	_ff_zigzag_direct@GOTPCREL(%rip), %rbx
	cmovneq	%r12, %rbx
	movl	(%rbx), %edx
	movq	_ff_alternate_horizontal_scan@GOTPCREL(%rip), %r14
	cmovneq	%r12, %r14
	callq	_ff_init_scantable
	movl	36(%r13), %edi
	movl	(%rbx), %edx
	leaq	44(%r13), %rsi
	callq	_ff_init_scantable
	movl	36(%r13), %edi
	leaq	40(%r13), %rsi
	movl	(%r14), %edx
	callq	_ff_init_scantable
	movl	36(%r13), %edi
	addq	$32, %r13
	movl	(%r12), %edx
	movq	%r13, %rsi
	callq	_ff_init_scantable
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mpeg4_load_default_matrices
	movq	%r15, %rdi
	callq	_next_start_code_studio
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_extension_and_user_data
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mpeg4_decode_studio_mb,4,2     ## @mpeg4_decode_studio_mb
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_BIN_ONLY_SHAPE,8,3             ## @BIN_ONLY_SHAPE
	.comm	_ff_alternate_vertical_scan,4,2 ## @ff_alternate_vertical_scan
	.comm	_ff_zigzag_direct,4,2           ## @ff_zigzag_direct
	.comm	_ff_alternate_horizontal_scan,4,2 ## @ff_alternate_horizontal_scan
	.no_dead_strip	_decode_studio_vop_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_studio_vop_header
_decode_studio_vop_header:              ; @decode_studio_vop_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
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_get_bits_left
	cmp	w0, #33
	b.lt	LBB0_9
; %bb.1:
	add	x20, x21, #8
	stp	xzr, xzr, [x21, #80]
Lloh0:
	adrp	x8, _mpeg4_decode_studio_mb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mpeg4_decode_studio_mb@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #72]
	mov	x0, x21
	mov	x1, x19
	bl	_decode_smpte_tc
	mov	x0, x19
	mov	w1, #10
	bl	_skip_bits
	mov	x0, x19
	mov	w1, #2
	bl	_skip_bits
	mov	x0, x19
	mov	w1, #2
	bl	_get_bits
Lloh3:
	adrp	x22, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x8, x8, x0
	str	x8, [x21, #8]
	mov	x0, x19
	bl	_get_bits1
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_skip_bits1
	mov	x0, x19
	bl	_skip_bits1
	mov	x0, x19
	bl	_get_bits1
	eor	w8, w0, #0x1
	str	w8, [x21, #16]
LBB0_3:
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_get_bits1
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_reset_studio_dc_predictors
LBB0_6:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _BIN_ONLY_SHAPE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BIN_ONLY_SHAPE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_get_bits1
	str	w0, [x21, #20]
	mov	x0, x19
	bl	_get_bits1
	str	w0, [x21, #24]
	mov	x0, x19
	mov	w1, #2
	bl	_get_bits
	str	x0, [x21, #64]
	mov	x0, x19
	mov	w1, #2
	bl	_get_bits
	str	x0, [x21, #56]
	mov	x0, x19
	bl	_get_bits1
	str	w0, [x21, #28]
LBB0_8:
	ldr	w8, [x21, #20]
	ldr	w0, [x21, #36]
Lloh8:
	adrp	x22, _ff_alternate_vertical_scan@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ff_alternate_vertical_scan@GOTPAGEOFF]
	add	x1, x21, #48
Lloh10:
	adrp	x9, _ff_zigzag_direct@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ff_zigzag_direct@GOTPAGEOFF]
	cmp	w8, #0
	csel	x23, x9, x22, eq
	ldr	w2, [x23]
Lloh12:
	adrp	x8, _ff_alternate_horizontal_scan@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ff_alternate_horizontal_scan@GOTPAGEOFF]
	csel	x24, x8, x22, eq
	bl	_ff_init_scantable
	ldr	w0, [x21, #36]
	add	x1, x21, #44
	ldr	w2, [x23]
	bl	_ff_init_scantable
	ldr	w0, [x21, #36]
	add	x1, x21, #40
	ldr	w2, [x24]
	bl	_ff_init_scantable
	ldr	w0, [x21, #36]
	add	x1, x21, #32
	ldr	w2, [x22]
	bl	_ff_init_scantable
	mov	x0, x20
	bl	_mpeg4_load_default_matrices
	mov	x0, x19
	bl	_next_start_code_studio
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	bl	_extension_and_user_data
LBB0_9:
	mov	w0, #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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_mpeg4_decode_studio_mb,4,2     ; @mpeg4_decode_studio_mb
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_BIN_ONLY_SHAPE,8,3             ; @BIN_ONLY_SHAPE
	.comm	_ff_alternate_vertical_scan,4,2 ; @ff_alternate_vertical_scan
	.comm	_ff_zigzag_direct,4,2           ; @ff_zigzag_direct
	.comm	_ff_alternate_horizontal_scan,4,2 ; @ff_alternate_horizontal_scan
	.no_dead_strip	_decode_studio_vop_header
.subsections_via_symbols
