	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CompressMonoBlock
_CompressMonoBlock:                     ## @CompressMonoBlock
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	(%rsi), %r15d
	movl	4(%rsi), %edi
	movl	%r15d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	4(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	8(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	8(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	12(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	12(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	16(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	16(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	20(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	20(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	24(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	24(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	28(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	28(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	32(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	32(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	36(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	36(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	40(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	40(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	44(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	44(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	48(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	48(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	52(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	52(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	56(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	movl	56(%r13), %edi
	movl	%r15d, %esi
	callq	_MIN
	movl	%eax, %ebx
	movl	60(%r13), %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r15d
	movl	60(%r13), %edi
	movl	%ebx, %esi
	callq	_MIN
	movl	%r15d, (%r14)
	movl	%eax, 4(%r14)
	movl	%r15d, %r10d
	subl	%eax, %r10d
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpl	$255, %r15d
	cmovel	%r15d, %eax
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 8(%r14)
	movl	%eax, 24(%r14)
	movl	%eax, 28(%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%eax, %r8d
	addq	$8, %r14
	movl	%r10d, %edi
	shrl	$31, %edi
	addl	%r10d, %edi
	sarl	%edi
	xorl	%esi, %esi
	leaq	l___const.CompressMonoBlock.fixIndex(%rip), %r9
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edx
	movl	%edx, (%r14)
	addq	$4, %r14
	addl	$-5, %ecx
	sarl	$8, %eax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	movl	%eax, %ebx
	cmpq	$16, %rsi
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rsi,4), %edx
	subl	%r8d, %edx
	leal	(,%rdx,8), %eax
	subl	%edx, %eax
	addl	%edi, %eax
	cltd
	idivl	%r10d
	cltq
	movl	(%r9,%rax,4), %eax
	shll	%cl, %eax
	orl	%ebx, %eax
	cmpl	$5, %ecx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	$3, %ecx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.CompressMonoBlock.fixIndex
l___const.CompressMonoBlock.fixIndex:
	.long	1                               ## 0x1
	.long	7                               ## 0x7
	.long	6                               ## 0x6
	.long	5                               ## 0x5
	.long	4                               ## 0x4
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	0                               ## 0x0

	.no_dead_strip	_CompressMonoBlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CompressMonoBlock
_CompressMonoBlock:                     ; @CompressMonoBlock
	.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, x1
	mov	x20, x0
	ldp	w21, w0, [x1]
	mov	x1, x21
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #8]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #12]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #12]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #16]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #16]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #20]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #20]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #24]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #24]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #28]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #28]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #32]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #32]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #36]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #36]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #40]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #40]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #44]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #44]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #48]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #48]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #52]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #52]
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x19, #56]
	mov	x1, x22
	bl	_MAX
	mov	x22, x0
	ldr	w0, [x19, #56]
	mov	x1, x21
	bl	_MIN
	mov	x23, x0
	ldr	w0, [x19, #60]
	mov	x1, x22
	bl	_MAX
	mov	x21, x0
	ldr	w0, [x19, #60]
	mov	x1, x23
	bl	_MIN
	stp	w21, w0, [x20]
	subs	w8, w21, w0
	b.ne	LBB0_3
; %bb.1:
	cmp	w21, #255
	csel	w8, w21, wzr, eq
	dup.4s	v0, w8
	stur	q0, [x20, #8]
	stp	w8, w8, [x20, #24]
LBB0_2:
	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
LBB0_3:
	mov	x9, #0
	mov	w13, #0
	mov	w10, #0
	add	x11, x20, #8
	cmp	w8, #0
	cinc	w12, w8, lt
	asr	w12, w12, #1
Lloh0:
	adrp	x14, l___const.CompressMonoBlock.fixIndex@PAGE
Lloh1:
	add	x14, x14, l___const.CompressMonoBlock.fixIndex@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	and	w13, w10, #0xff
	str	w13, [x11], #4
	asr	w10, w10, #8
	mov	x13, x15
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #4
	cmp	x9, #64
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x19, x9]
	sub	w15, w15, w0
	lsl	w16, w15, #3
	sub	w15, w16, w15
	add	w15, w15, w12
	sdiv	w15, w15, w8
	ldr	w15, [x14, w15, sxtw #2]
	lsl	w15, w15, w13
	orr	w10, w15, w10
	subs	w15, w13, #5
	b.ge	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w13, w13, #3
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.CompressMonoBlock.fixIndex
l___const.CompressMonoBlock.fixIndex:
	.long	1                               ; 0x1
	.long	7                               ; 0x7
	.long	6                               ; 0x6
	.long	5                               ; 0x5
	.long	4                               ; 0x4
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	0                               ; 0x0

	.no_dead_strip	_CompressMonoBlock
.subsections_via_symbols
