	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function state_manager_raw_compress
_state_manager_raw_compress:            ## @state_manager_raw_compress
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	addq	$7, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	$8, %rbx
	jae	LBB0_2
LBB0_1:
	movq	%r15, %rax
	subq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	addq	$24, %rax
	sarq	$2, %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	$0, 16(%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %r13
	shrq	$3, %rbx
	movq	_UINT16_MAX@GOTPCREL(%rip), %r10
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rbx,%rcx,8), %rbx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	leaq	(%r13,%rcx,8), %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%rcx, %rax
	leaq	(%r9,%rcx,8), %r15
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	testq	%rax, %rax
	movq	%rax, %rbx
	je	LBB0_1
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
	movq	%r10, %r12
	movq	%r13, %rsi
	movq	%rdi, %r14
	callq	_find_change
	subq	%rax, %rbx
	jbe	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rcx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax,8), %rbx
	leaq	(%r13,%rax,8), %r13
	cmpq	(%r12), %rax
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %r10
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	cmovbq	%rcx, %rax
	movq	$0, (%r15)
	movq	%rax, 8(%r15)
	shrq	$16, %rax
	movq	%rax, 16(%r15)
	addq	$24, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	movq	%rcx, %r13
	callq	_find_same
	movq	%r12, %r10
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	cmovbq	%rax, %rcx
	movq	%rcx, (%r15)
	leaq	16(%r15), %r9
	movq	%r13, 8(%r15)
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %r8
	cmpq	$4, %rcx
	jb	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r14,%r8,8), %rax
	movq	%r15, %rdx
	subq	%rax, %rdx
	addq	$16, %rdx
	cmpq	$32, %rdx
	jae	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdx, %rax
	notq	%rax
	addq	%rcx, %rax
	movq	%rcx, %rsi
	andq	$3, %rsi
	je	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%rdx,8), %rdi
	movq	%rdi, (%r9,%rdx,8)
	incq	%rdx
	decq	%rsi
	jne	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$3, %rax
	jb	LBB0_3
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r14,%r8,8), %rax
	addq	$24, %rax
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-24(%rax,%rdx,8), %rsi
	movq	%rsi, 16(%r15,%rdx,8)
	movq	-16(%rax,%rdx,8), %rsi
	movq	%rsi, 24(%r15,%rdx,8)
	movq	-8(%rax,%rdx,8), %rsi
	movq	%rsi, 32(%r15,%rdx,8)
	movq	(%rax,%rdx,8), %rsi
	movq	%rsi, 40(%r15,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_25
	jmp	LBB0_3
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rdx
	andq	$-4, %rdx
	leaq	-4(%rdx), %rax
	movq	%rax, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$12, %rax
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	andq	$-4, %rdi
	leaq	(%r14,%r13,8), %rax
	addq	$112, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-112(%rax,%rsi,8), %xmm0
	movups	-96(%rax,%rsi,8), %xmm1
	movups	%xmm0, 16(%r15,%rsi,8)
	movups	%xmm1, 32(%r15,%rsi,8)
	movups	-80(%rax,%rsi,8), %xmm0
	movups	-64(%rax,%rsi,8), %xmm1
	movups	%xmm0, 48(%r15,%rsi,8)
	movups	%xmm1, 64(%r15,%rsi,8)
	movups	-48(%rax,%rsi,8), %xmm0
	movups	-32(%rax,%rsi,8), %xmm1
	movups	%xmm0, 80(%r15,%rsi,8)
	movups	%xmm1, 96(%r15,%rsi,8)
	movups	-16(%rax,%rsi,8), %xmm0
	movups	(%rax,%rsi,8), %xmm1
	movups	%xmm0, 112(%r15,%rsi,8)
	movups	%xmm1, 128(%r15,%rsi,8)
	addq	$16, %rsi
	addq	$-4, %rdi
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%r8, %r8
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r15,%rsi,8), %rax
	addq	$32, %rax
	addq	%r13, %rsi
	leaq	(%r14,%rsi,8), %rsi
	addq	$16, %rsi
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rsi,%rdi), %xmm0
	movups	(%rsi,%rdi), %xmm1
	movups	%xmm0, -16(%rax,%rdi)
	movups	%xmm1, (%rax,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rdx, %rcx
	movq	%r13, %r8
	je	LBB0_3
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT16_MAX,8,3                 ## @UINT16_MAX
	.comm	_UINT32_MAX,8,3                 ## @UINT32_MAX
	.no_dead_strip	_state_manager_raw_compress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function state_manager_raw_compress
_state_manager_raw_compress:            ; @state_manager_raw_compress
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	add	x8, x2, #7
	mov	x25, x3
	cmp	x8, #8
	b.hs	LBB0_2
LBB0_1:
	sub	x8, x25, x19
	add	x8, x8, #24
	asr	x0, x8, #2
	stp	xzr, xzr, [x25]
	str	xzr, [x25, #16]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x1
	mov	x22, x0
	lsr	x24, x8, #3
Lloh0:
	adrp	x26, _UINT16_MAX@GOTPAGE
Lloh1:
	ldr	x26, [x26, _UINT16_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x27, _UINT32_MAX@GOTPAGE
Lloh3:
	ldr	x27, [x27, _UINT32_MAX@GOTPAGEOFF]
	mov	x25, x19
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	cmp	x23, x8
	csel	x8, x23, x8, lo
	stp	xzr, x8, [x25]
	lsr	x8, x8, #16
	str	x8, [x25, #16]
	add	x25, x25, #24
	mov	x22, x21
	cbz	x24, LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x22
	mov	x1, x20
	bl	_find_change
	subs	x24, x24, x0
	b.ls	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	lsl	x8, x0, #3
	add	x21, x22, x8
	add	x20, x20, x8
	ldr	x8, [x26]
	cmp	x0, x8
	b.hi	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_find_same
	ldr	x8, [x26]
	cmp	x0, x8
	csel	x8, x0, x8, lo
	stp	x8, x23, [x25]
	cbz	x8, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, #8
	b.lo	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x22, x23, lsl #3
	sub	x9, x25, x11
	add	x9, x9, #16
	cmp	x9, #64
	b.hs	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x10, x8, x9
	add	x11, x25, x9, lsl #3
	add	x11, x11, #16
	add	x9, x23, x9
	add	x9, x22, x9, lsl #3
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x9], #8
	str	x12, [x11], #8
	subs	x10, x10, #1
	b.ne	LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x25, #16
	lsl	x10, x8, #3
	add	x21, x21, x10
	add	x20, x20, x10
	sub	x24, x24, x8
	add	x25, x9, x10
	mov	x22, x21
	cbnz	x24, LBB0_4
	b	LBB0_1
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	and	x9, x8, #0xfffffffffffffff8
	add	x10, x25, #64
	add	x11, x11, #32
	mov	x12, x9
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x10, #-48]
	stp	q2, q3, [x10, #-16]
	add	x10, x10, #64
	subs	x12, x12, #8
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, x9
	b.eq	LBB0_12
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT16_MAX,8,3                 ; @UINT16_MAX
	.comm	_UINT32_MAX,8,3                 ; @UINT32_MAX
	.no_dead_strip	_state_manager_raw_compress
.subsections_via_symbols
