	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_remote_archiver
_run_remote_archiver:                   ## @run_remote_archiver
	.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	%r8, %r12
	movq	%rcx, %r13
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, %rdi
	callq	_remote_get
	movq	%rax, %r14
	movq	(%rax), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
	movq	(%r14), %rax
	movl	(%rax), %esi
LBB0_2:
	movq	%r14, %rdi
	callq	_transport_get
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	leaq	-56(%rbp), %rcx
	movq	%rax, %rdi
	movq	%r13, %rdx
	callq	_transport_connect
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_archive_format_from_filename
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	-52(%rbp), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	callq	_packet_write_fmt
LBB0_5:
	cmpl	$2, %ebx
	jl	LBB0_8
## %bb.6:
	movl	%ebx, %r13d
	movl	$1, %ebx
	leaq	L_.str.3(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %edi
	movq	(%r15,%rbx,8), %rdx
	movq	%r12, %rsi
	callq	_packet_write_fmt
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_7
LBB0_8:
	movl	-52(%rbp), %edi
	callq	_packet_flush
	movl	-56(%rbp), %esi
	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	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_packet_reader_init
	movq	%rbx, %rdi
	callq	_packet_reader_read
	movq	_PACKET_READ_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_10:
	movq	-64(%rbp), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	-64(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movq	-64(%rbp), %rsi
	addq	$5, %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_13:
	leaq	L_.str.8(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_14:
	leaq	-64(%rbp), %rdi
	callq	_packet_reader_read
	movq	_PACKET_READ_FLUSH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.9(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_16:
	movl	-56(%rbp), %esi
	leaq	L_.str.10(%rip), %rdi
	movl	$1, %edx
	callq	_recv_sideband
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_transport_disconnect
	movl	%eax, %ecx
	xorl	%eax, %eax
	orl	%ebx, %ecx
	setne	%cl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_18
## %bb.17:
	movb	%cl, %al
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"git archive: Remote with no URL"

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

L_.str.2:                               ## @.str.2
	.asciz	"argument --format=%s\n"

L_.str.3:                               ## @.str.3
	.asciz	"argument %s\n"

	.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
	.comm	_PACKET_READ_NORMAL,8,3         ## @PACKET_READ_NORMAL
L_.str.4:                               ## @.str.4
	.asciz	"git archive: expected ACK/NAK, got a flush packet"

L_.str.5:                               ## @.str.5
	.asciz	"ACK"

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

L_.str.7:                               ## @.str.7
	.asciz	"git archive: NACK %s"

L_.str.8:                               ## @.str.8
	.asciz	"git archive: protocol error"

	.comm	_PACKET_READ_FLUSH,8,3          ## @PACKET_READ_FLUSH
L_.str.9:                               ## @.str.9
	.asciz	"git archive: expected a flush"

L_.str.10:                              ## @.str.10
	.asciz	"archive"

	.no_dead_strip	_run_remote_archiver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_remote_archiver
_run_remote_archiver:                   ; @run_remote_archiver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x4
	mov	x23, x3
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x0, x2
	bl	_remote_get
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w1, [x8]
	cbnz	w1, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die
	ldr	x8, [x19]
	ldr	w1, [x8]
LBB0_2:
	mov	x0, x19
	bl	_transport_get
	mov	x19, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #16
	mov	x2, x23
	bl	_transport_connect
	cbz	x22, LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_archive_format_from_filename
	cbz	x0, LBB0_5
; %bb.4:
	mov	x2, x0
	ldr	w0, [sp, #20]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_packet_write_fmt
LBB0_5:
	cmp	w21, #2
	b.lt	LBB0_8
; %bb.6:
	mov	w8, w21
	add	x21, x20, #8
	sub	x22, x8, #1
Lloh9:
	adrp	x20, l_.str.3@PAGE
Lloh10:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #20]
	ldr	x2, [x21], #8
	mov	x1, x20
	bl	_packet_write_fmt
	subs	x22, x22, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	w0, [sp, #20]
	bl	_packet_flush
Lloh11:
	adrp	x8, _PACKET_READ_CHOMP_NEWLINE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PACKET_READ_CHOMP_NEWLINE@GOTPAGEOFF]
	ldr	w1, [sp, #16]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PACKET_READ_DIE_ON_ERR_PACKET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PACKET_READ_DIE_ON_ERR_PACKET@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w4, w9, w8
	add	x0, sp, #8
	mov	x2, #0
	mov	w3, #0
	bl	_packet_reader_init
	add	x0, sp, #8
	bl	_packet_reader_read
Lloh17:
	adrp	x8, _PACKET_READ_NORMAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PACKET_READ_NORMAL@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.9:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	bl	_die
LBB0_10:
	ldr	x0, [sp, #8]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.11:
	ldr	x0, [sp, #8]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_starts_with
	cbz	x0, LBB0_13
; %bb.12:
Lloh26:
	adrp	x0, l_.str.7@PAGE
Lloh27:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	ldr	x8, [sp, #8]
	add	x8, x8, #5
	str	x8, [sp]
	bl	_die
LBB0_13:
Lloh28:
	adrp	x0, l_.str.8@PAGE
Lloh29:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	__
	bl	_die
LBB0_14:
	add	x0, sp, #8
	bl	_packet_reader_read
Lloh30:
	adrp	x8, _PACKET_READ_FLUSH@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PACKET_READ_FLUSH@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.15:
Lloh33:
	adrp	x0, l_.str.9@PAGE
Lloh34:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	__
	bl	_die
LBB0_16:
	ldr	w1, [sp, #16]
Lloh35:
	adrp	x0, l_.str.10@PAGE
Lloh36:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	w2, #1
	bl	_recv_sideband
	mov	x20, x0
	mov	x0, x19
	bl	_transport_disconnect
	orr	w8, w0, w20
	cmp	w8, #0
	cset	w0, ne
	ldr	x8, [sp, #24]
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_18
; %bb.17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"git archive: Remote with no URL"

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

l_.str.2:                               ; @.str.2
	.asciz	"argument --format=%s\n"

l_.str.3:                               ; @.str.3
	.asciz	"argument %s\n"

	.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
	.comm	_PACKET_READ_NORMAL,8,3         ; @PACKET_READ_NORMAL
l_.str.4:                               ; @.str.4
	.asciz	"git archive: expected ACK/NAK, got a flush packet"

l_.str.5:                               ; @.str.5
	.asciz	"ACK"

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

l_.str.7:                               ; @.str.7
	.asciz	"git archive: NACK %s"

l_.str.8:                               ; @.str.8
	.asciz	"git archive: protocol error"

	.comm	_PACKET_READ_FLUSH,8,3          ; @PACKET_READ_FLUSH
l_.str.9:                               ; @.str.9
	.asciz	"git archive: expected a flush"

l_.str.10:                              ; @.str.10
	.asciz	"archive"

	.no_dead_strip	_run_remote_archiver
.subsections_via_symbols
