	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_each_note_helper
_write_each_note_helper:                ## @write_each_note_helper
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_strlen
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ebx
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	jbe	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%r13), %rsi
	movq	%r12, %rdi
	callq	_matches_tree_write_stack
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	movq	8(%r12), %r12
	addl	$3, %ebx
	testq	%r12, %r12
	jne	LBB0_3
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r12, %rdi
	callq	_tree_write_stack_finish_subtree
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	leal	(%r14,%r14,2), %r15d
	leal	(%r14,%r14,2), %eax
	addl	$2, %eax
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jbe	LBB0_9
## %bb.10:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$47, (%r13,%rax)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r15d, %esi
	addq	%r13, %rsi
	movq	%r12, %rdi
	callq	_tree_write_stack_init_subtree
	movq	8(%r12), %r12
	leal	5(%r15), %eax
	addl	$3, %r15d
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	ja	LBB0_11
	jmp	LBB0_13
LBB0_9:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_13:
	movl	%r15d, %eax
	addq	%rax, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	subq	%rax, %rbx
	movq	%r13, %rdi
	movl	$47, %esi
	movq	%rbx, %rdx
	callq	_memchr
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	(%r14), %r8d
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_write_tree_entry
	xorl	%eax, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_each_note_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_each_note_helper
_write_each_note_helper:                ; @write_each_note_helper
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_strlen
	mov	x23, x0
	cbz	x21, LBB0_5
; %bb.1:
	mov	w8, #0
	mov	w24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w25, w8
	cmp	x23, x25
	b.ls	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x22, x25
	mov	x0, x21
	bl	_matches_tree_write_stack
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	ldr	x21, [x21, #8]
	add	w8, w25, #3
	cbnz	x21, LBB0_2
	b	LBB0_6
LBB0_5:
	mov	w24, #0
LBB0_6:
	mov	x0, x21
	bl	_tree_write_stack_finish_subtree
	cbnz	w0, LBB0_11
; %bb.7:
	add	w24, w24, w24, lsl #1
	add	w8, w24, #2
	cmp	x23, x8
	b.ls	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, x8]
	cmp	w8, #47
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x1, x22, w24, uxtw
	mov	x0, x21
	bl	_tree_write_stack_init_subtree
	ldr	x21, [x21, #8]
	add	w8, w24, #5
	add	w24, w24, #3
	cmp	x23, x8
	b.hi	LBB0_8
LBB0_10:
	mov	w8, w24
	add	x22, x22, x8
	sub	x23, x23, x8
	mov	x0, x22
	mov	w1, #47
	mov	x2, x23
	bl	_memchr
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	w4, [x20]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	bl	_write_tree_entry
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_each_note_helper
.subsections_via_symbols
