	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_lt_rps
_decode_lt_rps:                         ## @decode_lt_rps
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movl	(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$0, (%rsi)
	cmpl	$0, 24(%r12)
	je	LBB0_18
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	4(%r12), %r15d
	movq	%rdx, %rdi
	callq	_get_ue_golomb_long
	movq	%rax, %r13
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.9:
	movq	%r14, %rdi
	callq	_get_ue_golomb_long
	cmpl	%r13d, 4(%r12)
	jae	LBB0_3
	jmp	LBB0_10
LBB0_2:
	movq	%r13, %rax
	xorl	%r13d, %r13d
LBB0_3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	movl	%r13d, %r13d
	addq	%r13, %r15
	movq	8(%rbx), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpq	%rax, %r15
	jle	LBB0_4
LBB0_10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%r13d, %eax
	movl	%eax, (%rbx)
	je	LBB0_18
## %bb.5:
	movq	%r13, %rdi
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_get_ue_golomb_long
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%r15, %rdi
	movl	$0, %ecx
	cmovel	%ecx, %r13d
	testq	%r15, %r15
	cmovel	%ecx, %r13d
	addl	%eax, %r13d
	movl	%r13d, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	8(%rbx), %rcx
	movl	(%rcx,%r15,4), %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addl	(%rsi), %edx
	addl	4(%rsi), %eax
	subl	%eax, %edx
	movl	%edx, (%rcx,%r15,4)
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movl	(%rbx), %eax
	cmpq	%rax, %r15
	jae	LBB0_18
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, %r15
	jae	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r12), %edi
	cmpl	$2, %edi
	jb	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	callq	_av_ceil_log2
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_get_bits
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_get_bits
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
	movq	%r14, %rdi
	callq	_get_bits1
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r12), %rcx
	movl	(%rcx,%rax,4), %ecx
	movq	8(%rbx), %rdx
	movl	%ecx, (%rdx,%r15,4)
	movq	16(%r12), %rcx
	movq	(%rcx,%rax,8), %rax
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_lt_rps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_lt_rps
_decode_lt_rps:                         ; @decode_lt_rps
	.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
	ldr	x24, [x0, #8]
	ldr	w25, [x24]
	str	wzr, [x1]
	ldr	w8, [x24, #24]
	cbz	w8, LBB0_18
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w22, [x24, #4]
	mov	x0, x2
	bl	_get_ue_golomb_long
	mov	x23, x0
	cbz	w22, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_get_ue_golomb_long
	ldr	w8, [x24, #4]
	cmp	w8, w23
	b.lo	LBB0_6
; %bb.3:
	mov	x22, x0
	b	LBB0_5
LBB0_4:
	mov	x22, x23
	mov	w23, #0
LBB0_5:
	mov	w23, w23
	add	x26, x23, w22, uxtw
	ldr	x0, [x20, #8]
	bl	_FF_ARRAY_ELEMS
	cmp	x26, x0
	b.le	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_19
LBB0_7:
	adds	w8, w23, w22
	str	w8, [x20]
	b.eq	LBB0_18
; %bb.8:
	mov	x22, #0
	mov	w26, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	ldr	w8, [x20]
	cmp	x22, x8
	b.hs	LBB0_18
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	x22, x23
	b.hs	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x24, #4]
	cmp	w0, #2
	b.lo	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_av_ceil_log2
	mov	x1, x0
	mov	x0, x19
	bl	_get_bits
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_get_bits
	ldr	x8, [x20, #8]
	str	w0, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_get_bits1
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, #0
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	ldp	x8, x9, [x24, #8]
	ldr	w8, [x8, x0, lsl #2]
	ldr	x10, [x20, #8]
	str	w8, [x10, x22, lsl #2]
	ldr	x0, [x9, x0, lsl #3]
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #16]
	str	x0, [x8, x22, lsl #3]
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	bl	_get_ue_golomb_long
	cmp	x23, x22
	ccmp	x22, #0, #4, ne
	csel	w8, wzr, w26, eq
	add	w26, w8, w0
	lsl	w8, w26, w25
	ldr	x9, [x20, #8]
	lsl	x10, x22, #2
	ldr	w11, [x9, x10]
	ldp	w13, w12, [x21]
	add	w11, w11, w13
	add	w8, w12, w8
	sub	w8, w11, w8
	str	w8, [x9, x10]
	b	LBB0_9
LBB0_18:
	mov	w0, #0
LBB0_19:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_lt_rps
.subsections_via_symbols
