	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_packed_git_idx
_check_packed_git_idx:                  ## @check_packed_git_idx
	.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	%rsi, %r14
	movq	%rdi, %r15
	callq	_git_open
	movl	$-1, %r12d
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	leaq	-48(%rbp), %rsi
	movl	%ebx, %edi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	callq	_close
LBB0_6:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-48(%rbp), %edi
	callq	_xsize_t
	leal	1024(%r13,%r13), %ecx
	cmpq	%rcx, %rax
	jae	LBB0_4
## %bb.7:
	movl	%ebx, %edi
	callq	_close
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_4:
	movq	_PROT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	movq	%rax, %rsi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_xmmap
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_close
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %r15
	movq	%r14, %r8
	callq	_load_idx
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_munmap
	movl	%ebx, %r12d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index file %s is too small"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_packed_git_idx
_check_packed_git_idx:                  ; @check_packed_git_idx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_git_open
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w22, [x8]
	add	x1, sp, #8
	bl	_fstat
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_close
LBB0_3:
	mov	w19, #-1
LBB0_4:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	w0, [sp, #8]
	bl	_xsize_t
	lsl	w8, w22, #1
	add	w8, w8, #1024
	cmp	x0, x8
	b.hs	LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_close
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	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
	add	sp, sp, #80
	b	_error
LBB0_7:
	mov	x23, 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, x23
	mov	x4, x21
	mov	w5, #0
	bl	_xmmap
	mov	x24, x0
	mov	x0, x21
	bl	_close
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	mov	x3, x23
	mov	x4, x20
	bl	_load_idx
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.8:
	mov	x0, x24
	mov	x1, x23
	bl	_munmap
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index file %s is too small"

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