	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_objects_in_unpacked_packs
_add_objects_in_unpacked_packs:         ## @add_objects_in_unpacked_packs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_all_packs
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r13
	leaq	-72(%rbp), %r14
	movq	_OBJECT_ADDED@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r13), %r13
	testq	%r13, %r13
	je	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	cmpl	$0, 24(%r13)
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%r13)
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%r13)
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_open_pack_index
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi
	movq	(%r13), %rsi
	addq	-64(%rbp), %rsi
	movl	-48(%rbp), %edx
	callq	_ALLOC_GROW
	cmpq	$0, (%r13)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	orl	%ecx, %eax
	movl	%eax, (%r12)
	incq	%rbx
	cmpq	(%r13), %rbx
	jae	LBB0_12
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_nth_packed_object_oid
	movq	%r14, %rdi
	callq	_lookup_unknown_object
	movq	%rax, %r12
	movl	(%rax), %eax
	movl	(%r15), %ecx
	testl	%eax, %ecx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r12, %rdi
	movq	%r13, %rsi
	leaq	-64(%rbp), %rdx
	callq	_mark_in_pack_object
	movl	(%r15), %ecx
	movl	(%r12), %eax
	jmp	LBB0_11
LBB0_13:
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.14:
	movq	-56(%rbp), %rdi
	movq	_ofscmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_QSORT
	cmpq	$0, -64(%rbp)
	je	LBB0_17
## %bb.15:
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r14
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	4(%rdi), %esi
	addq	$8, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_add_object_entry
	incq	%rbx
	cmpq	-64(%rbp), %rbx
	jb	LBB0_16
LBB0_17:
	movq	-56(%rbp), %rdi
	callq	_free
	addq	$40, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot open pack index"

	.comm	_OBJECT_ADDED,4,2               ## @OBJECT_ADDED
	.comm	_ofscmp,4,2                     ## @ofscmp
L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_add_objects_in_unpacked_packs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_objects_in_unpacked_packs
_add_objects_in_unpacked_packs:         ; @add_objects_in_unpacked_packs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _the_repository@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_all_packs
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x23, _OBJECT_ADDED@GOTPAGE
Lloh4:
	ldr	x23, [x23, _OBJECT_ADDED@GOTPAGEOFF]
Lloh5:
	adrp	x20, l_.str@PAGE
Lloh6:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [x19, #32]
	cbz	x19, LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_open_pack_index
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	__
	bl	_die
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	x8, x0, [sp, #8]
	ldr	x9, [x19]
	add	x1, x9, x8
	ldr	w2, [sp, #24]
	bl	_ALLOC_GROW
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	orr	w8, w9, w8
	str	w8, [x22]
	add	x21, x21, #1
	ldr	x8, [x19]
	cmp	x21, x8
	b.hs	LBB0_2
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, sp
	mov	x1, x19
	mov	x2, x21
	bl	_nth_packed_object_oid
	mov	x0, sp
	bl	_lookup_unknown_object
	mov	x22, x0
	ldr	w9, [x0]
	ldr	w8, [x23]
	tst	w8, w9
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x19
	bl	_mark_in_pack_object
	ldr	w8, [x23]
	ldr	w9, [x22]
	b	LBB0_10
LBB0_13:
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_17
; %bb.14:
	ldr	x0, [sp, #16]
Lloh7:
	adrp	x8, _ofscmp@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ofscmp@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_QSORT
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_17
; %bb.15:
	mov	x20, #0
Lloh10:
	adrp	x19, l_.str.1@PAGE
Lloh11:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	ldr	x8, [x8, x20, lsl #3]
	add	x0, x8, #8
	ldr	w1, [x8, #4]
	mov	x2, x19
	mov	w3, #0
	bl	_add_object_entry
	add	x20, x20, #1
	ldr	x8, [sp, #8]
	cmp	x20, x8
	b.lo	LBB0_16
LBB0_17:
	ldr	x0, [sp, #16]
	bl	_free
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_the_repository,4,2             ; @the_repository
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot open pack index"

	.comm	_OBJECT_ADDED,4,2               ; @OBJECT_ADDED
	.comm	_ofscmp,4,2                     ; @ofscmp
l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_add_objects_in_unpacked_packs
.subsections_via_symbols
