	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_upload_pack                    ## -- Begin function upload_pack
	.p2align	4, 0x90
_upload_pack:                           ## @upload_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_STRING_LIST_INIT_DUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_OBJECT_ARRAY_INIT@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, -56(%rbp)
	movl	16(%rdi), %eax
	movq	_stateless_rpc@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movl	12(%rdi), %eax
	movq	_timeout@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	8(%rdi), %eax
	movq	_daemon_mode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_upload_pack_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_git_config
	movq	_find_symref@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	callq	_head_ref_namespaced
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r14)
	je	LBB0_2
## %bb.3:
	movq	_check_ref@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_head_ref_namespaced
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_for_each_namespaced_ref
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
	callq	_reset_timeout
	movq	_send_ref@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-40(%rbp), %r14
	movq	%r14, %rsi
	callq	_head_ref_namespaced
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_for_each_namespaced_ref
	movl	$1, %edi
	callq	_advertise_shallow_grafts
	movl	$1, %edi
	callq	_packet_flush
LBB0_4:
	leaq	-40(%rbp), %rdi
	movl	$1, %esi
	callq	_string_list_clear
	cmpq	$0, (%rbx)
	jne	LBB0_7
## %bb.5:
	movq	_PACKET_READ_CHOMP_NEWLINE@GOTPCREL(%rip), %rax
	movq	_PACKET_READ_DIE_ON_ERR_PACKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_packet_reader_init
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_receive_needs
	cmpq	$0, -56(%rbp)
	je	LBB0_7
## %bb.6:
	movq	(%r15), %rax
	movq	%rax, -64(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rbx
	leaq	-56(%rbp), %r14
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_get_common_commits
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_create_pack_file
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRING_LIST_INIT_DUP,4,2       ## @STRING_LIST_INIT_DUP
	.comm	_OBJECT_ARRAY_INIT,8,3          ## @OBJECT_ARRAY_INIT
	.comm	_stateless_rpc,4,2              ## @stateless_rpc
	.comm	_timeout,4,2                    ## @timeout
	.comm	_daemon_mode,4,2                ## @daemon_mode
	.comm	_upload_pack_config,4,2         ## @upload_pack_config
	.comm	_find_symref,4,2                ## @find_symref
	.comm	_send_ref,4,2                   ## @send_ref
	.comm	_check_ref,4,2                  ## @check_ref
	.comm	_PACKET_READ_CHOMP_NEWLINE,4,2  ## @PACKET_READ_CHOMP_NEWLINE
	.comm	_PACKET_READ_DIE_ON_ERR_PACKET,4,2 ## @PACKET_READ_DIE_ON_ERR_PACKET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_upload_pack                    ; -- Begin function upload_pack
	.p2align	2
_upload_pack:                           ; @upload_pack
	.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, x0
Lloh0:
	adrp	x8, _STRING_LIST_INIT_DUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRING_LIST_INIT_DUP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _OBJECT_ARRAY_INIT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _OBJECT_ARRAY_INIT@GOTPAGEOFF]
	str	w8, [sp, #24]
	ldr	x8, [x20]
	str	x8, [sp, #16]
Lloh5:
	adrp	x8, _timeout@GOTPAGE
Lloh6:
	ldr	x8, [x8, _timeout@GOTPAGEOFF]
	ldp	w10, w9, [x0, #8]
Lloh7:
	str	w9, [x8]
	ldr	w8, [x0, #16]
Lloh8:
	adrp	x21, _stateless_rpc@GOTPAGE
Lloh9:
	ldr	x21, [x21, _stateless_rpc@GOTPAGEOFF]
	str	w8, [x21]
Lloh10:
	adrp	x8, _daemon_mode@GOTPAGE
Lloh11:
	ldr	x8, [x8, _daemon_mode@GOTPAGEOFF]
Lloh12:
	str	w10, [x8]
Lloh13:
	adrp	x8, _upload_pack_config@GOTPAGE
Lloh14:
	ldr	x8, [x8, _upload_pack_config@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_git_config
Lloh16:
	adrp	x8, _find_symref@GOTPAGE
Lloh17:
	ldr	x8, [x8, _find_symref@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_head_ref_namespaced
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.2:
Lloh19:
	adrp	x21, _check_ref@GOTPAGE
Lloh20:
	ldr	x21, [x21, _check_ref@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, #0
	bl	_head_ref_namespaced
	ldr	w0, [x21]
	mov	x1, #0
	bl	_for_each_namespaced_ref
	b	LBB0_4
LBB0_3:
	bl	_reset_timeout
Lloh21:
	adrp	x21, _send_ref@GOTPAGE
Lloh22:
	ldr	x21, [x21, _send_ref@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #24
	bl	_head_ref_namespaced
	ldr	w0, [x21]
	add	x1, sp, #24
	bl	_for_each_namespaced_ref
	mov	w0, #1
	bl	_advertise_shallow_grafts
	mov	w0, #1
	bl	_packet_flush
LBB0_4:
	add	x0, sp, #24
	mov	w1, #1
	bl	_string_list_clear
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
; %bb.5:
Lloh23:
	adrp	x8, _PACKET_READ_CHOMP_NEWLINE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PACKET_READ_CHOMP_NEWLINE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _PACKET_READ_DIE_ON_ERR_PACKET@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PACKET_READ_DIE_ON_ERR_PACKET@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w4, w9, w8
	add	x0, sp, #8
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	bl	_packet_reader_init
	add	x0, sp, #8
	add	x1, sp, #16
	bl	_receive_needs
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x20]
	str	x8, [sp]
	add	x0, sp, #8
	mov	x1, sp
	add	x2, sp, #16
	bl	_get_common_commits
	mov	x0, sp
	add	x1, sp, #16
	bl	_create_pack_file
LBB0_7:
	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 AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_STRING_LIST_INIT_DUP,4,2       ; @STRING_LIST_INIT_DUP
	.comm	_OBJECT_ARRAY_INIT,8,3          ; @OBJECT_ARRAY_INIT
	.comm	_stateless_rpc,4,2              ; @stateless_rpc
	.comm	_timeout,4,2                    ; @timeout
	.comm	_daemon_mode,4,2                ; @daemon_mode
	.comm	_upload_pack_config,4,2         ; @upload_pack_config
	.comm	_find_symref,4,2                ; @find_symref
	.comm	_send_ref,4,2                   ; @send_ref
	.comm	_check_ref,4,2                  ; @check_ref
	.comm	_PACKET_READ_CHOMP_NEWLINE,4,2  ; @PACKET_READ_CHOMP_NEWLINE
	.comm	_PACKET_READ_DIE_ON_ERR_PACKET,4,2 ; @PACKET_READ_DIE_ON_ERR_PACKET
.subsections_via_symbols
