	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AVIFILE_EncodeFrame
_AVIFILE_EncodeFrame:                   ## @AVIFILE_EncodeFrame
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movl	$0, -60(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rdi), %rsi
	movq	8(%rdi), %r10
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%r10, %rcx
	subq	16(%r13), %rcx
	cmpq	%rsi, %rcx
	jge	LBB0_3
LBB0_2:
	xorl	%ecx, %ecx
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	cmpq	80(%r13), %r10
	jne	LBB0_4
LBB0_3:
	movq	_AVIIF_KEYFRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -60(%rbp)
	movq	_ICCOMPRESS_KEYFRAME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	80(%r13), %rax
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.5:
	cmpq	%rax, %r10
	jne	LBB0_18
## %bb.6:
	movq	_AVIIF_KEYFRAME@GOTPCREL(%rip), %rax
	movslq	24(%r13), %rbx
	movl	28(%r13), %edi
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.7:
	addl	%ebx, %edi
	movl	$0, 28(%r13)
	movl	%edi, %ebx
	testl	%ebx, %ebx
	jne	LBB0_21
	jmp	LBB0_20
LBB0_16:
	cmpq	%rax, %r10
	jne	LBB0_18
## %bb.17:
	movl	28(%r13), %ebx
	addl	24(%r13), %ebx
	movl	$0, 28(%r13)
	testl	%ebx, %ebx
	jne	LBB0_21
	jmp	LBB0_20
LBB0_18:
	movq	_MAX_FRAMESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_20
LBB0_21:
	movq	_VIDCF_CRUNCH@GOTPCREL(%rip), %rax
	movq	_VIDCF_QUALITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 32(%r13)
	sete	%al
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_22
LBB0_8:
	xorl	%ecx, %ecx
	cmpl	%edi, %ebx
	jl	LBB0_12
## %bb.9:
	movq	%rbx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.11:
	movq	%rbx, %rax
	cqto
	idivq	%rsi
	movq	%rax, %rcx
	jmp	LBB0_12
LBB0_10:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ecx
LBB0_12:
	movq	%rbx, %r8
	leal	(%rcx,%rdi), %eax
	movslq	%eax, %rbx
	movq	%rbx, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_13
## %bb.14:
	movq	%rbx, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_15
LBB0_13:
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_15:
	movq	%r8, %rbx
	subl	%ecx, %ebx
	addl	%eax, %ebx
	subl	%eax, %edi
	movl	%edi, 28(%r13)
	testl	%ebx, %ebx
	jne	LBB0_21
LBB0_20:
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_22:
	movq	_ICQUALITY_LOW@GOTPCREL(%rip), %rax
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_ICCOMPRESS_KEYFRAME@GOTPCREL(%rip), %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rdx)
	jne	LBB0_24
## %bb.23:
	movq	_VIDCF_FASTTEMPORALC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 32(%r13)
	cmovel	-52(%rbp), %esi                 ## 4-byte Folded Reload
LBB0_24:
	movl	88(%r13), %r12d
	movl	(%rax), %r15d
	leal	7(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	sarl	$3, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r14d
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r11
	movl	$0, -80(%rbp)
	testl	%esi, %esi
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	40(%r13), %rbx
	movq	48(%r13), %rax
LBB0_28:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	72(%r13), %edi
	movq	64(%r13), %rdx
	movl	56(%r13), %ecx
	subq	$8, %rsp
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-72(%rbp), %r8d                 ## 4-byte Reload
	movl	-76(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rbx
	pushq	%rax
	pushq	%r14
	movq	%r11, %rbx
	pushq	%r11
	pushq	%r10
	leaq	-60(%rbp), %rax
	pushq	%rax
	leaq	-80(%rbp), %rax
	pushq	%rax
	callq	_ICCompress
	addq	$64, %rsp
	movq	_ICERR_NEWPALETTE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	_ICERR_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_46
LBB0_31:                                ##   in Loop: Header=BB0_25 Depth=1
	cmpb	$0, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	64(%r13), %rcx
	movl	%ebx, %eax
	subl	(%rcx), %eax
	jge	LBB0_34
## %bb.40:                              ##   in Loop: Header=BB0_25 Depth=1
	subl	%r15d, %r12d
	cmpl	$2, %r12d
	jl	LBB0_35
## %bb.41:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	36(%r13), %r8d
	cmpl	%r8d, %r14d
	jne	LBB0_44
LBB0_43:                                ##   in Loop: Header=BB0_25 Depth=1
	leal	(%r15,%r14), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
LBB0_45:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%r14d, %r12d
	testl	%ecx, %ecx
	jne	LBB0_58
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	%r12d, %ecx
	subl	%r14d, %ecx
	cmpl	$11, %ecx
	jl	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	_MAX_FRAMESIZE_DIFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	cmpl	%ecx, %edx
	cmovgl	%edx, %ecx
	cmpl	%eax, %ecx
	jge	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_39
## %bb.47:                              ##   in Loop: Header=BB0_25 Depth=1
	addl	%r12d, %r15d
	movl	%r15d, %eax
	shrl	$31, %eax
	addl	%r15d, %eax
	sarl	%eax
	jmp	LBB0_48
LBB0_37:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	%r14d, %eax
	movl	%r15d, %r14d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_48
LBB0_39:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	%r14d, %eax
	movl	%r15d, %r14d
LBB0_48:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %r15d
	testl	%ecx, %ecx
	je	LBB0_50
LBB0_58:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	8(%r13), %r10
	movl	%eax, %r14d
	jmp	LBB0_25
LBB0_44:                                ##   in Loop: Header=BB0_25 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_FIXME
	movl	%r14d, %eax
	jmp	LBB0_45
LBB0_32:
	movq	_ICCOMPRESS_KEYFRAME@GOTPCREL(%rip), %rcx
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_51
LBB0_35:
	movl	%r14d, %eax
LBB0_50:
	movq	_ICCOMPRESS_KEYFRAME@GOTPCREL(%rip), %rcx
LBB0_51:
	movl	%eax, 36(%r13)
	movq	64(%r13), %rdx
	subl	(%rdx), %ebx
	movl	%ebx, 28(%r13)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_53
## %bb.52:
	movq	8(%r13), %rax
	movq	%rax, 16(%r13)
LBB0_53:
	movq	40(%r13), %r9
	testq	%r9, %r9
	je	LBB0_56
## %bb.54:
	cmpq	$1, (%r13)
	je	LBB0_56
## %bb.55:
	movl	72(%r13), %edi
	movl	56(%r13), %ecx
	movq	48(%r13), %r8
	xorl	%esi, %esi
	callq	_ICDecompress
LBB0_56:
	movq	_AVIERR_OK@GOTPCREL(%rip), %rax
LBB0_57:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_46:
	movq	_AVIERR_COMPRESSOR@GOTPCREL(%rip), %rax
	jmp	LBB0_57
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_AVIIF_KEYFRAME,4,2             ## @AVIIF_KEYFRAME
	.comm	_ICCOMPRESS_KEYFRAME,4,2        ## @ICCOMPRESS_KEYFRAME
	.comm	_MAX_FRAMESIZE,4,2              ## @MAX_FRAMESIZE
	.comm	_VIDCF_CRUNCH,4,2               ## @VIDCF_CRUNCH
	.comm	_VIDCF_QUALITY,4,2              ## @VIDCF_QUALITY
	.comm	_ICQUALITY_LOW,4,2              ## @ICQUALITY_LOW
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_VIDCF_FASTTEMPORALC,4,2        ## @VIDCF_FASTTEMPORALC
	.comm	_ICERR_NEWPALETTE,4,2           ## @ICERR_NEWPALETTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	": codec has changed palette -- unhandled!\n"

	.comm	_ICERR_OK,4,2                   ## @ICERR_OK
	.comm	_AVIERR_COMPRESSOR,4,2          ## @AVIERR_COMPRESSOR
	.comm	_MAX_FRAMESIZE_DIFF,4,2         ## @MAX_FRAMESIZE_DIFF
L_.str.1:                               ## @.str.1
	.asciz	": no new quality computed min=%u cur=%u max=%u last=%u\n"

	.comm	_AVIERR_OK,4,2                  ## @AVIERR_OK
	.no_dead_strip	_AVIFILE_EncodeFrame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AVIFILE_EncodeFrame
_AVIFILE_EncodeFrame:                   ; @AVIFILE_EncodeFrame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	w1, w2, [sp, #48]               ; 8-byte Folded Spill
	mov	x19, x0
	str	wzr, [sp, #60]
	ldp	x9, x8, [x0]
Lloh0:
	adrp	x14, _ICCOMPRESS_KEYFRAME@GOTPAGE
Lloh1:
	ldr	x14, [x14, _ICCOMPRESS_KEYFRAME@GOTPAGEOFF]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x10, [x19, #16]
	sub	x10, x8, x10
	cmp	x10, x9
	b.ge	LBB0_3
LBB0_2:
	ldr	x10, [x19, #80]
	cmp	x8, x10
	b.ne	LBB0_4
LBB0_3:
Lloh2:
	adrp	x10, _AVIIF_KEYFRAME@GOTPAGE
Lloh3:
	ldr	x10, [x10, _AVIIF_KEYFRAME@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	str	w10, [sp, #60]
	ldr	w22, [x14]
	b	LBB0_5
LBB0_4:
	mov	w10, #0
	mov	w22, #0
LBB0_5:
	ldr	x11, [x19, #80]
	cmp	x8, x11
	cbz	x9, LBB0_9
; %bb.6:
	b.ne	LBB0_11
; %bb.7:
Lloh5:
	adrp	x11, _AVIIF_KEYFRAME@GOTPAGE
Lloh6:
	ldr	x11, [x11, _AVIIF_KEYFRAME@GOTPAGEOFF]
Lloh7:
	ldr	w13, [x11]
	ldp	w12, w11, [x19, #24]
                                        ; kill: def $w12 killed $w12 def $x12
	sxtw	x12, w12
	tst	w13, w10
	b.eq	LBB0_12
; %bb.8:
	add	w26, w11, w12
	str	wzr, [x19, #28]
	b	LBB0_13
LBB0_9:
	b.ne	LBB0_11
; %bb.10:
	ldp	w9, w10, [x19, #24]
	add	w26, w10, w9
	str	wzr, [x19, #28]
	b	LBB0_13
LBB0_11:
Lloh8:
	adrp	x9, _MAX_FRAMESIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAX_FRAMESIZE@GOTPAGEOFF]
Lloh10:
	ldr	w26, [x9]
	b	LBB0_13
LBB0_12:
	sdiv	x10, x12, x9
	cmp	w12, w11
	csel	w10, wzr, w10, lt
	add	w13, w10, w11
	sxtw	x13, w13
	sdiv	x9, x13, x9
	sub	w10, w12, w10
	add	w26, w10, w9
	sub	w9, w11, w9
	str	w9, [x19, #28]
LBB0_13:
Lloh11:
	adrp	x9, _FALSE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	cbz	w26, LBB0_15
; %bb.14:
	ldr	w10, [x19, #32]
Lloh13:
	adrp	x11, _VIDCF_CRUNCH@GOTPAGE
Lloh14:
	ldr	x11, [x11, _VIDCF_CRUNCH@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
Lloh16:
	adrp	x12, _VIDCF_QUALITY@GOTPAGE
Lloh17:
	ldr	x12, [x12, _VIDCF_QUALITY@GOTPAGEOFF]
Lloh18:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w11, w10
	cset	w28, eq
	b	LBB0_16
LBB0_15:
	mov	w28, #0
LBB0_16:
	ldr	w24, [x9]
	ldr	w21, [x19, #88]
Lloh19:
	adrp	x9, _ICQUALITY_LOW@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ICQUALITY_LOW@GOTPAGEOFF]
Lloh21:
	ldr	w25, [x9]
Lloh22:
	adrp	x9, _TRUE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh24:
	ldr	w23, [x9]
	ldr	w9, [x14]
	tst	w9, w22
	b.ne	LBB0_18
; %bb.17:
	ldr	w9, [x19, #32]
Lloh25:
	adrp	x10, _VIDCF_FASTTEMPORALC@GOTPAGE
Lloh26:
	ldr	x10, [x10, _VIDCF_FASTTEMPORALC@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	w10, w9
	csel	w23, w24, w23, eq
LBB0_18:
	add	w9, w26, #7
	cmp	w26, #0
	csel	w9, w9, w26, lt
	asr	w27, w9, #3
	mov	x20, x21
	str	w21, [sp, #44]                  ; 4-byte Folded Spill
	str	wzr, [sp, #56]
	cbz	w23, LBB0_20
LBB0_19:
	mov	x9, #0
	mov	x10, #0
	b	LBB0_21
LBB0_20:
	ldp	x10, x9, [x19, #40]
LBB0_21:
	ldr	w0, [x19, #72]
	ldr	x2, [x19, #64]
	ldr	w3, [x19, #56]
	stp	x9, x10, [sp, #16]
	add	x6, sp, #56
	add	x7, sp, #60
	stp	w26, w20, [sp, #8]
	str	x8, [sp]
	mov	x1, x22
	ldp	w4, w5, [sp, #48]               ; 8-byte Folded Reload
	bl	_ICCompress
Lloh28:
	adrp	x8, _ICERR_NEWPALETTE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ICERR_NEWPALETTE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_23
; %bb.22:
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	b	LBB0_24
LBB0_23:
Lloh33:
	adrp	x8, _ICERR_OK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ICERR_OK@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_45
LBB0_24:
	cbz	w28, LBB0_35
; %bb.25:
	ldr	x8, [x19, #64]
	ldr	w8, [x8]
	subs	w8, w26, w8
	b.ge	LBB0_31
; %bb.26:
	sub	w8, w21, w25
	cmp	w8, #2
	b.lt	LBB0_36
; %bb.27:
	cbnz	w24, LBB0_29
; %bb.28:
	ldr	w8, [x19, #36]
	cmp	w20, w8
	b.ne	LBB0_34
LBB0_29:
	add	w8, w25, w20
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w9, w8, #1
LBB0_30:
Lloh36:
	adrp	x8, _TRUE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	mov	x24, x8
	mov	x21, x20
	cbnz	w8, LBB0_33
	b	LBB0_37
LBB0_31:
	sub	w9, w21, w20
	cmp	w9, #11
	b.lt	LBB0_36
; %bb.32:
Lloh39:
	adrp	x9, _MAX_FRAMESIZE_DIFF@GOTPAGE
Lloh40:
	ldr	x9, [x9, _MAX_FRAMESIZE_DIFF@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	cmp	w27, w9
	csel	w9, w27, w9, gt
	add	w10, w25, w21
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	cmp	w9, w8
	ccmp	w24, #0, #4, lt
	csel	w9, w20, w10, eq
	csel	w25, w25, w20, eq
Lloh42:
	adrp	x8, _TRUE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	cbz	w8, LBB0_37
LBB0_33:
	ldr	x8, [x19, #8]
	mov	x20, x9
	str	wzr, [sp, #56]
	cbnz	w23, LBB0_19
	b	LBB0_20
LBB0_34:
	stp	x20, x8, [sp, #16]
	stp	x25, x20, [sp]
Lloh45:
	adrp	x0, l_.str.1@PAGE
Lloh46:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
	mov	x9, x20
	b	LBB0_30
LBB0_35:
Lloh47:
	adrp	x10, _ICCOMPRESS_KEYFRAME@GOTPAGE
Lloh48:
	ldr	x10, [x10, _ICCOMPRESS_KEYFRAME@GOTPAGEOFF]
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	b	LBB0_38
LBB0_36:
	mov	x9, x20
LBB0_37:
Lloh49:
	adrp	x10, _ICCOMPRESS_KEYFRAME@GOTPAGE
Lloh50:
	ldr	x10, [x10, _ICCOMPRESS_KEYFRAME@GOTPAGEOFF]
LBB0_38:
	str	w9, [x19, #36]
	ldr	x2, [x19, #64]
	ldr	w8, [x2]
	sub	w8, w26, w8
	str	w8, [x19, #28]
	ldr	w8, [x10]
	tst	w8, w22
	b.eq	LBB0_40
; %bb.39:
	ldr	x8, [x19, #8]
	str	x8, [x19, #16]
LBB0_40:
	ldr	x5, [x19, #40]
	cbz	x5, LBB0_43
; %bb.41:
	ldr	x8, [x19]
	cmp	x8, #1
	b.eq	LBB0_43
; %bb.42:
	ldr	w0, [x19, #72]
	ldr	w3, [x19, #56]
	ldr	x4, [x19, #48]
	mov	w1, #0
	bl	_ICDecompress
LBB0_43:
Lloh51:
	adrp	x8, _AVIERR_OK@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AVIERR_OK@GOTPAGEOFF]
LBB0_44:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_45:
Lloh53:
	adrp	x8, _AVIERR_COMPRESSOR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _AVIERR_COMPRESSOR@GOTPAGEOFF]
	b	LBB0_44
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_AVIIF_KEYFRAME,4,2             ; @AVIIF_KEYFRAME
	.comm	_ICCOMPRESS_KEYFRAME,4,2        ; @ICCOMPRESS_KEYFRAME
	.comm	_MAX_FRAMESIZE,4,2              ; @MAX_FRAMESIZE
	.comm	_VIDCF_CRUNCH,4,2               ; @VIDCF_CRUNCH
	.comm	_VIDCF_QUALITY,4,2              ; @VIDCF_QUALITY
	.comm	_ICQUALITY_LOW,4,2              ; @ICQUALITY_LOW
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_VIDCF_FASTTEMPORALC,4,2        ; @VIDCF_FASTTEMPORALC
	.comm	_ICERR_NEWPALETTE,4,2           ; @ICERR_NEWPALETTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	": codec has changed palette -- unhandled!\n"

	.comm	_ICERR_OK,4,2                   ; @ICERR_OK
	.comm	_AVIERR_COMPRESSOR,4,2          ; @AVIERR_COMPRESSOR
	.comm	_MAX_FRAMESIZE_DIFF,4,2         ; @MAX_FRAMESIZE_DIFF
l_.str.1:                               ; @.str.1
	.asciz	": no new quality computed min=%u cur=%u max=%u last=%u\n"

	.comm	_AVIERR_OK,4,2                  ; @AVIERR_OK
	.no_dead_strip	_AVIFILE_EncodeFrame
.subsections_via_symbols
