	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_midx_pack              ## -- Begin function prepare_midx_pack
	.p2align	4, 0x90
_prepare_midx_pack:                     ## @prepare_midx_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	%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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	%rdx, (%rsi)
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	(%rbx), %rdx
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_die
LBB0_2:
	movq	8(%rbx), %rax
	xorl	%r12d, %r12d
	cmpq	$0, (%rax,%r15,8)
	jne	LBB0_6
## %bb.3:
	movl	32(%rbx), %edx
	movq	24(%rbx), %rax
	movl	(%rax,%r15,4), %ecx
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strbuf_addf
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edi
	movl	16(%rbx), %edx
	callq	_add_packed_git
	movq	%rax, %r13
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	movl	$1, (%r13)
	movq	8(%rbx), %rax
	movq	%r13, (%rax,%r15,8)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_install_packed_git
	addq	$4, %r13
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_list_add_tail
	jmp	LBB0_6
LBB0_4:
	movl	$1, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad pack-int-id: %u (%u total packs)"

L_.str.1:                               ## @.str.1
	.asciz	"%s/pack/%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_midx_pack              ; -- Begin function prepare_midx_pack
	.p2align	2
_prepare_midx_pack:                     ; @prepare_midx_pack
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x8, [x1]
	cmp	x8, x2
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	x2, [x21]
	mov	x1, x20
	bl	_die
LBB0_2:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x20, lsl #3]
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	w2, [x21, #32]
	ldr	x8, [x21, #24]
	ldr	w3, [x8, x20, lsl #2]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
	ldp	w1, w0, [sp, #8]
	ldr	w2, [x21, #16]
	bl	_add_packed_git
	mov	x22, x0
	add	x0, sp, #8
	bl	_strbuf_release
	mov	w0, #1
	cbz	x22, LBB0_6
; %bb.4:
	mov	x23, x22
	str	w0, [x23], #4
	ldr	x8, [x21, #8]
	str	x22, [x8, x20, lsl #3]
	mov	x0, x19
	mov	x1, x22
	bl	_install_packed_git
	ldr	x1, [x19]
	mov	x0, x23
	bl	_list_add_tail
LBB0_5:
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad pack-int-id: %u (%u total packs)"

l_.str.1:                               ; @.str.1
	.asciz	"%s/pack/%s"

.subsections_via_symbols
