	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_pack_info
_init_pack_info:                        ## @init_pack_info
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_all_packs
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_num_pack@GOTPCREL(%rip), %r12
	movq	_info@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 4(%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	callq	_file_exists
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r12), %r14
	leal	1(%r14), %esi
	movl	%esi, (%r12)
	movq	(%r13), %rdi
	xorl	%edx, %edx
	callq	_ALLOC_GROW
	movl	$1, %edi
	movl	$4, %esi
	callq	_xcalloc
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	(%r13), %rax
	movq	(%rax,%r14,8), %rcx
	movq	%rbx, 8(%rcx)
	movq	(%rax,%r14,8), %rax
	movl	$-1, (%rax)
	jmp	LBB0_5
LBB0_6:
	movl	$1, %eax
	testq	%r15, %r15
	je	LBB0_9
## %bb.7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_read_pack_info_file
LBB0_9:
	movq	_num_pack@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_14
## %bb.10:
	movq	_info@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rdx
	movslq	%esi, %rdi
	cmpq	%rdi, %rdx
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movl	$-1, (%rsi)
	movl	(%rbx), %esi
	jmp	LBB0_13
LBB0_14:
	movq	_info@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_compare_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_QSORT
	movl	(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_21
## %bb.15:
	movq	(%r14), %rax
	leaq	-1(%rsi), %rdx
	movl	%esi, %ecx
	andl	$7, %ecx
	cmpq	$7, %rdx
	jae	LBB0_17
## %bb.16:
	xorl	%edx, %edx
	jmp	LBB0_19
LBB0_17:
	andl	$-8, %esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rdi
	movl	%edx, 4(%rdi)
	movq	8(%rax,%rdx,8), %rdi
	leal	1(%rdx), %ebx
	movl	%ebx, 4(%rdi)
	movq	16(%rax,%rdx,8), %rdi
	leal	2(%rdx), %ebx
	movl	%ebx, 4(%rdi)
	movq	24(%rax,%rdx,8), %rdi
	leal	3(%rdx), %ebx
	movl	%ebx, 4(%rdi)
	movq	32(%rax,%rdx,8), %rdi
	leal	4(%rdx), %ebx
	movl	%ebx, 4(%rdi)
	movq	40(%rax,%rdx,8), %rdi
	leal	5(%rdx), %ebx
	movl	%ebx, 4(%rdi)
	movq	48(%rax,%rdx,8), %rdi
	leal	6(%rdx), %ebx
	movl	%ebx, 4(%rdi)
	movq	56(%rax,%rdx,8), %rdi
	leal	7(%rdx), %ebx
	movl	%ebx, 4(%rdi)
	addq	$8, %rdx
	cmpq	%rsi, %rdx
	jne	LBB0_18
LBB0_19:
	testq	%rcx, %rcx
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rsi
	movl	%edx, 4(%rsi)
	incq	%rdx
	decq	%rcx
	jne	LBB0_20
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_num_pack,4,2                   ## @num_pack
	.comm	_info,8,3                       ## @info
	.comm	_compare_info,4,2               ## @compare_info
	.no_dead_strip	_init_pack_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_pack_info
_init_pack_info:                        ; @init_pack_info
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _the_repository@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_all_packs
Lloh3:
	adrp	x23, _num_pack@GOTPAGE
Lloh4:
	ldr	x23, [x23, _num_pack@GOTPAGEOFF]
Lloh5:
	adrp	x22, _info@GOTPAGE
Lloh6:
	ldr	x22, [x22, _info@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	w24, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	bl	_file_exists
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x25, [x23]
	add	w1, w25, #1
	str	w1, [x23]
	ldr	x0, [x22]
	mov	x2, #0
	bl	_ALLOC_GROW
	mov	w0, #1
	mov	w1, #4
	bl	_xcalloc
	ldr	x8, [x22]
	lsl	x9, x25, #3
	str	x0, [x8, x9]
	ldr	x8, [x22]
	ldr	x10, [x8, x9]
	str	x21, [x10, #8]
	ldr	x8, [x8, x9]
	str	w24, [x8]
	b	LBB0_2
LBB0_6:
	mov	w0, #1
	cbz	x19, LBB0_9
; %bb.7:
	cbnz	w20, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_read_pack_info_file
LBB0_9:
	ldr	w1, [x23]
	cmp	w1, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x8, #0
	ldr	x9, [x22]
	mov	w10, #-1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x8, #1
	cmp	x8, w1, sxtw
	b.ge	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cbz	w0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x11, [x9, x8, lsl #3]
	str	w10, [x11]
	ldr	w1, [x23]
	b	LBB0_11
LBB0_14:
	ldr	x0, [x22]
Lloh7:
	adrp	x8, _compare_info@GOTPAGE
Lloh8:
	ldr	x8, [x8, _compare_info@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_QSORT
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.15:
	ldr	x9, [x22]
	cmp	w8, #4
	b.hs	LBB0_17
; %bb.16:
	mov	x10, #0
	b	LBB0_20
LBB0_17:
	mov	x11, #0
	and	x10, x8, #0xfffffffc
	add	x12, x9, #16
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	w13, w11, #1
	add	w14, w11, #2
	add	w15, w11, #3
	ldp	x16, x17, [x12, #-16]
	ldp	x0, x1, [x12], #32
	str	w11, [x16, #4]
	str	w13, [x17, #4]
	str	w14, [x0, #4]
	str	w15, [x1, #4]
	add	x11, x11, #4
	cmp	x10, x11
	b.ne	LBB0_18
; %bb.19:
	cmp	x10, x8
	b.eq	LBB0_21
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x10, lsl #3]
	str	w10, [x11, #4]
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_20
LBB0_21:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_num_pack,4,2                   ; @num_pack
	.comm	_info,8,3                       ; @info
	.comm	_compare_info,4,2               ; @compare_info
	.no_dead_strip	_init_pack_info
.subsections_via_symbols
