	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_strbuf_append                ## -- Begin function r_strbuf_append
	.p2align	4, 0x90
_r_strbuf_append:                       ## @r_strbuf_append
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_strlen
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	movl	%eax, %r13d
	movl	(%r14), %eax
	leal	(%rax,%r13), %ecx
	incl	%ecx
	cmpl	$7, %ecx
	ja	LBB0_3
## %bb.2:
	movslq	%eax, %rdi
	addq	8(%r14), %rdi
	leal	1(%r13), %edx
	movq	%r15, %rsi
	callq	_memcpy
	movq	16(%r14), %rdi
	callq	_R_FREE
	jmp	LBB0_12
LBB0_3:
	leal	(%rax,%r13), %ecx
	leal	128(%rcx), %edx
	movq	16(%r14), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.4:
	cmpl	24(%r14), %ecx
	jl	LBB0_11
## %bb.5:
	movq	%r12, %rdi
	movl	%edx, %r12d
	movl	%edx, %esi
	callq	_realloc
	movl	%r12d, %ecx
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_13
LBB0_6:
	movl	%edx, %edi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %r12
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_9
## %bb.8:
	movq	8(%r14), %rsi
	movq	%r12, %rdi
	callq	_memcpy
LBB0_9:
	movl	%ebx, %ecx
LBB0_10:
	movq	%r12, 16(%r14)
	movl	%ecx, 24(%r14)
	movl	(%r14), %eax
LBB0_11:
	movslq	%eax, %rdi
	addq	%r12, %rdi
	leal	1(%r13), %edx
	movq	%r15, %rsi
	callq	_memcpy
LBB0_12:
	addl	%r13d, (%r14)
	movl	$1, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_strbuf_append                ; -- Begin function r_strbuf_append
	.p2align	2
_r_strbuf_append:                       ; @r_strbuf_append
	.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	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19]
	add	w9, w8, w0
	add	w10, w9, #1
	cmp	w10, #7
	b.hi	LBB0_4
; %bb.2:
	sxtw	x8, w8
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	add	w2, w20, #1
	mov	x1, x21
	bl	_memcpy
	ldr	x0, [x19, #16]
	bl	_R_FREE
	b	LBB0_12
LBB0_3:
	mov	w0, #0
	b	LBB0_13
LBB0_4:
	add	w23, w9, #128
	ldr	x22, [x19, #16]
	cbz	x22, LBB0_7
; %bb.5:
	ldr	w10, [x19, #24]
	cmp	w9, w10
	b.lt	LBB0_11
; %bb.6:
	mov	x0, x22
	mov	x1, x23
	bl	_realloc
	mov	x22, x0
	cbnz	x0, LBB0_10
	b	LBB0_13
LBB0_7:
	mov	x0, x23
	bl	_malloc
	cbz	x0, LBB0_13
; %bb.8:
	mov	x22, x0
	ldr	w2, [x19]
	cmp	w2, #1
	b.lt	LBB0_10
; %bb.9:
	ldr	x1, [x19, #8]
	mov	x0, x22
	bl	_memcpy
LBB0_10:
	str	x22, [x19, #16]
	str	w23, [x19, #24]
	ldr	w8, [x19]
LBB0_11:
	add	x0, x22, w8, sxtw
	add	w2, w20, #1
	mov	x1, x21
	bl	_memcpy
LBB0_12:
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
	mov	w0, #1
LBB0_13:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
