	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sp_str_alloc                   ## -- Begin function sp_str_alloc
	.p2align	4, 0x90
_sp_str_alloc:                          ## @sp_str_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_str_buf_n@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movslq	%edi, %rdx
	addq	%rax, %rdx
	incq	%rdx
	movq	_STRING_PROCESS_BUF_SIZE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jle	LBB0_2
## %bb.1:
	movq	_sp_errno@GOTPCREL(%rip), %rax
	movl	$2, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_str_buf@GOTPCREL(%rip), %rsi
	addq	(%rsi), %rax
	movq	%rdx, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_str_buf_n,8,3                  ## @str_buf_n
	.comm	_STRING_PROCESS_BUF_SIZE,8,3    ## @STRING_PROCESS_BUF_SIZE
	.comm	_sp_errno,4,2                   ## @sp_errno
	.comm	_str_buf,8,3                    ## @str_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sp_str_alloc                   ; -- Begin function sp_str_alloc
	.p2align	2
_sp_str_alloc:                          ; @sp_str_alloc
	.cfi_startproc
; %bb.0:
	add	w9, w0, #1
Lloh0:
	adrp	x8, _str_buf_n@GOTPAGE
Lloh1:
	ldr	x8, [x8, _str_buf_n@GOTPAGEOFF]
	ldr	x10, [x8]
	add	x9, x10, w9, sxtw
Lloh2:
	adrp	x11, _STRING_PROCESS_BUF_SIZE@GOTPAGE
Lloh3:
	ldr	x11, [x11, _STRING_PROCESS_BUF_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	cmp	x9, x11
	b.le	LBB0_2
; %bb.1:
	mov	x0, #0
Lloh5:
	adrp	x8, _sp_errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sp_errno@GOTPAGEOFF]
	mov	w9, #2
Lloh7:
	str	w9, [x8]
	ret
LBB0_2:
Lloh8:
	adrp	x11, _str_buf@GOTPAGE
Lloh9:
	ldr	x11, [x11, _str_buf@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	add	x0, x11, x10
	str	x9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_str_buf_n,8,3                  ; @str_buf_n
	.comm	_STRING_PROCESS_BUF_SIZE,8,3    ; @STRING_PROCESS_BUF_SIZE
	.comm	_sp_errno,4,2                   ; @sp_errno
	.comm	_str_buf,8,3                    ; @str_buf
.subsections_via_symbols
