	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function enctheoraInit
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x4024000000000000              ## double 10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_enctheoraInit
	.p2align	4, 0x90
_enctheoraInit:                         ## @enctheoraInit
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, %r15
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%rbx)
	movq	%r12, 16(%rax)
	movq	(%r12), %rax
	movq	_HB_PASS_ENCODE_1ST@GOTPCREL(%rip), %r13
	movq	_HB_PASS_ENCODE_2ND@GOTPCREL(%rip), %rcx
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.1:
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_hb_get_temporary_filename
	movq	%rax, %rbx
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%rbx, %rdi
	callq	_hb_fopen
	movq	%rax, 8(%r15)
	movq	%rbx, %rdi
	callq	_free
LBB0_3:
	leaq	-160(%rbp), %rdi
	callq	_th_info_init
	movl	8(%r12), %eax
	movl	%eax, -160(%rbp)
	movl	12(%r12), %ecx
	movl	%ecx, -156(%rbp)
	addl	$15, %eax
	andl	$-16, %eax
	movl	%eax, -152(%rbp)
	addl	$15, %ecx
	andl	$-16, %ecx
	movl	%ecx, -148(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	movups	48(%r12), %xmm0
	movups	%xmm0, -116(%rbp)
	movq	_TH_CS_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movq	_TH_PF_420@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -124(%rbp)
	movq	16(%r12), %rax
	movq	_HB_INVALID_VIDEO_QUALITY@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movl	$0, %ecx
	cmpq	(%rdx), %rax
	jg	LBB0_5
## %bb.4:
	imull	$1000, 24(%r12), %ecx           ## imm = 0x3E8
	xorl	%eax, %eax
LBB0_5:
	movl	%ecx, -144(%rbp)
	movq	%rax, -136(%rbp)
	xorps	%xmm0, %xmm0
	cvtsi2sdq	40(%r12), %xmm0
	divsd	32(%r12), %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %ebx
	movl	%ebx, -48(%rbp)
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_hb_log
	decl	%ebx
	je	LBB0_8
## %bb.6:
	xorl	%r14d, %r14d
	movl	%ebx, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%eax
	incl	%r14d
	cmpl	$1, %ebx
	movl	%eax, %ebx
	ja	LBB0_7
LBB0_8:
	movl	%r14d, -128(%rbp)
	leaq	-160(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_th_encode_alloc
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_th_info_clear
	movl	(%r15), %edi
	movq	_TH_ENCCTL_SET_KEYFRAME_FREQUENCY_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	$4, %ecx
	xorl	%eax, %eax
	callq	_th_encode_ctl
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	movl	-48(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
LBB0_10:
	movq	_TH_RATECTL_CAP_UNDERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	(%r15), %edi
	movq	_TH_ENCCTL_SET_RATE_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movl	$4, %ecx
	xorl	%eax, %eax
	callq	_th_encode_ctl
	testl	%eax, %eax
	movq	_HB_PASS_ENCODE_2ND@GOTPCREL(%rip), %r14
	jns	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
LBB0_12:
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	je	LBB0_14
## %bb.13:
	cmpq	(%r14), %rax
	jne	LBB0_16
LBB0_14:
	movl	-48(%rbp), %eax
	leal	(,%rax,8), %ecx
	subl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, -44(%rbp)
	movl	(%r15), %edi
	movq	_TH_ENCCTL_SET_RATE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movl	$4, %ecx
	xorl	%eax, %eax
	callq	_th_encode_ctl
	testl	%eax, %eax
	jns	LBB0_16
## %bb.15:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
LBB0_16:
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jne	LBB0_23
## %bb.17:
	movl	(%r15), %edi
	movq	_TH_ENCCTL_2PASS_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movl	$8, %ecx
	xorl	%eax, %eax
	callq	_th_encode_ctl
	testl	%eax, %eax
	js	LBB0_20
## %bb.18:
	movl	%eax, %ebx
	movq	-72(%rbp), %rdi
	movq	8(%r15), %rcx
	movl	$1, %esi
	movl	%eax, %edx
	callq	_fwrite
	cmpl	%ebx, %eax
	jge	LBB0_22
## %bb.19:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.7(%rip), %rdi
	callq	_hb_error
	leaq	L_.str.8(%rip), %rdi
LBB0_21:
	callq	_hb_error
	jmp	LBB0_27
LBB0_22:
	movq	8(%r15), %rdi
	callq	_fflush
	movq	(%r12), %rax
LBB0_23:
	cmpq	(%r14), %rax
	jne	LBB0_25
## %bb.24:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	movl	(%r15), %edi
	movq	_TH_ENCCTL_2PASS_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_th_encode_ctl
	testl	%eax, %eax
	js	LBB0_26
LBB0_25:
	leaq	-52(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_th_comment_init
	movl	(%r15), %edi
	leaq	-72(%rbp), %r12
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r12, %rbx
	callq	_th_encode_flushheader
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	$256, %r12d                     ## imm = 0x100
	movq	(%rax), %rdi
	addq	%r12, %rdi
	movq	%rdi, 8(%r14)
	movq	-64(%rbp), %rsi
	movl	-72(%rbp), %edx
	callq	_memcpy
	movl	(%r15), %edi
	leaq	-52(%rbp), %rsi
	movq	%rbx, %r14
	movq	%rbx, %rdx
	callq	_th_encode_flushheader
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	addq	%r12, %rdi
	movq	%rdi, 8(%rbx)
	movq	-64(%rbp), %rsi
	movl	-72(%rbp), %edx
	callq	_memcpy
	movl	(%r15), %edi
	leaq	-52(%rbp), %rsi
	movq	%rsi, %r15
	movq	%r14, %rdx
	callq	_th_encode_flushheader
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movq	(%rax), %rax
	addq	16(%rax), %r12
	movq	%r12, 8(%rbx)
	movq	-64(%rbp), %rsi
	movl	-72(%rbp), %edx
	movq	%r12, %rdi
	callq	_memcpy
	movq	%r15, %rdi
	callq	_th_comment_clear
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_26:
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
LBB0_27:
	movl	$1, %eax
LBB0_28:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_PASS_ENCODE_1ST,8,3         ## @HB_PASS_ENCODE_1ST
	.comm	_HB_PASS_ENCODE_2ND,8,3         ## @HB_PASS_ENCODE_2ND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"theroa.log"

L_.str.1:                               ## @.str.1
	.asciz	"wb"

L_.str.2:                               ## @.str.2
	.asciz	"rb"

	.comm	_TH_CS_UNSPECIFIED,4,2          ## @TH_CS_UNSPECIFIED
	.comm	_TH_PF_420,4,2                  ## @TH_PF_420
	.comm	_HB_INVALID_VIDEO_QUALITY,8,3   ## @HB_INVALID_VIDEO_QUALITY
L_.str.3:                               ## @.str.3
	.asciz	"theora: keyint: %i"

	.comm	_TH_ENCCTL_SET_KEYFRAME_FREQUENCY_FORCE,4,2 ## @TH_ENCCTL_SET_KEYFRAME_FREQUENCY_FORCE
L_.str.4:                               ## @.str.4
	.asciz	"theora: Could not set keyframe interval to %d"

	.comm	_TH_RATECTL_CAP_UNDERFLOW,4,2   ## @TH_RATECTL_CAP_UNDERFLOW
	.comm	_TH_ENCCTL_SET_RATE_FLAGS,4,2   ## @TH_ENCCTL_SET_RATE_FLAGS
L_.str.5:                               ## @.str.5
	.asciz	"theora: Could not set soft ratecontrol"

	.comm	_TH_ENCCTL_SET_RATE_BUFFER,4,2  ## @TH_ENCCTL_SET_RATE_BUFFER
L_.str.6:                               ## @.str.6
	.asciz	"theora: Could not set rate control buffer"

	.comm	_TH_ENCCTL_2PASS_OUT,4,2        ## @TH_ENCCTL_2PASS_OUT
L_.str.7:                               ## @.str.7
	.asciz	"Could not set up the first pass of two-pass mode.\n"

L_.str.8:                               ## @.str.8
	.asciz	"Did you remember to specify an estimated bitrate?\n"

L_.str.9:                               ## @.str.9
	.asciz	"Unable to write to two-pass data file.\n"

L_.str.10:                              ## @.str.10
	.asciz	"enctheora: init 2nd pass"

	.comm	_TH_ENCCTL_2PASS_IN,4,2         ## @TH_ENCCTL_2PASS_IN
L_.str.11:                              ## @.str.11
	.asciz	"theora: Could not set up the second pass of two-pass mode."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enctheoraInit                  ; -- Begin function enctheoraInit
	.p2align	2
_enctheoraInit:                         ; @enctheoraInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x21, x1
	mov	x19, x0
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x20, x0
	str	x0, [x19, #8]
	str	x21, [x0, #16]
	ldr	x8, [x21]
Lloh0:
	adrp	x24, _HB_PASS_ENCODE_1ST@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HB_PASS_ENCODE_1ST@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh2:
	adrp	x23, _HB_PASS_ENCODE_2ND@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HB_PASS_ENCODE_2ND@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_get_temporary_filename
	mov	x22, x0
	ldr	x8, [x21]
	ldr	x9, [x24]
Lloh6:
	adrp	x10, l_.str.2@PAGE
Lloh7:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh8:
	adrp	x11, l_.str.1@PAGE
Lloh9:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x1, x11, x10, eq
	bl	_hb_fopen
	str	x0, [x20, #8]
	mov	x0, x22
	bl	_free
LBB0_2:
	add	x0, sp, #56
	bl	_th_info_init
	ldr	d0, [x21, #8]
	movi.2s	v1, #15
	add.2s	v1, v0, v1
	bic.2s	v1, #15
	stp	d0, d1, [sp, #56]
	stp	xzr, xzr, [sp, #120]
	ldr	q0, [x21, #48]
Lloh10:
	adrp	x8, _TH_CS_UNSPECIFIED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TH_CS_UNSPECIFIED@GOTPAGEOFF]
	stur	q0, [sp, #100]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _TH_PF_420@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TH_PF_420@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #92]
	ldr	x8, [x21, #16]
Lloh16:
	adrp	x9, _HB_INVALID_VIDEO_QUALITY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _HB_INVALID_VIDEO_QUALITY@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.3:
	mov	w9, #0
	b	LBB0_5
LBB0_4:
	mov	x8, #0
	ldr	w9, [x21, #24]
	mov	w10, #1000
	mul	w9, w9, w10
LBB0_5:
	str	w9, [sp, #72]
	str	x8, [sp, #80]
	ldp	d1, d0, [x21, #32]
	scvtf	d0, d0
	fdiv	d0, d0, d1
	fmov	d1, #0.50000000
	fadd	d0, d0, d1
	fmov	d1, #10.00000000
	fmul	d0, d0, d1
	fcvtzs	w22, d0
	stur	w22, [x29, #-52]
	str	x22, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hb_log
	mov	w9, #0
	subs	w8, w22, #1
	b.eq	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	asr	w10, w8, #1
	add	w9, w9, #1
	cmp	w8, #1
	mov	x8, x10
	b.hi	LBB0_6
LBB0_7:
	str	w9, [sp, #88]
	add	x0, sp, #56
	bl	_th_encode_alloc
	str	w0, [x20]
	add	x0, sp, #56
	bl	_th_info_clear
	ldr	w0, [x20]
Lloh21:
	adrp	x8, _TH_ENCCTL_SET_KEYFRAME_FREQUENCY_FORCE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TH_ENCCTL_SET_KEYFRAME_FREQUENCY_FORCE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w8, #4
	sub	x9, x29, #52
	stp	x9, x8, [sp]
	bl	_th_encode_ctl
	tbz	w0, #31, LBB0_9
; %bb.8:
	ldur	w8, [x29, #-52]
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_hb_log
LBB0_9:
Lloh26:
	adrp	x8, _TH_RATECTL_CAP_UNDERFLOW@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TH_RATECTL_CAP_UNDERFLOW@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	ldr	w0, [x20]
Lloh29:
	adrp	x8, _TH_ENCCTL_SET_RATE_FLAGS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TH_ENCCTL_SET_RATE_FLAGS@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	w8, #4
	add	x9, sp, #28
	stp	x9, x8, [sp]
	bl	_th_encode_ctl
	tbz	w0, #31, LBB0_11
; %bb.10:
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_hb_log
LBB0_11:
	ldr	x8, [x21]
	ldr	x9, [x24]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_14
; %bb.12:
	ldur	w8, [x29, #-52]
	lsl	w9, w8, #3
	sub	w8, w9, w8
	asr	w8, w8, #1
	str	w8, [sp, #28]
	ldr	w0, [x20]
Lloh34:
	adrp	x8, _TH_ENCCTL_SET_RATE_BUFFER@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TH_ENCCTL_SET_RATE_BUFFER@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	w8, #4
	add	x9, sp, #28
	stp	x9, x8, [sp]
	bl	_th_encode_ctl
	tbz	w0, #31, LBB0_14
; %bb.13:
Lloh37:
	adrp	x0, l_.str.6@PAGE
Lloh38:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_hb_log
LBB0_14:
	ldr	x8, [x21]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.15:
	ldr	w0, [x20]
Lloh39:
	adrp	x8, _TH_ENCCTL_2PASS_OUT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TH_ENCCTL_2PASS_OUT@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	w8, #8
	add	x9, sp, #32
	stp	x9, x8, [sp]
	bl	_th_encode_ctl
	tbnz	w0, #31, LBB0_18
; %bb.16:
	mov	x22, x0
	ldr	x0, [sp, #32]
	ldr	x3, [x20, #8]
	mov	w1, #1
	mov	x2, x22
	bl	_fwrite
	cmp	w0, w22
	b.ge	LBB0_20
; %bb.17:
Lloh42:
	adrp	x0, l_.str.9@PAGE
Lloh43:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh44:
	adrp	x0, l_.str.7@PAGE
Lloh45:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_hb_error
Lloh46:
	adrp	x0, l_.str.8@PAGE
Lloh47:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_19:
	bl	_hb_error
	b	LBB0_25
LBB0_20:
	ldr	x0, [x20, #8]
	bl	_fflush
	ldr	x8, [x21]
LBB0_21:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.22:
Lloh48:
	adrp	x0, l_.str.10@PAGE
Lloh49:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_hb_log
	ldr	w0, [x20]
Lloh50:
	adrp	x8, _TH_ENCCTL_2PASS_IN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _TH_ENCCTL_2PASS_IN@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	stp	xzr, xzr, [sp]
	bl	_th_encode_ctl
	tbnz	w0, #31, LBB0_24
LBB0_23:
	add	x0, sp, #52
	bl	_th_comment_init
	ldr	w0, [x20]
	add	x1, sp, #52
	add	x2, sp, #32
	bl	_th_encode_flushheader
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x21, [x8]
	add	x1, sp, #32
	mov	x0, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x0, x8, #256
	str	x0, [x21, #8]
	ldr	x1, [sp, #40]
	ldr	w2, [sp, #32]
	bl	_memcpy
	ldr	w0, [x20]
	add	x1, sp, #52
	add	x2, sp, #32
	bl	_th_encode_flushheader
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x21, [x8, #8]
	add	x1, sp, #32
	mov	x0, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	add	x0, x8, #256
	str	x0, [x21, #8]
	ldr	x1, [sp, #40]
	ldr	w2, [sp, #32]
	bl	_memcpy
	ldr	w0, [x20]
	add	x1, sp, #52
	add	x2, sp, #32
	bl	_th_encode_flushheader
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x20, [x8, #16]
	add	x1, sp, #32
	mov	x0, x20
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	add	x0, x8, #256
	str	x0, [x20, #8]
	ldr	x1, [sp, #40]
	ldr	w2, [sp, #32]
	bl	_memcpy
	add	x0, sp, #52
	bl	_th_comment_clear
	mov	w0, #0
	b	LBB0_26
LBB0_24:
Lloh53:
	adrp	x0, l_.str.11@PAGE
Lloh54:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_hb_log
LBB0_25:
	mov	w0, #1
LBB0_26:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_PASS_ENCODE_1ST,8,3         ; @HB_PASS_ENCODE_1ST
	.comm	_HB_PASS_ENCODE_2ND,8,3         ; @HB_PASS_ENCODE_2ND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"theroa.log"

l_.str.1:                               ; @.str.1
	.asciz	"wb"

l_.str.2:                               ; @.str.2
	.asciz	"rb"

	.comm	_TH_CS_UNSPECIFIED,4,2          ; @TH_CS_UNSPECIFIED
	.comm	_TH_PF_420,4,2                  ; @TH_PF_420
	.comm	_HB_INVALID_VIDEO_QUALITY,8,3   ; @HB_INVALID_VIDEO_QUALITY
l_.str.3:                               ; @.str.3
	.asciz	"theora: keyint: %i"

	.comm	_TH_ENCCTL_SET_KEYFRAME_FREQUENCY_FORCE,4,2 ; @TH_ENCCTL_SET_KEYFRAME_FREQUENCY_FORCE
l_.str.4:                               ; @.str.4
	.asciz	"theora: Could not set keyframe interval to %d"

	.comm	_TH_RATECTL_CAP_UNDERFLOW,4,2   ; @TH_RATECTL_CAP_UNDERFLOW
	.comm	_TH_ENCCTL_SET_RATE_FLAGS,4,2   ; @TH_ENCCTL_SET_RATE_FLAGS
l_.str.5:                               ; @.str.5
	.asciz	"theora: Could not set soft ratecontrol"

	.comm	_TH_ENCCTL_SET_RATE_BUFFER,4,2  ; @TH_ENCCTL_SET_RATE_BUFFER
l_.str.6:                               ; @.str.6
	.asciz	"theora: Could not set rate control buffer"

	.comm	_TH_ENCCTL_2PASS_OUT,4,2        ; @TH_ENCCTL_2PASS_OUT
l_.str.7:                               ; @.str.7
	.asciz	"Could not set up the first pass of two-pass mode.\n"

l_.str.8:                               ; @.str.8
	.asciz	"Did you remember to specify an estimated bitrate?\n"

l_.str.9:                               ; @.str.9
	.asciz	"Unable to write to two-pass data file.\n"

l_.str.10:                              ; @.str.10
	.asciz	"enctheora: init 2nd pass"

	.comm	_TH_ENCCTL_2PASS_IN,4,2         ; @TH_ENCCTL_2PASS_IN
l_.str.11:                              ; @.str.11
	.asciz	"theora: Could not set up the second pass of two-pass mode."

.subsections_via_symbols
