	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltsGetFreeBlock
_ltsGetFreeBlock:                       ## @ltsGetFreeBlock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	cmpl	$0, 8(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	16(%rbx), %rdi
	movq	_freeBlocks_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$8, %edx
	callq	_qsort
	movl	$1, 8(%rbx)
	movq	(%rbx), %rsi
LBB0_3:
	movq	16(%rbx), %rax
	leaq	-1(%rsi), %rcx
	movq	%rcx, (%rbx)
	movq	-8(%rax,%rsi,8), %rax
	jmp	LBB0_5
LBB0_4:
	movslq	24(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 24(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_freeBlocks_cmp,4,2             ## @freeBlocks_cmp
	.no_dead_strip	_ltsGetFreeBlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltsGetFreeBlock
_ltsGetFreeBlock:                       ; @ltsGetFreeBlock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x1, [x0]
	cbz	x1, LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, _freeBlocks_cmp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _freeBlocks_cmp@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w2, #8
	bl	_qsort
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	x1, [x19]
LBB0_3:
	ldr	x8, [x19, #16]
	sub	x9, x1, #1
	str	x9, [x19]
	ldr	x0, [x8, x9, lsl #3]
	b	LBB0_5
LBB0_4:
	ldrsw	x0, [x19, #24]
	add	w8, w0, #1
	str	w8, [x19, #24]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_freeBlocks_cmp,4,2             ; @freeBlocks_cmp
	.no_dead_strip	_ltsGetFreeBlock
.subsections_via_symbols
