	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_main                       ## -- Begin function cmd_main
	.p2align	4, 0x90
_cmd_main:                              ## @cmd_main
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	%eax, -72(%rbp)
	movl	%eax, -64(%rbp)
	movl	%eax, -56(%rbp)
	movl	%eax, -48(%rbp)
	xorl	%eax, %eax
	callq	_setup_git_directory
	leal	-4(%rbx), %eax
	cmpl	$-3, %eax
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_usage
	movl	$1, %eax
	jmp	LBB0_14
LBB0_2:
	movq	8(%r14), %rdi
	callq	_remote_get
	movq	%rax, _cmd_main.remote(%rip)
	cmpl	$3, %ebx
	jne	LBB0_4
## %bb.3:
	addq	$16, %r14
	jmp	LBB0_5
LBB0_4:
	movq	(%rax), %r14
LBB0_5:
	movq	(%r14), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_dump_from_file@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	addq	$7, %rbx
	movq	%rbx, %rdi
	callq	_url_decode
	jmp	LBB0_8
LBB0_7:
	movq	_dump_from_file@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_end_url_with_slash
	movl	-72(%rbp), %eax
LBB0_8:
	movq	_url@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_cmd_main.remote(%rip), %rax
	movl	8(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	movl	-64(%rbp), %eax
	movq	_private_ref@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_cmd_main.remote(%rip), %rax
	movl	8(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	movl	-48(%rbp), %eax
	movq	_notes_ref@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_get_git_dir
	movq	_cmd_main.remote(%rip), %rcx
	movl	8(%rcx), %ecx
	leaq	L_.str.4(%rip), %rsi
	leaq	-56(%rbp), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_strbuf_addf
	movl	-56(%rbp), %eax
	movq	_marksfilename@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_stdin@GOTPCREL(%rip), %r14
	leaq	-80(%rbp), %rbx
	movq	_EOF@GOTPCREL(%rip), %r15
	leaq	L_.str.6(%rip), %r12
	leaq	L_.str.5(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_strbuf_getline_lf
	cmpq	(%r15), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r14), %edi
	callq	_ferror
	testq	%rax, %rax
	movq	%r13, %rdi
	cmoveq	%r12, %rdi
	callq	_die
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_do_command
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_strbuf_reset
	jmp	LBB0_9
LBB0_13:
	leaq	-80(%rbp), %rdi
	callq	_strbuf_release
	leaq	-72(%rbp), %rdi
	callq	_strbuf_release
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
.zerofill __DATA,__bss,_cmd_main.remote,8,3 ## @cmd_main.remote
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"git-remote-svn <remote-name> [<url>]"

L_.str.1:                               ## @.str.1
	.asciz	"file://"

	.comm	_dump_from_file,4,2             ## @dump_from_file
	.comm	_url,4,2                        ## @url
L_.str.2:                               ## @.str.2
	.asciz	"refs/svn/%s/master"

	.comm	_private_ref,4,2                ## @private_ref
L_.str.3:                               ## @.str.3
	.asciz	"refs/notes/%s/revs"

	.comm	_notes_ref,4,2                  ## @notes_ref
L_.str.4:                               ## @.str.4
	.asciz	"%s/info/fast-import/remote-svn/%s.marks"

	.comm	_marksfilename,4,2              ## @marksfilename
	.comm	_stdin,4,2                      ## @stdin
	.comm	_EOF,8,3                        ## @EOF
L_.str.5:                               ## @.str.5
	.asciz	"Error reading command stream"

L_.str.6:                               ## @.str.6
	.asciz	"Unexpected end of command stream"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_main                       ; -- Begin function cmd_main
	.p2align	2
_cmd_main:                              ; @cmd_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	w8, [sp, #32]
	str	w8, [sp, #24]
	str	w8, [sp, #16]
	str	w8, [sp, #8]
	bl	_setup_git_directory
	sub	w8, w20, #4
	cmn	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_usage
	mov	w0, #1
	b	LBB0_14
LBB0_2:
	ldr	x0, [x19, #8]
	bl	_remote_get
	adrp	x21, _cmd_main.remote@PAGE
	str	x0, [x21, _cmd_main.remote@PAGEOFF]
	cmp	w20, #3
	b.ne	LBB0_4
; %bb.3:
	add	x8, x19, #16
	b	LBB0_5
LBB0_4:
	ldr	x8, [x0]
LBB0_5:
	ldr	x19, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_starts_with
Lloh7:
	adrp	x8, _dump_from_file@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dump_from_file@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.6:
	mov	w9, #1
	str	w9, [x8]
	add	x0, x19, #7
	bl	_url_decode
	b	LBB0_8
LBB0_7:
	str	wzr, [x8]
	add	x0, sp, #32
	mov	x1, x19
	bl	_end_url_with_slash
	ldr	w0, [sp, #32]
LBB0_8:
Lloh9:
	adrp	x8, _url@GOTPAGE
Lloh10:
	ldr	x8, [x8, _url@GOTPAGEOFF]
Lloh11:
	str	w0, [x8]
	ldr	x8, [x21, _cmd_main.remote@PAGEOFF]
	ldr	w2, [x8, #8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	bl	_strbuf_addf
	ldr	w8, [sp, #24]
Lloh14:
	adrp	x9, _private_ref@GOTPAGE
Lloh15:
	ldr	x9, [x9, _private_ref@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
	ldr	x8, [x21, _cmd_main.remote@PAGEOFF]
	ldr	w2, [x8, #8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
	ldr	w8, [sp, #8]
Lloh19:
	adrp	x9, _notes_ref@GOTPAGE
Lloh20:
	ldr	x9, [x9, _notes_ref@GOTPAGEOFF]
Lloh21:
	str	w8, [x9]
	bl	_get_git_dir
	mov	x2, x0
	ldr	x8, [x21, _cmd_main.remote@PAGEOFF]
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #16
	bl	_strbuf_addf
	ldr	w8, [sp, #16]
Lloh24:
	adrp	x9, _marksfilename@GOTPAGE
Lloh25:
	ldr	x9, [x9, _marksfilename@GOTPAGEOFF]
Lloh26:
	str	w8, [x9]
Lloh27:
	adrp	x19, _stdin@GOTPAGE
Lloh28:
	ldr	x19, [x19, _stdin@GOTPAGEOFF]
Lloh29:
	adrp	x20, _EOF@GOTPAGE
Lloh30:
	ldr	x20, [x20, _EOF@GOTPAGEOFF]
Lloh31:
	adrp	x21, l_.str.5@PAGE
Lloh32:
	add	x21, x21, l_.str.5@PAGEOFF
Lloh33:
	adrp	x22, l_.str.6@PAGE
Lloh34:
	add	x22, x22, l_.str.6@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19]
	add	x0, sp, #40
	bl	_strbuf_getline_lf
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19]
	bl	_ferror
	cmp	x0, #0
	csel	x0, x22, x21, eq
	bl	_die
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #40
	bl	_do_command
	cbnz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #40
	bl	_strbuf_reset
	b	LBB0_9
LBB0_13:
	add	x0, sp, #40
	bl	_strbuf_release
	add	x0, sp, #32
	bl	_strbuf_release
	add	x0, sp, #24
	bl	_strbuf_release
	add	x0, sp, #8
	bl	_strbuf_release
	add	x0, sp, #16
	bl	_strbuf_release
	mov	w0, #0
LBB0_14:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
.zerofill __DATA,__bss,_cmd_main.remote,8,3 ; @cmd_main.remote
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"git-remote-svn <remote-name> [<url>]"

l_.str.1:                               ; @.str.1
	.asciz	"file://"

	.comm	_dump_from_file,4,2             ; @dump_from_file
	.comm	_url,4,2                        ; @url
l_.str.2:                               ; @.str.2
	.asciz	"refs/svn/%s/master"

	.comm	_private_ref,4,2                ; @private_ref
l_.str.3:                               ; @.str.3
	.asciz	"refs/notes/%s/revs"

	.comm	_notes_ref,4,2                  ; @notes_ref
l_.str.4:                               ; @.str.4
	.asciz	"%s/info/fast-import/remote-svn/%s.marks"

	.comm	_marksfilename,4,2              ; @marksfilename
	.comm	_stdin,4,2                      ; @stdin
	.comm	_EOF,8,3                        ; @EOF
l_.str.5:                               ; @.str.5
	.asciz	"Error reading command stream"

l_.str.6:                               ; @.str.6
	.asciz	"Unexpected end of command stream"

.subsections_via_symbols
