	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xvid_ff_2pass_create
_xvid_ff_2pass_create:                  ## @xvid_ff_2pass_create
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	(%r12), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movb	$0, (%rbx)
	movq	%rbx, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_BUFFER_REMAINING
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_BUFFER_CAT
	cltq
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_BUFFER_REMAINING
	movl	%eax, %r13d
	movq	_XVID_VERSION@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_XVID_VERSION_MAJOR
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_XVID_VERSION_MINOR
	movl	%eax, %r14d
	movl	(%r15), %edi
	callq	_XVID_VERSION_PATCH
	leaq	L_.str.1(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_snprintf
	movq	(%r12), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_XVID_ERR_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XVID_ERR_FAIL,4,2              ## @XVID_ERR_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"# ffmpeg 2-pass log file, using xvid codec\n"

L_.str.1:                               ## @.str.1
	.asciz	"# Do not modify. libxvidcore version: %d.%d.%d\n\n"

	.comm	_XVID_VERSION,4,2               ## @XVID_VERSION
	.no_dead_strip	_xvid_ff_2pass_create
.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_create
_xvid_ff_2pass_create:                  ; @xvid_ff_2pass_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x24, [x0]
	ldr	x8, [x24]
	ldr	x20, [x8]
	cbz	x20, LBB0_2
; %bb.1:
	mov	x19, x1
	strb	wzr, [x20]
	mov	x0, x20
	bl	_BUFFER_REMAINING
	mov	x1, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_snprintf
	mov	x0, x20
	bl	_BUFFER_CAT
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	mov	x0, x20
	bl	_BUFFER_REMAINING
	mov	x20, x0
Lloh2:
	adrp	x25, _XVID_VERSION@GOTPAGE
Lloh3:
	ldr	x25, [x25, _XVID_VERSION@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_XVID_VERSION_MAJOR
	mov	x22, x0
	ldr	w0, [x25]
	bl	_XVID_VERSION_MINOR
	mov	x23, x0
	ldr	w0, [x25]
	bl	_XVID_VERSION_PATCH
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #8]
	str	x22, [sp]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_snprintf
	mov	w0, #0
	ldr	x8, [x24]
	str	x8, [x19]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _XVID_ERR_FAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XVID_ERR_FAIL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_XVID_ERR_FAIL,4,2              ; @XVID_ERR_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"# ffmpeg 2-pass log file, using xvid codec\n"

l_.str.1:                               ; @.str.1
	.asciz	"# Do not modify. libxvidcore version: %d.%d.%d\n\n"

	.comm	_XVID_VERSION,4,2               ; @XVID_VERSION
	.no_dead_strip	_xvid_ff_2pass_create
.subsections_via_symbols
