	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fft_compile_program
_fft_compile_program:                   ## @fft_compile_program
	.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
	movl	$8216, %eax                     ## imm = 0x2018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -8248(%rbp)
	xorl	%eax, %eax
	callq	_glCreateProgram
	movl	%eax, %r12d
	movq	_GL_VERTEX_SHADER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_fft_compile_shader
	movl	%eax, %r14d
	movq	_GL_FRAGMENT_SHADER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_fft_compile_shader
	movl	%eax, %r15d
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_glAttachShader
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_glAttachShader
	movl	%r12d, %edi
	callq	_glLinkProgram
	movq	_GL_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-8248(%rbp), %rdx
	movl	%r12d, %edi
	callq	_glGetProgramiv
	cmpq	$0, -8248(%rbp)
	jne	LBB0_2
## %bb.1:
	movq	_RETRO_LOG_ERROR@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_cb
	leaq	-8252(%rbp), %rdx
	leaq	-8240(%rbp), %rbx
	movl	%r12d, %edi
	movl	$8192, %esi                     ## imm = 0x2000
	movq	%rbx, %rcx
	callq	_glGetProgramInfoLog
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_log_cb
LBB0_2:
	movl	%r14d, %edi
	callq	_glDeleteShader
	movl	%r15d, %edi
	callq	_glDeleteShader
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%r12d, %eax
	addq	$8216, %rsp                     ## imm = 0x2018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_VERTEX_SHADER,4,2           ## @GL_VERTEX_SHADER
	.comm	_GL_FRAGMENT_SHADER,4,2         ## @GL_FRAGMENT_SHADER
	.comm	_GL_LINK_STATUS,4,2             ## @GL_LINK_STATUS
	.comm	_RETRO_LOG_ERROR,4,2            ## @RETRO_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to link.\n"

L_.str.1:                               ## @.str.1
	.asciz	"ERROR: %s\n"

	.no_dead_strip	_fft_compile_program
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fft_compile_program
_fft_compile_program:                   ; @fft_compile_program
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	w9, #8224
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #32
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	xzr, [sp, #16]
	bl	_glCreateProgram
	mov	x19, x0
Lloh5:
	adrp	x8, _GL_VERTEX_SHADER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_VERTEX_SHADER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x20
	bl	_fft_compile_shader
	mov	x20, x0
Lloh8:
	adrp	x8, _GL_FRAGMENT_SHADER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_FRAGMENT_SHADER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_fft_compile_shader
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_glAttachShader
	mov	x0, x19
	mov	x1, x21
	bl	_glAttachShader
	mov	x0, x19
	bl	_glLinkProgram
Lloh11:
	adrp	x8, _GL_LINK_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_LINK_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	bl	_glGetProgramiv
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh14:
	adrp	x22, _RETRO_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x22, [x22, _RETRO_LOG_ERROR@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_cb
	add	x23, sp, #24
	add	x2, sp, #12
	add	x3, sp, #24
	mov	x0, x19
	mov	w1, #8192
	bl	_glGetProgramInfoLog
	ldr	w0, [x22]
	str	x23, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log_cb
LBB0_2:
	mov	x0, x20
	bl	_glDeleteShader
	mov	x0, x21
	bl	_glDeleteShader
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #32
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_VERTEX_SHADER,4,2           ; @GL_VERTEX_SHADER
	.comm	_GL_FRAGMENT_SHADER,4,2         ; @GL_FRAGMENT_SHADER
	.comm	_GL_LINK_STATUS,4,2             ; @GL_LINK_STATUS
	.comm	_RETRO_LOG_ERROR,4,2            ; @RETRO_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to link.\n"

l_.str.1:                               ; @.str.1
	.asciz	"ERROR: %s\n"

	.no_dead_strip	_fft_compile_program
.subsections_via_symbols
