	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cb_begin_input                 ## -- Begin function cb_begin_input
	.p2align	4, 0x90
_cb_begin_input:                        ## @cb_begin_input
	.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
	movl	$-1, %r12d
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.1:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	js	LBB0_11
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	cmpl	$0, 32(%rdi)
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rax
	cmpq	8(%r15), %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_cb_ensure_capacity
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movq	(%r15), %rdi
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	addq	(%r15), %r14
	movq	%r14, (%r15)
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, 16(%r15)
	addq	%rbx, %r14
LBB0_10:
	movq	%r14, 24(%r15)
	xorl	%r12d, %r12d
LBB0_11:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rdi, %r14
LBB0_9:
	movq	8(%r15), %rax
	movq	%rax, 16(%r15)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cb_begin_input                 ; -- Begin function cb_begin_input
	.p2align	2
_cb_begin_input:                        ; @cb_begin_input
	.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	w8, #-1
	cbz	x1, LBB0_8
; %bb.1:
	mov	x20, x2
	tbnz	x2, #63, LBB0_8
; %bb.2:
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_6
; %bb.3:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_cb_ensure_capacity
	cbz	x0, LBB0_9
; %bb.5:
	mov	w8, #-1
	b	LBB0_8
LBB0_6:
	str	x21, [x19, #16]
	add	x0, x21, x20
LBB0_7:
	mov	w8, #0
	str	x0, [x19, #24]
LBB0_8:
	mov	x0, x8
	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_9:
	ldr	x0, [x19]
	cbz	x20, LBB0_11
; %bb.10:
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19]
	add	x0, x8, x20
	str	x0, [x19]
LBB0_11:
	ldr	x8, [x19, #8]
	str	x8, [x19, #16]
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
