	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_dc
_encode_dc:                             ## @encode_dc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r14
	leal	255(%r13), %eax
	cmpl	$511, %eax                      ## imm = 0x1FF
	jb	LBB0_7
## %bb.1:
	leal	(%r13,%r13), %edi
	testl	%r13d, %r13d
	js	LBB0_2
## %bb.3:
	callq	_av_log2_16bit
	testl	%r15d, %r15d
	je	LBB0_5
LBB0_6:
	movq	_ff_mpeg12_vlc_dc_chroma_bits@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %r15d
	addl	%ecx, %r15d
	movq	_ff_mpeg12_vlc_dc_chroma_code@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %ebx
	shll	%cl, %ebx
	movl	%r13d, %edi
	movl	%ecx, %esi
	callq	_av_mod_uintp2
	addl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	jmp	LBB0_10
LBB0_7:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.11:
	movq	_mpeg1_chr_dc_uni@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_2:
	negl	%edi
	callq	_av_log2_16bit
	decl	%r13d
	testl	%r15d, %r15d
	jne	LBB0_6
LBB0_5:
	movq	_ff_mpeg12_vlc_dc_lum_bits@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rdx
	movl	(%rcx,%rdx,4), %r15d
	addl	%eax, %r15d
	movq	_ff_mpeg12_vlc_dc_lum_code@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rdx,4), %r12d
	movl	%eax, %ecx
	shll	%cl, %r12d
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_av_mod_uintp2
	addl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	jmp	LBB0_10
LBB0_8:
	movq	_mpeg1_lum_dc_uni@GOTPCREL(%rip), %rcx
LBB0_9:
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %edx
	movzbl	%dl, %esi
	sarl	$8, %edx
	movq	%r14, %rdi
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_bits                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_mpeg12_vlc_dc_lum_bits,8,3  ## @ff_mpeg12_vlc_dc_lum_bits
	.comm	_ff_mpeg12_vlc_dc_lum_code,8,3  ## @ff_mpeg12_vlc_dc_lum_code
	.comm	_ff_mpeg12_vlc_dc_chroma_bits,8,3 ## @ff_mpeg12_vlc_dc_chroma_bits
	.comm	_ff_mpeg12_vlc_dc_chroma_code,8,3 ## @ff_mpeg12_vlc_dc_chroma_code
	.comm	_mpeg1_lum_dc_uni,8,3           ## @mpeg1_lum_dc_uni
	.comm	_mpeg1_chr_dc_uni,8,3           ## @mpeg1_chr_dc_uni
	.no_dead_strip	_encode_dc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_dc
_encode_dc:                             ; @encode_dc
	.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	x21, x2
	mov	x19, x0
	add	w8, w1, #255
	cmp	w8, #511
	b.lo	LBB0_4
; %bb.1:
	mov	x20, x1
	tbnz	w1, #31, LBB0_6
; %bb.2:
	lsl	w0, w20, #1
	bl	_av_log2_16bit
	mov	x1, x0
	cbz	w21, LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _ff_mpeg12_vlc_dc_chroma_bits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_mpeg12_vlc_dc_chroma_bits@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	x9, x1
	sbfiz	x9, x9, #2, #32
	ldr	w8, [x8, x9]
	add	w21, w8, w1
Lloh3:
	adrp	x8, _ff_mpeg12_vlc_dc_chroma_code@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_mpeg12_vlc_dc_chroma_code@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	cbz	w21, LBB0_9
; %bb.5:
Lloh5:
	adrp	x9, _mpeg1_chr_dc_uni@GOTPAGE
Lloh6:
	ldr	x9, [x9, _mpeg1_chr_dc_uni@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	neg	w0, w20, lsl #1
	bl	_av_log2_16bit
	mov	x1, x0
	sub	w20, w20, #1
	cbnz	w21, LBB0_3
LBB0_7:
Lloh7:
	adrp	x8, _ff_mpeg12_vlc_dc_lum_bits@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ff_mpeg12_vlc_dc_lum_bits@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	sbfiz	x9, x1, #2, #32
	ldr	w8, [x8, x9]
	add	w21, w8, w1
Lloh10:
	adrp	x8, _ff_mpeg12_vlc_dc_lum_code@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ff_mpeg12_vlc_dc_lum_code@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	ldr	w8, [x8, x9]
	lsl	w22, w8, w1
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_av_mod_uintp2
	add	w2, w22, w0
	mov	x0, x19
	mov	x1, x21
	b	LBB0_11
LBB0_9:
Lloh12:
	adrp	x9, _mpeg1_lum_dc_uni@GOTPAGE
Lloh13:
	ldr	x9, [x9, _mpeg1_lum_dc_uni@GOTPAGEOFF]
LBB0_10:
	ldr	x9, [x9]
	ldr	w8, [x9, w8, uxtw #2]
	and	w1, w8, #0xff
	asr	w2, w8, #8
	mov	x0, x19
LBB0_11:
	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	_put_bits
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_mpeg12_vlc_dc_lum_bits,8,3  ; @ff_mpeg12_vlc_dc_lum_bits
	.comm	_ff_mpeg12_vlc_dc_lum_code,8,3  ; @ff_mpeg12_vlc_dc_lum_code
	.comm	_ff_mpeg12_vlc_dc_chroma_bits,8,3 ; @ff_mpeg12_vlc_dc_chroma_bits
	.comm	_ff_mpeg12_vlc_dc_chroma_code,8,3 ; @ff_mpeg12_vlc_dc_chroma_code
	.comm	_mpeg1_lum_dc_uni,8,3           ; @mpeg1_lum_dc_uni
	.comm	_mpeg1_chr_dc_uni,8,3           ; @mpeg1_chr_dc_uni
	.no_dead_strip	_encode_dc
.subsections_via_symbols
