	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_upload_archive_writer      ## -- Begin function cmd_upload_archive_writer
	.p2align	4, 0x90
_cmd_upload_archive_writer:             ## @cmd_upload_archive_writer
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	_ARGV_ARRAY_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$2, %edi
	jne	LBB0_2
## %bb.1:
	movq	8(%r14), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	movq	_upload_archive_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
	movq	8(%r14), %rbx
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_enter_repo
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	8(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_5:
	xorl	%eax, %eax
	callq	_init_archivers
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_argv_array_push
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_packet_read_line
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %rbx
	movq	_MAX_ARGS@GOTPCREL(%rip), %r13
	leaq	L_.str.4(%rip), %r15
	leaq	L_.str(%rip), %r12
	leaq	-48(%rbp), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_starts_with
	testl	%eax, %eax
	je	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_argv_array_push
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_packet_read_line
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	cmpl	%esi, -44(%rbp)
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	decl	%esi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_11
LBB0_12:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edi
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_write_archive
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARGV_ARRAY_INIT,8,2            ## @ARGV_ARRAY_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"argument "

L_.str.1:                               ## @.str.1
	.asciz	"-h"

	.comm	_upload_archive_usage,4,2       ## @upload_archive_usage
L_.str.2:                               ## @.str.2
	.asciz	"'%s' does not appear to be a git repository"

L_.str.3:                               ## @.str.3
	.asciz	"git-upload-archive"

	.comm	_MAX_ARGS,4,2                   ## @MAX_ARGS
L_.str.4:                               ## @.str.4
	.asciz	"Too many options (>%d)"

L_.str.5:                               ## @.str.5
	.asciz	"'argument' token or flush expected"

	.comm	_the_repository,4,2             ## @the_repository
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_upload_archive_writer      ; -- Begin function cmd_upload_archive_writer
	.p2align	2
_cmd_upload_archive_writer:             ; @cmd_upload_archive_writer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _ARGV_ARRAY_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARGV_ARRAY_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
	ldr	x21, [x20, #8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbnz	w0, LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _upload_archive_usage@GOTPAGE
Lloh6:
	ldr	x8, [x8, _upload_archive_usage@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_usage
	ldr	x21, [x20, #8]
LBB0_3:
	mov	x0, x21
	mov	w1, #0
	bl	_enter_repo
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_5:
	bl	_init_archivers
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_argv_array_push
	mov	w0, #0
	mov	x1, #0
	bl	_packet_read_line
	cbz	x0, LBB0_12
; %bb.6:
	mov	x23, x0
Lloh12:
	adrp	x24, _MAX_ARGS@GOTPAGE
Lloh13:
	ldr	x24, [x24, _MAX_ARGS@GOTPAGEOFF]
Lloh14:
	adrp	x20, l_.str.4@PAGE
Lloh15:
	add	x20, x20, l_.str.4@PAGEOFF
Lloh16:
	adrp	x21, l_.str@PAGE
Lloh17:
	add	x21, x21, l_.str@PAGEOFF
Lloh18:
	adrp	x22, l_.str.5@PAGE
Lloh19:
	add	x22, x22, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_starts_with
	cbz	w0, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_strlen
	add	x1, x23, w0, sxtw
	add	x0, sp, #8
	bl	_argv_array_push
	mov	w0, #0
	mov	x1, #0
	bl	_packet_read_line
	mov	x23, x0
	cbz	x0, LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [sp, #12]
	ldr	w8, [x24]
	cmp	w9, w8
	b.le	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w8, w8, #1
	str	x8, [sp]
	mov	x0, x20
	bl	_die
	b	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_die
	b	LBB0_8
LBB0_12:
	ldp	w1, w0, [sp, #8]
Lloh20:
	adrp	x8, _the_repository@GOTPAGE
Lloh21:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x2, x19
	mov	x4, #0
	mov	w5, #1
	bl	_write_archive
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ARGV_ARRAY_INIT,8,2            ; @ARGV_ARRAY_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"argument "

l_.str.1:                               ; @.str.1
	.asciz	"-h"

	.comm	_upload_archive_usage,4,2       ; @upload_archive_usage
l_.str.2:                               ; @.str.2
	.asciz	"'%s' does not appear to be a git repository"

l_.str.3:                               ; @.str.3
	.asciz	"git-upload-archive"

	.comm	_MAX_ARGS,4,2                   ; @MAX_ARGS
l_.str.4:                               ; @.str.4
	.asciz	"Too many options (>%d)"

l_.str.5:                               ; @.str.5
	.asciz	"'argument' token or flush expected"

	.comm	_the_repository,4,2             ; @the_repository
.subsections_via_symbols
