	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ff_mjpeg_encode_coef
_ff_mjpeg_encode_coef:                  ## @ff_mjpeg_encode_coef
	.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
	movl	%ecx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	sarl	$31, %ebx
	addl	%edx, %ebx
	movl	%edx, %edi
	negl	%edi
	cmovsl	%edx, %edi
	shll	$4, %r12d
	callq	_av_log2_16bit
	movl	%eax, %edx
	incl	%edx
	orl	%r12d, %edx
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movl	%ebx, (%rcx,%rax,4)
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
	testl	%r12d, %r12d
	sete	%dil
	callq	_av_assert0
	xorl	%edx, %edx
LBB0_3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_mjpeg_encode_code           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ff_mjpeg_encode_coef
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ff_mjpeg_encode_coef
_ff_mjpeg_encode_coef:                  ; @ff_mjpeg_encode_coef
	.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, x3
	mov	x19, x1
	mov	x20, x0
	cbz	w2, LBB0_2
; %bb.1:
	add	w22, w2, w2, asr #31
	cmp	w2, #0
	cneg	w0, w2, mi
	bl	_av_log2_16bit
	add	w8, w0, #1
	orr	w2, w8, w21, lsl #4
	ldp	x9, x8, [x20]
	str	w22, [x8, x9, lsl #2]
	b	LBB0_3
LBB0_2:
	cmp	w21, #0
	cset	w0, eq
	bl	_av_assert0
	mov	w2, #0
LBB0_3:
	mov	x0, x20
	mov	x1, 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	_ff_mjpeg_encode_code
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ff_mjpeg_encode_coef
.subsections_via_symbols
