	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg4_decode_studio_mb
_mpeg4_decode_studio_mb:                ## @mpeg4_decode_studio_mb
	.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	%rdi, %r15
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%rdi)
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_skip_bits1
	movq	%r15, %rdi
	callq	_mpeg_get_qscale
	movl	%eax, 48(%r15)
LBB0_3:
	movq	_mpeg4_block_count@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	8(%r15), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jle	LBB0_10
## %bb.4:
	xorl	%ebx, %ebx
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mpeg4_decode_studio_block
	testq	%rax, %rax
	js	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	(%r13), %rax
	movq	8(%r15), %rcx
	movslq	(%rax,%rcx,4), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_10
LBB0_7:
	movl	32(%r15), %edi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rsi
	callq	_check_marker
	movq	%r14, %rdi
	callq	_get_bits1
	xorl	%ecx, %ecx
	negq	%rax
	sbbl	%ecx, %ecx
	orl	$1, %ecx
	movl	%ecx, (%r15)
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_mpeg4_decode_dpcm_macroblock
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	js	LBB0_17
## %bb.8:
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_mpeg4_decode_dpcm_macroblock
	testq	%rax, %rax
	js	LBB0_17
## %bb.9:
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movl	8(%rax), %esi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_mpeg4_decode_dpcm_macroblock
	testq	%rax, %rax
	js	LBB0_17
LBB0_10:
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	$24, %eax
	jb	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	movl	$23, %esi
	callq	_show_bits
	testq	%rax, %rax
	je	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	callq	_get_bits_left
	movq	_SLICE_END@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	$7, %eax
	ja	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_get_bits_left
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_show_bits
	testq	%rax, %rax
	je	LBB0_17
LBB0_16:
	movq	_SLICE_OK@GOTPCREL(%rip), %r12
	jmp	LBB0_17
LBB0_12:
	movq	%r14, %rdi
	callq	_next_start_code_studio
	movq	_SLICE_END@GOTPCREL(%rip), %r12
LBB0_17:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mpeg4_block_count,8,3          ## @mpeg4_block_count
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPCM block start"

	.comm	_SLICE_END,4,2                  ## @SLICE_END
	.comm	_SLICE_OK,4,2                   ## @SLICE_OK
	.no_dead_strip	_mpeg4_decode_studio_mb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mpeg4_decode_studio_mb
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mpeg4_decode_studio_mb:                ; @mpeg4_decode_studio_mb
	.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	x20, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	mov	x19, x0
	str	d0, [x19], #16
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_get_bits1
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_skip_bits1
	mov	x0, x20
	bl	_mpeg_get_qscale
	str	w0, [x20, #48]
LBB0_3:
Lloh2:
	adrp	x23, _mpeg4_block_count@GOTPAGE
Lloh3:
	ldr	x23, [x23, _mpeg4_block_count@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x20, #8]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x21, #0
Lloh4:
	adrp	x22, _AVERROR_INVALIDDATA@GOTPAGE
Lloh5:
	ldr	x22, [x22, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x20
	mov	x2, x21
	bl	_mpeg4_decode_studio_block
	tbnz	x0, #63, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	x8, [x23]
	ldr	x9, [x20, #8]
	ldrsw	x8, [x8, x9, lsl #2]
	cmp	x21, x8
	b.lt	LBB0_5
	b	LBB0_10
LBB0_7:
	ldr	w0, [x20, #32]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	bl	_check_marker
	mov	x0, x19
	bl	_get_bits1
	cmp	x0, #0
	mov	w8, #1
	cneg	w8, w8, ne
	str	w8, [x20]
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_mpeg4_decode_dpcm_macroblock
	tbnz	x0, #63, LBB0_16
; %bb.8:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
	mov	x0, x20
	mov	w2, #1
	bl	_mpeg4_decode_dpcm_macroblock
	tbnz	x0, #63, LBB0_16
; %bb.9:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	ldr	w1, [x8, #8]
	mov	x0, x20
	mov	w2, #2
	bl	_mpeg4_decode_dpcm_macroblock
	tbnz	x0, #63, LBB0_16
LBB0_10:
	mov	x0, x19
	bl	_get_bits_left
	cmp	w0, #24
	b.lo	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #23
	bl	_show_bits
	cbz	x0, LBB0_17
LBB0_12:
	mov	x0, x19
	bl	_get_bits_left
	cbz	w0, LBB0_18
; %bb.13:
	mov	x0, x19
	bl	_get_bits_left
	cmp	w0, #7
	b.hi	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_get_bits_left
	mov	x1, x0
	mov	x0, x19
	bl	_show_bits
	cbz	x0, LBB0_18
LBB0_15:
Lloh8:
	adrp	x22, _SLICE_OK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SLICE_OK@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:
Lloh10:
	adrp	x22, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x22, [x22, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
	mov	x0, x19
	bl	_next_start_code_studio
LBB0_18:
Lloh12:
	adrp	x22, _SLICE_END@GOTPAGE
Lloh13:
	ldr	x22, [x22, _SLICE_END@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x22]
	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 AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_mpeg4_block_count,8,3          ; @mpeg4_block_count
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPCM block start"

	.comm	_SLICE_END,4,2                  ; @SLICE_END
	.comm	_SLICE_OK,4,2                   ; @SLICE_OK
	.no_dead_strip	_mpeg4_decode_studio_mb
.subsections_via_symbols
