	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_commit_graph
_prepare_commit_graph:                  ## @prepare_commit_graph
	.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
	cmpq	$0, 16(%rdi)
	je	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.3:
	cmpl	$0, 4(%rax)
	setne	%al
LBB0_4:
	movzbl	%al, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	$1, (%rax)
	movq	_GIT_TEST_COMMIT_GRAPH_DIE_ON_LOAD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_git_env_bool
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_7:
	movq	%r14, %rdi
	callq	_prepare_repo_settings
	movq	_GIT_TEST_COMMIT_GRAPH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_git_env_bool
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	cmpl	$1, 8(%r14)
	jne	LBB0_1
LBB0_9:
	movq	%r14, %rdi
	callq	_commit_graph_compatible
	testl	%eax, %eax
	je	LBB0_1
## %bb.10:
	movq	%r14, %rdi
	callq	_prepare_alt_odb
	movq	(%r14), %rcx
	cmpl	$0, 4(%rcx)
	setne	%al
	jne	LBB0_4
## %bb.11:
	movq	8(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_prepare_commit_graph_one
	movq	(%r14), %rax
	cmpl	$0, 4(%rax)
	setne	%al
	jne	LBB0_4
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_12
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_GIT_TEST_COMMIT_GRAPH_DIE_ON_LOAD,4,2 ## @GIT_TEST_COMMIT_GRAPH_DIE_ON_LOAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dying as requested by the '%s' variable on commit-graph load!"

	.comm	_GIT_TEST_COMMIT_GRAPH,4,2      ## @GIT_TEST_COMMIT_GRAPH
	.no_dead_strip	_prepare_commit_graph
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_commit_graph
_prepare_commit_graph:                  ; @prepare_commit_graph
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
	cbz	w9, LBB0_5
; %bb.3:
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cset	w0, ne
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w9, #1
	str	w9, [x8]
Lloh0:
	adrp	x20, _GIT_TEST_COMMIT_GRAPH_DIE_ON_LOAD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GIT_TEST_COMMIT_GRAPH_DIE_ON_LOAD@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #0
	bl	_git_env_bool
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w1, [x20]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_7:
	mov	x0, x19
	bl	_prepare_repo_settings
Lloh4:
	adrp	x8, _GIT_TEST_COMMIT_GRAPH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GIT_TEST_COMMIT_GRAPH@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_git_env_bool
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_1
LBB0_9:
	mov	x0, x19
	bl	_commit_graph_compatible
	cbz	w0, LBB0_4
; %bb.10:
	mov	x0, x19
	bl	_prepare_alt_odb
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
	cmp	w9, #0
	cset	w0, ne
	cbnz	w9, LBB0_4
; %bb.11:
	ldr	x20, [x8, #8]
	cbz	x20, LBB0_4
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_prepare_commit_graph_one
	ldr	x20, [x20, #8]
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cset	w0, ne
	ccmp	x20, #0, #4, eq
	b.ne	LBB0_12
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GIT_TEST_COMMIT_GRAPH_DIE_ON_LOAD,4,2 ; @GIT_TEST_COMMIT_GRAPH_DIE_ON_LOAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dying as requested by the '%s' variable on commit-graph load!"

	.comm	_GIT_TEST_COMMIT_GRAPH,4,2      ; @GIT_TEST_COMMIT_GRAPH
	.no_dead_strip	_prepare_commit_graph
.subsections_via_symbols
