	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mqc_encode                  ## -- Begin function ff_mqc_encode
	.p2align	4, 0x90
_ff_mqc_encode:                         ## @ff_mqc_encode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ff_mqc_qe@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi), %r8
	movl	(%rax,%r8,4), %r9d
	movl	(%rdi), %eax
	subl	%r9d, %eax
	movl	%eax, (%rdi)
	movl	%r8d, %ecx
	andl	$1, %ecx
	movslq	%edx, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_8
## %bb.1:
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_7
## %bb.2:
	cmpl	%r9d, %eax
	jge	LBB0_4
## %bb.3:
	movl	%r9d, (%rdi)
	jmp	LBB0_5
LBB0_8:
	cmpl	%r9d, %eax
	jge	LBB0_10
## %bb.9:
	addl	%r9d, 4(%rdi)
	movq	_ff_mqc_nlps@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	addl	%r9d, 4(%rdi)
	popq	%rbp
	retq
LBB0_10:
	movl	%r9d, (%rdi)
	movq	_ff_mqc_nlps@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	addl	%r9d, 4(%rdi)
LBB0_5:
	movq	_ff_mqc_nmps@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	(%rax,%r8,8), %rax
	movq	%rax, (%rsi)
	popq	%rbp
	jmp	_renorme                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_mqc_qe,8,3                  ## @ff_mqc_qe
	.comm	_ff_mqc_nmps,8,3                ## @ff_mqc_nmps
	.comm	_ff_mqc_nlps,8,3                ## @ff_mqc_nlps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mqc_encode                  ; -- Begin function ff_mqc_encode
	.p2align	2
_ff_mqc_encode:                         ; @ff_mqc_encode
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ff_mqc_qe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_mqc_qe@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	x8, [x1]
	ldr	w9, [x9, x8, lsl #2]
	ldr	w10, [x0]
	sub	w10, w10, w9
	str	w10, [x0]
	and	x11, x8, #0x1
	cmp	x11, w2, sxtw
	b.ne	LBB0_4
; %bb.1:
	tbnz	w10, #15, LBB0_6
; %bb.2:
	cmp	w10, w9
	b.ge	LBB0_9
; %bb.3:
	str	w9, [x0]
	b	LBB0_10
LBB0_4:
	cmp	w10, w9
	b.ge	LBB0_7
; %bb.5:
	ldr	w10, [x0, #4]
	add	w9, w10, w9
	str	w9, [x0, #4]
	b	LBB0_8
LBB0_6:
	ldr	w8, [x0, #4]
	add	w8, w8, w9
	str	w8, [x0, #4]
	ret
LBB0_7:
	str	w9, [x0]
LBB0_8:
Lloh3:
	adrp	x9, _ff_mqc_nlps@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ff_mqc_nlps@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	w10, [x0, #4]
	add	w9, w10, w9
	str	w9, [x0, #4]
LBB0_10:
Lloh5:
	adrp	x9, _ff_mqc_nmps@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ff_mqc_nmps@GOTPAGEOFF]
LBB0_11:
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [x1]
	b	_renorme
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_mqc_qe,8,3                  ; @ff_mqc_qe
	.comm	_ff_mqc_nmps,8,3                ; @ff_mqc_nmps
	.comm	_ff_mqc_nlps,8,3                ; @ff_mqc_nlps
.subsections_via_symbols
