	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function init_vertices
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0xbf000000                      ## float -0.5
LCPI0_2:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_init_vertices
	.p2align	4, 0x90
_init_vertices:                         ## @init_vertices
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_GRIDH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_8
## %bb.1:
	movq	_GRIDW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	cvtsi2ss	%edx, %xmm0
	negl	%edx
	cvtsi2ss	%r9d, %xmm8
	movl	%r9d, %r8d
	shrl	%r8d
	cvtsi2ss	%r8d, %xmm9
	movq	_vertex@GOTPCREL(%rip), %rax
	cvtsi2ss	%ecx, %xmm3
	movq	(%rax), %r11
	movslq	%ecx, %r10
	addq	$24, %r11
	shlq	$5, %r10
	xorl	%eax, %eax
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movss	LCPI0_1(%rip), %xmm5            ## xmm5 = mem[0],zero,zero,zero
	movss	LCPI0_2(%rip), %xmm6            ## xmm6 = mem[0],zero,zero,zero
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	addq	%r10, %r11
	cmpq	%r9, %rax
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm7, %xmm7
	cvtsi2ss	%eax, %xmm7
	movl	%eax, %esi
	subl	%r8d, %esi
	xorps	%xmm1, %xmm1
	cvtsi2ss	%esi, %xmm1
	divss	%xmm9, %xmm1
	divss	%xmm8, %xmm7
	movq	%r11, %rdi
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movsd	%xmm4, -16(%rdi)
	movss	%xmm7, -8(%rdi)
	xorps	%xmm4, %xmm4
	cvtsi2ss	%esi, %xmm4
	divss	%xmm3, %xmm4
	addss	%xmm7, %xmm4
	mulss	%xmm5, %xmm4
	addss	%xmm6, %xmm4
	movss	%xmm4, -4(%rdi)
	incq	%rsi
	addq	$32, %rdi
	cmpq	%rsi, %rcx
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rdx,%rsi), %ebx
	xorps	%xmm4, %xmm4
	cvtsi2ss	%ebx, %xmm4
	divss	%xmm0, %xmm4
	movss	%xmm4, -24(%rdi)
	movss	%xmm1, -20(%rdi)
	movq	$0, (%rdi)
	movl	%eax, %ebx
	xorl	%esi, %ebx
	movaps	%xmm2, %xmm4
	testb	$2, %bl
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorps	%xmm4, %xmm4
	jmp	LBB0_6
LBB0_8:
	movq	_QUADH@GOTPCREL(%rip), %r8
	movl	(%r8), %edi
	testl	%edi, %edi
	jle	LBB0_15
## %bb.9:
	movq	_quad@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_QUADW@GOTPCREL(%rip), %r10
	movl	(%r10), %eax
	xorl	%edx, %edx
	movl	$1, %r14d
	movq	_GRIDW@GOTPCREL(%rip), %r11
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%r14d
	movl	%r9d, %edx
	cmpl	%edi, %r9d
	jge	LBB0_15
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	leal	1(%rdx), %r9d
	testl	%eax, %eax
	jle	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%edx, %eax
	addl	%edi, %eax
	leal	(,%rax,4), %ebx
	movl	(%r11), %esi
	imull	%edx, %esi
	addl	%edi, %esi
	movslq	%ebx, %rbx
	movl	%esi, (%rcx,%rbx,4)
	movl	(%r11), %esi
	imull	%edx, %esi
	addl	%edi, %esi
	incl	%esi
	leal	1(,%rax,4), %ebx
	movslq	%ebx, %rbx
	movl	%esi, (%rcx,%rbx,4)
	movl	(%r11), %esi
	imull	%r14d, %esi
	addl	%edi, %esi
	incl	%esi
	leal	2(,%rax,4), %ebx
	movslq	%ebx, %rbx
	movl	%esi, (%rcx,%rbx,4)
	movl	(%r11), %esi
	imull	%r14d, %esi
	addl	%edi, %esi
	leal	1(%rdi), %ebx
	leal	3(,%rax,4), %eax
	cltq
	movl	%esi, (%rcx,%rax,4)
	movl	(%r10), %eax
	movl	%ebx, %edi
	cmpl	%eax, %ebx
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r8), %edi
	jmp	LBB0_14
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRIDH,4,2                      ## @GRIDH
	.comm	_GRIDW,4,2                      ## @GRIDW
	.comm	_vertex,8,3                     ## @vertex
	.comm	_QUADH,4,2                      ## @QUADH
	.comm	_QUADW,4,2                      ## @QUADW
	.comm	_quad,8,3                       ## @quad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_vertices                  ; -- Begin function init_vertices
	.p2align	2
_init_vertices:                         ; @init_vertices
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _GRIDH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRIDH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _GRIDW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GRIDW@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x10, #0
	ldr	w11, [x8]
	cmp	w11, #0
	cinc	w12, w11, lt
	asr	w13, w12, #1
	scvtf	s0, w13
Lloh5:
	adrp	x12, _vertex@GOTPAGE
Lloh6:
	ldr	x12, [x12, _vertex@GOTPAGEOFF]
Lloh7:
	ldr	x14, [x12]
	ubfx	x12, x9, #1, #31
	scvtf	s1, w12
	scvtf	s2, w9
	scvtf	s3, w11
	sxtw	x15, w11
	neg	w13, w13
	add	x14, x14, #16
	lsl	x15, x15, #5
	movi	d4, #0000000000000000
	fmov	d5, #1.00000000
	fmov	s6, #-0.50000000
	fmov	s7, #1.00000000
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	add	x14, x14, x15
	cmp	x10, x9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w11, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x16, #0
	sub	w17, w10, w12
	scvtf	s16, w17
	fdiv	s16, s16, s1
	scvtf	s17, w10
	mov	x17, x14
	fdiv	s17, s17, s2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w0, w13, w16
	eor	w1, w16, w10
	scvtf	s18, w0
	tst	x1, #0x2
	fcsel	d19, d5, d4, eq
	stur	d19, [x17, #-8]
	scvtf	s19, w16
	fdiv	s18, s18, s0
	str	xzr, [x17, #8]
	fdiv	s19, s19, s3
	fadd	s19, s17, s19
	fmul	s19, s19, s6
	stp	s18, s16, [x17, #-16]
	fadd	s18, s19, s7
	stp	s17, s18, [x17], #32
	add	x16, x16, #1
	cmp	x11, x16
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
Lloh8:
	adrp	x9, _QUADH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _QUADH@GOTPAGEOFF]
	ldr	w15, [x9]
	cmp	w15, #1
	b.lt	LBB0_13
; %bb.7:
	mov	w10, #0
Lloh10:
	adrp	x11, _quad@GOTPAGE
Lloh11:
	ldr	x11, [x11, _quad@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
Lloh13:
	adrp	x12, _QUADW@GOTPAGE
Lloh14:
	ldr	x12, [x12, _QUADW@GOTPAGEOFF]
	ldr	w14, [x12]
	mov	w13, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w10, w10, #1
	add	w13, w13, #1
	cmp	w10, w15
	b.ge	LBB0_13
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w14, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w15, #0
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	w14, w10, w14, w15
	lsl	w16, w14, #2
	ldr	w17, [x8]
	madd	w17, w10, w17, w15
	add	x16, x11, w16, sxtw #2
	str	w17, [x16]
	ldr	w17, [x8]
	madd	w17, w10, w17, w15
	add	w17, w17, #1
	add	x14, x11, w14, sxtw #4
	str	w17, [x14, #4]
	ldr	w14, [x8]
	madd	w14, w13, w14, w15
	add	w14, w14, #1
	str	w14, [x16, #8]
	ldr	w14, [x8]
	madd	w14, w13, w14, w15
	add	w17, w15, #1
	str	w14, [x16, #12]
	ldr	w14, [x12]
	mov	x15, x17
	cmp	w17, w14
	b.lt	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w15, [x9]
	b	LBB0_8
LBB0_13:
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GRIDH,4,2                      ; @GRIDH
	.comm	_GRIDW,4,2                      ; @GRIDW
	.comm	_vertex,8,3                     ; @vertex
	.comm	_QUADH,4,2                      ; @QUADH
	.comm	_QUADW,4,2                      ; @QUADW
	.comm	_quad,8,3                       ; @quad
.subsections_via_symbols
