	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function growstackblock
_growstackblock:                        ## @growstackblock
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_stacknleft@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	%edi, %eax
	cmovgl	%eax, %r14d
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movl	$8, %edi
	callq	_ALIGN
	subl	%eax, %ebx
	cmpl	%ebx, %r14d
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_2:
	addl	(%r15), %r14d
	movl	$8, %edi
	callq	_ALIGN
	addl	%r14d, %eax
	movl	$512, %ecx                      ## imm = 0x200
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %ebx
	leal	(%rbx,%rbx), %ecx
	cmpl	%eax, %ebx
	jl	LBB0_3
## %bb.4:
	movq	_stacknxt@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	movl	(%r15), %r15d
	movq	_stackp@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_SPACE
	cmpq	%rax, %r14
	je	LBB0_9
LBB0_6:
	movl	$8, %edi
	callq	_ALIGN
	subl	%eax, %ebx
	movl	%ebx, %edi
	callq	_stalloc
	movq	%rax, %rbx
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stunalloc                      ## TAILCALL
LBB0_9:
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	movq	%rax, (%r12)
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%ebx, %esi
	callq	_ckrealloc
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	%rax, (%r14)
	movq	%r14, (%r12)
	movq	%r14, %rdi
	callq	_SPACE
	movq	%rax, (%r13)
	subl	%eax, %r14d
	addl	%ebx, %r14d
	movq	_stacknleft@GOTPCREL(%rip), %rcx
	movl	%r14d, (%rcx)
	movslq	%r14d, %rcx
	addq	%rax, %rcx
	movq	_sstrend@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stacknleft,4,2                 ## @stacknleft
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of space"

	.comm	_stacknxt,8,3                   ## @stacknxt
	.comm	_stackp,8,3                     ## @stackp
	.comm	_INTOFF,4,2                     ## @INTOFF
	.comm	_sstrend,8,3                    ## @sstrend
	.comm	_INTON,4,2                      ## @INTON
	.no_dead_strip	_growstackblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function growstackblock
_growstackblock:                        ; @growstackblock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x22, _stacknleft@GOTPAGE
Lloh1:
	ldr	x22, [x22, _stacknleft@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w0
	csel	w19, w8, w0, gt
Lloh2:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w20, w8, #1
	mov	w0, #8
	bl	_ALIGN
	sub	w8, w20, w0
	cmp	w19, w8
	b.lo	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
	ldr	w8, [x22]
	add	w19, w8, w19
	mov	w0, #8
	bl	_ALIGN
	add	w8, w19, w0
	mov	w9, #512
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x19, x9
	lsl	w9, w9, #1
	cmp	w19, w8
	b.lt	LBB0_3
; %bb.4:
Lloh7:
	adrp	x23, _stacknxt@GOTPAGE
Lloh8:
	ldr	x23, [x23, _stacknxt@GOTPAGEOFF]
	ldr	x20, [x23]
	ldr	w21, [x22]
Lloh9:
	adrp	x24, _stackp@GOTPAGE
Lloh10:
	ldr	x24, [x24, _stackp@GOTPAGEOFF]
	ldr	x0, [x24]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_SPACE
	cmp	x20, x0
	b.eq	LBB0_9
LBB0_6:
	mov	w0, #8
	bl	_ALIGN
	sub	w0, w19, w0
	bl	_stalloc
	mov	x19, x0
	cbz	w21, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_stunalloc
LBB0_9:
	ldr	x0, [x24]
	ldr	x8, [x0]
	str	x8, [x24]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x19
	bl	_ckrealloc
	mov	x20, x0
	ldr	x8, [x24]
	str	x8, [x0]
	str	x0, [x24]
	bl	_SPACE
	str	x0, [x23]
	sub	w8, w20, w0
	add	w8, w19, w8
	str	w8, [x22]
	add	x8, x0, w8, sxtw
Lloh11:
	adrp	x9, _sstrend@GOTPAGE
Lloh12:
	ldr	x9, [x9, _sstrend@GOTPAGEOFF]
Lloh13:
	str	x8, [x9]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_stacknleft,4,2                 ; @stacknleft
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of space"

	.comm	_stacknxt,8,3                   ; @stacknxt
	.comm	_stackp,8,3                     ; @stackp
	.comm	_INTOFF,4,2                     ; @INTOFF
	.comm	_sstrend,8,3                    ; @sstrend
	.comm	_INTON,4,2                      ; @INTON
	.no_dead_strip	_growstackblock
.subsections_via_symbols
