	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_pack
_add_pack:                              ## @add_pack
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, 24(%rdi)
	jne	LBB0_4
## %bb.1:
	movq	_alt_odb@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
LBB0_4:
	movq	%r14, -40(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_llist_init
	movq	%r14, %rdi
	callq	_open_pack_index
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_13:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%edx, %edx
	xorl	%eax, %eax
	cmpl	$2, 8(%r14)
	setl	%dl
	setge	%cl
	movq	_the_hash_algo@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movslq	(%rsi), %rsi
	leaq	(%rsi,%rdx,4), %r12
	movq	16(%r14), %rdx
	imulq	%r12, %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.7:
	movq	(%r14), %rdx
	movb	%cl, %al
	leaq	(%rdx,%rax,4), %r15
	addq	$1028, %r15                     ## imm = 0x404
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi
	leaq	(%r15,%rbx), %rsi
	callq	_llist_insert_back
	addq	%r12, %rbx
	movq	16(%r14), %rax
	imulq	%r12, %rax
	cmpq	%rax, %rbx
	jb	LBB0_8
LBB0_9:
	movq	-56(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -64(%rbp)
	cmpq	$0, 24(%r14)
	jne	LBB0_11
## %bb.10:
	movq	_altodb_packs@GOTPCREL(%rip), %rdi
	jmp	LBB0_12
LBB0_11:
	movq	_local_packs@GOTPCREL(%rip), %rdi
LBB0_12:
	leaq	-64(%rbp), %rsi
	callq	_pack_list_insert
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_alt_odb,8,3                    ## @alt_odb
	.comm	_verbose,8,3                    ## @verbose
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.comm	_local_packs,4,2                ## @local_packs
	.comm	_altodb_packs,4,2               ## @altodb_packs
	.no_dead_strip	_add_pack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_pack
_add_pack:                              ; @add_pack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _alt_odb@GOTPAGE
Lloh1:
	ldr	x9, [x9, _alt_odb@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _verbose@GOTPAGE
Lloh4:
	ldr	x10, [x10, _verbose@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, #0
	ccmp	x9, #0, #0, eq
	ccmp	x10, #0, #0, eq
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	str	x0, [sp, #24]
	mov	x8, sp
	add	x0, x8, #8
	bl	_llist_init
	mov	x0, x19
	bl	_open_pack_index
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, #0
LBB0_3:
	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
	add	sp, sp, #80
	ret
LBB0_4:
	ldr	w8, [x19, #8]
	cmp	w8, #2
	cset	w9, lt
	mov	w8, #1032
	mov	w10, #1028
Lloh6:
	adrp	x11, _the_hash_algo@GOTPAGE
Lloh7:
	ldr	x11, [x11, _the_hash_algo@GOTPAGEOFF]
	csel	x8, x10, x8, lt
Lloh8:
	ldr	x10, [x11]
	ldrsw	x10, [x10]
	add	x20, x10, w9, uxtw #2
	ldr	x9, [x19, #16]
	mul	x9, x9, x20
	cbz	x9, LBB0_7
; %bb.5:
	mov	x21, #0
	ldr	x9, [x19]
	add	x22, x9, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	add	x1, x22, x21
	bl	_llist_insert_back
	ldr	x8, [x19, #16]
	mul	x8, x8, x20
	add	x21, x21, x20
	cmp	x21, x8
	b.lo	LBB0_6
LBB0_7:
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	xzr, [sp]
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x9, _local_packs@GOTPAGE
Lloh10:
	ldr	x9, [x9, _local_packs@GOTPAGEOFF]
Lloh11:
	adrp	x10, _altodb_packs@GOTPAGE
Lloh12:
	ldr	x10, [x10, _altodb_packs@GOTPAGEOFF]
	cmp	x8, #0
	csel	x0, x10, x9, eq
	mov	x1, sp
	bl	_pack_list_insert
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_alt_odb,8,3                    ; @alt_odb
	.comm	_verbose,8,3                    ; @verbose
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.comm	_local_packs,4,2                ; @local_packs
	.comm	_altodb_packs,4,2               ; @altodb_packs
	.no_dead_strip	_add_pack
.subsections_via_symbols
