	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_upload_pack                ## -- Begin function cmd_upload_pack
	.p2align	4, 0x90
_cmd_upload_pack:                       ## @cmd_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -84(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	leaq	-112(%rbp), %r12
	movq	_SERVE_OPTIONS_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	leaq	L_.str.1(%rip), %rdi
	callq	_N_
	leaq	L_.str(%rip), %rsi
	leaq	-128(%rbp), %rdx
	xorl	%edi, %edi
	movl	%eax, %ecx
	callq	_OPT_BOOL
	movl	%eax, -80(%rbp)
	leaq	-124(%rbp), %rbx
	leaq	L_.str.3(%rip), %rdi
	callq	_N_
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_OPT_BOOL
	movl	%eax, -76(%rbp)
	leaq	L_.str.5(%rip), %rdi
	callq	_N_
	leaq	L_.str.4(%rip), %rsi
	leaq	-84(%rbp), %rdx
	xorl	%edi, %edi
	movl	%eax, %ecx
	callq	_OPT_BOOL
	movl	%eax, -72(%rbp)
	leaq	L_.str.7(%rip), %rdi
	callq	_N_
	leaq	L_.str.6(%rip), %rsi
	xorl	%edi, %edi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_OPT_INTEGER
	movl	%eax, -68(%rbp)
	xorl	%eax, %eax
	callq	_OPT_END
	movl	%eax, -64(%rbp)
	leaq	L_.str.8(%rip), %rdi
	callq	_packet_trace_identity
	movq	_read_replace_refs@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_upload_pack_usage@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	leaq	-80(%rbp), %rcx
	movl	%r15d, %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%r9d, %r9d
	callq	_parse_options
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	-80(%rbp), %rsi
	callq	_usage_with_options
LBB0_2:
	cmpq	$0, -112(%rbp)
	je	LBB0_4
## %bb.3:
	movl	$1, -120(%rbp)
LBB0_4:
	xorl	%eax, %eax
	callq	_setup_path
	movq	(%r13), %rbx
	movl	-84(%rbp), %esi
	movq	%rbx, %rdi
	callq	_enter_repo
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.9(%rip), %rdi
	movq	%rbx, %rsi
	callq	_die
LBB0_6:
	xorl	%eax, %eax
	callq	_determine_protocol_version_server
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_14
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	-128(%rbp), %rax
	rolq	$32, %rax
	movq	%rax, -96(%rbp)
	leaq	-96(%rbp), %rdi
	callq	_serve
	jmp	LBB0_14
LBB0_9:
	cmpl	$0, -124(%rbp)
	jne	LBB0_11
## %bb.10:
	cmpl	$0, -128(%rbp)
	jne	LBB0_12
LBB0_11:
	leaq	L_.str.10(%rip), %rsi
	movl	$1, %edi
	callq	_packet_write_fmt
LBB0_12:
	leaq	-128(%rbp), %rdi
	callq	_upload_pack
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.11(%rip), %rdi
	callq	_BUG
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_SERVE_OPTIONS_INIT,8,2         ## @SERVE_OPTIONS_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stateless-rpc"

L_.str.1:                               ## @.str.1
	.asciz	"quit after a single request/response exchange"

L_.str.2:                               ## @.str.2
	.asciz	"advertise-refs"

L_.str.3:                               ## @.str.3
	.asciz	"exit immediately after initial ref advertisement"

L_.str.4:                               ## @.str.4
	.asciz	"strict"

L_.str.5:                               ## @.str.5
	.asciz	"do not try <directory>/.git/ if <directory> is no Git directory"

L_.str.6:                               ## @.str.6
	.asciz	"timeout"

L_.str.7:                               ## @.str.7
	.asciz	"interrupt transfer after <n> seconds of inactivity"

L_.str.8:                               ## @.str.8
	.asciz	"upload-pack"

	.comm	_read_replace_refs,8,3          ## @read_replace_refs
	.comm	_upload_pack_usage,4,2          ## @upload_pack_usage
L_.str.9:                               ## @.str.9
	.asciz	"'%s' does not appear to be a git repository"

L_.str.10:                              ## @.str.10
	.asciz	"version 1\n"

L_.str.11:                              ## @.str.11
	.asciz	"unknown protocol version"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_upload_pack                ; -- Begin function cmd_upload_pack
	.p2align	2
_cmd_upload_pack:                       ; @cmd_upload_pack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	wzr, [sp, #60]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	add	x23, sp, #16
	add	x22, x23, #16
Lloh3:
	adrp	x8, _SERVE_OPTIONS_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SERVE_OPTIONS_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_N_
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #16
	mov	w0, #0
	bl	_OPT_BOOL
	str	w0, [sp, #64]
	orr	x23, x23, #0x4
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_N_
	mov	x3, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #0
	mov	x2, x23
	bl	_OPT_BOOL
	str	w0, [sp, #68]
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_N_
	mov	x3, x0
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #60
	mov	w0, #0
	bl	_OPT_BOOL
	str	w0, [sp, #72]
Lloh18:
	adrp	x0, l_.str.7@PAGE
Lloh19:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_N_
	mov	x3, x0
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #0
	mov	x2, x22
	bl	_OPT_INTEGER
	str	w0, [sp, #76]
	bl	_OPT_END
	str	w0, [sp, #80]
Lloh22:
	adrp	x0, l_.str.8@PAGE
Lloh23:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_packet_trace_identity
Lloh24:
	adrp	x8, _read_replace_refs@GOTPAGE
Lloh25:
	ldr	x8, [x8, _read_replace_refs@GOTPAGEOFF]
Lloh26:
	str	xzr, [x8]
Lloh27:
	adrp	x22, _upload_pack_usage@GOTPAGE
Lloh28:
	ldr	x22, [x22, _upload_pack_usage@GOTPAGEOFF]
	ldr	w4, [x22]
	add	x3, sp, #64
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w5, #0
	bl	_parse_options
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x22]
	add	x1, sp, #64
	bl	_usage_with_options
LBB0_2:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [sp, #24]
LBB0_4:
	bl	_setup_path
	ldr	x19, [x19]
	ldr	w1, [sp, #60]
	mov	x0, x19
	bl	_enter_repo
	cbnz	w0, LBB0_6
; %bb.5:
Lloh29:
	adrp	x0, l_.str.9@PAGE
Lloh30:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x19
	bl	_die
LBB0_6:
	bl	_determine_protocol_version_server
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_14
; %bb.7:
Lloh31:
	adrp	x9, lJTI0_0@PAGE
Lloh32:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	ldr	d0, [sp, #16]
	rev64.2s	v0, v0
	str	d0, [sp, #8]
	add	x0, sp, #8
	bl	_serve
	b	LBB0_14
LBB0_9:
	ldr	w8, [sp, #20]
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	w8, [sp, #16]
	cbnz	w8, LBB0_12
LBB0_11:
Lloh33:
	adrp	x1, l_.str.10@PAGE
Lloh34:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #1
	bl	_packet_write_fmt
LBB0_12:
	add	x0, sp, #16
	bl	_upload_pack
	b	LBB0_14
LBB0_13:
Lloh35:
	adrp	x0, l_.str.11@PAGE
Lloh36:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_BUG
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
                                        ; -- End function
	.comm	_SERVE_OPTIONS_INIT,8,2         ; @SERVE_OPTIONS_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stateless-rpc"

l_.str.1:                               ; @.str.1
	.asciz	"quit after a single request/response exchange"

l_.str.2:                               ; @.str.2
	.asciz	"advertise-refs"

l_.str.3:                               ; @.str.3
	.asciz	"exit immediately after initial ref advertisement"

l_.str.4:                               ; @.str.4
	.asciz	"strict"

l_.str.5:                               ; @.str.5
	.asciz	"do not try <directory>/.git/ if <directory> is no Git directory"

l_.str.6:                               ; @.str.6
	.asciz	"timeout"

l_.str.7:                               ; @.str.7
	.asciz	"interrupt transfer after <n> seconds of inactivity"

l_.str.8:                               ; @.str.8
	.asciz	"upload-pack"

	.comm	_read_replace_refs,8,3          ; @read_replace_refs
	.comm	_upload_pack_usage,4,2          ; @upload_pack_usage
l_.str.9:                               ; @.str.9
	.asciz	"'%s' does not appear to be a git repository"

l_.str.10:                              ; @.str.10
	.asciz	"version 1\n"

l_.str.11:                              ; @.str.11
	.asciz	"unknown protocol version"

.subsections_via_symbols
