	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ls_encode_line
_ls_encode_line:                        ## @ls_encode_line
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -108(%rbp)                ## 4-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	testl	%r9d, %r9d
	jle	LBB0_33
## %bb.1:
	movq	%rcx, %r8
	movq	%rdx, %r13
	movl	24(%rbp), %eax
	movl	16(%rbp), %r12d
	movl	%r9d, %ecx
	subl	%r12d, %ecx
	movl	%ecx, -112(%rbp)                ## 4-byte Spill
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	cltq
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %ebx
	subl	%r12d, %ebx
	movq	%r8, %rdi
	movl	%ebx, %esi
	callq	_R
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_R
                                        ## kill: def $eax killed $eax def $rax
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%rax, %rbx
	callq	_R
	movl	%eax, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_R
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_R
	movl	%eax, %ebx
	movl	-108(%rbp), %r15d               ## 4-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-112(%rbp), %r14d               ## 4-byte Folded Reload
	movl	$0, %esi
	cmovll	%r12d, %esi
	addl	%r14d, %esi
	movq	%r13, %rdi
	callq	_R
	movl	%eax, %r13d
	subl	%ebx, %r13d
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
                                        ## kill: def $ebx killed $ebx killed $rbx
	subl	%r15d, %ebx
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	subl	-80(%rbp), %r15d                ## 4-byte Folded Reload
	movl	%r13d, %edi
	callq	_FFABS
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	cmpl	(%r12), %eax
	jg	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_FFABS
	cmpl	(%r12), %eax
	jg	LBB0_22
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	callq	_FFABS
	cmpl	(%r12), %eax
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_ff_jpegls_quantize
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,8), %eax
	leal	(%rax,%rax,8), %r13d
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_ff_jpegls_quantize
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,8), %ebx
	addl	%r13d, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_ff_jpegls_quantize
	movl	%eax, %r13d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	leal	(%rdi,%rdx), %esi
	subl	-68(%rbp), %esi                 ## 4-byte Folded Reload
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mid_pred
	addl	%ebx, %r13d
	movl	%r13d, -80(%rbp)                ## 4-byte Spill
	js	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r12), %rcx
	movl	%r13d, %edx
	addl	(%rcx,%rdx,4), %eax
	movl	32(%r12), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_av_clip
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_R
	movl	%eax, %ebx
	movl	%r15d, %edi
                                        ## kill: def $r13d killed $r13d def $r13
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $r13d killed $r13d def $r13
	negl	%r13d
	movq	24(%r12), %rcx
	subl	(%rcx,%r13,4), %eax
	movl	32(%r12), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_av_clip
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_R
	movl	%eax, %r15d
	movl	%ebx, %edi
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	subl	%r15d, %ebx
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jle	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	%ebx, %eax
	movl	4(%r12), %ecx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	subl	%eax, %ebx
	movl	4(%r12), %ecx
	movl	%ebx, %eax
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	imull	%eax, %ecx
	movl	%ecx, %eax
	negl	%eax
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	cmovnsl	%ecx, %eax
	addl	%eax, %edi
	movl	32(%r12), %edx
	xorl	%esi, %esi
	callq	_av_clip
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_W
LBB0_31:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_ls_encode_regular
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	-48(%rbp), %r12d                ## 4-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%r12d, %r14d
	cmpl	%r15d, %r14d
	movq	-120(%rbp), %r13                ## 8-byte Reload
	jl	LBB0_2
	jmp	LBB0_33
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	xorl	%ebx, %ebx
	cmpl	%r12d, %r14d
	jge	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_R
	subl	%r15d, %eax
	movl	%eax, %edi
	callq	_FFABS
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	jg	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	incl	%ebx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_W
	addl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	cmpl	%r12d, %r14d
	jl	LBB0_10
	jmp	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %r8d
	callq	_ls_encode_run
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	callq	_R
	movl	%eax, %ebx
	movl	%r15d, %edi
	subl	%eax, %edi
	setg	-68(%rbp)                       ## 1-byte Folded Spill
	callq	_FFABS
	cmpl	(%r12), %eax
	movq	%r13, %rdi
	setg	%r13b
	setle	-104(%rbp)                      ## 1-byte Folded Spill
	cmovlel	%r15d, %ebx
	movl	%r14d, %esi
	callq	_R
	movl	%ebx, %edi
	subl	%ebx, %eax
	andb	-68(%rbp), %r13b                ## 1-byte Folded Reload
	movl	%eax, %ebx
	negl	%ebx
	testb	%r13b, %r13b
	cmovel	%eax, %ebx
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %ebx
	jmp	LBB0_18
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	subl	%eax, %ebx
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	4(%r12), %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	imull	%eax, %ecx
	movl	%ecx, %eax
	negl	%eax
	testb	%r13b, %r13b
	cmovel	%ecx, %eax
	addl	%eax, %edi
	movl	32(%r12), %edx
	xorl	%esi, %esi
	callq	_av_clip
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %r13
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_W
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r9d, %r9d
	movb	-104(%rbp), %al                 ## 1-byte Reload
	movb	%al, %r9b
	movl	8(%r12), %eax
	movl	%ebx, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
	addl	%ebx, %ecx
	leal	1(%rax), %edx
	sarl	%edx
	cmpl	%edx, %ecx
	movl	$0, %edx
	cmovll	%edx, %eax
	subl	%eax, %ecx
	movq	_ff_log2_run@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r12), %rdx
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	(%rdx,%rbx,8), %rdx
	movl	(%rax,%rdx,4), %r8d
	movq	%r12, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%r9d, %edx
	callq	_ls_encode_runterm
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rcx
	testq	%rcx, %rcx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdx
	decq	%rcx
	movq	%rcx, (%rax,%rbx,8)
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movq	%r13, %r8
	jmp	LBB0_32
LBB0_33:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ls_encode_run                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_log2_run,8,3                ## @ff_log2_run
	.no_dead_strip	_ls_encode_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ls_encode_line
_ls_encode_line:                        ; @ls_encode_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x7, [sp, #8]                    ; 8-byte Folded Spill
	str	w4, [sp, #20]                   ; 4-byte Folded Spill
	str	x1, [sp, #40]                   ; 8-byte Folded Spill
	cmp	w5, #1
	b.lt	LBB0_29
; %bb.1:
	mov	x22, x6
	mov	x25, x3
	mov	x23, x2
	mov	x21, x0
	mov	w27, #0
	sub	w8, w5, w6
	stp	w8, w5, [sp, #32]               ; 8-byte Folded Spill
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sxtw	x8, w8
	str	x8, [sp]                        ; 8-byte Folded Spill
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	cbz	w27, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w20, w27, w22
	mov	x0, x25
	mov	x1, x20
	bl	_R
	mov	x28, x0
	mov	x0, x23
	mov	x1, x27
	bl	_R
	mov	x19, x0
	mov	x0, x23
	mov	x1, x20
	bl	_R
	mov	x24, x0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	w1, #0
	bl	_R
	mov	x28, x0
	mov	x0, x23
	mov	w1, #0
	bl	_R
	mov	x19, x0
	ldr	w24, [sp, #20]                  ; 4-byte Folded Reload
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	cmp	w27, w8
	csel	w8, w22, wzr, lt
	add	w1, w27, w8
	mov	x0, x23
	bl	_R
	sub	w23, w0, w19
	sub	w26, w19, w24
	sub	w20, w24, w28
	mov	x0, x23
	bl	_FFABS
	ldr	w8, [x21]
	cmp	w0, w8
	b.gt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
	bl	_FFABS
	ldr	w8, [x21]
	cmp	w0, w8
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_FFABS
	ldr	w8, [x21]
	cmp	w0, w8
	b.le	LBB0_18
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_ff_jpegls_quantize
	mov	x23, x0
	mov	x0, x21
	mov	x1, x26
	bl	_ff_jpegls_quantize
	add	w8, w0, w0, lsl #3
	mov	w9, #81
	madd	w23, w23, w9, w8
	mov	x0, x21
	mov	x1, x20
	bl	_ff_jpegls_quantize
	add	w26, w23, w0
	add	w8, w28, w19
	sub	w1, w8, w24
	mov	x0, x28
	mov	x2, x19
	bl	_mid_pred
	tbnz	w26, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21, #24]
	ldr	w8, [x8, w26, uxtw #2]
	add	w0, w8, w0
	ldr	w2, [x21, #32]
	mov	w1, #0
	bl	_av_clip
	mov	x20, x0
	mov	x0, x25
	mov	x1, x27
	bl	_R
	mov	x23, x0
	mov	x8, x20
	mov	x19, x26
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	neg	w19, w26
	ldr	x8, [x21, #24]
	ldr	w8, [x8, w19, uxtw #2]
	sub	w0, w0, w8
	ldr	w2, [x21, #32]
	mov	w1, #0
	bl	_av_clip
	mov	x23, x0
	mov	x0, x25
	mov	x1, x27
	bl	_R
	mov	x20, x0
	mov	x8, x23
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w24, w23, w20
	ldr	w9, [x21]
	cbz	w9, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w24, #1
	b.lt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w10, w9, w24
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w10, w24, w9
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x21, #4]
	sdiv	w24, w10, w9
	mul	w9, w9, w24
	cmp	w26, #0
	cneg	w9, w9, lt
	add	w0, w8, w9
	ldr	w2, [x21, #32]
	mov	w1, #0
	bl	_av_clip
	mov	x2, x0
	mov	x0, x25
	mov	x1, x27
	bl	_W
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x19
	mov	x3, x24
	bl	_ls_encode_regular
	ldr	w26, [sp, #36]                  ; 4-byte Folded Reload
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w27, w27, w22
	cmp	w27, w26
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b.lt	LBB0_2
	b	LBB0_29
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w26, [sp, #36]                  ; 4-byte Folded Reload
	cmp	w27, w26
	b.ge	LBB0_30
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w19, #0
LBB0_20:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	mov	x1, x27
	bl	_R
	sub	w0, w0, w28
	bl	_FFABS
	ldr	w8, [x21]
	cmp	w0, w8
	b.gt	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	add	w19, w19, #1
	mov	x0, x25
	mov	x1, x27
	mov	x2, x28
	bl	_W
	add	w27, w27, w22
	cmp	w27, w26
	b.lt	LBB0_20
	b	LBB0_31
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x19
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w4, #1
	bl	_ls_encode_run
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x27
	bl	_R
	mov	x19, x0
	subs	w0, w28, w0
	cset	w20, gt
	bl	_FFABS
	ldr	w8, [x21]
	cmp	w0, w8
	csel	w23, w28, w19, le
	cset	w19, le
	cset	w24, gt
	mov	x0, x25
	mov	x1, x27
	bl	_R
	sub	w9, w0, w23
	ands	w8, w24, w20
	cneg	w20, w9, ne
	ldr	w9, [x21]
	cbz	w9, LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w20, #1
	b.lt	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w10, w20, w9
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w10, w20, w9
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x21, #4]
	sdiv	w20, w10, w9
	mul	w9, w9, w20
	tst	w8, #0x1
	cneg	w8, w9, ne
	add	w0, w23, w8
	ldr	w2, [x21, #32]
	mov	w1, #0
	bl	_av_clip
	mov	x2, x0
	mov	x0, x25
	mov	x1, x27
	bl	_W
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21, #8]
	and	w9, w8, w20, asr #31
	add	w10, w8, #1
	add	w9, w20, w9
	cmp	w9, w10, asr #1
	csel	w8, wzr, w8, lt
	sub	w3, w9, w8
Lloh0:
	adrp	x8, _ff_log2_run@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_log2_run@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x21, #16]
	ldr	x23, [sp]                       ; 8-byte Folded Reload
	lsl	x20, x23, #3
	ldr	x9, [x9, x20]
	ldr	w4, [x8, x9, lsl #2]
	mov	x0, x21
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x19
	bl	_ls_encode_runterm
	ldr	x8, [x21, #16]
	ldr	x9, [x8, x20]
	cbz	x9, LBB0_17
; %bb.28:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x9, x9, #1
	str	x9, [x8, x23, lsl #3]
	b	LBB0_17
LBB0_29:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_30:
	mov	w19, #0
LBB0_31:
	mov	x0, x21
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x19
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w4, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_ls_encode_run
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_log2_run,8,3                ; @ff_log2_run
	.no_dead_strip	_ls_encode_line
.subsections_via_symbols
