	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_pack_revindex
_create_pack_revindex:                  ## @create_pack_revindex
	.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	%rdi, %r13
	movl	(%rdi), %ebx
	movq	8(%rdi), %r14
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rdi
	leal	1(%rbx), %esi
	callq	_ALLOC_ARRAY
	cmpl	$1, 16(%r13)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.4:
	testq	%rbx, %rbx
	movq	%rbx, %rsi
	je	LBB0_10
## %bb.5:
	movl	(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	$4, %ecx
	imull	%eax, %ecx
	leaq	(%r14,%rcx), %rdx
	leaq	(%r14,%rcx), %rbx
	addq	$1032, %rbx                     ## imm = 0x408
	leaq	(%rdx,%rax,4), %r15
	addq	$1032, %r15                     ## imm = 0x408
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_get_be64
	movq	24(%r13), %rcx
	movl	%eax, (%rcx,%r12,8)
	addq	$8, %r15
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, 4(%rcx,%r12,8)
	incq	%r12
	cmpq	%r12, %rsi
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r12,4), %edi
	callq	_ntohl
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r13), %rcx
	movl	%eax, (%rcx,%r12,8)
	jmp	LBB0_9
LBB0_1:
	testq	%rbx, %rbx
	movq	%rbx, %rsi
	je	LBB0_10
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	4(%rax), %r12d
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movl	1024(%r14,%rax), %edi
	callq	_ntohl
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	24(%r13), %rcx
	movl	%eax, (%rcx,%r15,8)
	movl	%r15d, 4(%rcx,%r15,8)
	incq	%r15
	addl	%r12d, %ebx
	cmpq	%r15, %rsi
	jne	LBB0_3
LBB0_10:
	movl	20(%r13), %edx
	movl	%edx, %eax
	subl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movq	24(%r13), %rdi
	movl	%eax, (%rdi,%rsi,8)
	movl	$-1, 4(%rdi,%rsi,8)
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sort_revindex                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.no_dead_strip	_create_pack_revindex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_pack_revindex
_create_pack_revindex:                  ; @create_pack_revindex
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	w19, [x0]
	ldr	x25, [x0, #8]
Lloh0:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w22, [x8]
	ldr	x0, [x0, #24]
	add	w1, w19, #1
	bl	_ALLOC_ARRAY
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.le	LBB0_7
; %bb.1:
	cbz	w19, LBB0_10
; %bb.2:
	mov	x23, #0
	ldr	w8, [x20]
	add	w9, w22, #4
	mul	w9, w8, w9
	add	x9, x25, x9
	add	x24, x9, #1032
	add	x21, x24, x8, lsl #2
	mov	w25, #4
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_get_be64
	ldr	x8, [x20, #24]
	add	x9, x8, x25
	stur	w0, [x9, #-4]
	add	x21, x21, #8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w23, [x8, x25]
	add	x23, x23, #1
	add	x25, x25, #8
	cmp	x19, x23
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24, x23, lsl #2]
	bl	_ntohl
	tbnz	w0, #31, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #24]
	add	x9, x8, x25
	stur	w0, [x9, #-4]
	b	LBB0_4
LBB0_7:
	cbz	w19, LBB0_10
; %bb.8:
	mov	w21, #0
	mov	w23, #0
	mov	x24, #0
	add	x25, x25, #1024
	add	w26, w22, #4
	lsl	x27, x19, #3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25, w21, uxtw]
	bl	_ntohl
	ldr	x8, [x20, #24]
	add	x8, x8, x24
	stp	w0, w23, [x8]
	add	x24, x24, #8
	add	w23, w23, #1
	add	w21, w21, w26
	cmp	x27, x24
	b.ne	LBB0_9
LBB0_10:
	ldr	w2, [x20, #20]
	sub	w8, w2, w22
	ldr	x0, [x20, #24]
	add	x9, x0, x19, lsl #3
	mov	w10, #-1
	stp	w8, w10, [x9]
	mov	x1, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_sort_revindex
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.no_dead_strip	_create_pack_revindex
.subsections_via_symbols
