	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_merge_files                    ## -- Begin function merge_files
	.p2align	4, 0x90
_merge_files:                           ## @merge_files
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	(,%r12,4), %ebx
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, -280(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, %r13
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -288(%rbp)                ## 8-byte Spill
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	testl	%r12d, %r12d
	jle	LBB0_7
## %bb.3:
	movl	%r12d, %eax
	movq	%rax, -304(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	leaq	-256(%rbp), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_file_head@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %ecx
	callq	_sprintf
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_fopen
	movq	-280(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx,%r15,8)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	-264(%rbp), %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%rax, %rcx
	callq	_fread
	movl	%r15d, -264(%rbp)
	movq	%r15, %r14
	incq	%r14
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_insert
	movq	%r14, %r15
	cmpq	%r14, -304(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_4
LBB0_7:
	movl	(%r13), %eax
	movl	%eax, -272(%rbp)
	movslq	(%r13), %r14
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_delete
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx,%r14,8), %rcx
	leaq	-264(%rbp), %rdi
	movl	$4, %esi
	movl	$1, %edx
	callq	_fread
	movq	(%rbx,%r14,8), %rdi
	callq	_feof
	testq	%rax, %rax
	movq	%r12, -296(%rbp)                ## 8-byte Spill
	je	LBB0_9
## %bb.8:
	decl	%r12d
	testl	%r12d, %r12d
	jle	LBB0_11
LBB0_12:
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	decl	%r12d
	testl	%r12d, %r12d
	jle	LBB0_20
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rbx
	movl	(%r13), %edi
	leaq	-272(%rbp), %rsi
	movq	-288(%rbp), %rdx                ## 8-byte Reload
	callq	_merge_write
	movq	%rax, %r14
	addq	%rbx, %r14
	movq	%r14, %rax
	movabsq	$6723469279985657373, %rcx      ## imm = 0x5D4E8FB00BCBE61D
	imulq	%rcx, %rax
	movabsq	$2951479051793504, %rcx         ## imm = 0xA7C5AC471B460
	addq	%rcx, %rax
	rorq	$5, %rax
	movabsq	$184467440737094, %rcx          ## imm = 0xA7C5AC471B46
	cmpq	%rcx, %rax
	ja	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movslq	(%r13), %r15
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_delete
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx,%r15,8), %rcx
	leaq	-264(%rbp), %rdi
	movl	$4, %esi
	movl	$1, %edx
	callq	_fread
	movq	(%rbx,%r15,8), %rdi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r15d, -264(%rbp)
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_insert
	testl	%r12d, %r12d
	jg	LBB0_13
LBB0_20:
	incq	%r14
	jmp	LBB0_21
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-256(%rbp), %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %eax
	jmp	LBB0_25
LBB0_9:
	movl	%r14d, -264(%rbp)
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_insert
                                        ## kill: def $r12d killed $r12d killed $r12
	testl	%r12d, %r12d
	jg	LBB0_12
LBB0_11:
	movl	$1, %r14d
LBB0_21:
	leaq	-272(%rbp), %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	-288(%rbp), %rcx                ## 8-byte Reload
	callq	_fwrite
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	-296(%rbp), %r15                ## 8-byte Reload
	testl	%r15d, %r15d
	jle	LBB0_24
## %bb.22:
	xorl	%ebx, %ebx
	movq	_file_head@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r14
	leaq	-256(%rbp), %r12
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	_sprintf
	movq	%r12, %rdi
	callq	_remove
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_23
LBB0_24:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,8,3                     ## @stdout
	.comm	_verbose,4,2                    ## @verbose
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Merging cooccurrence files: processed 0 lines."

L_.str.1:                               ## @.str.1
	.asciz	"%s_%04d.bin"

	.comm	_file_head,8,3                  ## @file_head
L_.str.2:                               ## @.str.2
	.asciz	"rb"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to open file %s.\n"

L_.str.4:                               ## @.str.4
	.asciz	"\033[39G%lld lines."

L_.str.5:                               ## @.str.5
	.asciz	"\033[0GMerging cooccurrence files: processed %lld lines.\n"

L_.str.6:                               ## @.str.6
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_merge_files                    ; -- Begin function merge_files
	.p2align	2
_merge_files:                           ; @merge_files
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x28, x27, [sp, #256]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #272]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	lsl	w20, w0, #2
	mov	x0, x20
	bl	_malloc
	mov	x21, x0
	mov	x0, x20
	bl	_malloc
	mov	x22, x0
Lloh3:
	adrp	x8, _stdout@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x8, _verbose@GOTPAGE
Lloh7:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #1
	b.le	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
Lloh14:
	adrp	x27, _file_head@GOTPAGE
Lloh15:
	ldr	x27, [x27, _file_head@GOTPAGEOFF]
	subs	w23, w19, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x25, #0
	mov	w28, w19
Lloh16:
	adrp	x24, l_.str.1@PAGE
Lloh17:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh18:
	adrp	x26, l_.str.2@PAGE
Lloh19:
	add	x26, x26, l_.str.2@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x27]
	add	x0, sp, #40
	mov	x1, x24
	mov	x3, x25
	bl	_sprintf
	add	x0, sp, #40
	mov	x1, x26
	bl	_fopen
	str	x0, [x21, x25, lsl #3]
	cbz	x0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x3, x0
	add	x0, sp, #32
	mov	w1, #4
	mov	w2, #1
	bl	_fread
	str	w25, [sp, #32]
	mov	x20, x27
	add	x27, x25, #1
	mov	x0, x22
	mov	x1, x25
	mov	x2, x27
	bl	_insert
	mov	x25, x27
	cmp	x28, x27
	mov	x27, x20
	b.ne	LBB0_4
LBB0_6:
	ldr	w8, [x22]
	str	w8, [sp, #24]
	ldrsw	x24, [x22]
	mov	x0, x22
	mov	x1, x19
	bl	_delete
	lsl	x25, x24, #3
	ldr	x3, [x21, x25]
	add	x0, sp, #32
	mov	w1, #4
	mov	w2, #1
	bl	_fread
	ldr	x0, [x21, x25]
	bl	_feof
	cbz	x0, LBB0_16
; %bb.7:
	cmp	w23, #1
	b.lt	LBB0_17
LBB0_8:
	mov	x25, #0
	mov	x26, #58909
	movk	x26, #3019, lsl #16
	movk	x26, #36784, lsl #32
	movk	x26, #23886, lsl #48
	mov	x27, #46176
	movk	x27, #50289, lsl #16
	movk	x27, #31834, lsl #32
	movk	x27, #10, lsl #48
	mov	x24, #6982
	movk	x24, #44103, lsl #16
	movk	x24, #42949, lsl #32
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	ldrsw	x28, [x22]
	mov	x0, x22
	mov	x1, x23
	bl	_delete
	lsl	x20, x28, #3
	ldr	x3, [x21, x20]
	add	x0, sp, #32
	mov	w1, #4
	mov	w2, #1
	bl	_fread
	ldr	x0, [x21, x20]
	bl	_feof
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	w23, w23, #1
	cmp	w23, #0
	b.gt	LBB0_12
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	and	x1, x28, #0xffffffff
	str	w28, [sp, #32]
	mov	x0, x22
	mov	x2, x23
	bl	_insert
	cmp	w23, #0
	b.le	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	add	x1, sp, #24
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
	bl	_merge_write
	add	x25, x0, x25
Lloh20:
	adrp	x8, _verbose@GOTPAGE
Lloh21:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	madd	x9, x25, x26, x27
	ror	x9, x9, #5
	cmp	x9, x24
	ccmp	w8, #2, #8, ls
	b.lt	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	str	x25, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	b	LBB0_9
LBB0_14:
	add	x21, x25, #1
Lloh28:
	adrp	x27, _file_head@GOTPAGE
Lloh29:
	ldr	x27, [x27, _file_head@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
Lloh30:
	adrp	x8, _stderr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	add	x8, sp, #40
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	b	LBB0_22
LBB0_16:
	and	x1, x24, #0xffffffff
	str	w24, [sp, #32]
	mov	x0, x22
	mov	x2, x19
	bl	_insert
	mov	x23, x19
	cmp	w23, #1
	b.ge	LBB0_8
LBB0_17:
	mov	w21, #1
LBB0_18:
	add	x0, sp, #24
	mov	w1, #4
	mov	w2, #1
	ldr	x3, [sp, #16]                   ; 8-byte Folded Reload
	bl	_fwrite
Lloh35:
	adrp	x8, _stderr@GOTPAGE
Lloh36:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	cmp	w19, #1
	b.lt	LBB0_21
; %bb.19:
	mov	w20, #0
Lloh40:
	adrp	x21, l_.str.1@PAGE
Lloh41:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x27]
	add	x0, sp, #40
	mov	x1, x21
	mov	x3, x20
	bl	_sprintf
	add	x0, sp, #40
	bl	_remove
	add	w20, w20, #1
	cmp	w19, w20
	b.ne	LBB0_20
LBB0_21:
Lloh42:
	adrp	x8, _stderr@GOTPAGE
Lloh43:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	mov	w0, #0
LBB0_22:
	ldur	x8, [x29, #-96]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #272]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #256]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,8,3                     ; @stdout
	.comm	_verbose,4,2                    ; @verbose
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Merging cooccurrence files: processed 0 lines."

l_.str.1:                               ; @.str.1
	.asciz	"%s_%04d.bin"

	.comm	_file_head,8,3                  ; @file_head
l_.str.2:                               ; @.str.2
	.asciz	"rb"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to open file %s.\n"

l_.str.4:                               ; @.str.4
	.asciz	"\033[39G%lld lines."

l_.str.5:                               ; @.str.5
	.asciz	"\033[0GMerging cooccurrence files: processed %lld lines.\n"

l_.str.6:                               ; @.str.6
	.asciz	"\n"

.subsections_via_symbols
