	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fft_context_reset
_fft_context_reset:                     ## @fft_context_reset
	.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
	movl	%ecx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	%edx, %edi
	callq	_rglgen_resolve_symbols
	movl	%r15d, (%rbx)
	movl	%r14d, 4(%rbx)
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	movl	%eax, 8(%rbx)
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	incl	%ecx
	movl	%ecx, 12(%rbx)
	movl	%r15d, 16(%rbx)
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 32(%rbx)
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	addl	%edi, %edi
	movl	%edi, 20(%rbx)
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_GL_CHECK_ERROR
	movq	%rbx, %rdi
	callq	_fft_init_quad_vao
	xorl	%eax, %eax
	callq	_GL_CHECK_ERROR
	movq	%rbx, %rdi
	callq	_fft_init
	xorl	%eax, %eax
	callq	_GL_CHECK_ERROR
	movq	%rbx, %rdi
	callq	_fft_init_block
	xorl	%eax, %eax
	callq	_GL_CHECK_ERROR
	movl	$1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fft_context_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fft_context_reset
_fft_context_reset:                     ; @fft_context_reset
	.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	x20, x3
	mov	x21, x1
	mov	x19, x0
	mov	x0, x2
	bl	_rglgen_resolve_symbols
	stp	w21, w20, [x19]
	mov	w8, #1
	lsl	w8, w8, w21
	add	w9, w8, #3
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #2
	add	w9, w9, #1
	stp	w8, w9, [x19, #8]
	str	w21, [x19, #16]
	mov	x0, x21
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x19, #8]
	lsl	w0, w8, #1
	str	w0, [x19, #20]
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_GL_CHECK_ERROR
	mov	x0, x19
	bl	_fft_init_quad_vao
	bl	_GL_CHECK_ERROR
	mov	x0, x19
	bl	_fft_init
	bl	_GL_CHECK_ERROR
	mov	x0, x19
	bl	_fft_init_block
	bl	_GL_CHECK_ERROR
	mov	w0, #1
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fft_context_reset
.subsections_via_symbols
