	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_each_note
_write_each_note:                       ## @write_each_note
	.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	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdx, %rdi
	callq	_strlen
	cmpb	$47, -1(%rbx,%rax)
	jne	LBB0_1
## %bb.2:
	decq	%rax
	movb	$0, (%rbx,%rax)
	movl	$16384, %r12d                   ## imm = 0x4000
	jmp	LBB0_3
LBB0_1:
	movl	$33188, %r12d                   ## imm = 0x81A4
LBB0_3:
	movq	_GIT_MAX_HEXSZ@GOTPCREL(%rip), %rcx
	movq	_FANOUT_PATH_SEPARATORS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	(%rcx), %rdx
	xorl	%edi, %edi
	cmpq	%rdx, %rax
	setbe	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_write_each_non_note_until
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_write_each_note_helper
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIT_MAX_HEXSZ,8,3              ## @GIT_MAX_HEXSZ
	.comm	_FANOUT_PATH_SEPARATORS,8,3     ## @FANOUT_PATH_SEPARATORS
	.no_dead_strip	_write_each_note
.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
_write_each_note:                       ; @write_each_note
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x0, x2
	bl	_strlen
	sub	x8, x0, #1
	ldrb	w9, [x20, x8]
	cmp	w9, #47
	b.ne	LBB0_2
; %bb.1:
	strb	wzr, [x20, x8]
	mov	w22, #16384
	mov	x0, x8
	b	LBB0_3
LBB0_2:
	mov	w22, #33188
LBB0_3:
Lloh0:
	adrp	x8, _GIT_MAX_HEXSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIT_MAX_HEXSZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _FANOUT_PATH_SEPARATORS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FANOUT_PATH_SEPARATORS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x9, x8
	cmp	x0, x8
	cset	w0, ls
	bl	_assert
	mov	x0, x20
	mov	x1, x21
	bl	_write_each_non_note_until
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	bl	_write_each_note_helper
	cmp	x0, #0
	cset	w0, ne
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GIT_MAX_HEXSZ,8,3              ; @GIT_MAX_HEXSZ
	.comm	_FANOUT_PATH_SEPARATORS,8,3     ; @FANOUT_PATH_SEPARATORS
	.no_dead_strip	_write_each_note
.subsections_via_symbols
