	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbuf_strcat                    ## -- Begin function lbuf_strcat
	.p2align	4, 0x90
_lbuf_strcat:                           ## @lbuf_strcat
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	8(%rbx), %ecx
	movl	12(%rbx), %esi
	leal	(%rcx,%r15), %edx
	cmpl	%esi, %edx
	jg	LBB0_3
	jmp	LBB0_5
LBB0_1:
	movl	12(%rbx), %esi
LBB0_3:
	addl	%esi, %esi
	movq	%rax, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, (%rbx)
	movl	8(%rbx), %ecx
LBB0_5:
	movslq	%ecx, %rdi
	addq	%rax, %rdi
	movl	%r15d, %edx
	incl	%edx
	movq	%r14, %rsi
	callq	_memcpy
	addl	%r15d, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbuf_strcat                    ; -- Begin function lbuf_strcat
	.p2align	2
_lbuf_strcat:                           ; @lbuf_strcat
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	mov	x21, x0
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	ldp	w8, w9, [x19, #8]
	add	w10, w8, w21
	cmp	w10, w9
	b.gt	LBB0_3
	b	LBB0_5
LBB0_2:
	ldr	w9, [x19, #12]
LBB0_3:
	lsl	w1, w9, #1
	bl	_realloc
	cbz	x0, LBB0_6
; %bb.4:
	str	x0, [x19]
	ldr	w8, [x19, #8]
LBB0_5:
	add	x0, x0, w8, sxtw
	add	w2, w21, #1
	mov	x1, x20
	bl	_memcpy
	ldr	w8, [x19, #8]
	add	w8, w8, w21
	str	w8, [x19, #8]
	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
LBB0_6:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_fprintf
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory.\n"

.subsections_via_symbols
