	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_jpegls_init_state           ## -- Begin function ff_jpegls_init_state
	.p2align	4, 0x90
_ff_jpegls_init_state:                  ## @ff_jpegls_init_state
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	4(%rdi), %eax
	movl	12(%rdi), %edi
	leal	1(%rax,%rax), %ecx
	movl	%ecx, (%r15)
	leal	(%rdi,%rax,2), %eax
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	%ecx, 8(%r15)
	movl	$-1, %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	movl	$1, %edx
	shll	%cl, %edx
	cmpl	%eax, %edx
	jle	LBB0_1
## %bb.2:
	movl	%ecx, 16(%r15)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_log2
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	movl	$2, %esi
	callq	_FFMAX
	movl	%eax, %r14d
	movl	%eax, 20(%r15)
	movl	%eax, %edi
	movl	$8, %esi
	callq	_FFMAX
	addl	%r14d, %eax
	addl	%eax, %eax
	subl	16(%r15), %eax
	movl	%eax, 24(%r15)
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	addl	$32, %edi
	sarl	$6, %edi
	movl	$2, %esi
	callq	_FFMAX
	movq	32(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	40(%r15), %rax
	movl	$1, (%rax,%rbx,4)
	incq	%rbx
	cmpq	$367, %rbx                      ## imm = 0x16F
	jne	LBB0_3
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_jpegls_init_state           ; -- Begin function ff_jpegls_init_state
	.p2align	2
_ff_jpegls_init_state:                  ; @ff_jpegls_init_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w9, [x0, #4]
	mov	w8, #1
	mov	w10, #1
	bfi	w10, w9, #1, #31
	str	w10, [x0]
	ldr	w0, [x0, #12]
	add	w9, w0, w9, lsl #1
	sdiv	w9, w9, w10
	add	w10, w9, #1
	str	w10, [x19, #8]
	mov	w10, #-1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w10, w10, #1
	lsl	w11, w8, w10
	cmp	w11, w9
	b.le	LBB0_1
; %bb.2:
	str	w10, [x19, #16]
	bl	_av_log2
	add	w0, w0, #1
	mov	w1, #2
	bl	_FFMAX
	mov	x20, x0
	str	w0, [x19, #20]
	mov	w1, #8
	bl	_FFMAX
	mov	x21, #0
	add	w8, w0, w20
	lsl	w8, w8, #1
	ldr	w9, [x19, #16]
	sub	w8, w8, w9
	str	w8, [x19, #24]
	mov	w20, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #32
	asr	w0, w8, #6
	mov	w1, #2
	bl	_FFMAX
	ldp	x8, x9, [x19, #32]
	str	w0, [x8, x21]
	str	w20, [x9, x21]
	add	x21, x21, #4
	cmp	x21, #1468
	b.ne	LBB0_3
; %bb.4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
