	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_block_params
_decode_block_params:                   ## @decode_block_params
	.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
	movl	%r8d, %r10d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_DIRAC_REF_MASK_REF1@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rdx, %rdi
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %esi
	movl	%r10d, -44(%rbp)                ## 4-byte Spill
	movl	%r10d, %edx
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r9d, %ecx
	callq	_pred_block_mode
	movl	%eax, (%r14)
	movq	_CTX_PMODE_REF1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dirac_get_arith_bit
	xorl	(%r14), %eax
	movl	%eax, (%r14)
	cmpl	$2, (%r13)
	jne	LBB0_2
## %bb.1:
	movq	_DIRAC_REF_MASK_REF2@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_pred_block_mode
	orl	%eax, (%r14)
	movq	_CTX_PMODE_REF2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dirac_get_arith_bit
	addl	%eax, %eax
	xorl	(%r14), %eax
	movl	%eax, (%r14)
LBB0_2:
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	cmpq	$0, 8(%r13)
	je	LBB0_7
## %bb.6:
	movq	_DIRAC_REF_MASK_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_pred_block_mode
	orl	%eax, (%r14)
	movq	_CTX_GLOBAL_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dirac_get_arith_bit
	shll	$2, %eax
	xorl	(%r14), %eax
	movl	%eax, (%r14)
LBB0_7:
	cmpl	$0, (%r13)
	jle	LBB0_4
## %bb.8:
	addq	$20, %rbx
	xorl	%r15d, %r15d
	movl	$1, %r12d
	testl	%r12d, %eax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_10:
	movq	_DIRAC_REF_MASK_GLOBAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	callq	_global_mv
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	callq	_pred_mv
	leaq	-4(%rbx), %rdi
	movq	_CTX_MV_F1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CTX_MV_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_dirac_get_arith_int
	movq	8(%r14), %rcx
	movq	-8(%rcx,%r12,8), %rcx
	addl	%eax, (%rcx)
	movq	_CTX_MV_F1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CTX_MV_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_dirac_get_arith_int
	movq	8(%r14), %rcx
	movq	-8(%rcx,%r12,8), %rcx
	addl	%eax, 4(%rcx)
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r13), %rax
	cmpq	%rax, %r12
	jge	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r14), %eax
	incl	%r15d
	addq	$8, %rbx
	incq	%r12
	testl	%r12d, %eax
	jne	LBB0_10
	jmp	LBB0_13
LBB0_3:
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_pred_block_dc
	leaq	4(%rbx), %rdi
	movq	_CTX_DC_F1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CTX_DC_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_dirac_get_arith_int
	movq	16(%r14), %rcx
	addl	%eax, (%rcx)
	leaq	8(%rbx), %rdi
	movl	(%r15), %esi
	movl	(%r12), %edx
	callq	_dirac_get_arith_int
	movq	16(%r14), %rcx
	addl	%eax, 4(%rcx)
	addq	$12, %rbx
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_dirac_get_arith_int
	movq	16(%r14), %rcx
	addl	%eax, 8(%rcx)
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIRAC_REF_MASK_REF1,4,2        ## @DIRAC_REF_MASK_REF1
	.comm	_CTX_PMODE_REF1,4,2             ## @CTX_PMODE_REF1
	.comm	_DIRAC_REF_MASK_REF2,4,2        ## @DIRAC_REF_MASK_REF2
	.comm	_CTX_PMODE_REF2,4,2             ## @CTX_PMODE_REF2
	.comm	_CTX_DC_F1,4,2                  ## @CTX_DC_F1
	.comm	_CTX_DC_DATA,4,2                ## @CTX_DC_DATA
	.comm	_DIRAC_REF_MASK_GLOBAL,4,2      ## @DIRAC_REF_MASK_GLOBAL
	.comm	_CTX_GLOBAL_BLOCK,4,2           ## @CTX_GLOBAL_BLOCK
	.comm	_CTX_MV_F1,4,2                  ## @CTX_MV_F1
	.comm	_CTX_MV_DATA,4,2                ## @CTX_MV_DATA
	.no_dead_strip	_decode_block_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_block_params
_decode_block_params:                   ; @decode_block_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x5
	mov	x21, x4
	mov	x19, x2
	mov	x24, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _DIRAC_REF_MASK_REF1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIRAC_REF_MASK_REF1@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	x0, x2
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	mov	x1, x3
	mov	x2, x21
	mov	x3, x5
	bl	_pred_block_mode
	str	w0, [x19]
Lloh3:
	adrp	x8, _CTX_PMODE_REF1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTX_PMODE_REF1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_dirac_get_arith_bit
	ldr	w8, [x19]
	eor	w8, w8, w0
	str	w8, [x19]
	ldr	w9, [x23]
	cmp	w9, #2
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _DIRAC_REF_MASK_REF2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIRAC_REF_MASK_REF2@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x19
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x2, x21
	mov	x3, x20
	bl	_pred_block_mode
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
Lloh9:
	adrp	x8, _CTX_PMODE_REF2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CTX_PMODE_REF2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_dirac_get_arith_bit
	ldr	w8, [x19]
	eor	w8, w8, w0, lsl #1
	str	w8, [x19]
LBB0_2:
	cbz	w8, LBB0_13
; %bb.3:
	ldr	x9, [x23, #8]
Lloh12:
	adrp	x26, _DIRAC_REF_MASK_GLOBAL@GOTPAGE
Lloh13:
	ldr	x26, [x26, _DIRAC_REF_MASK_GLOBAL@GOTPAGEOFF]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	w4, [x26]
	mov	x0, x19
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x2, x21
	mov	x3, x20
	bl	_pred_block_mode
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
Lloh14:
	adrp	x8, _CTX_GLOBAL_BLOCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CTX_GLOBAL_BLOCK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_dirac_get_arith_bit
	ldr	w8, [x19]
	eor	w8, w8, w0, lsl #2
	str	w8, [x19]
LBB0_5:
	ldr	w9, [x23]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.6:
	mov	x25, #0
	add	x24, x24, #20
Lloh17:
	adrp	x28, _CTX_MV_F1@GOTPAGE
Lloh18:
	ldr	x28, [x28, _CTX_MV_F1@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x25, #1
	tst	w8, w22
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	mov	x4, x25
	bl	_global_mv
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x2, x21
	mov	x3, x20
	mov	x4, x25
	bl	_pred_mv
	sub	x0, x24, #4
	ldr	w1, [x28]
Lloh19:
	adrp	x8, _CTX_MV_DATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CTX_MV_DATA@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	bl	_dirac_get_arith_int
	ldr	x8, [x19, #8]
	lsl	x27, x25, #3
	ldr	x8, [x8, x27]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
	ldr	w1, [x28]
Lloh22:
	adrp	x8, _CTX_MV_DATA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CTX_MV_DATA@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x24
	bl	_dirac_get_arith_int
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x27]
	ldr	w9, [x8, #4]
	add	w9, w9, w0
	str	w9, [x8, #4]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [x23]
	cmp	x22, x8
	b.ge	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	add	x24, x24, #8
	add	x25, x25, #1
	b	LBB0_7
LBB0_13:
	mov	x0, x19
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x2, x21
	mov	x3, x20
	bl	_pred_block_dc
	add	x0, x24, #4
Lloh25:
	adrp	x20, _CTX_DC_F1@GOTPAGE
Lloh26:
	ldr	x20, [x20, _CTX_DC_F1@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh27:
	adrp	x21, _CTX_DC_DATA@GOTPAGE
Lloh28:
	ldr	x21, [x21, _CTX_DC_DATA@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_dirac_get_arith_int
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
	add	x0, x24, #8
	ldr	w1, [x20]
	ldr	w2, [x21]
	bl	_dirac_get_arith_int
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #4]
	add	w9, w9, w0
	str	w9, [x8, #4]
	add	x0, x24, #12
	ldr	w1, [x20]
	ldr	w2, [x21]
	bl	_dirac_get_arith_int
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #8]
	add	w9, w9, w0
	str	w9, [x8, #8]
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DIRAC_REF_MASK_REF1,4,2        ; @DIRAC_REF_MASK_REF1
	.comm	_CTX_PMODE_REF1,4,2             ; @CTX_PMODE_REF1
	.comm	_DIRAC_REF_MASK_REF2,4,2        ; @DIRAC_REF_MASK_REF2
	.comm	_CTX_PMODE_REF2,4,2             ; @CTX_PMODE_REF2
	.comm	_CTX_DC_F1,4,2                  ; @CTX_DC_F1
	.comm	_CTX_DC_DATA,4,2                ; @CTX_DC_DATA
	.comm	_DIRAC_REF_MASK_GLOBAL,4,2      ; @DIRAC_REF_MASK_GLOBAL
	.comm	_CTX_GLOBAL_BLOCK,4,2           ; @CTX_GLOBAL_BLOCK
	.comm	_CTX_MV_F1,4,2                  ; @CTX_MV_F1
	.comm	_CTX_MV_DATA,4,2                ; @CTX_MV_DATA
	.no_dead_strip	_decode_block_params
.subsections_via_symbols
