	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_commit_graph_one_fd_st    ## -- Begin function load_commit_graph_one_fd_st
	.p2align	4, 0x90
_load_commit_graph_one_fd_st:           ## @load_commit_graph_one_fd_st
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movl	(%rsi), %edi
	callq	_xsize_t
	movq	%rax, %rbx
	movq	_GRAPH_MIN_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_close
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
	jmp	LBB0_4
LBB0_2:
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	callq	_xmmap
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_parse_commit_graph
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_munmap
	movl	%r14d, %edi
	callq	_close
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRAPH_MIN_SIZE,8,3             ## @GRAPH_MIN_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"commit-graph file is too small"

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_commit_graph_one_fd_st    ; -- Begin function load_commit_graph_one_fd_st
	.p2align	2
_load_commit_graph_one_fd_st:           ; @load_commit_graph_one_fd_st
	.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	x19, x0
	ldr	w0, [x1]
	bl	_xsize_t
Lloh0:
	adrp	x8, _GRAPH_MIN_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRAPH_MIN_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_close
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_error
	b	LBB0_4
LBB0_2:
	mov	x20, x0
Lloh5:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _MAP_PRIVATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAP_PRIVATE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x20
	mov	x4, x19
	mov	w5, #0
	bl	_xmmap
	mov	x21, x0
	mov	x1, x19
	mov	x2, x20
	bl	_parse_commit_graph
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_munmap
	mov	x0, x19
	bl	_close
LBB0_4:
	mov	x0, #0
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GRAPH_MIN_SIZE,8,3             ; @GRAPH_MIN_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"commit-graph file is too small"

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
.subsections_via_symbols
