	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ls_encode_regular
_ls_encode_regular:                     ## @ls_encode_regular
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r8d
	movl	%edx, %r14d
	movq	%rsi, %r9
	movq	%rdi, %r12
	movslq	%edx, %rsi
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdi
	movl	(%rcx,%rsi,4), %eax
	movl	(%rdi,%rsi,4), %edi
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movl	%eax, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	cmpl	%edi, %edx
	jl	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	movl	36(%r12), %ecx
	orl	%ebx, %ecx
	jne	LBB0_4
## %bb.3:
	movq	16(%r12), %rcx
	movl	(%rcx,%rsi,4), %ecx
	addl	%ecx, %ecx
	negl	%eax
	xorl	%r15d, %r15d
	cmpl	%eax, %ecx
	setle	%r15b
LBB0_4:
	movl	24(%r12), %ecx
	movl	%r8d, %r13d
	sarl	$31, %r13d
	andl	%ecx, %r13d
	addl	%r8d, %r13d
	leal	1(%rcx), %eax
	sarl	%eax
	cmpl	%eax, %r13d
	jge	LBB0_5
## %bb.6:
	leal	(%r15,%r13,2), %esi
	jmp	LBB0_7
LBB0_5:
	subl	%ecx, %r13d
	movl	%r13d, %edi
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r9, %r14
	callq	_FFABS
	movq	%r14, %r9
	movl	-44(%rbp), %r14d                ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	notl	%r15d
	leal	(%r15,%rax,2), %esi
LBB0_7:
	movl	28(%r12), %r8d
	movl	32(%r12), %ecx
	movq	%r9, %rdi
	movl	%ebx, %edx
	callq	_set_ur_golomb_jpegls
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_jpegls_update_state_regular ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ls_encode_regular
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ls_encode_regular
_ls_encode_regular:                     ; @ls_encode_regular
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	sxtw	x8, w19
	sbfiz	x10, x19, #2, #32
	ldp	x9, x11, [x0]
	ldr	w9, [x9, x10]
	ldr	w10, [x11, x10]
	mov	w22, #-1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w22, #1
	lsl	w11, w9, w22
	cmp	w11, w10
	b.lt	LBB0_1
; %bb.2:
	ldr	w10, [x20, #36]
	orr	w10, w10, w22
	cbz	w10, LBB0_4
; %bb.3:
	mov	w24, #0
	b	LBB0_5
LBB0_4:
	ldr	x10, [x20, #16]
	ldr	w8, [x10, x8, lsl #2]
	neg	w9, w9
	cmp	w9, w8, lsl #1
	cset	w24, ge
LBB0_5:
	ldr	w8, [x20, #24]
	and	w9, w8, w3, asr #31
	add	w23, w9, w3
	add	w9, w8, #1
	cmp	w23, w9, asr #1
	b.ge	LBB0_7
; %bb.6:
	bfi	w24, w23, #1, #31
	b	LBB0_8
LBB0_7:
	sub	w23, w23, w8
	mov	x0, x23
	bl	_FFABS
	mvn	w8, w24
	add	w24, w8, w0, lsl #1
LBB0_8:
	ldp	w4, w3, [x20, #28]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	bl	_set_ur_golomb_jpegls
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ff_jpegls_update_state_regular
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ls_encode_regular
.subsections_via_symbols
