	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sp_str_pre_alloc               ## -- Begin function sp_str_pre_alloc
	.p2align	4, 0x90
_sp_str_pre_alloc:                      ## @sp_str_pre_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), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	addq	%rax, %rcx
	movq	_STRING_PROCESS_BUF_SIZE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_1
## %bb.2:
	movq	_str_buf@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	popq	%rbp
	retq
LBB0_1:
	movq	_sp_errno@GOTPCREL(%rip), %rax
	movl	$2, (%rax)
	xorl	%eax, %eax
	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_pre_alloc               ; -- Begin function sp_str_pre_alloc
	.p2align	2
_sp_str_pre_alloc:                      ; @sp_str_pre_alloc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _str_buf_n@GOTPAGE
Lloh1:
	ldr	x8, [x8, _str_buf_n@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x8, w0, sxtw
Lloh3:
	adrp	x10, _STRING_PROCESS_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _STRING_PROCESS_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _str_buf@GOTPAGE
Lloh7:
	ldr	x9, [x9, _str_buf@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	ret
LBB0_2:
	mov	x0, #0
Lloh9:
	adrp	x8, _sp_errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sp_errno@GOTPAGEOFF]
	mov	w9, #2
Lloh11:
	str	w9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.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
