	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_msmpeg4_encode_block        ## -- Begin function ff_msmpeg4_encode_block
	.p2align	4, 0x90
_ff_msmpeg4_encode_block:               ## @ff_msmpeg4_encode_block
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	cmpl	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movl	(%r12), %esi
	leaq	-156(%rbp), %rcx
	movl	%r14d, %edx
	movq	%rdi, %rbx
	callq	_msmpeg4_encode_dc
	movq	_ff_rl_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	cmpl	$3, %r14d
	jg	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_ff_rl_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rdi), %rcx
	shlq	$5, %rcx
	leaq	(%rcx,%rax), %r9
	addq	$96, %r9
	movl	20(%rdi), %ecx
	cmpl	$3, %ecx
	setge	%r8b
	leaq	56(%rdi), %rdx
	xorl	%r10d, %r10d
	jmp	LBB0_6
LBB0_3:
	movslq	16(%rbx), %rax
	addq	$3, %rax
LBB0_4:
	movq	%rbx, %rdi
	shlq	$5, %rax
	addq	%rax, %r9
	movl	20(%rbx), %ecx
	cmpl	$4, %ecx
	setge	%r8b
	leaq	64(%rbx), %rdx
	movl	$1, %r10d
LBB0_6:
	movq	(%rdx), %rbx
	andl	$-2, %ecx
	movq	24(%rdi), %rax
	movslq	%r14d, %rsi
	movl	(%rax,%rsi,4), %edx
	cmpl	$4, %ecx
	jne	LBB0_20
## %bb.7:
	testl	%edx, %edx
	jle	LBB0_20
## %bb.8:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	504(%rbx,%rdx,8), %rcx
	cmpl	$0, (%r12,%rcx,4)
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	496(%rbx,%rdx,8), %rcx
	cmpl	$0, (%r12,%rcx,4)
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	488(%rbx,%rdx,8), %rcx
	cmpl	$0, (%r12,%rcx,4)
	jne	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	60(%rdx), %ecx
	movq	(%rbx,%rcx,8), %rcx
	cmpl	$0, (%r12,%rcx,4)
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$-4, %rdx
	cmpl	$-64, %edx
	jne	LBB0_9
## %bb.14:
	movl	$-1, %edx
	jmp	LBB0_19
LBB0_16:
	addl	$63, %edx
	jmp	LBB0_19
LBB0_15:
	addl	$62, %edx
	jmp	LBB0_19
LBB0_17:
	addl	$61, %edx
	jmp	LBB0_19
LBB0_18:
	addl	$60, %edx
LBB0_19:
	movl	%edx, (%rax,%rsi,4)
LBB0_20:
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	cmpl	%edx, %r10d
	jle	LBB0_21
LBB0_45:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movzbl	%r8b, %eax
	negl	%eax
	leal	-1(%r10), %esi
	xorl	%ecx, %ecx
	cmpl	$4, %r14d
	setge	%cl
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	leaq	44(%rdi), %r13
	movl	%r10d, %r15d
	movl	%edx, %ecx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	incl	%edx
	movl	%eax, %ecx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	notl	%eax
	orq	$-2, %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_put_bits
	movl	%r15d, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
LBB0_44:                                ##   in Loop: Header=BB0_22 Depth=1
	incq	%r15
	cmpq	%r15, %rdx
	je	LBB0_45
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx,%r15,8), %rax
	movl	(%r12,%rax,4), %r9d
	testl	%r9d, %r9d
	je	LBB0_44
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	%esi, -120(%rbp)                ## 4-byte Spill
	movl	%esi, %ecx
	negl	%ecx
	xorl	%esi, %esi
	cmpq	%r15, -112(%rbp)                ## 8-byte Folded Reload
	sete	%r10b
	movl	%r9d, %r8d
	negl	%r8d
	cmovsl	%r9d, %r8d
	leaq	(%r15,%rcx), %r13
	decq	%r13
	movq	48(%rdi), %rcx
	movq	_MAX_LEVEL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r8d
	jg	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_MAX_RUN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r13d
	jg	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	xorl	%edx, %edx
	cmpq	%r15, -112(%rbp)                ## 8-byte Folded Reload
	sete	%dl
	movslq	(%rdi), %rbx
	movq	(%rcx,%rbx,8), %rax
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	(%rax,%rbx,8), %rax
	movl	%r8d, %ebx
	movq	(%rax,%rbx,8), %rax
	movslq	%r13d, %rbx
	movq	(%rax,%rbx,8), %rax
	incl	(%rax,%rdx,4)
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	movb	%r10b, %sil
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%r9d, %r14d
	shrl	$31, %r14d
	movslq	(%rdi), %rax
	movq	(%rcx,%rax,8), %rax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	320(%rax), %rax
	movq	504(%rax), %rax
	incl	(%rax)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	%r8d, %ecx
	movl	%r8d, -124(%rbp)                ## 4-byte Spill
	movl	%r9d, -116(%rbp)                ## 4-byte Spill
	callq	_get_rl_index
	movq	(%r12), %rcx
	movslq	%eax, %rbx
	movq	(%rcx,%rbx,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_put_bits
	cmpl	8(%r12), %ebx
	jne	LBB0_43
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	cmpq	%r15, -112(%rbp)                ## 8-byte Folded Reload
	sete	%bl
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movslq	%esi, %rdx
	movl	-124(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, %r14d
	subl	(%rax,%rdx,4), %ecx
	jle	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%rsi, %rdx
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_get_rl_index
	cmpl	8(%r12), %eax
	jne	LBB0_42
LBB0_29:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	_MAX_LEVEL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movl	-120(%rbp), %esi                ## 4-byte Reload
	jg	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	%r14d, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movl	%r14d, %edx
	addl	(%rax,%rdx,4), %esi
	movl	%esi, %r12d
	negl	%r12d
	movq	-152(%rbp), %rax                ## 8-byte Reload
	addq	%r15, %rax
	addq	%rax, %r12
	testl	%r12d, %r12d
	js	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-144(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r15), %edx
	subl	%esi, %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_get_rl_index
	movl	%r14d, %r8d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$4, 20(%rcx)
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	8(%rcx), %eax
	je	LBB0_34
LBB0_33:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r8d, %ecx
	callq	_get_rl_index
	cmpl	8(%rbx), %eax
	jne	LBB0_40
LBB0_34:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$1, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_put_bits
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	20(%rcx), %eax
	cmpl	$4, %eax
	jl	LBB0_38
## %bb.35:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpl	$0, 32(%rcx)
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_22 Depth=1
	movabsq	$25769803784, %rdx              ## imm = 0x600000008
	movq	%rdx, 32(%rcx)
	cmpl	$6, %eax
	movl	$7, %esi
	sbbl	$0, %esi
	cmpl	$8, 40(%rcx)
	movl	$8, %eax
	cmovgel	%eax, %esi
	movq	%r13, %rdi
	movl	$3, %edx
	callq	_put_bits
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_37:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	36(%rcx), %esi
	movq	%r13, %rdi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$1, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_put_bits
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_put_bits
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	jmp	LBB0_39
LBB0_42:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	movl	%eax, %ebx
	callq	_put_bits
	movq	(%r12), %rax
	movslq	%ebx, %rcx
	jmp	LBB0_41
LBB0_38:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%r13, %rdi
	movl	$6, %esi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	-116(%rbp), %edx                ## 4-byte Reload
	callq	_put_sbits
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_39
LBB0_40:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	%eax, %r12d
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	%r12d, %rcx
LBB0_41:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r13, %rdi
	callq	_put_bits
	movq	%r13, %rdi
	movl	$1, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_put_bits
	movl	%r15d, %esi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_39:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_44
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_rl_table,8,3                ## @ff_rl_table
	.comm	_MAX_LEVEL,4,2                  ## @MAX_LEVEL
	.comm	_MAX_RUN,4,2                    ## @MAX_RUN
.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 ff_msmpeg4_encode_block
lCPI0_0:
	.long	8                               ; 0x8
	.long	6                               ; 0x6
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_msmpeg4_encode_block
	.p2align	2
_ff_msmpeg4_encode_block:               ; @ff_msmpeg4_encode_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	d9, d8, [sp, #96]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x22, x2
	mov	x20, x1
	mov	x28, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x19, _ff_rl_table@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ff_rl_table@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w1, [x20]
	add	x3, sp, #92
	mov	x0, x28
	mov	x2, x22
	bl	_msmpeg4_encode_dc
	ldr	x8, [x19]
	cmp	w22, #3
	b.gt	LBB0_4
; %bb.2:
	ldr	x9, [x28, #8]
	b	LBB0_5
LBB0_3:
	ldr	x9, [x19]
	ldr	x10, [x28, #8]
	add	x9, x9, x10, lsl #5
	add	x23, x9, #96
	ldr	w10, [x28, #20]
	cmp	w10, #2
	cset	w9, gt
	add	x11, x28, #56
	b	LBB0_6
LBB0_4:
	ldrsw	x9, [x28, #16]
	add	x9, x9, #3
LBB0_5:
	add	x23, x8, x9, lsl #5
	ldr	w10, [x28, #20]
	cmp	w10, #3
	cset	w9, gt
	add	x11, x28, #64
	mov	w8, #1
LBB0_6:
	ldr	x14, [x11]
	and	w12, w10, #0xfffffffe
	ldr	x11, [x28, #24]
	ldr	w10, [x11, w22, sxtw #2]
	cmp	w12, #4
	ccmp	w10, #1, #8, eq
	b.lt	LBB0_11
; %bb.7:
	sxtw	x12, w22
	mov	w10, #63
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x14, w10, uxtw #3]
	ldr	w13, [x20, x13, lsl #2]
	cbnz	w13, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w10, w10, #1
	cmn	w10, #1
	b.ne	LBB0_8
LBB0_10:
	str	w10, [x11, x12, lsl #2]
LBB0_11:
	cmp	w8, w10
	b.le	LBB0_13
LBB0_12:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_13:
	sbfx	w9, w9, #0, #1
	sub	w12, w8, #1
	cmp	w22, #3
	cset	w11, gt
	str	x11, [sp, #56]                  ; 8-byte Folded Spill
	add	x11, x28, #44
	str	x11, [sp, #72]                  ; 8-byte Folded Spill
	add	w11, w10, #1
	str	x11, [sp, #64]                  ; 8-byte Folded Spill
	str	x9, [sp]                        ; 8-byte Folded Spill
	mvn	w9, w9
	orr	x9, x9, #0xfffffffffffffffe
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
Lloh2:
	adrp	x9, lCPI0_0@PAGE
Lloh3:
	ldr	d8, [x9, lCPI0_0@PAGEOFF]
	mov	w19, w8
	mov	w8, w10
	str	x8, [sp, #80]                   ; 8-byte Folded Spill
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	stp	x14, x28, [sp, #32]             ; 16-byte Folded Spill
	ldr	x21, [sp, #72]                  ; 8-byte Folded Reload
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x21
	mov	w1, #1
	mov	x2, x22
	bl	_put_bits
	mov	x12, x19
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x28, [sp, #40]                  ; 8-byte Folded Reload
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x14, [sp, #32]                  ; 8-byte Folded Reload
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x19, x19, #1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	cmp	x8, x19
	b.eq	LBB0_12
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x14, x19, lsl #3]
	sbfiz	x8, x8, #2, #32
	ldr	w26, [x20, x8]
	cbz	w26, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	str	w12, [sp, #52]                  ; 4-byte Folded Spill
	neg	w8, w12
	add	x8, x19, x8
	sub	x25, x8, #1
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	cmp	x8, x19
	cset	w27, eq
	cmp	w26, #0
	cneg	w24, w26, mi
Lloh4:
	adrp	x8, _MAX_LEVEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_LEVEL@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x8]
Lloh7:
	adrp	x8, _MAX_RUN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_RUN@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x8]
	ldr	x8, [x28, #48]
	cmp	w24, w9
	ccmp	w25, w10, #0, le
	b.gt	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	cmp	x9, x19
	cset	w9, eq
	ldrsw	x10, [x28]
	ldr	x10, [x8, x10, lsl #3]
	ldr	x11, [sp, #56]                  ; 8-byte Folded Reload
	ldr	x10, [x10, x11, lsl #3]
	ldr	x10, [x10, w24, uxtw #3]
	ldr	x10, [x10, w25, sxtw #3]
	lsl	x9, x9, #2
	ldr	w11, [x10, x9]
	add	w11, w11, #1
	str	w11, [x10, x9]
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	ldrsw	x9, [x28]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8, x9, lsl #3]
	lsr	w22, w26, #31
	ldr	x8, [x8, #320]
	ldr	x8, [x8, #504]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x23
	mov	x1, x27
	mov	x2, x25
	mov	x3, x24
	bl	_get_rl_index
	mov	x28, x0
	ldr	x8, [x23]
	ldr	x8, [x8, w0, sxtw #3]
	ldp	w2, w1, [x8]
	mov	x0, x21
	bl	_put_bits
	ldr	w8, [x23, #8]
	cmp	w28, w8
	b.ne	LBB0_14
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	str	w22, [sp, #28]                  ; 4-byte Folded Spill
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	cmp	x8, x19
	cset	w20, eq
	ldr	x8, [x23, #16]
	ldr	x8, [x8, w20, uxtw #3]
	ldr	w8, [x8, w25, sxtw #2]
	sub	w3, w24, w8
	cmp	w3, #1
	b.lt	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x23
	mov	x1, x27
	mov	x2, x25
	bl	_get_rl_index
	ldr	w8, [x23, #8]
	cmp	w0, w8
	b.ne	LBB0_33
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
Lloh10:
	adrp	x8, _MAX_LEVEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_LEVEL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w24, w8
	b.gt	LBB0_29
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x23, #24]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w8, [x8, w24, uxtw #2]
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	add	w8, w9, w8
	neg	w9, w8
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	x10, x10, x19
	add	x28, x10, x9
	tbnz	w28, #31, LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	add	w9, w9, w19
	sub	w2, w9, w8
	mov	x0, x23
	mov	x1, x27
	mov	x3, x24
	bl	_get_rl_index
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #20]
	cmp	w8, #4
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x23, #8]
	cmp	w0, w8
	b.eq	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x23
	mov	x1, x27
	mov	x2, x28
	mov	x3, x24
	bl	_get_rl_index
	ldr	w8, [x23, #8]
	cmp	w0, w8
	b.ne	LBB0_33
LBB0_29:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x22, [sp, #72]                  ; 8-byte Folded Reload
	mov	x0, x22
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	mov	x0, x22
	mov	w1, #1
	mov	x2, x27
	bl	_put_bits
	ldr	x28, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w8, [x28, #20]
	cmp	w8, #4
	b.lt	LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w9, [x28, #32]
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	cbnz	w9, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_18 Depth=1
	str	d8, [x28, #32]
	ldr	w9, [x28, #40]
	cmp	w8, #6
	mov	w8, #6
	cinc	w8, w8, hs
	cmp	w9, #8
	mov	w9, #8
	csel	w1, w8, w9, lt
	mov	x0, x22
	mov	w2, #3
	bl	_put_bits
LBB0_32:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w1, [x28, #36]
	mov	x0, x22
	mov	x2, x25
	bl	_put_bits
	mov	x0, x22
	mov	w1, #1
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_put_bits
	ldr	w1, [x28, #32]
	mov	x0, x22
	mov	x2, x24
	bl	_put_bits
	mov	x12, x19
	b	LBB0_16
LBB0_33:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x28, x0
	ldr	x20, [sp, #72]                  ; 8-byte Folded Reload
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	x8, [x23]
	ldr	x8, [x8, w28, sxtw #3]
	ldp	w2, w1, [x8]
	mov	x0, x20
	bl	_put_bits
	mov	x0, x20
	mov	w1, #1
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_put_bits
	mov	x12, x19
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_15
LBB0_34:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
	mov	w1, #6
	mov	x2, x25
	bl	_put_bits
	mov	x0, x22
	mov	w1, #8
	mov	x2, x26
	bl	_put_sbits
	mov	x12, x19
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_rl_table,8,3                ; @ff_rl_table
	.comm	_MAX_LEVEL,4,2                  ; @MAX_LEVEL
	.comm	_MAX_RUN,4,2                    ; @MAX_RUN
.subsections_via_symbols
