	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compress_raw_buf
_compress_raw_buf:                      ## @compress_raw_buf
	.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
	movslq	(%rdi), %r13
	movl	4(%rdi), %eax
	leaq	-4(%r13), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	%rsi, %r12
	movl	8(%rdi), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	12(%rdi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	16(%rsi), %rbx
	shlq	$2, %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	shlq	$2, %r15
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	addq	%r13, %rbx
	addq	%r15, %r12
	decq	%r14
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$255, -16(%rbx)
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -12(%rbx)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -8(%rbx)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-4(%rbx), %eax
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_7
LBB0_8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compress_raw_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compress_raw_buf
_compress_raw_buf:                      ; @compress_raw_buf
	.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
	ldp	w8, w22, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	sub	x20, x8, #4
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x1
	ldp	w23, w24, [x0, #8]
	add	x21, x1, #16
	lsl	x25, x8, #2
	lsl	x26, x20, #2
	mov	x27, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x21, #-16]
	cmp	w8, #255
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	w8, [x21, #-12]
	cbnz	w8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	w8, [x21, #-8]
	cbnz	w8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	w8, [x21, #-4]
	cmp	w8, w23
	ccmp	w8, w24, #4, ne
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	add	x21, x21, x25
	add	x19, x19, x26
	subs	x27, x27, #1
	b.ne	LBB0_2
LBB0_7:
	mul	w0, w22, w20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compress_raw_buf
.subsections_via_symbols
