	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HUlib_addCharToTextLine        ## -- Begin function HUlib_addCharToTextLine
	.p2align	4, 0x90
_HUlib_addCharToTextLine:               ## @HUlib_addCharToTextLine
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_HU_MAXLINELENGTH@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	movq	8(%rdi), %rax
	leaq	1(%rcx), %rdx
	movq	%rdx, (%rdi)
	movb	%sil, (%rax,%rcx)
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movb	$0, (%rcx,%rax)
	movl	$4, 16(%rdi)
	movl	$1, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HU_MAXLINELENGTH,8,3           ## @HU_MAXLINELENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HUlib_addCharToTextLine        ; -- Begin function HUlib_addCharToTextLine
	.p2align	2
_HUlib_addCharToTextLine:               ; @HUlib_addCharToTextLine
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HU_MAXLINELENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HU_MAXLINELENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	ldr	x9, [x0, #8]
	add	x10, x8, #1
	str	x10, [x0]
	strb	w1, [x9, x8]
	ldp	x9, x8, [x0]
	strb	wzr, [x8, x9]
	mov	w8, #4
	str	w8, [x0, #16]
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HU_MAXLINELENGTH,8,3           ; @HU_MAXLINELENGTH
.subsections_via_symbols
