	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_upload_pack_v2                 ## -- Begin function upload_pack_v2
	.p2align	4, 0x90
_upload_pack_v2:                        ## @upload_pack_v2
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	_OBJECT_ARRAY_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%eax, -40(%rbp)
	movq	_ALL_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_clear_object_flags
	movq	_upload_pack_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_git_config
	leaq	-56(%rbp), %rdi
	callq	_upload_pack_data_init
	movq	_LARGE_PACKET_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_use_sideband@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movb	$-126, %al
	addb	$-128, %al
	movzbl	%al, %eax
	leaq	LJTI0_0(%rip), %r12
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-56(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_process_args
	cmpl	$0, -40(%rbp)
	je	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, -52(%rbp)
	movb	$-127, %al
	sbbb	$0, %al
	addb	$-128, %al
	movzbl	%al, %eax
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	$-125, %al
	addb	$-128, %al
	movzbl	%al, %eax
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_process_haves_and_send_acks
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	leal	(%rcx,%rcx,2), %eax
	addl	$128, %eax
	addb	$-128, %al
	movzbl	%al, %eax
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_send_wanted_ref_info
	leaq	-40(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_send_shallow_info
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_packet_writer_write
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_create_pack_file
	movb	$-125, %al
	addb	$-128, %al
	movzbl	%al, %eax
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_6:
	leaq	-56(%rbp), %rdi
	callq	_upload_pack_data_clear
	leaq	-48(%rbp), %rdi
	callq	_object_array_clear
	leaq	-40(%rbp), %rdi
	callq	_object_array_clear
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_OBJECT_ARRAY_INIT,4,2          ## @OBJECT_ARRAY_INIT
	.comm	_ALL_FLAGS,4,2                  ## @ALL_FLAGS
	.comm	_upload_pack_config,4,2         ## @upload_pack_config
	.comm	_LARGE_PACKET_MAX,4,2           ## @LARGE_PACKET_MAX
	.comm	_use_sideband,4,2               ## @use_sideband
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packfile\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_upload_pack_v2                 ; -- Begin function upload_pack_v2
	.p2align	2
_upload_pack_v2:                        ; @upload_pack_v2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
Lloh0:
	adrp	x8, _OBJECT_ARRAY_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBJECT_ARRAY_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _ALL_FLAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALL_FLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_clear_object_flags
Lloh6:
	adrp	x8, _upload_pack_config@GOTPAGE
Lloh7:
	ldr	x8, [x8, _upload_pack_config@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_git_config
	add	x0, sp, #24
	bl	_upload_pack_data_init
Lloh9:
	adrp	x8, _LARGE_PACKET_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LARGE_PACKET_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _use_sideband@GOTPAGE
Lloh13:
	ldr	x9, [x9, _use_sideband@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
	mov	w8, #2
Lloh15:
	adrp	x21, lJTI0_0@PAGE
Lloh16:
	add	x21, x21, lJTI0_0@PAGEOFF
Lloh17:
	adrp	x20, l_.str@PAGE
Lloh18:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #24
	bl	_send_wanted_ref_info
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_send_shallow_info
	add	x0, sp, #24
	mov	x1, x20
	bl	_packet_writer_write
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_create_pack_file
	mov	w8, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	x8, x8, #0x3
	adr	x9, LBB0_1
	ldrb	w10, [x21, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_3:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_process_haves_and_send_acks
	cmp	w0, #0
	csetm	w8, eq
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x19
	bl	_process_args
	ldr	w9, [sp, #8]
	mov	w8, #3
	cbz	w9, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #28]
	cmp	w8, #0
	cset	w8, ne
	b	LBB0_2
LBB0_6:
	add	x0, sp, #24
	bl	_upload_pack_data_clear
	add	x0, sp, #16
	bl	_object_array_clear
	add	x0, sp, #8
	bl	_object_array_clear
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_3-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
                                        ; -- End function
	.comm	_OBJECT_ARRAY_INIT,4,2          ; @OBJECT_ARRAY_INIT
	.comm	_ALL_FLAGS,4,2                  ; @ALL_FLAGS
	.comm	_upload_pack_config,4,2         ; @upload_pack_config
	.comm	_LARGE_PACKET_MAX,4,2           ; @LARGE_PACKET_MAX
	.comm	_use_sideband,4,2               ; @use_sideband
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packfile\n"

.subsections_via_symbols
