	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xvid_ff_2pass_before
_xvid_ff_2pass_before:                  ## @xvid_ff_2pass_before
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	movq	_XVID_ZONE_QUANT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
LBB0_2:
	movl	$2, (%rsi)
	movq	_XVID_ME_CHROMA_PVOP@GOTPCREL(%rip), %rcx
	movq	_XVID_ME_CHROMA_BVOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_XVID_ME_EXTSEARCH16@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_XVID_ME_ADVANCEDDIAMOND16@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_XVID_ME_FAST_MODEINTERPOLATE@GOTPCREL(%rip), %rdx
	movq	_XVID_ME_SKIP_DELTASEARCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_XVID_ME_FASTREFINE16@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_XVID_ME_BFRAME_EARLYSTOP@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_XVID_VOP_MODEDECISION_RD@GOTPCREL(%rip), %rdx
	movq	_XVID_VOP_FAST_MODEDECISION_RD@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rdx), %edi
	notl	%eax
	movq	_XVID_VOP_TRELLISQUANT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %edi
	movq	_XVID_VOP_INTER4V@GOTPCREL(%rip), %rdx
	orl	(%rdx), %edi
	movq	_XVID_VOP_HQACPRED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %edi
	movq	_XVID_VOL_GMC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, 12(%rsi)
	notl	%edi
	andl	%edi, 4(%rsi)
	andl	8(%rsi), %eax
	orl	%ecx, %eax
	movl	%eax, 8(%rsi)
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XVID_ZONE_QUANT,8,3            ## @XVID_ZONE_QUANT
	.comm	_XVID_ME_CHROMA_PVOP,4,2        ## @XVID_ME_CHROMA_PVOP
	.comm	_XVID_ME_CHROMA_BVOP,4,2        ## @XVID_ME_CHROMA_BVOP
	.comm	_XVID_ME_EXTSEARCH16,4,2        ## @XVID_ME_EXTSEARCH16
	.comm	_XVID_ME_ADVANCEDDIAMOND16,4,2  ## @XVID_ME_ADVANCEDDIAMOND16
	.comm	_XVID_ME_FAST_MODEINTERPOLATE,4,2 ## @XVID_ME_FAST_MODEINTERPOLATE
	.comm	_XVID_ME_SKIP_DELTASEARCH,4,2   ## @XVID_ME_SKIP_DELTASEARCH
	.comm	_XVID_ME_FASTREFINE16,4,2       ## @XVID_ME_FASTREFINE16
	.comm	_XVID_ME_BFRAME_EARLYSTOP,4,2   ## @XVID_ME_BFRAME_EARLYSTOP
	.comm	_XVID_VOP_MODEDECISION_RD,4,2   ## @XVID_VOP_MODEDECISION_RD
	.comm	_XVID_VOP_FAST_MODEDECISION_RD,4,2 ## @XVID_VOP_FAST_MODEDECISION_RD
	.comm	_XVID_VOP_TRELLISQUANT,4,2      ## @XVID_VOP_TRELLISQUANT
	.comm	_XVID_VOP_INTER4V,4,2           ## @XVID_VOP_INTER4V
	.comm	_XVID_VOP_HQACPRED,4,2          ## @XVID_VOP_HQACPRED
	.comm	_XVID_VOL_GMC,4,2               ## @XVID_VOL_GMC
	.no_dead_strip	_xvid_ff_2pass_before
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xvid_ff_2pass_before
_xvid_ff_2pass_before:                  ; @xvid_ff_2pass_before
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _XVID_ZONE_QUANT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XVID_ZONE_QUANT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_2:
	mov	w8, #2
	str	w8, [x1]
Lloh3:
	adrp	x8, _XVID_ME_CHROMA_PVOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XVID_ME_CHROMA_PVOP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _XVID_ME_CHROMA_BVOP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XVID_ME_CHROMA_BVOP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _XVID_ME_EXTSEARCH16@GOTPAGE
Lloh10:
	ldr	x10, [x10, _XVID_ME_EXTSEARCH16@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _XVID_ME_ADVANCEDDIAMOND16@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XVID_ME_ADVANCEDDIAMOND16@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _XVID_ME_FAST_MODEINTERPOLATE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _XVID_ME_FAST_MODEINTERPOLATE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _XVID_ME_SKIP_DELTASEARCH@GOTPAGE
Lloh19:
	ldr	x10, [x10, _XVID_ME_SKIP_DELTASEARCH@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh21:
	adrp	x10, _XVID_ME_FASTREFINE16@GOTPAGE
Lloh22:
	ldr	x10, [x10, _XVID_ME_FASTREFINE16@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh24:
	adrp	x10, _XVID_ME_BFRAME_EARLYSTOP@GOTPAGE
Lloh25:
	ldr	x10, [x10, _XVID_ME_BFRAME_EARLYSTOP@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh27:
	adrp	x10, _XVID_VOP_MODEDECISION_RD@GOTPAGE
Lloh28:
	ldr	x10, [x10, _XVID_VOP_MODEDECISION_RD@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
Lloh30:
	adrp	x11, _XVID_VOP_FAST_MODEDECISION_RD@GOTPAGE
Lloh31:
	ldr	x11, [x11, _XVID_VOP_FAST_MODEDECISION_RD@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
Lloh33:
	adrp	x12, _XVID_VOP_TRELLISQUANT@GOTPAGE
Lloh34:
	ldr	x12, [x12, _XVID_VOP_TRELLISQUANT@GOTPAGEOFF]
	orr	w10, w11, w10
Lloh35:
	ldr	w11, [x12]
	orr	w10, w10, w11
Lloh36:
	adrp	x11, _XVID_VOP_INTER4V@GOTPAGE
Lloh37:
	ldr	x11, [x11, _XVID_VOP_INTER4V@GOTPAGEOFF]
Lloh38:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh39:
	adrp	x11, _XVID_VOP_HQACPRED@GOTPAGE
Lloh40:
	ldr	x11, [x11, _XVID_VOP_HQACPRED@GOTPAGEOFF]
Lloh41:
	ldr	w11, [x11]
Lloh42:
	adrp	x12, _XVID_VOL_GMC@GOTPAGE
Lloh43:
	ldr	x12, [x12, _XVID_VOL_GMC@GOTPAGEOFF]
	orr	w10, w10, w11
Lloh44:
	ldr	w11, [x12]
	ldr	w12, [x1, #12]
	bic	w11, w12, w11
	str	w11, [x1, #12]
	ldp	w11, w12, [x1, #4]
	bic	w10, w11, w10
	bic	w8, w12, w8
	orr	w8, w9, w8
	stp	w10, w8, [x1, #4]
LBB0_3:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XVID_ZONE_QUANT,8,3            ; @XVID_ZONE_QUANT
	.comm	_XVID_ME_CHROMA_PVOP,4,2        ; @XVID_ME_CHROMA_PVOP
	.comm	_XVID_ME_CHROMA_BVOP,4,2        ; @XVID_ME_CHROMA_BVOP
	.comm	_XVID_ME_EXTSEARCH16,4,2        ; @XVID_ME_EXTSEARCH16
	.comm	_XVID_ME_ADVANCEDDIAMOND16,4,2  ; @XVID_ME_ADVANCEDDIAMOND16
	.comm	_XVID_ME_FAST_MODEINTERPOLATE,4,2 ; @XVID_ME_FAST_MODEINTERPOLATE
	.comm	_XVID_ME_SKIP_DELTASEARCH,4,2   ; @XVID_ME_SKIP_DELTASEARCH
	.comm	_XVID_ME_FASTREFINE16,4,2       ; @XVID_ME_FASTREFINE16
	.comm	_XVID_ME_BFRAME_EARLYSTOP,4,2   ; @XVID_ME_BFRAME_EARLYSTOP
	.comm	_XVID_VOP_MODEDECISION_RD,4,2   ; @XVID_VOP_MODEDECISION_RD
	.comm	_XVID_VOP_FAST_MODEDECISION_RD,4,2 ; @XVID_VOP_FAST_MODEDECISION_RD
	.comm	_XVID_VOP_TRELLISQUANT,4,2      ; @XVID_VOP_TRELLISQUANT
	.comm	_XVID_VOP_INTER4V,4,2           ; @XVID_VOP_INTER4V
	.comm	_XVID_VOP_HQACPRED,4,2          ; @XVID_VOP_HQACPRED
	.comm	_XVID_VOL_GMC,4,2               ; @XVID_VOL_GMC
	.no_dead_strip	_xvid_ff_2pass_before
.subsections_via_symbols
