	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function strbuf_append
_strbuf_append:                         ## @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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	testl	%edx, %edx
	js	LBB0_10
## %bb.3:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movl	(%rbx), %ecx
	movl	4(%rbx), %eax
	addl	%r15d, %ecx
	addl	$2, %ecx
	cmpl	%eax, %ecx
	jge	LBB0_4
## %bb.6:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_10
LBB0_4:
	leal	(%r15,%rax), %r12d
	addl	$256, %r12d                     ## imm = 0x100
	movq	8(%rbx), %rdi
	movl	%r12d, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, 8(%rbx)
	movl	%r12d, 4(%rbx)
LBB0_8:
	movslq	(%rbx), %rdi
	addq	%rax, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movslq	(%rbx), %rcx
	movslq	%r15d, %rax
	addq	%rcx, %rax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	movb	$0, (%rcx,%rax)
	jmp	LBB0_10
LBB0_5:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_strbuf_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function strbuf_append
_strbuf_append:                         ; @strbuf_append
	.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, x0
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_10
; %bb.2:
	tbnz	w2, #31, LBB0_10
; %bb.3:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	ldp	w9, w8, [x19]
	add	w9, w0, w9
	add	w9, w9, #2
	cmp	w9, w8
	b.ge	LBB0_5
; %bb.4:
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_7
	b	LBB0_10
LBB0_5:
	add	w8, w21, w8
	add	w22, w8, #256
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_realloc
	cbz	x0, LBB0_9
; %bb.6:
	str	x0, [x19, #8]
	str	w22, [x19, #4]
LBB0_7:
	ldrsw	x8, [x19]
	add	x0, x0, x8
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldrsw	x8, [x19]
	add	x8, x8, w21, sxtw
	str	w8, [x19]
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_10
; %bb.8:
	strb	wzr, [x9, x8]
	b	LBB0_10
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_strbuf_append
.subsections_via_symbols
