	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_residual_inter
_decode_residual_inter:                 ## @decode_residual_inter
	.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, %rbx
	leaq	32(%rdi), %r14
	movq	%r14, %rdi
	callq	_get_ue_golomb
	cmpl	$64, %eax
	jb	LBB0_2
## %bb.1:
	movl	40(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_2:
	movq	_cbp_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rax
	movl	4(%rax), %eax
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	cmpl	$0, 36(%rbx)
	je	LBB0_4
## %bb.5:
	testb	$1, %al
	jne	LBB0_6
LBB0_7:
	testb	$2, %al
	jne	LBB0_8
LBB0_9:
	testb	$4, %al
	jne	LBB0_10
LBB0_11:
	testb	$8, %al
	je	LBB0_13
LBB0_12:
	movq	_inter_dec@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%rbx), %rax
	movq	24(%rax), %r9
	addq	24(%rbx), %r9
	movl	4(%rbx), %r8d
	movl	8(%rbx), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_decode_residual_block
LBB0_13:
	movq	%rbx, %rdi
	callq	_decode_residual_chroma
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	4(%rbx), %r15d
	movq	%r14, %rdi
	callq	_get_se_golomb
	addl	%r15d, %eax
	andl	$63, %eax
	movl	%eax, 4(%rbx)
	movl	(%rbx), %eax
	testb	$1, %al
	je	LBB0_7
LBB0_6:
	movq	_inter_dec@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%rbx), %rax
	movq	(%rax), %r9
	addq	24(%rbx), %r9
	movl	4(%rbx), %r8d
	movl	8(%rbx), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_decode_residual_block
	movl	(%rbx), %eax
	testb	$2, %al
	je	LBB0_9
LBB0_8:
	movq	_inter_dec@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%rbx), %rax
	movq	8(%rax), %r9
	addq	24(%rbx), %r9
	movl	4(%rbx), %r8d
	movl	8(%rbx), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_decode_residual_block
	movl	(%rbx), %eax
	testb	$4, %al
	je	LBB0_11
LBB0_10:
	movq	_inter_dec@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%rbx), %rax
	movq	16(%rax), %r9
	addq	24(%rbx), %r9
	movl	4(%rbx), %r8d
	movl	8(%rbx), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_decode_residual_block
	movl	(%rbx), %eax
	testb	$8, %al
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal inter cbp %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_cbp_tab,8,3                    ## @cbp_tab
	.comm	_inter_dec,4,2                  ## @inter_dec
	.no_dead_strip	_decode_residual_inter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_residual_inter
_decode_residual_inter:                 ; @decode_residual_inter
	.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	x19, x0
	add	x20, x0, #32
	mov	x0, x20
	bl	_get_ue_golomb
	mov	x3, x0
	cmp	w0, #64
	b.lo	LBB0_2
; %bb.1:
	ldr	w0, [x19, #40]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_2:
Lloh8:
	adrp	x8, _cbp_tab@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cbp_tab@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x8, w3, uxtw #3]
	ldr	w8, [x8, #4]
	str	w8, [x19]
	cbz	w8, LBB0_9
; %bb.3:
	ldr	w9, [x19, #36]
	cbz	w9, LBB0_11
; %bb.4:
	tbnz	w8, #0, LBB0_12
LBB0_5:
	tbnz	w8, #1, LBB0_13
LBB0_6:
	tbnz	w8, #2, LBB0_14
LBB0_7:
	tbz	w8, #3, LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _inter_dec@GOTPAGE
Lloh12:
	ldr	x8, [x8, _inter_dec@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldp	x9, x8, [x19, #16]
	ldr	x9, [x9, #24]
	add	x5, x9, x8
	ldp	w4, w6, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_decode_residual_block
LBB0_9:
	mov	x0, x19
	bl	_decode_residual_chroma
	mov	w0, #0
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:
	ldr	w21, [x19, #4]
	mov	x0, x20
	bl	_get_se_golomb
	add	w8, w21, w0
	and	w8, w8, #0x3f
	str	w8, [x19, #4]
	ldr	w8, [x19]
	tbz	w8, #0, LBB0_5
LBB0_12:
Lloh14:
	adrp	x8, _inter_dec@GOTPAGE
Lloh15:
	ldr	x8, [x8, _inter_dec@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldp	x9, x8, [x19, #16]
	ldr	x9, [x9]
	add	x5, x9, x8
	ldp	w4, w6, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_decode_residual_block
	ldr	w8, [x19]
	tbz	w8, #1, LBB0_6
LBB0_13:
Lloh17:
	adrp	x8, _inter_dec@GOTPAGE
Lloh18:
	ldr	x8, [x8, _inter_dec@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	ldp	x9, x8, [x19, #16]
	ldr	x9, [x9, #8]
	add	x5, x9, x8
	ldp	w4, w6, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_decode_residual_block
	ldr	w8, [x19]
	tbz	w8, #2, LBB0_7
LBB0_14:
Lloh20:
	adrp	x8, _inter_dec@GOTPAGE
Lloh21:
	ldr	x8, [x8, _inter_dec@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldp	x9, x8, [x19, #16]
	ldr	x9, [x9, #16]
	add	x5, x9, x8
	ldp	w4, w6, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_decode_residual_block
	ldr	w8, [x19]
	tbnz	w8, #3, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal inter cbp %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_cbp_tab,8,3                    ; @cbp_tab
	.comm	_inter_dec,4,2                  ; @inter_dec
	.no_dead_strip	_decode_residual_inter
.subsections_via_symbols
