	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_notes_add                  ## -- Begin function run_notes_add
	.p2align	4, 0x90
_run_notes_add:                         ## @run_notes_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	incq	%rax
	movq	%rax, (%rdi)
	cmpq	8(%rdi), %rax
	jl	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_run_notes_expand_to_hold_more
	testq	%rax, %rax
	js	LBB0_2
LBB0_4:
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_strdup
	movq	(%rbx), %rdx
	movq	16(%rbx), %rsi
	leaq	-1(%rdx), %rcx
	movq	%rax, -8(%rsi,%rdx,8)
	movq	16(%rbx), %rax
	cmpq	$0, -8(%rax,%rdx,8)
	jne	LBB0_7
	jmp	LBB0_3
LBB0_6:
	movq	(%rbx), %rcx
	movq	16(%rbx), %rax
	movq	$0, -8(%rax,%rcx,8)
	decq	%rcx
	movq	16(%rbx), %rax
LBB0_7:
	movl	$1, 24(%rbx)
	leaq	(%rax,%rcx,8), %rax
	jmp	LBB0_8
LBB0_2:
	movq	(%rbx), %rcx
	decq	%rcx
LBB0_3:
	movq	%rcx, (%rbx)
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	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	_run_notes_add                  ; -- Begin function run_notes_add
	.p2align	2
_run_notes_add:                         ; @run_notes_add
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldp	x8, x9, [x0]
	add	x8, x8, #1
	str	x8, [x0]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_run_notes_expand_to_hold_more
	tbnz	x0, #63, LBB0_6
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_strdup
	ldr	x9, [x19, #16]
	ldr	x8, [x19]
	sub	x8, x8, #1
	lsl	x10, x8, #3
	str	x0, [x9, x10]
	ldr	x9, [x19, #16]
	ldr	x10, [x9, x10]
	cbnz	x10, LBB0_5
	b	LBB0_7
LBB0_4:
	ldr	x9, [x19, #16]
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	xzr, [x9, x8, lsl #3]
	ldr	x9, [x19, #16]
LBB0_5:
	mov	w10, #1
	str	w10, [x19, #24]
	add	x0, x9, x8, lsl #3
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19]
	sub	x8, x8, #1
LBB0_7:
	mov	x0, #0
	str	x8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
