	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fft_compile_shader
_fft_compile_shader:                    ## @fft_compile_shader
	.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	%r12
	pushq	%rbx
	movl	$8240, %eax                     ## imm = 0x2030
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	%rdx, -8256(%rbp)
	movq	$0, -8248(%rbp)
	callq	_glCreateShader
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	leaq	-8256(%rbp), %rdx
	movl	%eax, %edi
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_glShaderSource
	movl	%ebx, %edi
	callq	_glCompileShader
	movq	_GL_COMPILE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-8248(%rbp), %rdx
	movl	%ebx, %edi
	callq	_glGetShaderiv
	cmpq	$0, -8248(%rbp)
	je	LBB0_2
## %bb.1:
	movl	%ebx, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_RETRO_LOG_ERROR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_cb
	leaq	-8260(%rbp), %rdx
	leaq	-8240(%rbp), %r15
	movl	%ebx, %edi
	movl	$8192, %esi                     ## imm = 0x2000
	movq	%r15, %rcx
	callq	_glGetShaderInfoLog
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_log_cb
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	addq	$8240, %rsp                     ## imm = 0x2030
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_COMPILE_STATUS,4,2          ## @GL_COMPILE_STATUS
	.comm	_RETRO_LOG_ERROR,4,2            ## @RETRO_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to compile.\n"

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

	.no_dead_strip	_fft_compile_shader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fft_compile_shader
_fft_compile_shader:                    ; @fft_compile_shader
	.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	w9, #8240
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, #48
	mov	x0, x1
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	stp	xzr, x2, [sp, #24]
	bl	_glCreateShader
	mov	x19, x0
	add	x2, sp, #32
	mov	w1, #1
	mov	x3, #0
	bl	_glShaderSource
	mov	x0, x19
	bl	_glCompileShader
Lloh5:
	adrp	x8, _GL_COMPILE_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_COMPILE_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	bl	_glGetShaderiv
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x20, _RETRO_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x20, [x20, _RETRO_LOG_ERROR@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_cb
	add	x21, sp, #40
	add	x2, sp, #20
	add	x3, sp, #40
	mov	x0, x19
	mov	w1, #8192
	bl	_glGetShaderInfoLog
	ldr	w0, [x20]
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log_cb
	mov	w19, #0
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	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, #48
	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
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_COMPILE_STATUS,4,2          ; @GL_COMPILE_STATUS
	.comm	_RETRO_LOG_ERROR,4,2            ; @RETRO_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to compile.\n"

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

	.no_dead_strip	_fft_compile_shader
.subsections_via_symbols
