	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_included_packs_batch
_fill_included_packs_batch:             ## @fill_included_packs_batch
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rsi), %rdi
	movl	$16, %esi
	callq	_xcalloc
	movq	%rax, %r12
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.14:
	xorl	%r15d, %r15d
	movq	%r12, %rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r15
	movq	(%r14), %rsi
	addq	$16, %rbx
	cmpq	%rsi, %r15
	jae	LBB0_2
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, (%rbx)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_prepare_midx_pack
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%r15,8), %rax
	movl	12(%rax), %eax
	movl	%eax, 12(%rbx)
	jmp	LBB0_17
LBB0_1:
	xorl	%esi, %esi
LBB0_2:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_13
## %bb.3:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_nth_midxed_pack_int_id
	shlq	$4, %rax
	incl	8(%r12,%rax)
	incq	%rbx
	cmpq	8(%r14), %rbx
	jb	LBB0_5
LBB0_6:
	movq	(%r14), %rsi
	movq	_compare_by_mtime@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_QSORT
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	addq	$8, %r12
	movq	$-1, %r13
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$16, %r12
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	jae	LBB0_22
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r15
	incq	%r13
	cmpq	%r15, %r13
	jae	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movslq	-8(%r12), %rcx
	movq	16(%r14), %rax
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_open_pack_index
	testq	%rax, %rax
	jne	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movslq	8(%rbx), %rdx
	movslq	(%r12), %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_12
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_19
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	jae	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	incq	-56(%rbp)                       ## 8-byte Folded Spill
	addq	%rax, -72(%rbp)                 ## 8-byte Folded Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movb	$1, (%rax,%rcx)
	jmp	LBB0_21
LBB0_22:
	cmpq	%r15, %r13
	setae	%r14b
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_13:
	movq	_compare_by_mtime@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_QSORT
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
LBB0_23:
	movq	%r12, %rdi
	callq	_free
	cmpq	$2, %rbx
	setb	%al
	orb	%r14b, %al
	movzbl	%al, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_compare_by_mtime,4,2           ## @compare_by_mtime
	.no_dead_strip	_fill_included_packs_batch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_included_packs_batch
_fill_included_packs_batch:             ; @fill_included_packs_batch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x1
	mov	x23, x0
	ldr	x0, [x1]
	mov	w1, #16
	bl	_xcalloc
	mov	x19, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x24, #0
	mov	x25, x19
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldr	x1, [x22]
	add	x25, x25, #16
	cmp	x24, x1
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	x24, [x25]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_prepare_midx_pack
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #16]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w8, [x8, #12]
	str	w8, [x25, #12]
	b	LBB0_2
LBB0_5:
	mov	x1, #0
LBB0_6:
	cbz	x20, LBB0_19
; %bb.7:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_nth_midxed_pack_int_id
	add	x8, x19, x0, lsl #4
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	add	x23, x23, #1
	ldr	x8, [x22, #8]
	cmp	x23, x8
	b.lo	LBB0_9
LBB0_10:
	ldr	x1, [x22]
Lloh0:
	adrp	x8, _compare_by_mtime@GOTPAGE
Lloh1:
	ldr	x8, [x8, _compare_by_mtime@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_QSORT
	mov	x24, #0
	mov	x26, #0
	add	x27, x19, #8
	mov	x25, #-1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x27, x27, #16
	cmp	x26, x20
	b.hs	LBB0_18
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x22]
	add	x25, x25, #1
	cmp	x25, x28
	b.hs	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	x21, [x27, #-8]
	ldr	x8, [x22, #16]
	sbfiz	x9, x21, #3, #32
	ldr	x23, [x8, x9]
	cbz	x23, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	bl	_open_pack_index
	cbnz	x0, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrsw	x9, [x23, #8]
	ldrsw	x10, [x27]
	mul	x9, x10, x9
	udiv	x8, x9, x8
	cmp	x8, x20
	b.hs	LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	sxtw	x9, w21
	add	x24, x24, #1
	add	x26, x8, x26
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	mov	w10, #1
	strb	w10, [x8, x9]
	b	LBB0_11
LBB0_18:
	cmp	x25, x28
	cset	w20, hs
	b	LBB0_20
LBB0_19:
Lloh3:
	adrp	x8, _compare_by_mtime@GOTPAGE
Lloh4:
	ldr	x8, [x8, _compare_by_mtime@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_QSORT
	mov	x24, #0
LBB0_20:
	mov	x0, x19
	bl	_free
	cmp	x24, #2
	cset	w8, lo
	orr	w0, w20, w8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_compare_by_mtime,4,2           ; @compare_by_mtime
	.no_dead_strip	_fill_included_packs_batch
.subsections_via_symbols
