	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetFreeBlocks
_GetFreeBlocks:                         ## @GetFreeBlocks
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movl	%esi, %r13d
                                        ## kill: def $edi killed $edi def $rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	leal	(,%rbx,4), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edx
	callq	_memset
	leal	(,%r13,4), %ecx
	addl	%r12d, %r12d
	cmpl	%r12d, %ecx
	jge	LBB0_8
## %bb.3:
	movl	%r13d, %eax
	addl	%r13d, %r13d
	leal	(%rax,%rax), %ebx
	decl	%ebx
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	%r13d, %ecx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r12d, %ecx
	jge	LBB0_8
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%rax), %edi
	incl	%edi
	callq	_MappedMemoryReadByte
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rax), %r14d
	leal	69(%r14), %r12d
	movl	%ecx, %eax
	cltd
	idivl	-56(%rbp)                       ## 4-byte Folded Reload
	cltq
	movl	$1, (%r15,%rax,4)
	movl	%r12d, %edi
	callq	_MappedMemoryReadByte
	movl	%eax, %r15d
	shll	$8, %r15d
	addl	$71, %r14d
	movl	%r14d, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	callq	_MappedMemoryReadByte
	orl	%r15d, %eax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cltq
	leal	3(%r12), %ecx
	xorl	%r13d, %r13d
	testl	%ebx, %ecx
	sete	%r13b
	leal	(%r12,%r13,8), %r14d
	addl	$4, %r14d
	movl	$1, (%r15,%rax,4)
	movl	%r14d, %edi
	callq	_MappedMemoryReadByte
	movl	%eax, %ebx
	shll	$8, %ebx
	leal	(%r12,%r13,8), %edi
	addl	$6, %edi
	callq	_MappedMemoryReadByte
	orl	%ebx, %eax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%r14d, %r12d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_6
	jmp	LBB0_7
LBB0_8:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leal	(,%rbx,8), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$3, %eax
	jl	LBB0_15
## %bb.11:
	movl	%eax, %eax
	xorl	%ecx, %ecx
	movl	$2, %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r15,%rdx,4)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movslq	%ecx, %rcx
	movq	%rdx, (%r14,%rcx,8)
	incl	%ecx
	cmpl	%ebx, %ecx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_9:
	xorl	%r14d, %r14d
LBB0_15:
	movq	%r15, %rdi
	callq	_free
LBB0_16:
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_GetFreeBlocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetFreeBlocks
_GetFreeBlocks:                         ; @GetFreeBlocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x3
	mov	x20, x2
	mov	x23, x1
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	sdiv	w21, w3, w1
	lsl	w0, w21, #2
	bl	_malloc
	cbz	x0, LBB0_15
; %bb.1:
	mov	x19, x0
	str	w20, [sp, #20]                  ; 4-byte Folded Spill
	mov	w1, #0
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	x2, x21
	bl	_memset
	lsl	w25, w23, #2
	lsl	w8, w24, #1
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	cmp	w25, w8
	b.ge	LBB0_8
; %bb.2:
	lsl	w27, w23, #1
	sub	w28, w27, #1
	mov	w20, #1
	mov	w21, #4
	mov	w22, #12
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, w27
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w25, w8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	add	w26, w25, w8
	add	w0, w26, #1
	bl	_MappedMemoryReadByte
	tbz	w0, #31, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w26, #69
	sdiv	w8, w25, w27
	str	w20, [x19, w8, sxtw #2]
	mov	x0, x23
	bl	_MappedMemoryReadByte
	mov	x24, x0
	add	w0, w26, #71
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_MappedMemoryReadByte
	orr	w8, w0, w24, lsl #8
	cbz	w8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	w9, w23, #3
	tst	w9, w28
	csel	w9, w22, w21, eq
	add	w23, w9, w23
	str	w20, [x19, w8, sxtw #2]
	mov	x0, x23
	bl	_MappedMemoryReadByte
	mov	x24, x0
	add	w0, w23, #2
	b	LBB0_6
LBB0_8:
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
	lsl	w0, w20, #3
	bl	_malloc
	mov	x22, x0
	cbz	x0, LBB0_14
; %bb.9:
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	cmp	w11, #3
	b.lt	LBB0_14
; %bb.10:
	mov	w8, #0
	mov	w9, #2
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #1
	cmp	x11, x9
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x19, x9, lsl #2]
	cbnz	w10, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	str	x9, [x22, w8, sxtw #3]
	add	w8, w8, #1
	cmp	w8, w20
	b.lt	LBB0_11
LBB0_14:
	mov	x0, x19
	bl	_free
	b	LBB0_16
LBB0_15:
	mov	x22, #0
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_GetFreeBlocks
.subsections_via_symbols
