	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_context_after_encode
_merge_context_after_encode:            ## @merge_context_after_encode
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_dct_count@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_MERGE
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_MERGE
	movq	_mv_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MERGE
	movq	_i_tex_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MERGE
	movq	_p_tex_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MERGE
	movq	_i_count@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MERGE
	movq	_f_count@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MERGE
	movq	_b_count@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MERGE
	movq	_skip_count@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MERGE
	movq	_misc_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MERGE
	movq	_er@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MERGE
	movq	_padding_bug_score@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MERGE
	movq	_current_picture@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_MERGE
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_MERGE
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_MERGE
	cmpq	$0, 8(%r15)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_dct_error_sum@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_MERGE
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_MERGE
	incq	%rbx
	cmpq	$64, %rbx
	jne	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_put_bits_count
	xorl	%edi, %edi
	testb	$7, %al
	sete	%dil
	callq	_av_assert1
	movq	%r15, %rdi
	callq	_put_bits_count
	xorl	%edi, %edi
	testb	$7, %al
	sete	%dil
	callq	_av_assert1
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_put_bits_count
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_avpriv_copy_bits
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flush_put_bits                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dct_count,8,3                  ## @dct_count
	.comm	_mv_bits,4,2                    ## @mv_bits
	.comm	_i_tex_bits,4,2                 ## @i_tex_bits
	.comm	_p_tex_bits,4,2                 ## @p_tex_bits
	.comm	_i_count,4,2                    ## @i_count
	.comm	_f_count,4,2                    ## @f_count
	.comm	_b_count,4,2                    ## @b_count
	.comm	_skip_count,4,2                 ## @skip_count
	.comm	_misc_bits,4,2                  ## @misc_bits
	.comm	_er,4,2                         ## @er
	.comm	_padding_bug_score,4,2          ## @padding_bug_score
	.comm	_current_picture,8,3            ## @current_picture
	.comm	_dct_error_sum,8,3              ## @dct_error_sum
	.no_dead_strip	_merge_context_after_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge_context_after_encode
_merge_context_after_encode:            ; @merge_context_after_encode
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _dct_count@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dct_count@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_MERGE
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	bl	_MERGE
Lloh2:
	adrp	x8, _mv_bits@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mv_bits@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_MERGE
Lloh5:
	adrp	x8, _i_tex_bits@GOTPAGE
Lloh6:
	ldr	x8, [x8, _i_tex_bits@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_MERGE
Lloh8:
	adrp	x8, _p_tex_bits@GOTPAGE
Lloh9:
	ldr	x8, [x8, _p_tex_bits@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_MERGE
Lloh11:
	adrp	x8, _i_count@GOTPAGE
Lloh12:
	ldr	x8, [x8, _i_count@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_MERGE
Lloh14:
	adrp	x8, _f_count@GOTPAGE
Lloh15:
	ldr	x8, [x8, _f_count@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_MERGE
Lloh17:
	adrp	x8, _b_count@GOTPAGE
Lloh18:
	ldr	x8, [x8, _b_count@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_MERGE
Lloh20:
	adrp	x8, _skip_count@GOTPAGE
Lloh21:
	ldr	x8, [x8, _skip_count@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_MERGE
Lloh23:
	adrp	x8, _misc_bits@GOTPAGE
Lloh24:
	ldr	x8, [x8, _misc_bits@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_MERGE
Lloh26:
	adrp	x8, _er@GOTPAGE
Lloh27:
	ldr	x8, [x8, _er@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_MERGE
Lloh29:
	adrp	x8, _padding_bug_score@GOTPAGE
Lloh30:
	ldr	x8, [x8, _padding_bug_score@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_MERGE
Lloh32:
	adrp	x21, _current_picture@GOTPAGE
Lloh33:
	ldr	x21, [x21, _current_picture@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_MERGE
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	bl	_MERGE
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
	bl	_MERGE
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x21, #0
Lloh34:
	adrp	x22, _dct_error_sum@GOTPAGE
Lloh35:
	ldr	x22, [x22, _dct_error_sum@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_MERGE
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w0, [x8, x21]
	bl	_MERGE
	add	x21, x21, #4
	cmp	x21, #256
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_put_bits_count
	tst	w0, #0x7
	cset	w0, eq
	bl	_av_assert1
	mov	x0, x19
	bl	_put_bits_count
	tst	w0, #0x7
	cset	w0, eq
	bl	_av_assert1
	ldr	w21, [x20]
	mov	x0, x20
	bl	_put_bits_count
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_avpriv_copy_bits
	mov	x0, x19
	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
	b	_flush_put_bits
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_dct_count,8,3                  ; @dct_count
	.comm	_mv_bits,4,2                    ; @mv_bits
	.comm	_i_tex_bits,4,2                 ; @i_tex_bits
	.comm	_p_tex_bits,4,2                 ; @p_tex_bits
	.comm	_i_count,4,2                    ; @i_count
	.comm	_f_count,4,2                    ; @f_count
	.comm	_b_count,4,2                    ; @b_count
	.comm	_skip_count,4,2                 ; @skip_count
	.comm	_misc_bits,4,2                  ; @misc_bits
	.comm	_er,4,2                         ; @er
	.comm	_padding_bug_score,4,2          ; @padding_bug_score
	.comm	_current_picture,8,3            ; @current_picture
	.comm	_dct_error_sum,8,3              ; @dct_error_sum
	.no_dead_strip	_merge_context_after_encode
.subsections_via_symbols
