	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_q_branch2
_encode_q_branch2:                      ## @encode_q_branch2
	.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	%ecx, %ebx
	movl	(%rdi), %r9d
	movl	4(%rdi), %ecx
	shll	%cl, %r9d
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	subl	%esi, %ecx
	movl	%r9d, %eax
	imull	%ebx, %eax
	addl	%edx, %eax
	shll	%cl, %eax
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	40(%rdi), %r8
	movslq	%eax, %rsi
	shlq	$5, %rsi
	testl	%edx, %edx
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	leaq	-32(%r8,%rsi), %r14
	movq	_null_block@GOTPCREL(%rip), %r13
	cmoveq	%r13, %r14
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.1:
	leal	1(%rdx), %ebx
	shll	%cl, %ebx
	movl	%eax, %esi
	subl	%r9d, %esi
	movslq	%esi, %r13
	shlq	$5, %r13
	testl	%edx, %edx
	jne	LBB0_3
## %bb.2:
	movq	_null_block@GOTPCREL(%rip), %rdi
	jmp	LBB0_4
LBB0_3:
	movl	%r9d, %esi
	notl	%esi
	addl	%eax, %esi
	movslq	%esi, %rdi
	shlq	$5, %rdi
	addq	%r8, %rdi
LBB0_4:
	addq	%r8, %r13
	cmpl	%r9d, %ebx
	jge	LBB0_8
## %bb.5:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.6:
	movl	%edx, %esi
	andl	$1, %esi
	je	LBB0_9
LBB0_8:
	movq	%rdi, %rsi
	jmp	LBB0_10
LBB0_9:
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	subl	%r9d, %esi
	addl	%eax, %esi
	movslq	%esi, %rsi
	shlq	$5, %rsi
	addq	%r8, %rsi
LBB0_10:
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	8(%rax), %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	8(%r14), %edi
	addl	%edi, %edi
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	callq	_av_log2
	movl	%eax, -148(%rbp)                ## 4-byte Spill
	movl	8(%r13), %edi
	addl	%edi, %edi
	callq	_av_log2
	movl	%eax, -144(%rbp)                ## 4-byte Spill
	movl	12(%r14), %edi
	subl	12(%r13), %edi
	callq	_FFABS
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edi
	callq	_av_log2
	movl	%eax, %r15d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	cmpl	$0, 8(%rax,%rbx)
	setne	%r12b
	movl	16(%r14), %edi
	subl	16(%r13), %edi
	callq	_FFABS
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edi
	callq	_av_log2
	movq	%rbx, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	xorl	%esi, %esi
	cmpl	$0, 8(%rcx,%rbx)
	setne	%bl
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, 32(%rdi)
	je	LBB0_12
## %bb.11:
	movq	_BLOCK_INTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	callq	_set_blocks
	addq	$168, %rsp
	jmp	LBB0_26
LBB0_12:
	movl	%eax, %r8d
	movb	%r12b, -42(%rbp)                ## 1-byte Spill
	movl	%r15d, -140(%rbp)               ## 4-byte Spill
	leaq	(%rcx,%rdx), %r12
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 4(%rdi)
	je	LBB0_17
## %bb.13:
	movb	%bl, -41(%rbp)                  ## 1-byte Spill
	movl	%r8d, %ebx
	movl	20(%r13), %eax
	addl	20(%r14), %eax
	addl	%eax, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	20(%rcx), %rcx
	cltq
	addq	%rcx, %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movslq	20(%rcx), %rcx
	addq	%rax, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	32(%r12), %rsi
	movq	%r12, %rdi
	callq	_same_block
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movslq	-60(%rbp), %r15                 ## 4-byte Folded Reload
	shlq	$5, %r15
	addq	%r12, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_same_block
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	addq	$32, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_same_block
	testq	%rax, %rax
	je	LBB0_21
## %bb.16:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	24(%rax), %rdi
	movq	16(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rsi
	addq	$16, %rsi
	movl	$1, %edx
	callq	_put_rac
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	xorl	%esi, %esi
	movl	%ebx, %r8d
	movb	-41(%rbp), %bl                  ## 1-byte Reload
LBB0_17:
	movq	_BLOCK_INTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rcx,%rdx)
	je	LBB0_22
## %bb.18:
	subq	$8, %rsp
	leaq	-76(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movq	%r14, %r8
	movq	%r13, %r9
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	callq	_pred_mv
	addq	$16, %rsp
	leaq	24(%rbx), %r15
	movq	16(%rbx), %rax
	movl	24(%r14), %ecx
	andl	$1, %ecx
	movl	24(%r13), %edx
	andl	$1, %edx
	addq	%rcx, %rdx
	leaq	(%rax,%rdx,4), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_put_rac
	movq	16(%rbx), %rsi
	subq	$-128, %rsi
	movq	(%r12), %rax
	movl	(%rax), %edx
	subl	-68(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_put_symbol
	cmpl	$3, 8(%rbx)
	jl	LBB0_20
## %bb.19:
	movl	$256, %esi                      ## imm = 0x100
	addq	16(%rbx), %rsi
	movq	(%r12), %rax
	movl	4(%rax), %edx
	subl	-64(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_put_symbol
	movl	$384, %esi                      ## imm = 0x180
	addq	16(%rbx), %rsi
	movq	(%r12), %rax
	movl	8(%rax), %edx
	subl	-128(%rbp), %edx                ## 4-byte Folded Reload
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_put_symbol
LBB0_20:
	movq	(%r12), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %r9d
	movl	8(%rax), %r10d
	movl	-76(%rbp), %r11d
	movl	-72(%rbp), %eax
	movq	%rbx, %rdi
	movq	_BLOCK_INTRA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	pushq	%rbx
	pushq	$0
	pushq	%rax
	pushq	%r11
	pushq	%r10
	jmp	LBB0_25
LBB0_21:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leaq	24(%rbx), %rdi
	movq	16(%rbx), %rax
	movslq	-56(%rbp), %rcx                 ## 4-byte Folded Reload
	leaq	(%rax,%rcx,4), %rsi
	addq	$16, %rsi
	xorl	%edx, %edx
	callq	_put_rac
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	movq	-104(%rbp), %r12                ## 8-byte Reload
	leal	(%r12,%r12), %edx
	movl	%edx, -88(%rbp)                 ## 4-byte Spill
	movq	-112(%rbp), %r13                ## 8-byte Reload
	leal	(%r13,%r13), %r15d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %ecx
	callq	_encode_q_branch2
	addl	%r12d, %r12d
	incl	%r12d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_encode_q_branch2
	leal	1(%r13,%r13), %r15d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_encode_q_branch2
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_encode_q_branch2               ## TAILCALL
LBB0_22:
	leaq	(%rcx,%rdx), %rax
	addq	$8, %rax
	xorl	%r12d, %r12d
	movb	-42(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %r12b
	shll	$4, %r12d
	addl	-140(%rbp), %r12d               ## 4-byte Folded Reload
	movb	%bl, %sil
	shll	$4, %esi
	addl	%r8d, %esi
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ecx
	subq	$8, %rsp
	leaq	-76(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %r8
	movq	%r13, %r9
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	callq	_pred_mv
	addq	$16, %rsp
	leaq	24(%rbx), %r15
	movq	16(%rbx), %rax
	movl	24(%r14), %ecx
	andl	$1, %ecx
	movl	24(%r13), %edx
	andl	$1, %edx
	addq	%rcx, %rdx
	leaq	(%rax,%rdx,4), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_put_rac
	cmpl	$2, 12(%rbx)
	jl	LBB0_24
## %bb.23:
	movl	-144(%rbp), %ecx                ## 4-byte Reload
	addl	-148(%rbp), %ecx                ## 4-byte Folded Reload
	movq	16(%rbx), %rax
	shll	$5, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$4608, %rsi                     ## imm = 0x1200
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_put_symbol
LBB0_24:
	movq	16(%rbx), %rax
	shll	$5, %r12d
	movslq	%r12d, %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$512, %rsi                      ## imm = 0x200
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, %r13
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movl	12(%r14,%rbx), %edx
	subl	-76(%rbp), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_put_symbol
	movq	16(%r13), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	shll	$5, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$512, %rsi                      ## imm = 0x200
	movl	16(%r14,%rbx), %edx
	subl	-72(%rbp), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_put_symbol
	movl	12(%r14,%rbx), %r10d
	movq	%r13, %rdi
	movl	16(%r14,%rbx), %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	pushq	$0
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
LBB0_25:
	callq	_set_blocks
	addq	$48, %rsp
	addq	$120, %rsp
LBB0_26:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_null_block,32,3                ## @null_block
	.comm	_BLOCK_INTRA,4,2                ## @BLOCK_INTRA
	.no_dead_strip	_encode_q_branch2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_q_branch2
_encode_q_branch2:                      ; @encode_q_branch2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	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
	str	x0, [sp, #96]                   ; 8-byte Folded Spill
	ldp	w8, w9, [x0]
	lsl	w24, w8, w9
	str	w1, [sp, #92]                   ; 4-byte Folded Spill
	sub	w8, w9, w1
	madd	w9, w24, w3, w2
	lsl	w9, w9, w8
	ldr	x12, [x0, #40]
	sxtw	x13, w9
	add	x26, x12, x13, lsl #5
	sub	x10, x26, #32
Lloh0:
	adrp	x9, _null_block@GOTPAGE
Lloh1:
	ldr	x9, [x9, _null_block@GOTPAGEOFF]
	cmp	w2, #0
	csel	x27, x9, x10, eq
	stp	w2, w3, [sp, #80]               ; 8-byte Folded Spill
	str	x12, [sp, #64]                  ; 8-byte Folded Spill
	str	x13, [sp, #48]                  ; 8-byte Folded Spill
	cbz	w3, LBB0_5
; %bb.1:
	add	w10, w2, #1
	lsl	w10, w10, w8
	sub	x11, x13, w24, sxtw
	add	x28, x12, x11, lsl #5
	mvn	w11, w24
	add	w11, w13, w11
	sxtw	x11, w11
	add	x11, x12, x11, lsl #5
	cmp	w2, #0
	csel	x11, x9, x11, eq
	cmp	w10, w24
	str	x11, [sp, #40]                  ; 8-byte Folded Spill
	b.ge	LBB0_4
; %bb.2:
	ldr	w9, [sp, #92]                   ; 4-byte Folded Reload
	cbz	w9, LBB0_6
; %bb.3:
	tbz	w2, #0, LBB0_6
LBB0_4:
	str	x11, [sp, #72]                  ; 8-byte Folded Spill
	b	LBB0_7
LBB0_5:
	str	x27, [sp, #40]                  ; 8-byte Folded Spill
	mov	x28, x9
	str	x27, [sp, #72]                  ; 8-byte Folded Spill
	b	LBB0_7
LBB0_6:
	mov	w9, #1
	lsl	w8, w9, w8
	sub	w8, w8, w24
	add	w8, w8, w13
	sxtw	x8, w8
	add	x8, x12, x8, lsl #5
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
LBB0_7:
	ldr	x8, [x27]
	ldp	w9, w21, [x8]
	str	w9, [sp, #88]                   ; 4-byte Folded Spill
	ldr	w25, [x8, #8]
	ldr	w8, [x27, #8]
	lsl	w0, w8, #1
	bl	_av_log2
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	ldr	w8, [x28, #8]
	lsl	w0, w8, #1
	bl	_av_log2
	mov	x19, x0
	ldr	w8, [x27, #12]
	ldr	w9, [x28, #12]
	sub	w0, w8, w9
	bl	_FFABS
	lsl	w0, w0, #1
	bl	_av_log2
	mov	x23, x0
	mov	x20, x26
	ldr	w8, [x20, #8]!
	cmp	w8, #0
	cset	w22, ne
	ldr	w8, [x27, #16]
	ldr	w9, [x28, #16]
	sub	w0, w8, w9
	bl	_FFABS
	lsl	w0, w0, #1
	bl	_av_log2
	mov	x11, x0
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w12, ne
	ldr	x0, [sp, #96]                   ; 8-byte Folded Reload
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_10
; %bb.8:
Lloh2:
	adrp	x8, _BLOCK_INTRA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BLOCK_INTRA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	xzr, [sp]
	ldp	w4, w1, [sp, #88]               ; 8-byte Folded Reload
	ldp	w2, w3, [sp, #80]               ; 8-byte Folded Reload
	mov	x5, x21
	mov	x6, x25
	mov	w7, #0
LBB0_9:
	bl	_set_blocks
	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
	add	sp, sp, #208
	ret
LBB0_10:
	stp	w19, w22, [sp, #16]             ; 8-byte Folded Spill
	str	x26, [sp, #32]                  ; 8-byte Folded Spill
	ldr	w19, [sp, #60]                  ; 4-byte Folded Reload
	stp	w21, w25, [sp, #24]             ; 8-byte Folded Spill
	ldr	w8, [x0, #4]
	ldp	w21, w9, [sp, #88]              ; 8-byte Folded Reload
	cmp	w8, w9
	ldr	x22, [sp, #64]                  ; 8-byte Folded Reload
	b.eq	LBB0_15
; %bb.11:
	str	w12, [sp, #12]                  ; 4-byte Folded Spill
	mov	x21, x11
	ldr	w8, [x27, #20]
	ldr	w9, [x28, #20]
	add	w8, w9, w8
	lsl	w8, w8, #1
	ldp	x26, x9, [sp, #32]              ; 16-byte Folded Reload
	ldrsw	x9, [x9, #20]
	add	x8, x9, w8, sxtw
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldrsw	x9, [x9, #20]
	add	x25, x8, x9
	add	x1, x26, #32
	mov	x0, x26
	bl	_same_block
	cbz	x0, LBB0_19
; %bb.12:
	sxtw	x8, w24
	add	x24, x26, x8, lsl #5
	mov	x0, x26
	mov	x1, x24
	bl	_same_block
	cbz	x0, LBB0_19
; %bb.13:
	add	x1, x24, #32
	mov	x0, x26
	bl	_same_block
	cbz	x0, LBB0_19
; %bb.14:
	ldr	x24, [sp, #96]                  ; 8-byte Folded Reload
	add	x0, x24, #24
	ldr	x8, [x24, #16]
	add	x8, x8, x25, lsl #2
	add	x1, x8, #16
	mov	w2, #1
	bl	_put_rac
	mov	x0, x24
	mov	x11, x21
	ldr	w21, [sp, #88]                  ; 4-byte Folded Reload
	ldr	w12, [sp, #12]                  ; 4-byte Folded Reload
LBB0_15:
	ldr	x10, [sp, #48]                  ; 8-byte Folded Reload
	add	x8, x22, x10, lsl #5
	ldr	w8, [x8, #24]
Lloh5:
	adrp	x24, _BLOCK_INTRA@GOTPAGE
Lloh6:
	ldr	x24, [x24, _BLOCK_INTRA@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.16:
	sub	x1, x29, #84
	sub	x2, x29, #88
	mov	w3, #0
	mov	x4, x27
	mov	x5, x28
	ldr	x6, [sp, #72]                   ; 8-byte Folded Reload
	bl	_pred_mv
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	add	x23, x8, #24
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	ldr	w9, [x27, #24]
	and	x9, x9, #0x1
	ldr	w10, [x28, #24]
	and	x10, x10, #0x1
	add	x9, x9, x10
	add	x8, x8, x9, lsl #2
	add	x1, x8, #4
	mov	x0, x23
	mov	w2, #1
	bl	_put_rac
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	add	x1, x8, #128
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x8, [x19]
	ldr	w8, [x8]
	sub	w2, w8, w21
	mov	x0, x23
	mov	w3, #1
	bl	_put_symbol
	ldr	x0, [sp, #96]                   ; 8-byte Folded Reload
	ldr	w8, [x0, #8]
	cmp	w8, #3
	b.lt	LBB0_18
; %bb.17:
	ldr	x8, [x0, #16]
	add	x1, x8, #256
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	sub	w2, w8, w9
	mov	x0, x23
	mov	w3, #1
	bl	_put_symbol
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	add	x1, x8, #384
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	sub	w2, w8, w9
	mov	x0, x23
	mov	w3, #1
	bl	_put_symbol
	ldr	x0, [sp, #96]                   ; 8-byte Folded Reload
LBB0_18:
	ldr	x8, [x19]
	ldp	w4, w5, [x8]
	ldr	w6, [x8, #8]
	ldp	w8, w7, [x29, #-88]
	ldr	w9, [x24]
	stp	wzr, w9, [sp, #4]
	str	w8, [sp]
	ldr	w1, [sp, #92]                   ; 4-byte Folded Reload
	ldp	w2, w3, [sp, #80]               ; 8-byte Folded Reload
	b	LBB0_9
LBB0_19:
	ldr	x20, [sp, #96]                  ; 8-byte Folded Reload
	add	x0, x20, #24
	ldr	x8, [x20, #16]
	add	x8, x8, w25, sxtw #2
	add	x1, x8, #16
	mov	w2, #0
	bl	_put_rac
	ldr	w8, [sp, #92]                   ; 4-byte Folded Reload
	add	w22, w8, #1
	ldp	w21, w19, [sp, #80]             ; 8-byte Folded Reload
	lsl	w23, w21, #1
	lsl	w24, w19, #1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_encode_q_branch2
	mov	w25, #1
	mov	w26, #1
	bfi	w26, w21, #1, #31
	mov	x0, x20
	mov	x1, x22
	mov	x2, x26
	mov	x3, x24
	bl	_encode_q_branch2
	bfi	w25, w19, #1, #31
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x3, x25
	bl	_encode_q_branch2
	mov	x0, x20
	mov	x1, x22
	mov	x2, x26
	mov	x3, x25
	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
	add	sp, sp, #208
	b	_encode_q_branch2
LBB0_20:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	add	w25, w23, w8, lsl #4
	ldr	w3, [x20]
	add	w23, w11, w12, lsl #4
	sub	x1, x29, #84
	sub	x2, x29, #88
	mov	x4, x27
	mov	x5, x28
	ldr	x6, [sp, #72]                   ; 8-byte Folded Reload
	bl	_pred_mv
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	add	x24, x8, #24
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	ldr	w9, [x27, #24]
	and	x9, x9, #0x1
	ldr	w10, [x28, #24]
	and	x10, x10, #0x1
	add	x9, x9, x10
	add	x8, x8, x9, lsl #2
	add	x1, x8, #4
	mov	x0, x24
	mov	w2, #0
	bl	_put_rac
	ldr	x10, [sp, #96]                  ; 8-byte Folded Reload
	ldr	w8, [x10, #12]
	cmp	w8, #2
	b.lt	LBB0_22
; %bb.21:
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	add	w8, w8, w19
	ldr	x9, [x10, #16]
	lsl	w8, w8, #5
	add	w8, w8, #1152
	add	x1, x9, w8, sxtw #2
	ldr	w2, [x20]
	mov	x0, x24
	mov	w3, #0
	bl	_put_symbol
	ldr	x10, [sp, #96]                  ; 8-byte Folded Reload
LBB0_22:
	ldr	x8, [x10, #16]
	lsl	w9, w25, #5
	add	w9, w9, #128
	add	x1, x8, w9, sxtw #2
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x22, x22, x8, lsl #5
	ldr	w8, [x22, #12]
	ldur	w9, [x29, #-84]
	sub	w2, w8, w9
	mov	x0, x24
	mov	w3, #1
	mov	x19, x10
	bl	_put_symbol
	ldr	x8, [x19, #16]
	lsl	w9, w23, #5
	add	w9, w9, #128
	add	x1, x8, w9, sxtw #2
	ldr	w8, [x22, #16]
	ldur	w9, [x29, #-88]
	sub	w2, w8, w9
	mov	x0, x24
	mov	w3, #1
	bl	_put_symbol
	ldp	w7, w8, [x22, #12]
	ldr	w9, [x20]
	stp	w9, wzr, [sp, #4]
	str	w8, [sp]
	mov	x0, x19
	ldr	w1, [sp, #92]                   ; 4-byte Folded Reload
	ldp	w2, w3, [sp, #80]               ; 8-byte Folded Reload
	mov	x4, x21
	ldp	w5, w6, [sp, #24]               ; 8-byte Folded Reload
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_null_block,32,3                ; @null_block
	.comm	_BLOCK_INTRA,4,2                ; @BLOCK_INTRA
	.no_dead_strip	_encode_q_branch2
.subsections_via_symbols
