	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_import
_cmd_import:                            ## @cmd_import
	.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	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_private_ref@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_read_ref
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	leaq	-48(%rbp), %rdi
	callq	_read_ref_note
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	callq	_parse_rev_note
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_5:
	movl	-56(%rbp), %ebx
	incl	%ebx
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_6
LBB0_2:
	movslq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_warning
LBB0_6:
	leal	-1(%rbx), %edi
	callq	_check_or_regenerate_marks
	movq	_dump_from_file@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_9
## %bb.7:
	movq	_url@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_12
## %bb.8:
	movq	(%r14), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_die_errno
	jmp	LBB0_12
LBB0_9:
	movl	$-1, -40(%rbp)
	leaq	-36(%rbp), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_argv_array_push
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_argv_array_push
	movq	_url@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_argv_array_push
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_argv_array_pushf
	leaq	-40(%rbp), %rdi
	callq	_start_command
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.6(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_die
LBB0_11:
	movl	-40(%rbp), %ebx
LBB0_12:
	movq	_marksfilename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.7(%rip), %rdi
	movq	%rdx, %rsi
	callq	_printf
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_svndump_init_fd
	movq	_url@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r15), %esi
	movq	_notes_ref@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_svndump_read
	xorl	%eax, %eax
	callq	_svndump_deinit
	xorl	%eax, %eax
	callq	_svndump_reset
	movl	%ebx, %edi
	callq	_close
	cmpq	$0, (%r12)
	jne	LBB0_15
## %bb.13:
	leaq	-40(%rbp), %rdi
	callq	_finish_command
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.8(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_warning
LBB0_15:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHILD_PROCESS_INIT,8,2         ## @CHILD_PROCESS_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"svnrdump"

	.comm	_private_ref,4,2                ## @private_ref
L_.str.1:                               ## @.str.1
	.asciz	"No note found for %s."

L_.str.2:                               ## @.str.2
	.asciz	"Revision number couldn't be parsed from note."

	.comm	_dump_from_file,8,3             ## @dump_from_file
	.comm	_url,8,3                        ## @url
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't open svn dump file %s."

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

L_.str.5:                               ## @.str.5
	.asciz	"-r%u:HEAD"

L_.str.6:                               ## @.str.6
	.asciz	"Unable to start %s, code %d"

L_.str.7:                               ## @.str.7
	.asciz	"feature import-marks-if-exists=%s\nfeature export-marks=%s\n"

	.comm	_marksfilename,8,3              ## @marksfilename
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_notes_ref,4,2                  ## @notes_ref
L_.str.8:                               ## @.str.8
	.asciz	"%s, returned %d"

	.no_dead_strip	_cmd_import
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_import
_cmd_import:                            ; @cmd_import
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _CHILD_PROCESS_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHILD_PROCESS_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #32]
Lloh3:
	adrp	x22, _private_ref@GOTPAGE
Lloh4:
	ldr	x22, [x22, _private_ref@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #40
	bl	_read_ref
	cbz	x0, LBB0_2
LBB0_1:
	mov	w19, #0
	b	LBB0_6
LBB0_2:
	add	x0, sp, #40
	bl	_read_ref_note
	cbz	x0, LBB0_16
; %bb.3:
	mov	x20, x0
	str	xzr, [sp, #24]
	add	x1, sp, #24
	bl	_parse_rev_note
	cbz	x0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_5:
	ldr	w8, [sp, #24]
	add	w19, w8, #1
	mov	x0, x20
	bl	_free
LBB0_6:
	sub	w0, w19, #1
	bl	_check_or_regenerate_marks
Lloh7:
	adrp	x23, _dump_from_file@GOTPAGE
Lloh8:
	ldr	x23, [x23, _dump_from_file@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh9:
	adrp	x24, _url@GOTPAGE
Lloh10:
	ldr	x24, [x24, _url@GOTPAGEOFF]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x0, [x24]
Lloh11:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_open
	mov	x19, x0
	tbz	w0, #31, LBB0_12
; %bb.8:
	ldr	x1, [x24]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die_errno
	b	LBB0_12
LBB0_9:
	mov	w8, #-1
	str	w8, [sp, #32]
	add	x8, sp, #32
	orr	x21, x8, #0x4
Lloh16:
	adrp	x20, l_.str@PAGE
Lloh17:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_argv_array_push
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_argv_array_push
	ldr	x1, [x24]
	mov	x0, x21
	bl	_argv_array_push
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_argv_array_pushf
	add	x0, sp, #32
	bl	_start_command
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_11
; %bb.10:
	stp	x20, x0, [sp]
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_die
LBB0_11:
	ldr	w19, [sp, #32]
LBB0_12:
Lloh24:
	adrp	x8, _marksfilename@GOTPAGE
Lloh25:
	ldr	x8, [x8, _marksfilename@GOTPAGEOFF]
Lloh26:
	ldr	x1, [x8]
Lloh27:
	adrp	x0, l_.str.7@PAGE
Lloh28:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x2, x1
	bl	_printf
Lloh29:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_svndump_init_fd
	ldr	x0, [x24]
	ldr	w1, [x22]
Lloh32:
	adrp	x8, _notes_ref@GOTPAGE
Lloh33:
	ldr	x8, [x8, _notes_ref@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	bl	_svndump_read
	bl	_svndump_deinit
	bl	_svndump_reset
	mov	x0, x19
	bl	_close
	ldr	x8, [x23]
	cbnz	x8, LBB0_15
; %bb.13:
	add	x0, sp, #32
	bl	_finish_command
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_15
; %bb.14:
	str	x0, [sp]
Lloh35:
	adrp	x0, l_.str.8@PAGE
Lloh36:
	add	x0, x0, l_.str.8@PAGEOFF
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	bl	_warning
LBB0_15:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	ldrsw	x1, [x22]
Lloh39:
	adrp	x0, l_.str.1@PAGE
Lloh40:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warning
	b	LBB0_1
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_CHILD_PROCESS_INIT,8,2         ; @CHILD_PROCESS_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"svnrdump"

	.comm	_private_ref,4,2                ; @private_ref
l_.str.1:                               ; @.str.1
	.asciz	"No note found for %s."

l_.str.2:                               ; @.str.2
	.asciz	"Revision number couldn't be parsed from note."

	.comm	_dump_from_file,8,3             ; @dump_from_file
	.comm	_url,8,3                        ; @url
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't open svn dump file %s."

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

l_.str.5:                               ; @.str.5
	.asciz	"-r%u:HEAD"

l_.str.6:                               ; @.str.6
	.asciz	"Unable to start %s, code %d"

l_.str.7:                               ; @.str.7
	.asciz	"feature import-marks-if-exists=%s\nfeature export-marks=%s\n"

	.comm	_marksfilename,8,3              ; @marksfilename
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_notes_ref,4,2                  ; @notes_ref
l_.str.8:                               ; @.str.8
	.asciz	"%s, returned %d"

	.no_dead_strip	_cmd_import
.subsections_via_symbols
