	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fft_init_block
_fft_init_block:                        ## @fft_init_block
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_fft_vertex_program_heightmap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_fft_fragment_program_heightmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fft_compile_program
	movl	%eax, 24(%r13)
	movl	%eax, %edi
	callq	_glUseProgram
	movl	24(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_glGetUniformLocation
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_glUniform1i
	movl	(%r13), %r15d
	imull	4(%r13), %r15d
	addl	%r15d, %r15d
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %r14
	movl	4(%r13), %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.1:
	movl	(%r13), %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%ecx, %ebx
	jae	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%ebx, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%ecx, (%r14,%rax,4)
	movl	(%r13), %eax
	imull	%ebx, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	incl	%eax
	movl	%ebx, (%r14,%rax,4)
	incl	%ecx
	movl	(%r13), %eax
	cmpl	%eax, %ecx
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %ecx
	jmp	LBB0_7
LBB0_8:
	leaq	20(%r13), %rsi
	movl	$1, %edi
	callq	_glGenBuffers
	movq	_GL_ARRAY_BUFFER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	20(%r13), %esi
	callq	_glBindBuffer
	movl	(%rbx), %edi
	shll	$2, %r15d
	movq	_GL_STATIC_DRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_glBufferData
	movl	(%r13), %eax
	movl	4(%r13), %r12d
	addl	%eax, %eax
	decl	%eax
	decl	%r12d
	imull	%eax, %r12d
	incl	%r12d
	movl	%r12d, 8(%r13)
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %r15
	movl	4(%r13), %r8d
	cmpl	$1, %r8d
	jne	LBB0_10
## %bb.9:
	xorl	%edx, %edx
	movq	%r15, %rax
LBB0_17:
	movl	%edx, (%rax)
	leaq	16(%r13), %rsi
	movl	$1, %edi
	callq	_glGenVertexArrays
	movl	16(%r13), %edi
	callq	_glBindVertexArray
	leaq	12(%r13), %rsi
	movl	$1, %edi
	callq	_glGenBuffers
	movq	_GL_ELEMENT_ARRAY_BUFFER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	12(%r13), %esi
	callq	_glBindBuffer
	movl	(%rbx), %edi
	shll	$2, %r12d
	movq	_GL_STATIC_DRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_glBufferData
	xorl	%edi, %edi
	callq	_glEnableVertexAttribArray
	movq	_GL_UNSIGNED_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	$2, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_glVertexAttribPointer
	xorl	%edi, %edi
	callq	_glBindVertexArray
	movq	_GL_ARRAY_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_glBindBuffer
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_glBindBuffer
	movq	%r14, %rdi
	callq	_free
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_10:
	movl	(%r13), %r10d
	xorl	%r9d, %r9d
	movq	%r15, %rax
	xorl	%edx, %edx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%r10d, %edi
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r9d
	leal	-1(%r8), %ecx
	movl	%edi, %r10d
	cmpl	%ecx, %r9d
	jae	LBB0_17
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movl	%r9d, %ecx
	andl	$1, %ecx
	negl	%ecx
	movl	$0, %ebx
	sbbl	%ebx, %ebx
	testl	%r10d, %r10d
	jle	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	orl	$1, %ebx
	subl	%r10d, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, %edi
	movl	%edx, (%rax)
	addq	$4, %rax
	testb	$1, %cl
	movl	%ebx, %edx
	cmovel	%r10d, %edx
	addl	%edi, %edx
	incl	%ecx
	movl	(%r13), %edi
	leal	(%rdi,%rdi), %esi
	decl	%esi
	cmpl	%esi, %ecx
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	4(%r13), %r8d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_fft_vertex_program_heightmap,4,2 ## @fft_vertex_program_heightmap
	.comm	_fft_fragment_program_heightmap,4,2 ## @fft_fragment_program_heightmap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sHeight"

	.comm	_GL_ARRAY_BUFFER,4,2            ## @GL_ARRAY_BUFFER
	.comm	_GL_STATIC_DRAW,4,2             ## @GL_STATIC_DRAW
	.comm	_GL_ELEMENT_ARRAY_BUFFER,4,2    ## @GL_ELEMENT_ARRAY_BUFFER
	.comm	_GL_UNSIGNED_SHORT,4,2          ## @GL_UNSIGNED_SHORT
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.no_dead_strip	_fft_init_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fft_init_block
_fft_init_block:                        ; @fft_init_block
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _fft_vertex_program_heightmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fft_vertex_program_heightmap@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _fft_fragment_program_heightmap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fft_fragment_program_heightmap@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_fft_compile_program
	str	w0, [x20, #24]
	bl	_glUseProgram
	ldr	w0, [x20, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_glGetUniformLocation
	mov	w1, #0
	bl	_glUniform1i
	ldp	w8, w9, [x20]
	mul	w8, w8, w9
	lsl	w21, w8, #1
	mov	x0, x21
	mov	w1, #4
	bl	_calloc
	mov	x19, x0
	ldr	w10, [x20, #4]
	cbz	w10, LBB0_7
; %bb.1:
	mov	w8, #0
	ldr	w9, [x20]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	cmp	w8, w10
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cbz	w9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w10, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	w9, w8, w9, w10
	lsl	w9, w9, #1
	str	w10, [x19, w9, uxtw #2]
	ldr	w9, [x20]
	madd	w9, w8, w9, w10
	mov	w11, #1
	bfi	w11, w9, #1, #31
	str	w8, [x19, w11, uxtw #2]
	add	w10, w10, #1
	ldr	w9, [x20]
	cmp	w10, w9
	b.lo	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x20, #4]
	b	LBB0_2
LBB0_7:
	add	x1, x20, #20
	mov	w25, #1
	mov	w0, #1
	bl	_glGenBuffers
Lloh8:
	adrp	x23, _GL_ARRAY_BUFFER@GOTPAGE
Lloh9:
	ldr	x23, [x23, _GL_ARRAY_BUFFER@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x20, #20]
	bl	_glBindBuffer
	ldr	w0, [x23]
	lsl	w1, w21, #2
Lloh10:
	adrp	x24, _GL_STATIC_DRAW@GOTPAGE
Lloh11:
	ldr	x24, [x24, _GL_STATIC_DRAW@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x2, x19
	bl	_glBufferData
	ldp	w8, w9, [x20]
	lsl	w8, w8, #1
	sub	w8, w8, #1
	sub	w9, w9, #1
	orr	w10, wzr, #0x1
	madd	w22, w8, w9, w10
	str	w22, [x20, #8]
	mov	x0, x22
	mov	w1, #4
	bl	_calloc
	mov	x21, x0
	ldr	w12, [x20, #4]
	cmp	w12, #1
	b.ne	LBB0_10
; %bb.8:
	mov	w8, #0
	mov	x10, x21
LBB0_9:
	str	w8, [x10]
	add	x1, x20, #16
	mov	w0, #1
	bl	_glGenVertexArrays
	ldr	w0, [x20, #16]
	bl	_glBindVertexArray
	add	x1, x20, #12
	mov	w0, #1
	bl	_glGenBuffers
Lloh12:
	adrp	x25, _GL_ELEMENT_ARRAY_BUFFER@GOTPAGE
Lloh13:
	ldr	x25, [x25, _GL_ELEMENT_ARRAY_BUFFER@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w1, [x20, #12]
	bl	_glBindBuffer
	ldr	w0, [x25]
	lsl	w1, w22, #2
	ldr	w3, [x24]
	mov	x2, x21
	bl	_glBufferData
	mov	w0, #0
	bl	_glEnableVertexAttribArray
Lloh14:
	adrp	x8, _GL_UNSIGNED_SHORT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_UNSIGNED_SHORT@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	w0, #0
	mov	w1, #2
	mov	w4, #0
	mov	w5, #0
	bl	_glVertexAttribPointer
	mov	w0, #0
	bl	_glBindVertexArray
	ldr	w0, [x23]
	mov	w1, #0
	bl	_glBindBuffer
	ldr	w0, [x25]
	mov	w1, #0
	bl	_glBindBuffer
	mov	x0, x19
	bl	_free
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_free
LBB0_10:
	mov	w9, #0
	mov	w8, #0
	ldr	w11, [x20]
	mov	x10, x21
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w9, w9, #1
	sub	w13, w12, #1
	cmp	w9, w13
	b.hs	LBB0_9
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	tst	w9, #0x1
	cneg	w13, w25, ne
	cmp	w11, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w12, #0
	sub	w13, w13, w11
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w8, [x10], #4
	tst	w12, #0x1
	csel	w14, w11, w13, eq
	add	w8, w14, w8
	add	w12, w12, #1
	ldr	w14, [x20]
	lsl	w15, w14, #1
	sub	w15, w15, #1
	cmp	w12, w15
	b.lt	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w12, [x20, #4]
	mov	x11, x14
	b	LBB0_11
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_fft_vertex_program_heightmap,4,2 ; @fft_vertex_program_heightmap
	.comm	_fft_fragment_program_heightmap,4,2 ; @fft_fragment_program_heightmap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sHeight"

	.comm	_GL_ARRAY_BUFFER,4,2            ; @GL_ARRAY_BUFFER
	.comm	_GL_STATIC_DRAW,4,2             ; @GL_STATIC_DRAW
	.comm	_GL_ELEMENT_ARRAY_BUFFER,4,2    ; @GL_ELEMENT_ARRAY_BUFFER
	.comm	_GL_UNSIGNED_SHORT,4,2          ; @GL_UNSIGNED_SHORT
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.no_dead_strip	_fft_init_block
.subsections_via_symbols
