	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_packed_git                 ## -- Begin function add_packed_git
	.p2align	4, 0x90
_add_packed_git:                        ## @add_packed_git
	.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
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	%rsi, -48(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %rsi
	callq	_strip_suffix_mem
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	-48(%rbp), %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_st_add3
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_alloc_packed_git
	movq	%rax, %rbx
	movq	24(%rax), %rdi
	movq	-48(%rbp), %rdx
	movq	%r14, %rsi
	callq	_memcpy
	movq	-48(%rbp), %rax
	movq	24(%rbx), %rdi
	addq	%rax, %rdi
	movq	%r12, %rsi
	subq	%rax, %rsi
	leaq	L_.str.2(%rip), %rdx
	callq	_xsnprintf
	movq	24(%rbx), %rdi
	movq	_F_OK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_access
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	$1, (%rbx)
LBB0_3:
	movq	-48(%rbp), %rax
	movq	24(%rbx), %rdi
	addq	%rax, %rdi
	movq	%r12, %rsi
	subq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_xsnprintf
	movq	24(%rbx), %rdi
	movl	(%r13), %esi
	callq	_access
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	$1, 4(%rbx)
LBB0_5:
	movq	-48(%rbp), %rax
	movq	24(%rbx), %rdi
	addq	%rax, %rdi
	subq	%rax, %r12
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rsi
	callq	_xsnprintf
	movq	24(%rbx), %rdi
	leaq	-64(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
LBB0_7:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	-56(%rbp), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	movl	-60(%rbp), %eax
	movl	%eax, 20(%rbx)
	movl	%r15d, 8(%rbx)
	movl	-64(%rbp), %eax
	movl	%eax, 16(%rbx)
	movq	-48(%rbp), %rax
	movq	_the_hash_algo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_11
## %bb.10:
	addq	%rax, %r14
	subq	%rcx, %r14
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_get_sha1_hex
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movl	12(%rbx), %edi
	callq	_hashclr
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".idx"

L_.str.1:                               ## @.str.1
	.asciz	".promisor"

L_.str.2:                               ## @.str.2
	.asciz	".keep"

	.comm	_F_OK,4,2                       ## @F_OK
L_.str.3:                               ## @.str.3
	.asciz	".pack"

	.comm	_the_hash_algo,8,3              ## @the_hash_algo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_packed_git                 ; -- Begin function add_packed_git
	.p2align	2
_add_packed_git:                        ; @add_packed_git
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x19, x0
	str	x1, [sp, #24]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #24
	bl	_strip_suffix_mem
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x20, [sp, #24]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strlen
	mov	x1, x0
	mov	w23, #1
	mov	x0, x20
	mov	w2, #1
	bl	_st_add3
	mov	x22, x0
	bl	_alloc_packed_git
	mov	x20, x0
	ldr	x0, [x0, #24]
	ldr	x2, [sp, #24]
	mov	x1, x19
	bl	_memcpy
	ldr	x8, [x20, #24]
	ldr	x9, [sp, #24]
	add	x0, x9, x8
	sub	x1, x22, x9
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_xsnprintf
	ldr	x0, [x20, #24]
Lloh6:
	adrp	x24, _F_OK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _F_OK@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_access
	cbnz	w0, LBB0_3
; %bb.2:
	str	w23, [x20]
LBB0_3:
	ldr	x8, [x20, #24]
	ldr	x9, [sp, #24]
	add	x0, x9, x8
	sub	x1, x22, x9
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_xsnprintf
	ldr	x0, [x20, #24]
	ldr	w1, [x24]
	bl	_access
	cbnz	w0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_5:
	ldr	x8, [x20, #24]
	ldr	x9, [sp, #24]
	add	x0, x9, x8
	sub	x1, x22, x9
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_xsnprintf
	ldr	x0, [x20, #24]
	add	x1, sp, #8
	bl	_stat
	cbz	x0, LBB0_9
LBB0_6:
	mov	x0, x20
	bl	_free
LBB0_7:
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	w0, [sp, #16]
	bl	_S_ISREG
	cbz	w0, LBB0_6
; %bb.10:
	str	w21, [x20, #8]
	ldr	d0, [sp, #8]
	str	d0, [x20, #16]
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, _the_hash_algo@GOTPAGE
Lloh13:
	ldr	x9, [x9, _the_hash_algo@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_12
; %bb.11:
	add	x8, x19, x8
	sub	x0, x8, x9
	ldr	w1, [x20, #12]
	bl	_get_sha1_hex
	cbz	x0, LBB0_8
LBB0_12:
	ldr	w0, [x20, #12]
	bl	_hashclr
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".idx"

l_.str.1:                               ; @.str.1
	.asciz	".promisor"

l_.str.2:                               ; @.str.2
	.asciz	".keep"

	.comm	_F_OK,4,2                       ; @F_OK
l_.str.3:                               ; @.str.3
	.asciz	".pack"

	.comm	_the_hash_algo,8,3              ; @the_hash_algo
.subsections_via_symbols
