	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rclex_tok_add_char
_rclex_tok_add_char:                    ## @rclex_tok_add_char
	.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	_rclex_tok@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	movq	_rclex_tok_max@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_rclex_tok_pos@GOTPCREL(%rip), %r15
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	cmpl	(%r15), %edi
	jg	LBB0_7
LBB0_2:
	addl	$9, %edi
	callq	_xmalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %rbx
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edx
	incl	%edx
	movq	%rbx, %rdi
	callq	_memcpy
	movq	(%r12), %rdi
	callq	_free
	jmp	LBB0_6
LBB0_5:
	movl	$0, (%r15)
LBB0_6:
	addl	$8, (%r13)
	movq	%rbx, (%r12)
LBB0_7:
	cmpl	$-1, %r14d
	je	LBB0_9
## %bb.8:
	movslq	(%r15), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	movb	%r14b, (%rbx,%rax)
	movq	(%r12), %rbx
LBB0_9:
	movslq	(%r15), %rax
	movb	$0, (%rbx,%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_rclex_tok,8,3                  ## @rclex_tok
	.comm	_rclex_tok_max,4,2              ## @rclex_tok_max
	.comm	_rclex_tok_pos,4,2              ## @rclex_tok_pos
	.no_dead_strip	_rclex_tok_add_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rclex_tok_add_char
_rclex_tok_add_char:                    ; @rclex_tok_add_char
	.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
	mov	x20, x0
Lloh0:
	adrp	x22, _rclex_tok@GOTPAGE
Lloh1:
	ldr	x22, [x22, _rclex_tok@GOTPAGEOFF]
	ldr	x19, [x22]
Lloh2:
	adrp	x23, _rclex_tok_max@GOTPAGE
Lloh3:
	ldr	x23, [x23, _rclex_tok_max@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh4:
	adrp	x21, _rclex_tok_pos@GOTPAGE
Lloh5:
	ldr	x21, [x21, _rclex_tok_pos@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	x19, #0
	ccmp	w8, w9, #4, ne
	b.gt	LBB0_6
; %bb.1:
	add	w0, w8, #9
	bl	_xmalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	ldr	x1, [x22]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	w8, [x21]
	add	w2, w8, #1
	mov	x0, x19
	bl	_memcpy
	ldr	x0, [x22]
	bl	_free
	b	LBB0_5
LBB0_4:
	str	wzr, [x21]
LBB0_5:
	ldr	w8, [x23]
	add	w8, w8, #8
	str	w8, [x23]
	str	x19, [x22]
LBB0_6:
	cmn	w20, #1
	b.eq	LBB0_8
; %bb.7:
	ldrsw	x8, [x21]
	add	w9, w8, #1
	str	w9, [x21]
	strb	w20, [x19, x8]
	ldr	x19, [x22]
LBB0_8:
	ldrsw	x8, [x21]
	strb	wzr, [x19, x8]
	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
LBB0_9:
	bl	_abort
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rclex_tok,8,3                  ; @rclex_tok
	.comm	_rclex_tok_max,4,2              ; @rclex_tok_max
	.comm	_rclex_tok_pos,4,2              ; @rclex_tok_pos
	.no_dead_strip	_rclex_tok_add_char
.subsections_via_symbols
