	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ls_get_code_runterm
_ls_get_code_runterm:                   ## @ls_get_code_runterm
	.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, %r15d
	movq	%rsi, %r12
	movslq	%edx, %rcx
	leaq	365(%rcx), %r14
	movq	8(%rsi), %rdx
	movl	1460(%rdx,%rcx,4), %eax
	movl	%eax, %esi
	sarl	%esi
	testl	%ecx, %ecx
	cmovel	%r15d, %esi
	movq	(%r12), %rbx
	addl	1460(%rbx,%rcx,4), %esi
	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	%esi, %edx
	jl	LBB0_1
## %bb.2:
	notl	%r8d
	addl	16(%r12), %r8d
	movl	36(%r12), %ecx
	movl	%ebx, %esi
	movl	%r8d, %edx
	callq	_get_ur_golomb_jpegls
	movl	%r15d, %ecx
	orl	%eax, %ecx
	setne	%cl
	xorl	%r13d, %r13d
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.3:
	testb	%cl, %cl
	je	LBB0_5
## %bb.4:
	movq	8(%r12), %rcx
	movq	24(%r12), %rdx
	movl	(%rdx,%r14,4), %edx
	addl	%edx, %edx
	xorl	%r13d, %r13d
	cmpl	(%rcx,%r14,4), %edx
	setl	%r13b
LBB0_5:
	addl	%r15d, %eax
	addl	%r13d, %eax
	testb	$1, %al
	jne	LBB0_6
## %bb.7:
	sarl	%eax
	movl	%eax, %r13d
	jmp	LBB0_8
LBB0_6:
	incl	%eax
	sarl	%eax
	subl	%eax, %r13d
	movq	24(%r12), %rax
	incl	(%rax,%r14,4)
LBB0_8:
	movl	%r13d, %edi
	callq	_FFABS
	movl	%eax, %ecx
	movl	$-65536, %eax                   ## imm = 0xFFFF0000
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	jg	LBB0_10
## %bb.9:
	movl	%r13d, %edi
	callq	_FFABS
	subl	%r15d, %eax
	movq	(%r12), %rcx
	addl	%eax, (%rcx,%r14,4)
	imull	32(%r12), %r13d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_ff_jpegls_downscale_state
	movl	%r13d, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ls_get_code_runterm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ls_get_code_runterm
_ls_get_code_runterm:                   ; @ls_get_code_runterm
	.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	x20, x2
	mov	x19, x1
	add	w9, w2, #365
	sbfiz	x8, x9, #2, #32
	ldp	x10, x11, [x1]
	ldr	w10, [x10, x8]
	ldr	w8, [x11, x8]
	sxtw	x21, w9
	asr	w9, w8, #1
	cmp	w2, #0
	csel	w9, w9, wzr, ne
	add	w9, w10, w9
	mov	w22, #-1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w22, #1
	lsl	w10, w8, w22
	cmp	w10, w9
	b.lt	LBB0_1
; %bb.2:
	ldr	w8, [x19, #16]
	mvn	w9, w3
	add	w2, w8, w9
	ldr	w3, [x19, #36]
	mov	x1, x22
	bl	_get_ur_golomb_jpegls
	mov	w8, #0
	orr	w9, w20, w0
	cmp	w9, #0
	cset	w9, ne
	lsl	x23, x21, #2
	cbnz	w22, LBB0_5
; %bb.3:
	cbz	w9, LBB0_5
; %bb.4:
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x23]
	ldr	x9, [x19, #8]
	ldr	w9, [x9, x23]
	cmp	w9, w8, lsl #1
	cset	w8, gt
LBB0_5:
	add	w9, w0, w20
	add	w9, w9, w8
	tbnz	w9, #0, LBB0_7
; %bb.6:
	asr	w22, w9, #1
	b	LBB0_8
LBB0_7:
	add	w9, w9, #1
	sub	w22, w8, w9, asr #1
	ldr	x8, [x19, #24]
	ldr	w9, [x8, x23]
	add	w9, w9, #1
	str	w9, [x8, x23]
LBB0_8:
	mov	x0, x22
	bl	_FFABS
	cmp	w0, #16, lsl #12                ; =65536
	b.lt	LBB0_10
; %bb.9:
	mov	w20, #-65536
	b	LBB0_11
LBB0_10:
	mov	x0, x22
	bl	_FFABS
	ldr	x8, [x19]
	ldr	w9, [x8, x23]
	sub	w10, w0, w20
	add	w9, w10, w9
	str	w9, [x8, x23]
	ldr	w8, [x19, #32]
	mul	w20, w8, w22
	mov	x0, x19
	mov	x1, x21
	bl	_ff_jpegls_downscale_state
LBB0_11:
	mov	x0, x20
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ls_get_code_runterm
.subsections_via_symbols
