	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RichString_extendLen
_RichString_extendLen:                  ## @RichString_extendLen
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movq	_RICHSTRING_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, (%rdi)
	jle	LBB0_1
## %bb.3:
	cmpl	%r14d, %eax
	jge	LBB0_4
## %bb.5:
	movl	4(%rbx), %r15d
	leal	1(%r14), %edi
	callq	_charBytes
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_xRealloc
	jmp	LBB0_6
LBB0_1:
	cmpl	%r14d, %eax
	jge	LBB0_7
## %bb.2:
	leal	1(%r14), %edi
	callq	_charBytes
	movl	%eax, %edi
	callq	_xMalloc
	movl	%eax, %r15d
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	movl	8(%rbx), %r12d
	callq	_charBytes
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_memcpy
	jmp	LBB0_7
LBB0_4:
	movl	4(%rbx), %r15d
	movl	8(%rbx), %r12d
	movl	%r14d, %edi
	callq	_charBytes
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_memcpy
	movl	4(%rbx), %edi
	callq	_free
	movl	8(%rbx), %eax
LBB0_6:
	movl	%eax, 4(%rbx)
LBB0_7:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_RichString_setChar
	movl	%r14d, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RICHSTRING_MAXLEN,4,2          ## @RICHSTRING_MAXLEN
	.no_dead_strip	_RichString_extendLen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RichString_extendLen
_RichString_extendLen:                  ; @RichString_extendLen
	.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, x1
	mov	x20, x0
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _RICHSTRING_MAXLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RICHSTRING_MAXLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w9, w8
	b.le	LBB0_3
; %bb.1:
	cmp	w8, w19
	b.ge	LBB0_5
; %bb.2:
	ldr	w21, [x20, #4]
	add	w0, w19, #1
	bl	_charBytes
	mov	x1, x0
	mov	x0, x21
	bl	_xRealloc
	str	w0, [x20, #4]
	b	LBB0_6
LBB0_3:
	cmp	w8, w19
	b.ge	LBB0_6
; %bb.4:
	add	w0, w19, #1
	bl	_charBytes
	bl	_xMalloc
	mov	x21, x0
	str	w0, [x20, #4]
	ldr	w22, [x20, #8]
	ldr	w0, [x20]
	bl	_charBytes
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
	b	LBB0_6
LBB0_5:
	ldp	w22, w21, [x20, #4]
	mov	x0, x19
	bl	_charBytes
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
	ldr	w0, [x20, #4]
	bl	_free
	ldr	w8, [x20, #8]
	str	w8, [x20, #4]
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_RichString_setChar
	str	w19, [x20]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RICHSTRING_MAXLEN,4,2          ; @RICHSTRING_MAXLEN
	.no_dead_strip	_RichString_extendLen
.subsections_via_symbols
