	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_cabac_mb_mvd
_decode_cabac_mb_mvd:                   ## @decode_cabac_mb_mvd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
                                        ## kill: def $edx killed $edx def $rdx
	leal	-3(%rdx), %eax
	movq	_INT_BIT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	decb	%cl
	sarl	%cl, %eax
	addl	$-33, %edx
	sarl	%cl, %edx
	movl	%esi, %ebx
	movq	%rdi, %r12
	addl	%esi, %eax
	addl	%edx, %eax
	addl	$2, %eax
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	16(%rdi), %rsi
	callq	_get_cabac
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	16(%r12), %rax
	movslq	%ebx, %r15
	leaq	(%rax,%r15,4), %rsi
	addq	$12, %rsi
	movq	%r12, %rdi
	callq	_get_cabac
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	16(%r12), %rax
	leaq	(%rax,%r15,4), %rsi
	addq	$16, %rsi
	movq	%r12, %rdi
	callq	_get_cabac
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	16(%r12), %rax
	leaq	(%rax,%r15,4), %rsi
	addq	$20, %rsi
	movq	%r12, %rdi
	callq	_get_cabac
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	24(,%r15,4), %rsi
	addq	16(%r12), %rsi
	movq	%r12, %rdi
	callq	_get_cabac
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	addq	$6, %r15
	shlq	$2, %r15
	movq	16(%r12), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	callq	_get_cabac
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	16(%r12), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	callq	_get_cabac
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	16(%r12), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	callq	_get_cabac
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	addq	16(%r12), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_get_cabac
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movl	$3, %r15d
	movl	$9, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_get_cabac_bypass
	testl	%eax, %eax
	je	LBB0_20
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	addl	%eax, %ebx
	incl	%r15d
	cmpl	$25, %r15d
	jne	LBB0_19
## %bb.25:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_26
LBB0_1:
	movl	$0, (%r14)
	xorl	%eax, %eax
LBB0_26:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %eax
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_5:
	movl	$2, %eax
	movl	$2, %ebx
	jmp	LBB0_23
LBB0_7:
	movl	$3, %eax
	movl	$3, %ebx
	jmp	LBB0_23
LBB0_9:
	movl	$4, %eax
	movl	$4, %ebx
	jmp	LBB0_23
LBB0_11:
	movl	$5, %eax
	movl	$5, %ebx
	jmp	LBB0_23
LBB0_13:
	movl	$6, %eax
	movl	$6, %ebx
	jmp	LBB0_23
LBB0_15:
	movl	$7, %eax
	movl	$7, %ebx
	jmp	LBB0_23
LBB0_17:
	movl	$8, %eax
	movl	$8, %ebx
	jmp	LBB0_23
LBB0_20:
	decl	%r15d
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_get_cabac_bypass
	movl	%r15d, %ecx
	shll	%cl, %eax
	addl	%eax, %ebx
	addl	$-1, %r15d
	jb	LBB0_21
## %bb.22:
	cmpl	$70, %ebx
	movl	$70, %eax
	cmovll	%ebx, %eax
LBB0_23:
	movl	%eax, (%r14)
	negl	%ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_cabac_bypass_sign          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_BIT,4,2                    ## @INT_BIT
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"overflow in decode_cabac_mb_mvd\n"

	.comm	_INT_MIN,4,2                    ## @INT_MIN
	.no_dead_strip	_decode_cabac_mb_mvd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_cabac_mb_mvd
_decode_cabac_mb_mvd:                   ; @decode_cabac_mb_mvd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	sub	w9, w2, #3
Lloh0:
	adrp	x10, _INT_BIT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _INT_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sub	w10, w10, #1
	asr	w9, w9, w10
	sub	w11, w2, #33
	asr	w10, w11, w10
	add	w9, w1, w9
	add	w9, w9, w10
	add	w9, w9, #2
	add	x1, x8, w9, sxtw #2
	bl	_get_cabac
	cbz	x0, LBB0_13
; %bb.1:
	ldr	x8, [x20, #16]
	add	x8, x8, w21, sxtw #2
	add	x1, x8, #12
	mov	x0, x20
	bl	_get_cabac
	cbz	x0, LBB0_15
; %bb.2:
	sxtw	x21, w21
	ldr	x8, [x20, #16]
	add	x8, x8, x21, lsl #2
	add	x1, x8, #16
	mov	x0, x20
	bl	_get_cabac
	cbz	x0, LBB0_16
; %bb.3:
	ldr	x8, [x20, #16]
	add	x8, x8, x21, lsl #2
	add	x1, x8, #20
	mov	x0, x20
	bl	_get_cabac
	cbz	x0, LBB0_17
; %bb.4:
	add	x21, x21, #6
	ldr	x8, [x20, #16]
	add	x1, x8, x21, lsl #2
	mov	x0, x20
	bl	_get_cabac
	cbz	x0, LBB0_18
; %bb.5:
	ldr	x8, [x20, #16]
	add	x1, x8, x21, lsl #2
	mov	x0, x20
	bl	_get_cabac
	cbz	x0, LBB0_19
; %bb.6:
	ldr	x8, [x20, #16]
	add	x1, x8, x21, lsl #2
	mov	x0, x20
	bl	_get_cabac
	cbz	x0, LBB0_20
; %bb.7:
	ldr	x8, [x20, #16]
	add	x1, x8, x21, lsl #2
	mov	x0, x20
	bl	_get_cabac
	cbz	x0, LBB0_21
; %bb.8:
	ldr	x8, [x20, #16]
	add	x1, x8, x21, lsl #2
	mov	x0, x20
	bl	_get_cabac
	cbz	x0, LBB0_22
; %bb.9:
	mov	w22, #3
	mov	w21, #9
	mov	w23, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_cabac_bypass
	cbz	w0, LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	lsl	w8, w23, w22
	add	w21, w8, w21
	add	w22, w22, #1
	cmp	w22, #25
	b.ne	LBB0_10
; %bb.12:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh8:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_13:
	str	wzr, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w8, #1
	mov	w21, #1
	b	LBB0_26
LBB0_16:
	mov	w8, #2
	mov	w21, #2
	b	LBB0_26
LBB0_17:
	mov	w8, #3
	mov	w21, #3
	b	LBB0_26
LBB0_18:
	mov	w8, #4
	mov	w21, #4
	b	LBB0_26
LBB0_19:
	mov	w8, #5
	mov	w21, #5
	b	LBB0_26
LBB0_20:
	mov	w8, #6
	mov	w21, #6
	b	LBB0_26
LBB0_21:
	mov	w8, #7
	mov	w21, #7
	b	LBB0_26
LBB0_22:
	mov	w8, #8
	mov	w21, #8
	b	LBB0_26
LBB0_23:
	sub	w22, w22, #1
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_cabac_bypass
	lsl	w8, w0, w22
	add	w21, w8, w21
	sub	w22, w22, #1
	cmn	w22, #1
	b.ne	LBB0_24
; %bb.25:
	mov	w8, #70
	cmp	w21, #70
	csel	w8, w21, w8, lt
LBB0_26:
	str	w8, [x19]
	neg	w1, w21
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_get_cabac_bypass_sign
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_BIT,4,2                    ; @INT_BIT
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"overflow in decode_cabac_mb_mvd\n"

	.comm	_INT_MIN,4,2                    ; @INT_MIN
	.no_dead_strip	_decode_cabac_mb_mvd
.subsections_via_symbols
