	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg4_decode_studio_slice_header ## -- Begin function ff_mpeg4_decode_studio_slice_header
	.p2align	4, 0x90
_ff_mpeg4_decode_studio_slice_header:   ## @ff_mpeg4_decode_studio_slice_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
	movq	%rdi, %r15
	leaq	48(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_get_bits_left
	cmpl	$32, %eax
	jl	LBB0_13
## %bb.1:
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_get_bits_long
	movq	_SLICE_START_CODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.2:
	movl	12(%r15), %edi
	imull	8(%r15), %edi
	callq	_av_log2
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_bits
	cmpq	16(%r15), %rax
	jge	LBB0_13
## %bb.3:
	leaq	8(%r15), %r14
	movslq	(%r14), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	cqto
	idivq	%rcx
	jmp	LBB0_6
LBB0_13:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	movq	%rdx, 40(%r15)
	movq	%rax, 32(%r15)
	movq	(%r15), %rax
	movq	_BIN_ONLY_SHAPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_mpeg_get_qscale
	movl	%eax, 24(%r15)
LBB0_8:
	movq	%rbx, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	movl	$6, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	callq	_skip_bits
	movq	%rbx, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movl	$8, %esi
	jmp	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_reset_studio_dc_predictors
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_SLICE_START_CODE,8,3           ## @SLICE_START_CODE
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_BIN_ONLY_SHAPE,8,3             ## @BIN_ONLY_SHAPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg4_decode_studio_slice_header ; -- Begin function ff_mpeg4_decode_studio_slice_header
	.p2align	2
_ff_mpeg4_decode_studio_slice_header:   ; @ff_mpeg4_decode_studio_slice_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	x21, x0
	add	x19, x0, #48
	mov	x0, x19
	bl	_get_bits_left
	cmp	w0, #32
	b.lt	LBB0_9
; %bb.1:
	mov	x0, x19
	mov	w1, #32
	bl	_get_bits_long
Lloh0:
	adrp	x8, _SLICE_START_CODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SLICE_START_CODE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.2:
	ldp	w8, w9, [x21, #8]
	mul	w0, w9, w8
	bl	_av_log2
	add	w1, w0, #1
	mov	x0, x19
	bl	_get_bits
	ldr	x8, [x21, #16]
	cmp	x0, x8
	b.ge	LBB0_9
; %bb.3:
	add	x20, x21, #8
	ldrsw	x8, [x21, #8]
	sdiv	x9, x0, x8
	msub	x8, x9, x8, x0
	stp	x9, x8, [x21, #32]
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _BIN_ONLY_SHAPE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BIN_ONLY_SHAPE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_mpeg_get_qscale
	str	w0, [x21, #24]
LBB0_5:
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_skip_bits1
	mov	x0, x19
	bl	_skip_bits1
	mov	x0, x19
	mov	w1, #6
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	bl	_skip_bits
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	w1, #8
	b	LBB0_7
LBB0_9:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_10:
	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
LBB0_11:
	mov	x0, x20
	bl	_reset_studio_dc_predictors
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SLICE_START_CODE,8,3           ; @SLICE_START_CODE
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_BIN_ONLY_SHAPE,8,3             ; @BIN_ONLY_SHAPE
.subsections_via_symbols
