	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2SortBlocks                  ## -- Begin function Cs2SortBlocks
	.p2align	4, 0x90
_Cs2SortBlocks:                         ## @Cs2SortBlocks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_BLOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	cmpl	$1, %r8d
	jne	LBB0_15
## %bb.3:
	xorl	%edx, %edx
	xorl	%r10d, %r10d
LBB0_4:
	testb	$1, %r8b
	je	LBB0_9
## %bb.5:
	movq	(%rdi), %rax
	movq	(%rax,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.6:
	movl	%r10d, %r9d
	cmpq	%r9, %rdx
	je	LBB0_8
## %bb.7:
	movq	%rsi, (%rax,%r9,8)
LBB0_8:
	incl	%r10d
	jmp	LBB0_9
LBB0_1:
	xorl	%r10d, %r10d
LBB0_9:
	cmpl	%r8d, %r10d
	jae	LBB0_14
## %bb.10:
	movl	%r10d, %edx
	movl	%r8d, %esi
	subl	%r10d, %esi
	movq	%rdx, %rcx
	notq	%rcx
	addq	%r8, %rcx
	andq	$3, %rsi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rax
	movq	$0, (%rax,%rdx,8)
	incq	%rdx
	decq	%rsi
	jne	LBB0_11
LBB0_12:
	cmpq	$3, %rcx
	jb	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rax
	movq	$0, (%rax,%rdx,8)
	movq	(%rdi), %rax
	movq	$0, 8(%rax,%rdx,8)
	movq	(%rdi), %rax
	movq	$0, 16(%rax,%rdx,8)
	movq	(%rdi), %rax
	movq	$0, 24(%rax,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_13
LBB0_14:
	popq	%rbp
	retq
LBB0_15:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edx, %edx
	xorl	%r10d, %r10d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%r10d
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %r9
	je	LBB0_4
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rax
	movq	(%rax,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%r10d, %ecx
	cmpq	%rcx, %rdx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rsi, (%rax,%rcx,8)
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%r10d
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rdi), %rax
	movq	8(%rax,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	1(%rdx), %r11
	movl	%r10d, %ecx
	cmpq	%rcx, %r11
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rsi, (%rax,%rcx,8)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BLOCKS,4,2                 ## @MAX_BLOCKS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2SortBlocks                  ; -- Begin function Cs2SortBlocks
	.p2align	2
_Cs2SortBlocks:                         ; @Cs2SortBlocks
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_BLOCKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_BLOCKS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x10, #0
	mov	w9, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	cmp	x8, x10
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x0]
	ldr	x12, [x11, x10, lsl #3]
	cbz	x12, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w13, w9
	cmp	x10, x13
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x12, [x11, x13, lsl #3]
	b	LBB0_2
LBB0_7:
	mov	w9, #0
LBB0_8:
	cmp	w9, w8
	b.hs	LBB0_11
; %bb.9:
	mov	w9, w9
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0]
	str	xzr, [x10, x9, lsl #3]
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_11:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BLOCKS,4,2                 ; @MAX_BLOCKS
.subsections_via_symbols
