	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg4_get_block_length
_mpeg4_get_block_length:                ## @mpeg4_get_block_length
	.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	%r8, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movslq	%edx, %rsi
	movl	(%rax,%rsi,4), %r12d
	cmpq	$0, 8(%rdi)
	je	LBB0_3
## %bb.1:
	movl	%ecx, %edi
	movl	%edx, %esi
	callq	_mpeg4_get_dc_length
	movq	%rax, %r13
	testl	%r12d, %r12d
	jle	LBB0_16
## %bb.2:
	movl	$1, %eax
	movq	_uni_mpeg4_intra_rl_len@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	xorl	%r13d, %r13d
	testl	%r12d, %r12d
	js	LBB0_16
## %bb.4:
	movq	_uni_mpeg4_inter_rl_len@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
LBB0_5:
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leal	-1(%rax), %esi
	movl	%eax, %ebx
	cmpl	%r12d, %eax
	jb	LBB0_6
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	notl	%esi
	addl	%ebx, %esi
	xorl	%edi, %edi
	callq	_UNI_MPEG4_ENC_INDEX
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,8), %eax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %esi
	addl	%eax, %r13d
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rax
	movl	(%r15,%rax,4), %edx
	testl	%edx, %edx
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addl	$64, %edx
	cmpl	$128, %edx
	jb	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$30, %eax
	jmp	LBB0_10
LBB0_12:
	movq	%r12, %rbx
	movl	%r12d, %eax
LBB0_13:
	movq	(%r14,%rbx,8), %rcx
	movl	(%r15,%rcx,4), %edx
	addl	$64, %edx
	movl	$30, %ecx
	cmpl	$127, %edx
	ja	LBB0_15
## %bb.14:
	notl	%esi
	addl	%esi, %eax
	movl	$1, %edi
	movl	%eax, %esi
	callq	_UNI_MPEG4_ENC_INDEX
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,8), %ecx
LBB0_15:
	addl	%r13d, %ecx
	movl	%ecx, %r13d
LBB0_16:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uni_mpeg4_intra_rl_len,8,3     ## @uni_mpeg4_intra_rl_len
	.comm	_uni_mpeg4_inter_rl_len,8,3     ## @uni_mpeg4_inter_rl_len
	.no_dead_strip	_mpeg4_get_block_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg4_get_block_length
_mpeg4_get_block_length:                ; @mpeg4_get_block_length
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x21, x1
	ldp	x8, x9, [x0]
	ldr	w22, [x8, w2, sxtw #2]
	cbz	x9, LBB0_3
; %bb.1:
	mov	x0, x3
	mov	x1, x2
	bl	_mpeg4_get_dc_length
	mov	x19, x0
	cmp	w22, #1
	b.lt	LBB0_18
; %bb.2:
	mov	w9, #1
Lloh0:
	adrp	x8, _uni_mpeg4_intra_rl_len@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uni_mpeg4_intra_rl_len@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	w19, #0
	tbnz	w22, #31, LBB0_18
; %bb.4:
Lloh2:
	adrp	x8, _uni_mpeg4_inter_rl_len@GOTPAGE
Lloh3:
	ldr	x8, [x8, _uni_mpeg4_inter_rl_len@GOTPAGEOFF]
	mov	x9, x19
LBB0_5:
	ldr	x23, [x8]
	sub	w8, w9, #1
	mov	w24, w9
	cmp	w9, w22
	b.hs	LBB0_14
; %bb.6:
	add	x25, x20, x24, lsl #3
	sub	x26, x22, x24
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	mvn	w8, w8
	add	w1, w8, w24
	mov	w0, #0
	bl	_UNI_MPEG4_ENC_INDEX
	ldr	x9, [x23, w0, sxtw #3]
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x8, x24
	add	w19, w9, w19
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	add	x25, x25, #8
	subs	x26, x26, #1
	b.eq	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	ldr	w9, [x21, x9, lsl #2]
	cbz	w9, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w2, w9, #64
	cmp	w2, #127
	b.ls	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w9, #30
	b	LBB0_8
LBB0_13:
	mov	x24, x22
	mov	x9, x22
LBB0_14:
	ldr	x10, [x20, x24, lsl #3]
	ldr	w10, [x21, x10, lsl #2]
	add	w2, w10, #64
	cmp	w2, #127
	b.hi	LBB0_16
; %bb.15:
	mvn	w8, w8
	add	w1, w9, w8
	mov	w0, #1
	bl	_UNI_MPEG4_ENC_INDEX
	ldr	x8, [x23, w0, sxtw #3]
	b	LBB0_17
LBB0_16:
	mov	w8, #30
LBB0_17:
	add	w19, w8, w19
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_uni_mpeg4_intra_rl_len,8,3     ; @uni_mpeg4_intra_rl_len
	.comm	_uni_mpeg4_inter_rl_len,8,3     ; @uni_mpeg4_inter_rl_len
	.no_dead_strip	_mpeg4_get_block_length
.subsections_via_symbols
