	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_salloc                         ## -- Begin function salloc
	.p2align	4, 0x90
_salloc:                                ## @salloc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	addl	$7, %r15d
	andl	$-8, %r15d
	movq	_stringdope@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	_NSPACE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_6
## %bb.1:
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,8), %rax
	movq	_STRINGSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movl	%edx, %edi
	shll	%cl, %edi
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, %edi
	jge	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, 8(%rbx)
	jge	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
	addq	$24, %rbx
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	(%rbx), %rsi
LBB0_7:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movl	8(%rbx), %edx
	movq	16(%rbx), %rax
	jmp	LBB0_12
LBB0_9:
	movq	%rbx, %rax
	subq	(%r14), %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %r14     ## imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %r14
	movq	_STRINGSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%r14d, %ecx
	shll	%cl, %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	callq	_err
	movq	(%rbx), %rax
LBB0_11:
	movq	%rax, 16(%rbx)
	movl	(%r12), %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movl	%edx, 8(%rbx)
LBB0_12:
	subl	%r15d, %edx
	movl	%edx, 8(%rbx)
	movslq	%r15d, %rcx
	addq	%rax, %rcx
	movq	%rcx, 16(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stringdope,8,3                 ## @stringdope
	.comm	_NSPACE,8,3                     ## @NSPACE
	.comm	_STRINGSIZE,4,2                 ## @STRINGSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"String too large"

L_.str.1:                               ## @.str.1
	.asciz	"No room for space %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_salloc                         ; -- Begin function salloc
	.p2align	2
_salloc:                                ; @salloc
	.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
	add	w8, w0, #7
	and	w20, w8, #0xfffffff8
Lloh0:
	adrp	x19, _stringdope@GOTPAGE
Lloh1:
	ldr	x19, [x19, _stringdope@GOTPAGEOFF]
	ldr	x21, [x19]
Lloh2:
	adrp	x8, _NSPACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NSPACE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x8]
Lloh5:
	adrp	x22, _STRINGSIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _STRINGSIZE@GOTPAGEOFF]
	cmp	x9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w8, #0
	mov	w10, #24
	madd	x9, x9, x10, x21
	ldr	w10, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x21]
	lsl	w12, w10, w8
	cmp	x11, #0
	ccmp	w12, w20, #8, eq
	b.ge	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w12, [x21, #8]
	cmp	w12, w20
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w8, #1
	add	x21, x21, #24
	cmp	x21, x9
	b.lo	LBB0_2
LBB0_5:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x11, [x21]
LBB0_6:
	cbz	x11, LBB0_8
; %bb.7:
	ldr	w8, [x21, #8]
	ldr	x0, [x21, #16]
	b	LBB0_11
LBB0_8:
	ldr	x8, [x19]
	sub	x8, x21, x8
	asr	x8, x8, #3
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	mul	x19, x8, x9
	ldr	w8, [x22]
	lsl	w0, w8, w19
	bl	_malloc
	str	x0, [x21]
	cbnz	x0, LBB0_10
; %bb.9:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
	ldr	x0, [x21]
LBB0_10:
	str	x0, [x21, #16]
	ldr	w8, [x22]
	lsl	w8, w8, w19
	str	w8, [x21, #8]
LBB0_11:
	sub	w8, w8, w20
	str	w8, [x21, #8]
	add	x8, x0, w20, sxtw
	str	x8, [x21, #16]
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_stringdope,8,3                 ; @stringdope
	.comm	_NSPACE,8,3                     ; @NSPACE
	.comm	_STRINGSIZE,4,2                 ; @STRINGSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"String too large"

l_.str.1:                               ; @.str.1
	.asciz	"No room for space %d"

.subsections_via_symbols
