	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spaces                         ## -- Begin function spaces
	.p2align	4, 0x90
_spaces:                                ## @spaces
	.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
	movl	%edi, %ebx
	movl	_spaces.maxsize(%rip), %eax
	cmpl	%edi, %eax
	jge	LBB0_1
## %bb.2:
	movq	_spaces.buf(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free
LBB0_4:
	leal	1(%rbx), %edi
	callq	_malloc
	movq	%rax, _spaces.buf(%rip)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movslq	%ebx, %rcx
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.7:
	addq	%rcx, %rax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movb	$32, -1(%rax)
	decq	%rax
	cmpq	_spaces.buf(%rip), %rax
	jne	LBB0_8
LBB0_9:
	movl	%ebx, _spaces.maxsize(%rip)
	movb	$0, (%rax,%rcx)
	movl	_spaces.maxsize(%rip), %eax
	jmp	LBB0_10
LBB0_1:
	movslq	%ebx, %rcx
LBB0_10:
	cltq
	addq	_spaces.buf(%rip), %rax
	subq	%rcx, %rax
	jmp	LBB0_11
LBB0_5:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_spaces.buf,8,3  ## @spaces.buf
.zerofill __DATA,__bss,_spaces.maxsize,4,2 ## @spaces.maxsize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spaces                         ; -- Begin function spaces
	.p2align	2
_spaces:                                ; @spaces
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	adrp	x21, _spaces.maxsize@PAGE
	ldr	w9, [x21, _spaces.maxsize@PAGEOFF]
	adrp	x20, _spaces.buf@PAGE
	cmp	w9, w0
	b.ge	LBB0_8
; %bb.1:
	ldr	x0, [x20, _spaces.buf@PAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_free
LBB0_3:
	add	w0, w19, #1
	bl	_malloc
	str	x0, [x20, _spaces.buf@PAGEOFF]
	cbz	x0, LBB0_10
; %bb.4:
	sxtw	x8, w19
	cbz	w19, LBB0_7
; %bb.5:
	add	x0, x0, x8
	mov	w9, #32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	strb	w9, [x0, #-1]!
	ldr	x10, [x20, _spaces.buf@PAGEOFF]
	cmp	x0, x10
	b.ne	LBB0_6
LBB0_7:
	str	w19, [x21, _spaces.maxsize@PAGEOFF]
	strb	wzr, [x0, x8]
	ldr	w9, [x21, _spaces.maxsize@PAGEOFF]
	b	LBB0_9
LBB0_8:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	sxtw	x8, w19
LBB0_9:
	ldr	x10, [x20, _spaces.buf@PAGEOFF]
	add	x9, x10, w9, sxtw
	sub	x0, x9, x8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_spaces.buf,8,3  ; @spaces.buf
.zerofill __DATA,__bss,_spaces.maxsize,4,2 ; @spaces.maxsize
.subsections_via_symbols
