	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_import_dump2                   ## -- Begin function import_dump2
	.p2align	4, 0x90
_import_dump2:                          ## @import_dump2
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_import_file@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	_open
	movq	_import_fd@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	_log_split_mod@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.2:
	movq	_O_CREAT@GOTPCREL(%rip), %r13
	movq	_write_fd@GOTPCREL(%rip), %r14
	movq	_write_buff@GOTPCREL(%rip), %r15
	movq	_wptr@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_generate_write_name
	movq	_cur_write_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_APPEND@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	(%r13), %esi
	movl	$420, %edx                      ## imm = 0x1A4
	xorl	%eax, %eax
	callq	_open
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	testq	%rax, %rax
	js	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movq	_log_split_mod@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_8:
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	callq	_eat_whitespaces
	movq	_rptr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_rend@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_read_int
	xorl	%eax, %eax
	callq	_read_int
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_read_int
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_read_int
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_read_int
	xorl	%eax, %eax
	callq	_read_int
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_new_type
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_valid_type
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	callq	_write_event
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	incl	%r12d
	movq	_verbosity@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jne	LBB0_13
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_verbosity@GOTPCREL(%rip), %r15
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	cmpl	$0, (%r15)
	je	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r12d, %eax
	andl	$1048575, %eax                  ## imm = 0xFFFFF
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_15
LBB0_16:
	movq	_log_split_mod@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_19
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_flush_write
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_18
LBB0_19:
	cmpl	$0, (%r15)
	je	LBB0_20
## %bb.21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	cmpl	$2, (%r15)
	jl	LBB0_23
## %bb.22:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_write_stat
	jmp	LBB0_23
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_cur_write_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_20:
	xorl	%ebx, %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_import_file,8,3                ## @import_file
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_import_fd,8,3                  ## @import_fd
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can not open dump (file %s)\n"

	.comm	_log_split_mod,4,2              ## @log_split_mod
	.comm	_cur_write_name,8,3             ## @cur_write_name
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_write_fd,8,3                   ## @write_fd
L_.str.1:                               ## @.str.1
	.asciz	"can not open file %s for write\n"

	.comm	_write_buff,8,3                 ## @write_buff
	.comm	_wptr,8,3                       ## @wptr
	.comm	_verbosity,4,2                  ## @verbosity
L_.str.2:                               ## @.str.2
	.asciz	"written %d items\n"

	.comm	_rptr,8,3                       ## @rptr
	.comm	_rend,8,3                       ## @rend
L_.str.3:                               ## @.str.3
	.asciz	"Total %d bookmarks.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_import_dump2                   ; -- Begin function import_dump2
	.p2align	2
_import_dump2:                          ; @import_dump2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x19, _import_file@GOTPAGE
Lloh1:
	ldr	x19, [x19, _import_file@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_open
Lloh5:
	adrp	x8, _import_fd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _import_fd@GOTPAGEOFF]
Lloh7:
	str	x0, [x8]
	tbnz	x0, #63, LBB0_18
; %bb.1:
Lloh8:
	adrp	x24, _log_split_mod@GOTPAGE
Lloh9:
	ldr	x24, [x24, _log_split_mod@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x19, #0
Lloh10:
	adrp	x20, _cur_write_name@GOTPAGE
Lloh11:
	ldr	x20, [x20, _cur_write_name@GOTPAGEOFF]
Lloh12:
	adrp	x21, _O_APPEND@GOTPAGE
Lloh13:
	ldr	x21, [x21, _O_APPEND@GOTPAGEOFF]
Lloh14:
	adrp	x22, _O_WRONLY@GOTPAGE
Lloh15:
	ldr	x22, [x22, _O_WRONLY@GOTPAGEOFF]
Lloh16:
	adrp	x23, _O_CREAT@GOTPAGE
Lloh17:
	ldr	x23, [x23, _O_CREAT@GOTPAGEOFF]
	mov	w25, #420
Lloh18:
	adrp	x26, _write_fd@GOTPAGE
Lloh19:
	ldr	x26, [x26, _write_fd@GOTPAGEOFF]
Lloh20:
	adrp	x27, _write_buff@GOTPAGE
Lloh21:
	ldr	x27, [x27, _write_buff@GOTPAGEOFF]
Lloh22:
	adrp	x28, _wptr@GOTPAGE
Lloh23:
	ldr	x28, [x28, _wptr@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_generate_write_name
	ldr	x0, [x20]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w1, w8, w9
	str	x25, [sp]
	bl	_open
	ldr	x8, [x26]
	str	x0, [x8, x19, lsl #3]
	tbnz	x0, #63, LBB0_19
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	lsl	x9, x19, #2
	ldr	w8, [x8, x9]
	ldr	x10, [x28]
	str	w8, [x10, x9]
	add	x19, x19, #1
	ldrsw	x8, [x24]
	cmp	x19, x8
	b.lt	LBB0_3
LBB0_5:
	mov	w26, #0
Lloh24:
	adrp	x25, _verbosity@GOTPAGE
Lloh25:
	ldr	x25, [x25, _verbosity@GOTPAGEOFF]
Lloh26:
	adrp	x28, _rptr@GOTPAGE
Lloh27:
	ldr	x28, [x28, _rptr@GOTPAGEOFF]
Lloh28:
	adrp	x27, _rend@GOTPAGE
Lloh29:
	ldr	x27, [x27, _rend@GOTPAGEOFF]
Lloh30:
	adrp	x19, l_.str.2@PAGE
Lloh31:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_eat_whitespaces
	ldr	x8, [x28]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	bl	_read_int
	bl	_read_int
	mov	x20, x0
	bl	_read_int
	mov	x21, x0
	bl	_read_int
	mov	x23, x0
	bl	_read_int
	bl	_read_int
	mov	x22, x0
	mov	x0, x23
	bl	_new_type
	mov	x23, x0
	bl	_valid_type
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_write_event
	add	w26, w26, #1
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	and	w9, w26, #0xfffff
	cmp	w8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	str	x26, [sp]
	mov	x1, x19
	bl	_fprintf
	b	LBB0_6
LBB0_11:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w19, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_flush_write
	add	w19, w19, #1
	ldr	w8, [x24]
	cmp	w19, w8
	b.lt	LBB0_13
LBB0_14:
	ldr	w8, [x25]
	cbz	w8, LBB0_17
; %bb.15:
Lloh35:
	adrp	x8, _stderr@GOTPAGE
Lloh36:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	str	x26, [sp]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	w8, [x25]
	cmp	w8, #2
	b.lt	LBB0_17
; %bb.16:
	bl	_write_stat
LBB0_17:
	mov	w0, #0
	b	LBB0_21
LBB0_18:
Lloh40:
	adrp	x8, _stderr@GOTPAGE
Lloh41:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh43:
	adrp	x1, l_.str@PAGE
Lloh44:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh45:
	adrp	x8, _stderr@GOTPAGE
Lloh46:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh48:
	adrp	x1, l_.str.1@PAGE
Lloh49:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_20:
	bl	_fprintf
	mov	w0, #1
LBB0_21:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_import_file,8,3                ; @import_file
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_import_fd,8,3                  ; @import_fd
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can not open dump (file %s)\n"

	.comm	_log_split_mod,4,2              ; @log_split_mod
	.comm	_cur_write_name,8,3             ; @cur_write_name
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_write_fd,8,3                   ; @write_fd
l_.str.1:                               ; @.str.1
	.asciz	"can not open file %s for write\n"

	.comm	_write_buff,8,3                 ; @write_buff
	.comm	_wptr,8,3                       ; @wptr
	.comm	_verbosity,4,2                  ; @verbosity
l_.str.2:                               ; @.str.2
	.asciz	"written %d items\n"

	.comm	_rptr,8,3                       ; @rptr
	.comm	_rend,8,3                       ; @rend
l_.str.3:                               ; @.str.3
	.asciz	"Total %d bookmarks.\n"

.subsections_via_symbols
