	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nth_midxed_pack_entry
_nth_midxed_pack_entry:                 ## @nth_midxed_pack_entry
	.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
	xorl	%r13d, %r13d
	cmpq	%rcx, (%rsi)
	jle	LBB0_11
## %bb.1:
	movq	%rcx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	movq	%rcx, %rsi
	callq	_nth_midxed_pack_int_id
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_prepare_midx_pack
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_3:
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %r14
	movq	%r14, %rdi
	callq	_is_pack_valid
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	cmpq	$0, (%r14)
	je	LBB0_10
## %bb.5:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_nth_midxed_object_oid
	cmpq	$0, (%r14)
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	movq	_the_hash_algo@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %edi
	movq	(%r13), %rax
	movq	(%rax), %rsi
	imulq	%rbx, %rsi
	addq	8(%r14), %rsi
	callq	_hasheq
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	cmpq	(%r14), %rbx
	jl	LBB0_8
LBB0_10:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_nth_midxed_offset
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movq	%r14, (%rcx)
	movl	$1, %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error preparing packfile from multi-pack-index"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nth_midxed_pack_entry
_nth_midxed_pack_entry:                 ; @nth_midxed_pack_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	x8, [x1]
	cmp	x8, x3
	b.le	LBB0_10
; %bb.1:
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, x1
	mov	x1, x3
	bl	_nth_midxed_pack_int_id
	mov	x22, x0
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_prepare_midx_pack
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die
LBB0_3:
	ldr	x8, [x21, #8]
	ldr	x22, [x8, x22, lsl #3]
	mov	x0, x22
	bl	_is_pack_valid
	cbz	w0, LBB0_11
; %bb.4:
	ldr	x8, [x22]
	cbz	x8, LBB0_9
; %bb.5:
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_nth_midxed_object_oid
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x23, #0
Lloh2:
	adrp	x24, _the_hash_algo@GOTPAGE
Lloh3:
	ldr	x24, [x24, _the_hash_algo@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #8]
	ldr	x8, [x22, #8]
	ldr	x9, [x24]
	ldr	x9, [x9]
	madd	x1, x9, x23, x8
	bl	_hasheq
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_7
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	bl	_nth_midxed_offset
	str	w0, [x19, #8]
	str	x22, [x19]
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error preparing packfile from multi-pack-index"

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