	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function repack_promisor_objects
_repack_promisor_objects:               ## @repack_promisor_objects
	.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	%rsi, %r14
	movq	%rdi, %rsi
	movq	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_prepare_pack_objects
	movl	$-1, -48(%rbp)
	movq	_write_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FOR_EACH_OBJECT_PROMISOR_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_for_each_packed_object
	movl	-48(%rbp), %edi
	cmpl	$-1, %edi
	je	LBB0_10
## %bb.1:
	callq	_close
	movl	-44(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	callq	_xfdopen
	movq	%rax, %rbx
	leaq	-64(%rbp), %rdi
	movq	%rax, %rsi
	callq	_strbuf_getline_lf
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_8:
	movq	%rbx, %rdi
	callq	_fclose
	leaq	-48(%rbp), %rdi
	callq	_finish_command
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-64(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %esi
	movq	%r14, %rdi
	callq	_string_list_append
	movq	_packtmp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_mkpathdup
	movq	%rax, %r12
	movq	_O_EXCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	callq	_close
	movq	%r12, %rdi
	callq	_free
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_getline_lf
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	movq	_the_hash_algo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_die_errno
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_CHILD_PROCESS_INIT,8,2         ## @CHILD_PROCESS_INIT
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_write_oid,4,2                  ## @write_oid
	.comm	_FOR_EACH_OBJECT_PROMISOR_ONLY,4,2 ## @FOR_EACH_OBJECT_PROMISOR_ONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_EOF,8,3                        ## @EOF
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
L_.str.1:                               ## @.str.1
	.asciz	"repack: Expecting full hex object ID lines only from pack-objects."

L_.str.2:                               ## @.str.2
	.asciz	"%s-%s.promisor"

	.comm	_packtmp,4,2                    ## @packtmp
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
L_.str.3:                               ## @.str.3
	.asciz	"unable to create '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"could not finish pack-objects to repack promisor objects"

	.no_dead_strip	_repack_promisor_objects
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function repack_promisor_objects
_repack_promisor_objects:               ; @repack_promisor_objects
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x1, x0
Lloh0:
	adrp	x8, _CHILD_PROCESS_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHILD_PROCESS_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp]
	add	x0, sp, #24
	bl	_prepare_pack_objects
	mov	w8, #-1
	str	w8, [sp, #24]
Lloh6:
	adrp	x8, _write_oid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _write_oid@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _FOR_EACH_OBJECT_PROMISOR_ONLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FOR_EACH_OBJECT_PROMISOR_ONLY@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x1, sp, #24
	bl	_for_each_packed_object
	ldr	w0, [sp, #24]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	bl	_close
	ldr	w0, [sp, #28]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_xfdopen
	mov	x20, x0
	mov	x0, sp
	mov	x1, x20
	bl	_strbuf_getline_lf
Lloh14:
	adrp	x26, _EOF@GOTPAGE
Lloh15:
	ldr	x26, [x26, _EOF@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_fclose
	add	x0, sp, #24
	bl	_finish_command
	cbz	x0, LBB0_4
; %bb.3:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	bl	_die
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
Lloh18:
	adrp	x28, _packtmp@GOTPAGE
Lloh19:
	ldr	x28, [x28, _packtmp@GOTPAGEOFF]
Lloh20:
	adrp	x21, l_.str.2@PAGE
Lloh21:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh22:
	adrp	x22, _O_CREAT@GOTPAGE
Lloh23:
	ldr	x22, [x22, _O_CREAT@GOTPAGEOFF]
Lloh24:
	adrp	x23, _O_EXCL@GOTPAGE
Lloh25:
	ldr	x23, [x23, _O_EXCL@GOTPAGEOFF]
Lloh26:
	adrp	x27, _O_WRONLY@GOTPAGE
Lloh27:
	ldr	x27, [x27, _O_WRONLY@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_string_list_append
	ldr	w1, [x28]
	ldr	w2, [sp, #8]
	mov	x0, x21
	bl	_mkpathdup
	mov	x24, x0
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w1, w8, w9
	mov	w2, #384
	bl	_open
	mov	x25, x0
	tbnz	w0, #31, LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x25
	bl	_close
	mov	x0, x24
	bl	_free
	mov	x0, sp
	mov	x1, x20
	bl	_strbuf_getline_lf
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
Lloh28:
	adrp	x9, _the_hash_algo@GOTPAGE
Lloh29:
	ldr	x9, [x9, _the_hash_algo@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_die
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x24
	bl	_die_errno
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_CHILD_PROCESS_INIT,8,2         ; @CHILD_PROCESS_INIT
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_write_oid,4,2                  ; @write_oid
	.comm	_FOR_EACH_OBJECT_PROMISOR_ONLY,4,2 ; @FOR_EACH_OBJECT_PROMISOR_ONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_EOF,8,3                        ; @EOF
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
l_.str.1:                               ; @.str.1
	.asciz	"repack: Expecting full hex object ID lines only from pack-objects."

l_.str.2:                               ; @.str.2
	.asciz	"%s-%s.promisor"

	.comm	_packtmp,4,2                    ; @packtmp
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
l_.str.3:                               ; @.str.3
	.asciz	"unable to create '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"could not finish pack-objects to repack promisor objects"

	.no_dead_strip	_repack_promisor_objects
.subsections_via_symbols
