	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_copy_notes_for_rewrite    ## -- Begin function init_copy_notes_for_rewrite
	.p2align	4, 0x90
_init_copy_notes_for_rewrite:           ## @init_copy_notes_for_rewrite
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$48, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	_GIT_NOTES_REWRITE_MODE_ENVIRONMENT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_getenv
	movq	%rax, %r15
	movq	_GIT_NOTES_REWRITE_REF_ENVIRONMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_getenv
	movq	%rax, %r14
	movq	%r12, (%rbx)
	movl	$1, 8(%rbx)
	movq	_combine_notes_concatenate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	$1, %edi
	movl	$4, %esi
	callq	_xcalloc
	movq	%rax, 24(%rbx)
	movl	$1, 12(%rax)
	movq	$0, 16(%rbx)
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	movl	$1, 20(%rbx)
	movq	%r15, %rdi
	callq	_parse_combine_notes_fn
	movl	%eax, 40(%rbx)
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	testq	%r14, %r14
	je	LBB0_5
LBB0_4:
	movl	$1, 16(%rbx)
	movq	24(%rbx), %rdi
	movq	%r14, %rsi
	callq	_string_list_add_refs_from_colon_sep
LBB0_5:
	movq	_notes_rewrite_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_git_config
	cmpl	$0, 8(%rbx)
	movq	24(%rbx), %rdi
	je	LBB0_7
## %bb.6:
	cmpl	$0, 36(%rdi)
	je	LBB0_7
## %bb.8:
	movq	_NOTES_INIT_WRITABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_load_notes_trees
	movl	%eax, 32(%rbx)
	movq	24(%rbx), %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
	movq	24(%rbx), %rdi
	callq	_free
	jmp	LBB0_9
LBB0_7:
	xorl	%esi, %esi
	callq	_string_list_clear
	movq	24(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	(%r13), %esi
	movl	%eax, %edi
	movq	%r15, %rdx
	callq	_error
	testq	%r14, %r14
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GIT_NOTES_REWRITE_MODE_ENVIRONMENT,4,2 ## @GIT_NOTES_REWRITE_MODE_ENVIRONMENT
	.comm	_GIT_NOTES_REWRITE_REF_ENVIRONMENT,4,2 ## @GIT_NOTES_REWRITE_REF_ENVIRONMENT
	.comm	_combine_notes_concatenate,4,2  ## @combine_notes_concatenate
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad %s value: '%s'"

	.comm	_notes_rewrite_config,4,2       ## @notes_rewrite_config
	.comm	_NOTES_INIT_WRITABLE,4,2        ## @NOTES_INIT_WRITABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_copy_notes_for_rewrite    ; -- Begin function init_copy_notes_for_rewrite
	.p2align	2
_init_copy_notes_for_rewrite:           ; @init_copy_notes_for_rewrite
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x0
	mov	w0, #48
	bl	_xmalloc
	mov	x19, x0
Lloh0:
	adrp	x23, _GIT_NOTES_REWRITE_MODE_ENVIRONMENT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GIT_NOTES_REWRITE_MODE_ENVIRONMENT@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_getenv
	mov	x21, x0
Lloh2:
	adrp	x8, _GIT_NOTES_REWRITE_REF_ENVIRONMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GIT_NOTES_REWRITE_REF_ENVIRONMENT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_getenv
	mov	x20, x0
	str	x22, [x19]
	mov	w22, #1
	str	w22, [x19, #8]
Lloh5:
	adrp	x8, _combine_notes_concatenate@GOTPAGE
Lloh6:
	ldr	x8, [x8, _combine_notes_concatenate@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	mov	w0, #1
	mov	w1, #4
	bl	_xcalloc
	str	x0, [x19, #24]
	str	w22, [x0, #12]
	str	xzr, [x19, #16]
	cbz	x21, LBB0_2
; %bb.1:
	str	w22, [x19, #20]
	mov	x0, x21
	bl	_parse_combine_notes_fn
	str	w0, [x19, #40]
	cbz	w0, LBB0_9
LBB0_2:
	cbz	x20, LBB0_4
LBB0_3:
	mov	w8, #1
	str	w8, [x19, #16]
	ldr	x0, [x19, #24]
	mov	x1, x20
	bl	_string_list_add_refs_from_colon_sep
LBB0_4:
Lloh8:
	adrp	x8, _notes_rewrite_config@GOTPAGE
Lloh9:
	ldr	x8, [x8, _notes_rewrite_config@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_git_config
	ldr	w8, [x19, #8]
	ldr	x0, [x19, #24]
	cbz	w8, LBB0_7
; %bb.5:
	ldr	w8, [x0, #36]
	cbz	w8, LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _NOTES_INIT_WRITABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NOTES_INIT_WRITABLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_load_notes_trees
	str	w0, [x19, #32]
	ldr	x0, [x19, #24]
	mov	w1, #0
	bl	_string_list_clear
	ldr	x0, [x19, #24]
	bl	_free
	b	LBB0_8
LBB0_7:
	mov	w1, #0
	bl	_string_list_clear
	ldr	x0, [x19, #24]
	bl	_free
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	w1, [x23]
	mov	x2, x21
	bl	_error
	cbnz	x20, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GIT_NOTES_REWRITE_MODE_ENVIRONMENT,4,2 ; @GIT_NOTES_REWRITE_MODE_ENVIRONMENT
	.comm	_GIT_NOTES_REWRITE_REF_ENVIRONMENT,4,2 ; @GIT_NOTES_REWRITE_REF_ENVIRONMENT
	.comm	_combine_notes_concatenate,4,2  ; @combine_notes_concatenate
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad %s value: '%s'"

	.comm	_notes_rewrite_config,4,2       ; @notes_rewrite_config
	.comm	_NOTES_INIT_WRITABLE,4,2        ; @NOTES_INIT_WRITABLE
.subsections_via_symbols
