	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function initialize_parameters
LCPI0_0:
	.quad	0xbfe0000000000000              ## double -0.5
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_initialize_parameters
	.p2align	4, 0x90
_initialize_parameters:                 ## @initialize_parameters
	.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
	movq	_vector_size@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	incl	%edx
	movl	%edx, (%rbx)
	movq	_vocab_size@GOTPCREL(%rip), %r14
	imull	(%r14), %edx
	shll	$4, %edx
	movq	_W@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	movl	$128, %esi
	callq	_posix_memalign
	cmpq	$0, (%r15)
	je	LBB0_1
## %bb.3:
	movl	(%r14), %edx
	imull	(%rbx), %edx
	shll	$4, %edx
	movq	_gradsq@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_posix_memalign
	cmpq	$0, (%r12)
	je	LBB0_34
## %bb.4:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_33
## %bb.5:
	movl	(%r14), %ecx
	movq	_RAND_MAX@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%eax, %rdx
	incq	%r14
	cmpq	%rdx, %r14
	jge	LBB0_11
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rbx
	xorl	%r15d, %r15d
	movq	_vocab_size@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_rand
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%r12), %xmm1
	divsd	%xmm1, %xmm0
	addsd	%xmm2, %xmm0
	movq	_vector_size@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movq	(%rbx), %rcx
	movq	%rax, %rdx
	imulq	%r15, %rdx
	addq	%r14, %rdx
	movsd	%xmm0, (%rcx,%rdx,8)
	incq	%r15
	movslq	(%r13), %rcx
	leaq	(%rcx,%rcx), %rdx
	cmpq	%rdx, %r15
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %r15
	jmp	LBB0_10
LBB0_11:
	testl	%eax, %eax
	jle	LBB0_32
## %bb.12:
	movq	_vocab_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	addl	%ecx, %ecx
	movq	_gradsq@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r10
	cmpl	$2, %ecx
	movl	$1, %edi
	cmovgel	%ecx, %edi
	movl	%edi, %ecx
	andl	$2147483644, %ecx               ## imm = 0x7FFFFFFC
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	addq	$-4, %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rcx, %rsi
	shrq	$2, %rsi
	incq	%rsi
	cmpl	$4, %edi
	setae	%r8b
	cmpl	$1, %eax
	sete	%bl
	andb	%r8b, %bl
	movb	%bl, -41(%rbp)                  ## 1-byte Spill
	movl	%esi, %ecx
	andl	$3, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	andq	$-4, %rsi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	andl	$3, %r12d
	movq	%rdx, %rcx
	shlq	$7, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r8
	shlq	$5, %r8
	leaq	16(%r10), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	negq	%r12
	movapd	LCPI0_1(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0]
	leaq	(,%rdx,8), %r9
	xorl	%r11d, %r11d
	movabsq	$4607182418800017408, %r14      ## imm = 0x3FF0000000000000
	movq	%r10, -112(%rbp)                ## 8-byte Spill
	movq	%r10, %rcx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r11
	addq	$8, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r11
	je	LBB0_32
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
                                        ##     Child Loop BB0_30 Depth 2
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, -144(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_31
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$12, -120(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_24
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, %rbx
	xorl	%edx, %edx
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movupd	%xmm0, (%rbx)
	movupd	%xmm0, 16(%rbx)
	leaq	(%rbx,%r8), %rsi
	movupd	%xmm0, (%rbx,%r8)
	movupd	%xmm0, 16(%rbx,%r8)
	leaq	(%rsi,%r8), %rcx
	movupd	%xmm0, (%r8,%rsi)
	movupd	%xmm0, 16(%r8,%rsi)
	movupd	%xmm0, (%r8,%rcx)
	movupd	%xmm0, 16(%r8,%rcx)
	addq	$16, %rdx
	addq	%r10, %rbx
	addq	$-4, %rdi
	jne	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	imulq	-64(%rbp), %rdx                 ## 8-byte Folded Reload
	addq	%r11, %rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rdx,8), %rdx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movupd	%xmm0, -16(%rdx)
	movupd	%xmm0, (%rdx)
	addq	%r8, %rdx
	decq	%rsi
	jne	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, %r13
	cmpq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_31
LBB0_24:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdx
	notq	%rdx
	addq	-72(%rbp), %rdx                 ## 8-byte Folded Reload
	cmpq	$0, -136(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	imulq	%r13, %rcx
	addq	%r11, %rcx
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%rcx,8), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, (%rsi)
	decq	%rdi
	addq	%r9, %rsi
	cmpq	%rdi, %r12
	jne	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_13 Depth=1
	subq	%rdi, %r13
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$3, %rdx
	jb	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	subq	%r13, %rdx
	leaq	3(%r13), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	imulq	%rsi, %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rcx,8), %r10
	leaq	2(%r13), %rcx
	imulq	%rsi, %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rcx,8), %rbx
	leaq	1(%r13), %rcx
	imulq	%rsi, %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rcx,8), %r15
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	imulq	%rsi, %r13
	leaq	(%rcx,%r13,8), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, (%rsi,%rdi)
	movq	%r14, (%r15,%rdi)
	movq	%r14, (%rbx,%rdi)
	movq	%r14, (%r10,%rdi)
	addq	%r8, %rdi
	addq	$-4, %rdx
	jne	LBB0_30
	jmp	LBB0_31
LBB0_32:
	movq	_vector_size@GOTPCREL(%rip), %rbx
LBB0_33:
	decl	%eax
	movl	%eax, (%rbx)
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_34:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_vector_size,4,2                ## @vector_size
	.comm	_W,8,3                          ## @W
	.comm	_vocab_size,4,2                 ## @vocab_size
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error allocating memory for W\n"

	.comm	_gradsq,8,3                     ## @gradsq
L_.str.1:                               ## @.str.1
	.asciz	"Error allocating memory for gradsq\n"

	.comm	_RAND_MAX,8,3                   ## @RAND_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_initialize_parameters          ; -- Begin function initialize_parameters
	.p2align	2
_initialize_parameters:                 ; @initialize_parameters
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
Lloh0:
	adrp	x21, _vector_size@GOTPAGE
Lloh1:
	ldr	x21, [x21, _vector_size@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
Lloh2:
	adrp	x22, _vocab_size@GOTPAGE
Lloh3:
	ldr	x22, [x22, _vocab_size@GOTPAGEOFF]
	ldr	w9, [x22]
	mul	w8, w8, w9
	lsl	w2, w8, #4
Lloh4:
	adrp	x19, _W@GOTPAGE
Lloh5:
	ldr	x19, [x19, _W@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #128
	bl	_posix_memalign
	ldr	x8, [x19]
	cbz	x8, LBB0_20
; %bb.1:
	ldr	w8, [x22]
	ldr	w9, [x21]
	mul	w8, w8, w9
	lsl	w2, w8, #4
Lloh6:
	adrp	x20, _gradsq@GOTPAGE
Lloh7:
	ldr	x20, [x20, _gradsq@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #128
	bl	_posix_memalign
	ldr	x8, [x20]
	cbz	x8, LBB0_21
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.3:
	mov	x23, #0
	ldr	w10, [x22]
Lloh8:
	adrp	x24, _RAND_MAX@GOTPAGE
Lloh9:
	ldr	x24, [x24, _RAND_MAX@GOTPAGEOFF]
	fmov	d8, #-0.50000000
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, x8
	sxtw	x9, w9
	add	x23, x23, #1
	cmp	x23, x9
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_rand
	ldr	d1, [x24]
	scvtf	d1, d1
	fdiv	d0, d0, d1
	fadd	d0, d0, d8
	ldrsw	x8, [x21]
	scvtf	d1, w8
	fdiv	d0, d0, d1
	ldr	x9, [x19]
	madd	x10, x25, x8, x23
	str	d0, [x9, x10, lsl #3]
	add	x25, x25, #1
	ldrsw	x10, [x22]
	cmp	x25, x10, lsl #1
	b.lt	LBB0_7
	b	LBB0_4
LBB0_8:
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.9:
	mov	x10, #0
	ldr	w11, [x22]
	lsl	w13, w11, #1
	ldr	x12, [x20]
	cmp	w13, #1
	csinc	w13, w13, wzr, gt
	cmp	w13, #7
	ccmp	w8, #1, #0, hi
	cset	w14, eq
	and	x15, x13, #0x7ffffff8
	add	x16, x12, #32
	mov	x1, x8
	sxtw	x17, w1
	sbfiz	x0, x1, #6, #32
	sbfiz	x1, x1, #3, #32
	fmov.2d	v0, #1.00000000
	mov	x2, #4607182418800017408
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x10, x10, #1
	add	x16, x16, #8
	cmp	x10, x9
	b.eq	LBB0_19
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	cmp	w11, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	w14, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x3, x15
	mov	x4, x16
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x4, #-32]
	stp	q0, q0, [x4]
	add	x4, x4, x0
	subs	x3, x3, #8
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x4, x15
	cmp	x15, x13
	b.eq	LBB0_10
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x4, #0
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x3, x13, x4
	madd	x4, x17, x4, x10
	add	x4, x12, x4, lsl #3
LBB0_18:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x2, [x4]
	add	x4, x4, x1
	subs	x3, x3, #1
	b.ne	LBB0_18
	b	LBB0_10
LBB0_19:
	sub	w8, w8, #1
	str	w8, [x21]
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_22
LBB0_21:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_22:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_vector_size,4,2                ; @vector_size
	.comm	_W,8,3                          ; @W
	.comm	_vocab_size,4,2                 ; @vocab_size
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error allocating memory for W\n"

	.comm	_gradsq,8,3                     ; @gradsq
l_.str.1:                               ; @.str.1
	.asciz	"Error allocating memory for gradsq\n"

	.comm	_RAND_MAX,8,3                   ; @RAND_MAX
.subsections_via_symbols
