	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function main
LCPI0_0:
	.quad	0x3fee666666666666              ## double 0.94999999999999996
LCPI0_1:
	.quad	0x41d0000000000000              ## double 1073741824
LCPI0_2:
	.quad	0x3fd0000000000000              ## double 0.25
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_main
	.p2align	4, 0x90
_main:                                  ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_MAX_STRING_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_malloc
	movq	_file_head@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	cmpl	$1, %ebx
	jne	LBB0_1
## %bb.12:
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_str.18(%rip), %rdi
	callq	_puts
	leaq	L_str.19(%rip), %rdi
	callq	_puts
	leaq	L_str.20(%rip), %rdi
	callq	_puts
	leaq	L_str.21(%rip), %rdi
	callq	_puts
	leaq	L_str.22(%rip), %rdi
	callq	_puts
	leaq	L_str.23(%rip), %rdi
	callq	_puts
	leaq	L_str.24(%rip), %rdi
	callq	_puts
	leaq	L_str.25(%rip), %rdi
	callq	_puts
	leaq	L_str.26(%rip), %rdi
	callq	_puts
	leaq	L_str.27(%rip), %rdi
	callq	_puts
	leaq	L_str.28(%rip), %rdi
	callq	_puts
	leaq	L_str.29(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.13(%rip), %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_find_arg
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:
	movl	%eax, %eax
	movq	8(%r14,%rax,8), %rdi
	callq	_atoi
	movq	_verbose@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_3:
	leaq	L_.str.14(%rip), %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_find_arg
	movl	(%r15), %edi
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	movl	%eax, %eax
	movq	8(%r14,%rax,8), %rsi
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.15(%rip), %rsi
LBB0_6:
	callq	_strcpy
	leaq	L_.str.16(%rip), %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_find_arg
	testl	%eax, %eax
	jle	LBB0_7
## %bb.8:
	movl	%eax, %eax
	movq	8(%r14,%rax,8), %rdi
	callq	_atof
	movq	_memory_limit@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_9
LBB0_7:
	movq	_memory_limit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	cvtsi2sd	%rax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	mulsd	LCPI0_2(%rip), %xmm0
	cvttsd2si	%xmm0, %rax
	movq	_array_size@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	leaq	L_.str.17(%rip), %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_find_arg
	testl	%eax, %eax
	jle	LBB0_11
## %bb.10:
	movl	%eax, %eax
	movq	8(%r14,%rax,8), %rdi
	callq	_atoll
	movq	%rax, (%r15)
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_shuffle_by_chunks              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_STRING_LENGTH,4,2          ## @MAX_STRING_LENGTH
	.comm	_file_head,4,2                  ## @file_head
	.section	__TEXT,__cstring,cstring_literals
L_.str.13:                              ## @.str.13
	.asciz	"-verbose"

	.comm	_verbose,4,2                    ## @verbose
L_.str.14:                              ## @.str.14
	.asciz	"-temp-file"

L_.str.15:                              ## @.str.15
	.asciz	"temp_shuffle"

L_.str.16:                              ## @.str.16
	.asciz	"-memory"

	.comm	_memory_limit,8,3               ## @memory_limit
	.comm	_array_size,8,3                 ## @array_size
L_.str.17:                              ## @.str.17
	.asciz	"-array-size"

L_str:                                  ## @str
	.asciz	"Tool to shuffle entries of word-word cooccurrence files"

L_str.18:                               ## @str.18
	.asciz	"Author: Jeffrey Pennington (jpennin@stanford.edu)\n"

L_str.19:                               ## @str.19
	.asciz	"Usage options:"

L_str.20:                               ## @str.20
	.asciz	"\t-verbose <int>"

L_str.21:                               ## @str.21
	.asciz	"\t\tSet verbosity: 0, 1, or 2 (default)"

L_str.22:                               ## @str.22
	.asciz	"\t-memory <float>"

L_str.23:                               ## @str.23
	.asciz	"\t\tSoft limit for memory consumption, in GB; default 4.0"

L_str.24:                               ## @str.24
	.asciz	"\t-array-size <int>"

L_str.25:                               ## @str.25
	.asciz	"\t\tLimit to length <int> the buffer which stores chunks of data to shuffle before writing to disk. \n\t\tThis value overrides that which is automatically produced by '-memory'."

L_str.26:                               ## @str.26
	.asciz	"\t-temp-file <file>"

L_str.27:                               ## @str.27
	.asciz	"\t\tFilename, excluding extension, for temporary files; default temp_shuffle"

L_str.28:                               ## @str.28
	.asciz	"\nExample usage: (assuming 'cooccurrence.bin' has been produced by 'coccur')"

L_str.29:                               ## @str.29
	.asciz	"./shuffle -verbose 2 -memory 8.0 < cooccurrence.bin > cooccurrence.shuf.bin"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _MAX_STRING_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_STRING_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_malloc
Lloh3:
	adrp	x21, _file_head@GOTPAGE
Lloh4:
	ldr	x21, [x21, _file_head@GOTPAGEOFF]
	str	w0, [x21]
	cmp	w20, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_str@PAGE
Lloh6:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh7:
	adrp	x0, l_str.18@PAGE
Lloh8:
	add	x0, x0, l_str.18@PAGEOFF
	bl	_puts
Lloh9:
	adrp	x0, l_str.19@PAGE
Lloh10:
	add	x0, x0, l_str.19@PAGEOFF
	bl	_puts
Lloh11:
	adrp	x0, l_str.20@PAGE
Lloh12:
	add	x0, x0, l_str.20@PAGEOFF
	bl	_puts
Lloh13:
	adrp	x0, l_str.21@PAGE
Lloh14:
	add	x0, x0, l_str.21@PAGEOFF
	bl	_puts
Lloh15:
	adrp	x0, l_str.22@PAGE
Lloh16:
	add	x0, x0, l_str.22@PAGEOFF
	bl	_puts
Lloh17:
	adrp	x0, l_str.23@PAGE
Lloh18:
	add	x0, x0, l_str.23@PAGEOFF
	bl	_puts
Lloh19:
	adrp	x0, l_str.24@PAGE
Lloh20:
	add	x0, x0, l_str.24@PAGEOFF
	bl	_puts
Lloh21:
	adrp	x0, l_str.25@PAGE
Lloh22:
	add	x0, x0, l_str.25@PAGEOFF
	bl	_puts
Lloh23:
	adrp	x0, l_str.26@PAGE
Lloh24:
	add	x0, x0, l_str.26@PAGEOFF
	bl	_puts
Lloh25:
	adrp	x0, l_str.27@PAGE
Lloh26:
	add	x0, x0, l_str.27@PAGEOFF
	bl	_puts
Lloh27:
	adrp	x0, l_str.28@PAGE
Lloh28:
	add	x0, x0, l_str.28@PAGEOFF
	bl	_puts
Lloh29:
	adrp	x0, l_str.29@PAGE
Lloh30:
	add	x0, x0, l_str.29@PAGEOFF
	bl	_puts
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh31:
	adrp	x0, l_.str.13@PAGE
Lloh32:
	add	x0, x0, l_.str.13@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_find_arg
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.3:
	add	w8, w0, #1
	ldr	x0, [x19, w8, uxtw #3]
	bl	_atoi
Lloh33:
	adrp	x8, _verbose@GOTPAGE
Lloh34:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh35:
	str	w0, [x8]
LBB0_4:
Lloh36:
	adrp	x0, l_.str.14@PAGE
Lloh37:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_find_arg
	mov	x8, x0
	ldr	w0, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.5:
	add	w8, w8, #1
	ldr	x1, [x19, w8, uxtw #3]
	b	LBB0_7
LBB0_6:
Lloh38:
	adrp	x1, l_.str.15@PAGE
Lloh39:
	add	x1, x1, l_.str.15@PAGEOFF
LBB0_7:
	bl	_strcpy
Lloh40:
	adrp	x0, l_.str.16@PAGE
Lloh41:
	add	x0, x0, l_.str.16@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_find_arg
	cmp	w0, #0
	b.le	LBB0_9
; %bb.8:
	add	w8, w0, #1
	ldr	x0, [x19, w8, uxtw #3]
	bl	_atof
Lloh42:
	adrp	x8, _memory_limit@GOTPAGE
Lloh43:
	ldr	x8, [x8, _memory_limit@GOTPAGEOFF]
Lloh44:
	str	x0, [x8]
	b	LBB0_10
LBB0_9:
Lloh45:
	adrp	x8, _memory_limit@GOTPAGE
Lloh46:
	ldr	x8, [x8, _memory_limit@GOTPAGEOFF]
Lloh47:
	ldr	x0, [x8]
LBB0_10:
	scvtf	d0, x0
	mov	x8, #7378697629483820646
	movk	x8, #16366, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	mov	x8, #4742290407621132288
	fmov	d1, x8
	fmul	d0, d0, d1
	fmov	d1, #0.25000000
	fmul	d0, d0, d1
	fcvtzs	x8, d0
Lloh48:
	adrp	x21, _array_size@GOTPAGE
Lloh49:
	ldr	x21, [x21, _array_size@GOTPAGEOFF]
	str	x8, [x21]
Lloh50:
	adrp	x0, l_.str.17@PAGE
Lloh51:
	add	x0, x0, l_.str.17@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_find_arg
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.11:
	add	w8, w0, #1
	ldr	x0, [x19, w8, uxtw #3]
	bl	_atoll
	str	x0, [x21]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_shuffle_by_chunks
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_STRING_LENGTH,4,2          ; @MAX_STRING_LENGTH
	.comm	_file_head,4,2                  ; @file_head
	.section	__TEXT,__cstring,cstring_literals
l_.str.13:                              ; @.str.13
	.asciz	"-verbose"

	.comm	_verbose,4,2                    ; @verbose
l_.str.14:                              ; @.str.14
	.asciz	"-temp-file"

l_.str.15:                              ; @.str.15
	.asciz	"temp_shuffle"

l_.str.16:                              ; @.str.16
	.asciz	"-memory"

	.comm	_memory_limit,8,3               ; @memory_limit
	.comm	_array_size,8,3                 ; @array_size
l_.str.17:                              ; @.str.17
	.asciz	"-array-size"

l_str:                                  ; @str
	.asciz	"Tool to shuffle entries of word-word cooccurrence files"

l_str.18:                               ; @str.18
	.asciz	"Author: Jeffrey Pennington (jpennin@stanford.edu)\n"

l_str.19:                               ; @str.19
	.asciz	"Usage options:"

l_str.20:                               ; @str.20
	.asciz	"\t-verbose <int>"

l_str.21:                               ; @str.21
	.asciz	"\t\tSet verbosity: 0, 1, or 2 (default)"

l_str.22:                               ; @str.22
	.asciz	"\t-memory <float>"

l_str.23:                               ; @str.23
	.asciz	"\t\tSoft limit for memory consumption, in GB; default 4.0"

l_str.24:                               ; @str.24
	.asciz	"\t-array-size <int>"

l_str.25:                               ; @str.25
	.asciz	"\t\tLimit to length <int> the buffer which stores chunks of data to shuffle before writing to disk. \n\t\tThis value overrides that which is automatically produced by '-memory'."

l_str.26:                               ; @str.26
	.asciz	"\t-temp-file <file>"

l_str.27:                               ; @str.27
	.asciz	"\t\tFilename, excluding extension, for temporary files; default temp_shuffle"

l_str.28:                               ; @str.28
	.asciz	"\nExample usage: (assuming 'cooccurrence.bin' has been produced by 'coccur')"

l_str.29:                               ; @str.29
	.asciz	"./shuffle -verbose 2 -memory 8.0 < cooccurrence.bin > cooccurrence.shuf.bin"

.subsections_via_symbols
