	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_save_params                    ## -- Begin function save_params
	.p2align	4, 0x90
_save_params:                           ## @save_params
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	movq	%rsp, -136(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_STRING_LENGTH@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	(%r15), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leal	1(%rbx), %edi
	callq	_malloc
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_use_binary@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	_save_W_file@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	testl	%r13d, %r13d
	jle	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_5
LBB0_3:
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	jmp	LBB0_20
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_sprintf
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_70
## %bb.6:
	movq	%rax, %rbx
	movl	%r13d, -96(%rbp)                ## 4-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	_vocab_size@GOTPCREL(%rip), %r15
	movq	_vector_size@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	incq	%rax
	imulq	(%r15), %rax
	addq	%rax, %rax
	testq	%rax, %rax
	jle	LBB0_9
## %bb.7:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_W@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r12, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	movslq	(%r13), %rax
	incq	%rax
	imulq	(%r15), %rax
	incq	%r14
	addq	%rax, %rax
	addq	$4, %r12
	cmpq	%rax, %r14
	jl	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	callq	_fclose
	movq	_save_gradsq@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_12
## %bb.10:
	movq	_save_gradsq_file@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	jle	LBB0_13
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_14
LBB0_12:
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	jmp	LBB0_19
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sprintf
LBB0_14:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_70
## %bb.15:
	movq	%rax, %r12
	movslq	(%r13), %rax
	incq	%rax
	movq	_vocab_size@GOTPCREL(%rip), %rcx
	imulq	(%rcx), %rax
	addq	%rax, %rax
	testq	%rax, %rax
	jle	LBB0_18
## %bb.16:
	xorl	%r14d, %r14d
	movq	_gradsq@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%r14, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_fwrite
	movslq	(%r13), %rax
	incq	%rax
	movq	_vocab_size@GOTPCREL(%rip), %rcx
	imulq	(%rcx), %rax
	incq	%rbx
	addq	%rax, %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_17
LBB0_18:
	movq	%r12, %rdi
	callq	_fclose
	movq	%r12, -112(%rbp)                ## 8-byte Spill
LBB0_19:
	movq	_MAX_STRING_LENGTH@GOTPCREL(%rip), %r15
	movq	-104(%rbp), %r14                ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	_use_binary@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	-96(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_75
LBB0_20:
	movq	_save_W_file@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	testl	%r13d, %r13d
	jle	LBB0_23
## %bb.21:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_sprintf
	movq	_save_gradsq@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_26
## %bb.22:
	movq	_save_gradsq_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_25
LBB0_23:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movq	_save_gradsq@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_26
## %bb.24:
	movq	_save_gradsq_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sprintf
LBB0_25:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_72
LBB0_26:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_71
## %bb.27:
	movq	_vocab_file@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	movl	(%r15), %edx
	leaq	L_.str.7(%rip), %rsi
	leaq	-80(%rbp), %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_70
## %bb.28:
	movq	_write_header@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_30
## %bb.29:
	movq	_vocab_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_vector_size@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.8(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
LBB0_30:
	movq	_vocab_size@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	jle	LBB0_62
## %bb.31:
	movq	_vector_size@GOTPCREL(%rip), %r12
	movq	_W@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_32:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_37 Depth 2
                                        ##     Child Loop BB0_40 Depth 2
                                        ##     Child Loop BB0_46 Depth 2
                                        ##     Child Loop BB0_51 Depth 2
                                        ##     Child Loop BB0_55 Depth 2
                                        ##     Child Loop BB0_58 Depth 2
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_fscanf
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_75
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_74
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%rbx, %rdi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_fputs
	movq	_model@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r12), %eax
	testl	%ecx, %ecx
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	jne	LBB0_43
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=1
	testl	%eax, %eax
	js	LBB0_42
## %bb.36:                              ##   in Loop: Header=BB0_32 Depth=1
	movslq	%eax, %rcx
	incq	%rcx
	xorl	%ebx, %ebx
	leaq	L_.str.11(%rip), %r14
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_32 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	imulq	-96(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	%rbx, %rcx
	movl	(%rax,%rcx,4), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	movslq	(%r12), %rax
	leaq	1(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_32 Depth=1
	testl	%eax, %eax
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	js	LBB0_42
## %bb.39:                              ##   in Loop: Header=BB0_32 Depth=1
	xorl	%ebx, %ebx
	movq	%r12, %r13
	movq	_vocab_size@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_40:                                ##   Parent Loop BB0_32 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_W@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rdx
	addq	%r14, %rdx
	imulq	%rcx, %rdx
	addq	%rbx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%r15, %rdi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	movslq	(%r13), %rax
	leaq	1(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_40
## %bb.41:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%r13, %r12
	movq	_W@GOTPCREL(%rip), %r13
LBB0_42:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	_model@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_43:                                ##   in Loop: Header=BB0_32 Depth=1
	cmpl	$1, %ecx
	jne	LBB0_48
## %bb.44:                              ##   in Loop: Header=BB0_32 Depth=1
	testl	%eax, %eax
	jle	LBB0_48
## %bb.45:                              ##   in Loop: Header=BB0_32 Depth=1
	xorl	%ebx, %ebx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_32 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%eax
	cltq
	imulq	%r14, %rax
	addq	(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_46
## %bb.47:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	_model@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_48:                                ##   in Loop: Header=BB0_32 Depth=1
	cmpl	$2, %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	_vocab_size@GOTPCREL(%rip), %r14
	leaq	L_.str.11(%rip), %r13
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_52
## %bb.49:                              ##   in Loop: Header=BB0_32 Depth=1
	testl	%eax, %eax
	jle	LBB0_52
## %bb.50:                              ##   in Loop: Header=BB0_32 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_51:                                ##   Parent Loop BB0_32 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_W@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incl	%eax
	cltq
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	imulq	%rax, %rdi
	addq	%rcx, %rdi
	movq	(%r14), %rdx
	addq	%rbx, %rdx
	imulq	%rax, %rdx
	leaq	(%rcx,%rdx,4), %rax
	movl	(%rax,%r15,4), %edx
	addl	(%rdi,%r15,4), %edx
	movq	%r8, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	movq	%r8, %r12
	callq	_fprintf
	movq	%r12, %r8
	movq	_vector_size@GOTPCREL(%rip), %rax
	incq	%r15
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jl	LBB0_51
LBB0_52:                                ##   in Loop: Header=BB0_32 Depth=1
	movl	$1, %esi
	movl	$1, %edx
	leaq	L_.str.12(%rip), %rdi
	movq	%r8, %rcx
	callq	_fwrite
	movq	_save_gradsq@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	jle	LBB0_60
## %bb.53:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_fputs
	movq	_vector_size@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	testq	%rax, %rax
	leaq	L_.str.11(%rip), %r12
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %r8
	js	LBB0_59
## %bb.54:                              ##   in Loop: Header=BB0_32 Depth=1
	incq	%rax
	xorl	%ebx, %ebx
	movq	%r8, %r14
	.p2align	4, 0x90
LBB0_55:                                ##   Parent Loop BB0_32 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_gradsq@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	imulq	%r15, %rax
	addq	%rbx, %rax
	movl	(%rcx,%rax,4), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	movslq	(%r13), %rcx
	leaq	1(%rcx), %rax
	cmpq	%rax, %rbx
	jl	LBB0_55
## %bb.56:                              ##   in Loop: Header=BB0_32 Depth=1
	testl	%ecx, %ecx
	movq	_vocab_size@GOTPCREL(%rip), %rdx
	movq	%r14, %r8
	js	LBB0_59
## %bb.57:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%r12, %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_58:                                ##   Parent Loop BB0_32 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_gradsq@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rdx, %r14
	movq	(%rdx), %rdx
	addq	%r15, %rdx
	imulq	%rax, %rdx
	addq	%rbx, %rdx
	movl	(%rcx,%rdx,4), %edx
	movq	%r8, %rdi
	movq	%rsi, %r12
	xorl	%eax, %eax
	movq	%r15, %r13
	movq	%r8, %r15
	callq	_fprintf
	movq	%r15, %r8
	movq	%r13, %r15
	movq	%r14, %rdx
	movq	%r12, %rsi
	movq	_vector_size@GOTPCREL(%rip), %rax
	incq	%rbx
	movslq	(%rax), %rax
	incq	%rax
	cmpq	%rax, %rbx
	jl	LBB0_58
LBB0_59:                                ##   in Loop: Header=BB0_32 Depth=1
	movl	$1, %esi
	movl	$1, %edx
	leaq	L_.str.12(%rip), %rdi
	movq	%r8, %rcx
	movq	%r8, %rbx
	callq	_fwrite
LBB0_60:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	leaq	-80(%rbp), %rsi
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_fscanf
	testq	%rax, %rax
	movl	$1, %ecx
	movq	_vector_size@GOTPCREL(%rip), %r12
	je	LBB0_75
## %bb.61:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	incq	%r14
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	$4, %rax
	movq	_vocab_size@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	movq	_W@GOTPCREL(%rip), %r13
	jl	LBB0_32
LBB0_62:
	movq	_use_unk_vec@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_95
## %bb.63:
	movq	_vector_size@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	incl	%edi
	movl	$4, %esi
	movq	%rcx, %rbx
	callq	_calloc
	movq	%rax, %r13
	movl	(%r14), %edi
	incl	%edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %r12
	movq	(%rbx), %r8
	cmpq	$100, %r8
	movl	$100, %esi
	cmovlq	%r8, %rsi
	testl	%esi, %esi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_77
## %bb.64:
	movl	%esi, %edx
	movq	%r8, %r9
	subq	%rdx, %r9
	movq	_W@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%r14), %eax
	leaq	(,%r8,8), %r10
	shlq	$2, %rdx
	subq	%rdx, %r10
	jmp	LBB0_66
	.p2align	4, 0x90
LBB0_65:                                ##   in Loop: Header=BB0_66 Depth=1
	incq	%r9
	addq	$4, %r10
	cmpq	%r8, %r9
	jge	LBB0_77
LBB0_66:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_68 Depth 2
	testl	%eax, %eax
	js	LBB0_65
## %bb.67:                              ##   in Loop: Header=BB0_66 Depth=1
	incl	%eax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_68:                                ##   Parent Loop BB0_66 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imulq	%r9, %rax
	addq	%rdi, %rax
	movl	(%rbx,%rax,4), %eax
	cltd
	idivl	%esi
	addl	%eax, (%r13,%rdi,4)
	movslq	(%r14), %rax
	incq	%rax
	imulq	%r10, %rax
	addq	%rbx, %rax
	movl	(%rax,%rdi,4), %eax
	cltd
	idivl	%esi
	addl	%eax, (%r12,%rdi,4)
	incq	%rdi
	movslq	(%r14), %rdx
	leaq	1(%rdx), %rax
	cmpq	%rax, %rdi
	jl	LBB0_68
## %bb.69:                              ##   in Loop: Header=BB0_66 Depth=1
	movl	%edx, %eax
	jmp	LBB0_65
LBB0_70:
	movq	_stderr@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	movq	(%r14), %rdx
	jmp	LBB0_73
LBB0_71:
	movq	_stderr@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	movq	(%rbx), %rdx
	jmp	LBB0_73
LBB0_72:
	movq	_stderr@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	movq	_save_gradsq_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_73:
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_74:
	movl	$1, %ecx
LBB0_75:
	movq	-136(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_98
## %bb.76:
	movl	%ecx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_77:
	leaq	L_.str.9(%rip), %rdi
	movl	$5, %esi
	movl	$1, %edx
	callq	_fwrite
	movq	_model@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r14), %eax
	testl	%ecx, %ecx
	jne	LBB0_85
## %bb.78:
	testl	%eax, %eax
	js	LBB0_84
## %bb.79:
	xorl	%ebx, %ebx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_80:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %edx
	movq	%r15, %rdi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	movslq	(%r14), %rax
	leaq	1(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_80
## %bb.81:
	testl	%eax, %eax
	js	LBB0_84
## %bb.82:
	xorl	%ebx, %ebx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_83:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edx
	movq	%r15, %rdi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	movslq	(%r14), %rax
	leaq	1(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_83
LBB0_84:
	movq	_model@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_85:
	cmpl	$1, %ecx
	jne	LBB0_90
## %bb.86:
	testl	%eax, %eax
	jle	LBB0_90
## %bb.87:
	xorl	%ebx, %ebx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_88:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %edx
	movq	%r15, %rdi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_88
## %bb.89:
	movq	_model@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_90:
	cmpl	$2, %ecx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_94
## %bb.91:
	testl	%eax, %eax
	jle	LBB0_94
## %bb.92:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_93:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edx
	addl	(%r13,%rbx,4), %edx
	movq	%r15, %rdi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_93
LBB0_94:
	leaq	L_.str.12(%rip), %rdi
	movl	$1, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fwrite
	movq	%r13, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	movq	-112(%rbp), %rbx                ## 8-byte Reload
LBB0_95:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_fclose
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_fclose
	movq	_save_gradsq@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	jle	LBB0_75
## %bb.96:
	movq	%rbx, %rdi
	callq	_fclose
	xorl	%ecx, %ecx
	jmp	LBB0_75
LBB0_98:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_STRING_LENGTH,4,2          ## @MAX_STRING_LENGTH
	.comm	_use_binary,4,2                 ## @use_binary
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.bin"

	.comm	_save_W_file,8,3                ## @save_W_file
L_.str.1:                               ## @.str.1
	.asciz	"%s.%03d.bin"

L_.str.2:                               ## @.str.2
	.asciz	"wb"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"Unable to open file %s.\n"

	.comm	_vocab_size,8,3                 ## @vocab_size
	.comm	_vector_size,4,2                ## @vector_size
	.comm	_W,8,3                          ## @W
	.comm	_save_gradsq,8,3                ## @save_gradsq
	.comm	_save_gradsq_file,8,3           ## @save_gradsq_file
	.comm	_gradsq,8,3                     ## @gradsq
L_.str.4:                               ## @.str.4
	.asciz	"%s.txt"

L_.str.5:                               ## @.str.5
	.asciz	"%s.%03d.txt"

	.comm	_vocab_file,8,3                 ## @vocab_file
L_.str.6:                               ## @.str.6
	.asciz	"r"

L_.str.7:                               ## @.str.7
	.asciz	"%%%ds"

	.comm	_write_header,8,3               ## @write_header
L_.str.8:                               ## @.str.8
	.asciz	"%lld %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"<unk>"

	.comm	_model,4,2                      ## @model
L_.str.11:                              ## @.str.11
	.asciz	" %lf"

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

	.comm	_use_unk_vec,8,3                ## @use_unk_vec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_save_params                    ; -- Begin function save_params
	.p2align	2
_save_params:                           ; @save_params
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x23, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _MAX_STRING_LENGTH@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAX_STRING_LENGTH@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x25]
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	add	w0, w8, #1
	bl	_malloc
	stur	x0, [x29, #-120]                ; 8-byte Folded Spill
Lloh9:
	adrp	x26, _use_binary@GOTPAGE
Lloh10:
	ldr	x26, [x26, _use_binary@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh11:
	adrp	x27, _save_W_file@GOTPAGE
Lloh12:
	ldr	x27, [x27, _save_W_file@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x27]
	cmp	w23, #0
	b.le	LBB0_4
; %bb.2:
	mov	x9, x23
	stp	x8, x9, [sp, #-16]!
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
                                        ; implicit-def: $x19
	b	LBB0_21
LBB0_4:
	str	x8, [sp, #-16]!
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x20
	bl	_sprintf
	add	sp, sp, #16
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fopen
	cbz	x0, LBB0_68
; %bb.6:
	mov	x19, x0
	stur	x22, [x29, #-136]               ; 8-byte Folded Spill
Lloh19:
	adrp	x27, _vocab_size@GOTPAGE
Lloh20:
	ldr	x27, [x27, _vocab_size@GOTPAGEOFF]
	ldr	x8, [x27]
Lloh21:
	adrp	x28, _vector_size@GOTPAGE
Lloh22:
	ldr	x28, [x28, _vector_size@GOTPAGEOFF]
	ldrsw	x9, [x28]
	madd	x8, x8, x9, x8
	lsl	x8, x8, #1
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
	mov	x25, #0
Lloh23:
	adrp	x24, _W@GOTPAGE
Lloh24:
	ldr	x24, [x24, _W@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x0, x8, x22
	mov	w1, #4
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	add	x25, x25, #1
	ldr	x8, [x27]
	ldrsw	x9, [x28]
	madd	x8, x8, x9, x8
	add	x22, x22, #4
	cmp	x25, x8, lsl #1
	b.lt	LBB0_8
LBB0_9:
	mov	x0, x19
	bl	_fclose
Lloh25:
	adrp	x8, _save_gradsq@GOTPAGE
Lloh26:
	ldr	x8, [x8, _save_gradsq@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.10:
Lloh28:
	adrp	x25, _save_gradsq_file@GOTPAGE
Lloh29:
	ldr	x25, [x25, _save_gradsq_file@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	w23, #0
	b.le	LBB0_13
; %bb.11:
	mov	x9, x23
	stp	x8, x9, [sp, #-16]!
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:
                                        ; implicit-def: $x19
	b	LBB0_19
LBB0_13:
	str	x8, [sp, #-16]!
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
LBB0_14:
	mov	x0, x21
	bl	_sprintf
	add	sp, sp, #16
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_fopen
	cbz	x0, LBB0_72
; %bb.15:
	mov	x19, x0
	ldr	x8, [x27]
	ldrsw	x9, [x28]
	madd	x8, x8, x9, x8
	lsl	x8, x8, #1
	cmp	x8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x22, #0
	mov	x25, #0
Lloh36:
	adrp	x24, _gradsq@GOTPAGE
Lloh37:
	ldr	x24, [x24, _gradsq@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x0, x8, x22
	mov	w1, #4
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	add	x25, x25, #1
	ldr	x8, [x27]
	ldrsw	x9, [x28]
	madd	x8, x8, x9, x8
	add	x22, x22, #4
	cmp	x25, x8, lsl #1
	b.lt	LBB0_17
LBB0_18:
	mov	x0, x19
	bl	_fclose
LBB0_19:
	ldr	w8, [x26]
	cmp	w8, #1
	ldur	x22, [x29, #-136]               ; 8-byte Folded Reload
Lloh38:
	adrp	x25, _MAX_STRING_LENGTH@GOTPAGE
Lloh39:
	ldr	x25, [x25, _MAX_STRING_LENGTH@GOTPAGEOFF]
Lloh40:
	adrp	x27, _save_W_file@GOTPAGE
Lloh41:
	ldr	x27, [x27, _save_W_file@GOTPAGEOFF]
	b.ne	LBB0_21
; %bb.20:
	mov	w0, #0
	b	LBB0_95
LBB0_21:
	ldr	x8, [x27]
Lloh42:
	adrp	x24, _save_gradsq@GOTPAGE
Lloh43:
	ldr	x24, [x24, _save_gradsq@GOTPAGEOFF]
	sub	sp, sp, #16
	cmp	w23, #0
	b.le	LBB0_24
; %bb.22:
	stp	x8, x23, [sp]
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	add	sp, sp, #16
	ldr	x8, [x24]
	cmp	x8, #0
	b.le	LBB0_27
; %bb.23:
Lloh46:
	adrp	x8, _save_gradsq_file@GOTPAGE
Lloh47:
	ldr	x8, [x8, _save_gradsq_file@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	stp	x8, x23, [sp, #-16]!
Lloh49:
	adrp	x1, l_.str.5@PAGE
Lloh50:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_26
LBB0_24:
	str	x8, [sp]
Lloh51:
	adrp	x1, l_.str.4@PAGE
Lloh52:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	add	sp, sp, #16
	ldr	x8, [x24]
	cmp	x8, #0
	b.le	LBB0_27
; %bb.25:
Lloh53:
	adrp	x8, _save_gradsq_file@GOTPAGE
Lloh54:
	ldr	x8, [x8, _save_gradsq_file@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	str	x8, [sp, #-16]!
Lloh56:
	adrp	x1, l_.str.4@PAGE
Lloh57:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_26:
	mov	x0, x21
	bl	_sprintf
	add	sp, sp, #16
Lloh58:
	adrp	x1, l_.str.2@PAGE
Lloh59:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_fopen
	mov	x19, x0
	cbz	x0, LBB0_69
LBB0_27:
Lloh60:
	adrp	x1, l_.str.2@PAGE
Lloh61:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fopen
	cbz	x0, LBB0_68
; %bb.28:
	mov	x20, x0
Lloh62:
	adrp	x21, _vocab_file@GOTPAGE
Lloh63:
	ldr	x21, [x21, _vocab_file@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh64:
	adrp	x1, l_.str.6@PAGE
Lloh65:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fopen
	mov	x23, x0
	ldr	w8, [x25]
	str	x8, [sp, #-16]!
Lloh66:
	adrp	x1, l_.str.7@PAGE
Lloh67:
	add	x1, x1, l_.str.7@PAGEOFF
	sub	x0, x29, #108
	bl	_sprintf
	add	sp, sp, #16
	stur	x23, [x29, #-128]               ; 8-byte Folded Spill
	cbz	x23, LBB0_70
; %bb.29:
	stur	x22, [x29, #-136]               ; 8-byte Folded Spill
Lloh68:
	adrp	x8, _write_header@GOTPAGE
Lloh69:
	ldr	x8, [x8, _write_header@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
Lloh71:
	adrp	x27, _vocab_size@GOTPAGE
Lloh72:
	ldr	x27, [x27, _vocab_size@GOTPAGEOFF]
Lloh73:
	adrp	x28, _vector_size@GOTPAGE
Lloh74:
	ldr	x28, [x28, _vector_size@GOTPAGEOFF]
	cbz	x8, LBB0_31
; %bb.30:
	ldr	x8, [x27]
	ldr	w9, [x28]
	stp	x8, x9, [sp, #-16]!
Lloh75:
	adrp	x1, l_.str.8@PAGE
Lloh76:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	add	sp, sp, #16
LBB0_31:
	ldr	x8, [x27]
	cmp	x8, #1
	ldur	x22, [x29, #-120]               ; 8-byte Folded Reload
	b.lt	LBB0_61
; %bb.32:
	mov	x23, #0
	mov	x26, #0
Lloh77:
	adrp	x25, _W@GOTPAGE
Lloh78:
	ldr	x25, [x25, _W@GOTPAGEOFF]
Lloh79:
	adrp	x24, l_.str.11@PAGE
Lloh80:
	add	x24, x24, l_.str.11@PAGEOFF
Lloh81:
	adrp	x21, _gradsq@GOTPAGE
Lloh82:
	ldr	x21, [x21, _gradsq@GOTPAGEOFF]
LBB0_33:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_38 Depth 2
                                        ;     Child Loop BB0_41 Depth 2
                                        ;     Child Loop BB0_46 Depth 2
                                        ;     Child Loop BB0_50 Depth 2
                                        ;     Child Loop BB0_54 Depth 2
                                        ;     Child Loop BB0_57 Depth 2
	sub	x1, x29, #108
	ldur	x0, [x29, #-128]                ; 8-byte Folded Reload
	mov	x2, x22
	bl	_fscanf
	cbz	x0, LBB0_73
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x22
Lloh83:
	adrp	x1, l_.str.9@PAGE
Lloh84:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_73
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_fputs
Lloh85:
	adrp	x8, _model@GOTPAGE
Lloh86:
	ldr	x8, [x8, _model@GOTPAGEOFF]
Lloh87:
	ldr	w9, [x8]
	ldr	w8, [x28]
	cbnz	w9, LBB0_44
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=1
	tbnz	w8, #31, LBB0_43
; %bb.37:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x22, #0
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	add	x9, x8, #1
LBB0_38:                                ;   Parent Loop BB0_33 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	madd	x9, x26, x9, x22
	ldr	w8, [x8, x9, lsl #2]
	str	x8, [sp, #-16]!
	mov	x0, x20
	mov	x1, x24
	bl	_fprintf
	add	sp, sp, #16
	add	x22, x22, #1
	ldrsw	x10, [x28]
	add	x9, x10, #1
	cmp	x22, x9
	b.lt	LBB0_38
; %bb.39:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x8, x10
	tbnz	w10, #31, LBB0_43
; %bb.40:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x22, #0
LBB0_41:                                ;   Parent Loop BB0_33 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	ldr	x10, [x27]
	add	x10, x26, x10
	madd	x9, x9, x10, x22
	ldr	w8, [x8, x9, lsl #2]
	str	x8, [sp, #-16]!
	mov	x0, x20
	mov	x1, x24
	bl	_fprintf
	add	sp, sp, #16
	add	x22, x22, #1
	ldrsw	x8, [x28]
	add	x9, x8, #1
	cmp	x22, x9
	b.lt	LBB0_41
; %bb.42:                               ;   in Loop: Header=BB0_33 Depth=1
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_43:                                ;   in Loop: Header=BB0_33 Depth=1
Lloh88:
	adrp	x9, _model@GOTPAGE
Lloh89:
	ldr	x9, [x9, _model@GOTPAGEOFF]
Lloh90:
	ldr	w9, [x9]
LBB0_44:                                ;   in Loop: Header=BB0_33 Depth=1
	cmp	w9, #1
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_48
; %bb.45:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x22, #0
LBB0_46:                                ;   Parent Loop BB0_33 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x25]
	add	w8, w8, #1
	sxtw	x8, w8
	madd	x8, x23, x8, x9
	ldr	w8, [x8, x22, lsl #2]
	str	x8, [sp, #-16]!
	mov	x0, x20
	mov	x1, x24
	bl	_fprintf
	add	sp, sp, #16
	add	x22, x22, #1
	ldrsw	x8, [x28]
	cmp	x22, x8
	b.lt	LBB0_46
; %bb.47:                               ;   in Loop: Header=BB0_33 Depth=1
Lloh91:
	adrp	x9, _model@GOTPAGE
Lloh92:
	ldr	x9, [x9, _model@GOTPAGEOFF]
Lloh93:
	ldr	w9, [x9]
LBB0_48:                                ;   in Loop: Header=BB0_33 Depth=1
	cmp	w9, #2
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_51
; %bb.49:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x22, #0
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_50:                                ;   Parent Loop BB0_33 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x25]
	add	w8, w8, #1
	sxtw	x8, w8
	madd	x10, x23, x8, x9
	lsl	x11, x22, #2
	ldr	w10, [x10, x11]
	ldr	x12, [x27]
	add	x12, x26, x12
	mul	x8, x12, x8
	add	x8, x9, x8, lsl #2
	ldr	w8, [x8, x11]
	add	w8, w8, w10
	str	x8, [sp, #-16]!
	mov	x0, x20
	mov	x1, x24
	bl	_fprintf
	add	sp, sp, #16
	add	x22, x22, #1
	ldrsw	x8, [x28]
	cmp	x22, x8
	b.lt	LBB0_50
LBB0_51:                                ;   in Loop: Header=BB0_33 Depth=1
Lloh94:
	adrp	x0, l_.str.12@PAGE
Lloh95:
	add	x0, x0, l_.str.12@PAGEOFF
	mov	w1, #1
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
Lloh96:
	adrp	x8, _save_gradsq@GOTPAGE
Lloh97:
	ldr	x8, [x8, _save_gradsq@GOTPAGEOFF]
Lloh98:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_59
; %bb.52:                               ;   in Loop: Header=BB0_33 Depth=1
	ldur	x0, [x29, #-120]                ; 8-byte Folded Reload
	mov	x1, x19
	bl	_fputs
	ldrsw	x8, [x28]
	tbnz	w8, #31, LBB0_58
; %bb.53:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x22, #0
	add	x8, x8, #1
LBB0_54:                                ;   Parent Loop BB0_33 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x21]
	madd	x8, x26, x8, x22
	ldr	w8, [x9, x8, lsl #2]
	str	x8, [sp, #-16]!
	mov	x0, x19
	mov	x1, x24
	bl	_fprintf
	add	sp, sp, #16
	add	x22, x22, #1
	ldrsw	x9, [x28]
	add	x8, x9, #1
	cmp	x22, x8
	b.lt	LBB0_54
; %bb.55:                               ;   in Loop: Header=BB0_33 Depth=1
	tbnz	w9, #31, LBB0_58
; %bb.56:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x22, #0
LBB0_57:                                ;   Parent Loop BB0_33 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x21]
	ldr	x10, [x27]
	add	x10, x26, x10
	madd	x8, x8, x10, x22
	ldr	w8, [x9, x8, lsl #2]
	str	x8, [sp, #-16]!
	mov	x0, x19
	mov	x1, x24
	bl	_fprintf
	add	sp, sp, #16
	add	x22, x22, #1
	ldrsw	x8, [x28]
	add	x8, x8, #1
	cmp	x22, x8
	b.lt	LBB0_57
LBB0_58:                                ;   in Loop: Header=BB0_33 Depth=1
Lloh99:
	adrp	x0, l_.str.12@PAGE
Lloh100:
	add	x0, x0, l_.str.12@PAGEOFF
	mov	w1, #1
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
LBB0_59:                                ;   in Loop: Header=BB0_33 Depth=1
	sub	x1, x29, #108
	ldp	x0, x22, [x29, #-128]           ; 16-byte Folded Reload
	mov	x2, x22
	bl	_fscanf
	cbz	x0, LBB0_73
; %bb.60:                               ;   in Loop: Header=BB0_33 Depth=1
	add	x26, x26, #1
	ldr	x8, [x27]
	add	x23, x23, #4
	cmp	x26, x8
	b.lt	LBB0_33
LBB0_61:
Lloh101:
	adrp	x8, _use_unk_vec@GOTPAGE
Lloh102:
	ldr	x8, [x8, _use_unk_vec@GOTPAGEOFF]
Lloh103:
	ldr	x8, [x8]
Lloh104:
	adrp	x26, _save_gradsq@GOTPAGE
Lloh105:
	ldr	x26, [x26, _save_gradsq@GOTPAGEOFF]
	cbz	x8, LBB0_91
; %bb.62:
	ldr	w8, [x28]
	add	w0, w8, #1
	mov	w1, #4
	bl	_calloc
	mov	x22, x0
	ldr	w8, [x28]
	add	w0, w8, #1
	mov	w1, #4
	bl	_calloc
	mov	x23, x0
	ldr	x8, [x27]
	mov	w9, #100
	cmp	x8, #100
	csel	x9, x8, x9, lt
	cmp	w9, #1
	b.lt	LBB0_74
; %bb.63:
	sub	x10, x8, w9, uxtw
Lloh106:
	adrp	x11, _W@GOTPAGE
Lloh107:
	ldr	x11, [x11, _W@GOTPAGEOFF]
Lloh108:
	ldr	x11, [x11]
	ldr	w13, [x28]
	lsl	x12, x8, #3
	sub	x12, x12, w9, uxtw #2
	b	LBB0_65
LBB0_64:                                ;   in Loop: Header=BB0_65 Depth=1
	add	x10, x10, #1
	add	x12, x12, #4
	cmp	x10, x8
	b.ge	LBB0_74
LBB0_65:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_67 Depth 2
	tbnz	w13, #31, LBB0_64
; %bb.66:                               ;   in Loop: Header=BB0_65 Depth=1
	mov	x14, #0
	add	w15, w13, #1
LBB0_67:                                ;   Parent Loop BB0_65 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	x13, x10, x15, x14
	ldr	w13, [x11, x13, lsl #2]
	sdiv	w13, w13, w9
	lsl	x15, x14, #2
	ldr	w16, [x22, x15]
	add	w13, w16, w13
	str	w13, [x22, x15]
	ldrsw	x13, [x28]
	madd	x13, x12, x13, x12
	add	x13, x11, x13
	ldr	w13, [x13, x15]
	sdiv	w13, w13, w9
	ldr	w16, [x23, x15]
	add	w13, w16, w13
	str	w13, [x23, x15]
	add	x14, x14, #1
	ldrsw	x13, [x28]
	add	x15, x13, #1
	cmp	x14, x15
	b.lt	LBB0_67
	b	LBB0_64
LBB0_68:
Lloh109:
	adrp	x8, _stderr@GOTPAGE
Lloh110:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh111:
	ldrsw	x0, [x8]
	ldr	x8, [x27]
	b	LBB0_71
LBB0_69:
Lloh112:
	adrp	x8, _stderr@GOTPAGE
Lloh113:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh114:
	ldrsw	x0, [x8]
Lloh115:
	adrp	x8, _save_gradsq_file@GOTPAGE
Lloh116:
	ldr	x8, [x8, _save_gradsq_file@GOTPAGEOFF]
Lloh117:
	ldr	x8, [x8]
	b	LBB0_71
LBB0_70:
Lloh118:
	adrp	x8, _stderr@GOTPAGE
Lloh119:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh120:
	ldrsw	x0, [x8]
	ldr	x8, [x21]
LBB0_71:
	str	x8, [sp, #-16]!
Lloh121:
	adrp	x1, l_.str.3@PAGE
Lloh122:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	add	sp, sp, #16
	mov	w0, #1
	b	LBB0_95
LBB0_72:
Lloh123:
	adrp	x8, _stderr@GOTPAGE
Lloh124:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh125:
	ldrsw	x0, [x8]
	ldr	x8, [x25]
	str	x8, [sp, #-16]!
Lloh126:
	adrp	x1, l_.str.3@PAGE
Lloh127:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	add	sp, sp, #16
LBB0_73:
	mov	w0, #1
	b	LBB0_94
LBB0_74:
Lloh128:
	adrp	x0, l_.str.9@PAGE
Lloh129:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	w1, #5
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
Lloh130:
	adrp	x21, _model@GOTPAGE
Lloh131:
	ldr	x21, [x21, _model@GOTPAGEOFF]
	ldr	w9, [x21]
	ldr	w8, [x28]
	cbnz	w9, LBB0_83
; %bb.75:
	tbnz	w8, #31, LBB0_82
; %bb.76:
	mov	x25, #0
Lloh132:
	adrp	x24, l_.str.11@PAGE
Lloh133:
	add	x24, x24, l_.str.11@PAGEOFF
LBB0_77:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22, x25, lsl #2]
	str	x8, [sp, #-16]!
	mov	x0, x20
	mov	x1, x24
	bl	_fprintf
	add	sp, sp, #16
	add	x25, x25, #1
	ldrsw	x8, [x28]
	add	x9, x8, #1
	cmp	x25, x9
	b.lt	LBB0_77
; %bb.78:
	tbnz	w8, #31, LBB0_82
; %bb.79:
	mov	x25, #0
Lloh134:
	adrp	x24, l_.str.11@PAGE
Lloh135:
	add	x24, x24, l_.str.11@PAGEOFF
LBB0_80:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, x25, lsl #2]
	str	x8, [sp, #-16]!
	mov	x0, x20
	mov	x1, x24
	bl	_fprintf
	add	sp, sp, #16
	add	x25, x25, #1
	ldrsw	x8, [x28]
	add	x9, x8, #1
	cmp	x25, x9
	b.lt	LBB0_80
; %bb.81:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_82:
	ldr	w9, [x21]
LBB0_83:
	cmp	w9, #1
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_87
; %bb.84:
	mov	x25, #0
Lloh136:
	adrp	x24, l_.str.11@PAGE
Lloh137:
	add	x24, x24, l_.str.11@PAGEOFF
LBB0_85:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22, x25, lsl #2]
	str	x8, [sp, #-16]!
	mov	x0, x20
	mov	x1, x24
	bl	_fprintf
	add	sp, sp, #16
	add	x25, x25, #1
	ldrsw	x8, [x28]
	cmp	x25, x8
	b.lt	LBB0_85
; %bb.86:
	ldr	w9, [x21]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_87:
	cmp	w9, #2
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_90
; %bb.88:
	mov	x21, #0
Lloh138:
	adrp	x24, l_.str.11@PAGE
Lloh139:
	add	x24, x24, l_.str.11@PAGEOFF
LBB0_89:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x21, #2
	ldr	w9, [x22, x8]
	ldr	w8, [x23, x8]
	add	w8, w8, w9
	str	x8, [sp, #-16]!
	mov	x0, x20
	mov	x1, x24
	bl	_fprintf
	add	sp, sp, #16
	add	x21, x21, #1
	ldrsw	x8, [x28]
	cmp	x21, x8
	b.lt	LBB0_89
LBB0_90:
Lloh140:
	adrp	x0, l_.str.12@PAGE
Lloh141:
	add	x0, x0, l_.str.12@PAGEOFF
	mov	w1, #1
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	mov	x0, x22
	bl	_free
	mov	x0, x23
	bl	_free
LBB0_91:
	ldur	x0, [x29, #-128]                ; 8-byte Folded Reload
	bl	_fclose
	mov	x0, x20
	bl	_fclose
	ldr	x8, [x26]
	cmp	x8, #1
	b.lt	LBB0_93
; %bb.92:
	mov	x0, x19
	bl	_fclose
LBB0_93:
	mov	w0, #0
LBB0_94:
	ldur	x22, [x29, #-136]               ; 8-byte Folded Reload
LBB0_95:
	mov	sp, x22
	ldur	x8, [x29, #-88]
Lloh142:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh143:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh144:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_97
; %bb.96:
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_97:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpAdd	Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGot	Lloh130, Lloh131
	.loh AdrpAdd	Lloh128, Lloh129
	.loh AdrpAdd	Lloh132, Lloh133
	.loh AdrpAdd	Lloh134, Lloh135
	.loh AdrpAdd	Lloh136, Lloh137
	.loh AdrpAdd	Lloh138, Lloh139
	.loh AdrpAdd	Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh142, Lloh143, Lloh144
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_STRING_LENGTH,4,2          ; @MAX_STRING_LENGTH
	.comm	_use_binary,4,2                 ; @use_binary
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.bin"

	.comm	_save_W_file,8,3                ; @save_W_file
l_.str.1:                               ; @.str.1
	.asciz	"%s.%03d.bin"

l_.str.2:                               ; @.str.2
	.asciz	"wb"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"Unable to open file %s.\n"

	.comm	_vocab_size,8,3                 ; @vocab_size
	.comm	_vector_size,4,2                ; @vector_size
	.comm	_W,8,3                          ; @W
	.comm	_save_gradsq,8,3                ; @save_gradsq
	.comm	_save_gradsq_file,8,3           ; @save_gradsq_file
	.comm	_gradsq,8,3                     ; @gradsq
l_.str.4:                               ; @.str.4
	.asciz	"%s.txt"

l_.str.5:                               ; @.str.5
	.asciz	"%s.%03d.txt"

	.comm	_vocab_file,8,3                 ; @vocab_file
l_.str.6:                               ; @.str.6
	.asciz	"r"

l_.str.7:                               ; @.str.7
	.asciz	"%%%ds"

	.comm	_write_header,8,3               ; @write_header
l_.str.8:                               ; @.str.8
	.asciz	"%lld %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"<unk>"

	.comm	_model,4,2                      ; @model
l_.str.11:                              ; @.str.11
	.asciz	" %lf"

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

	.comm	_use_unk_vec,8,3                ; @use_unk_vec
.subsections_via_symbols
