	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_cg_compile_program
_gl_cg_compile_program:                 ## @gl_cg_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GFX_MAX_SHADERS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	2(%r15), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%r14, %r14
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %r14d
	shlq	$4, %r14
	addq	24(%r12), %r14
LBB0_2:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r13)
	testq	%r15, %r15
	je	LBB0_8
## %bb.3:
	movq	(%r12), %rcx
	cmpl	$1, %r15d
	jne	LBB0_26
## %bb.4:
	movl	$1, %eax
	xorl	%edx, %edx
LBB0_5:
	testb	$1, %r15b
	je	LBB0_9
## %bb.6:
	movq	(%rcx,%rdx,8), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_9
## %bb.7:
	movl	%eax, %edx
	incl	%eax
	movq	%rcx, (%r13,%rdx,8)
	jmp	LBB0_9
LBB0_8:
	movl	$1, %eax
LBB0_9:
	movl	%eax, %eax
	movq	$0, (%r13,%rax,8)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	movl	8(%r12), %edi
	movl	16(%r12), %ecx
	movq	_CG_SOURCE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %r8
	movq	%r13, %r9
	je	LBB0_11
## %bb.10:
	callq	_cgCreateProgramFromFile
	jmp	LBB0_12
LBB0_11:
	callq	_cgCreateProgram
LBB0_12:
	movq	%rax, 8(%r14)
	movl	8(%r12), %edi
	callq	_cgGetLastListing
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, %rdi
	callq	_strdup
	jmp	LBB0_15
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	movl	8(%r12), %edi
	movl	12(%r12), %ecx
	movl	(%r15), %esi
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %r8
	movq	%r13, %r9
	je	LBB0_17
## %bb.16:
	callq	_cgCreateProgramFromFile
	jmp	LBB0_18
LBB0_17:
	callq	_cgCreateProgram
LBB0_18:
	movq	%rax, (%r14)
	movl	8(%r12), %edi
	callq	_cgGetLastListing
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%rax, %rdi
	callq	_strdup
	movq	%rax, %r15
	jmp	LBB0_21
LBB0_20:
	xorl	%r15d, %r15d
LBB0_21:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.22:
	cmpq	$0, (%r14)
	je	LBB0_24
## %bb.23:
	callq	_cgGLLoadProgram
	movq	(%r14), %rdi
	callq	_cgGLLoadProgram
	movl	$1, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_24:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_cgGetError
	movl	%eax, %edi
	callq	_cgGetErrorString
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_RARCH_ERR
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_32
## %bb.25:
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	jmp	LBB0_34
LBB0_26:
	movl	%r15d, %esi
	andl	$-2, %esi
	movl	$1, %eax
	xorl	%edx, %edx
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_28 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	LBB0_5
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	%eax, %ebx
	incl	%eax
	movq	%rdi, (%r13,%rbx,8)
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	8(%rcx,%rdx,8), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_27
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	%eax, %ebx
	incl	%eax
	movq	%rdi, (%r13,%rbx,8)
	jmp	LBB0_27
LBB0_32:
	testq	%r15, %r15
	je	LBB0_35
## %bb.33:
	leaq	L_.str.5(%rip), %rdi
	movq	%r15, %rsi
LBB0_34:
	callq	_RARCH_ERR
LBB0_35:
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFX_MAX_SHADERS,4,2            ## @GFX_MAX_SHADERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-DPARAMETER_UNIFORM"

	.comm	_CG_SOURCE,4,2                  ## @CG_SOURCE
L_.str.1:                               ## @.str.1
	.asciz	"main_fragment"

L_.str.2:                               ## @.str.2
	.asciz	"main_vertex"

L_.str.3:                               ## @.str.3
	.asciz	"CG error: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Fragment:\n%s\n"

L_.str.5:                               ## @.str.5
	.asciz	"Vertex:\n%s\n"

	.no_dead_strip	_gl_cg_compile_program
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl_cg_compile_program
_gl_cg_compile_program:                 ; @gl_cg_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
	sub	sp, sp, #16
	mov	x22, x3
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _GFX_MAX_SHADERS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFX_MAX_SHADERS@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	add	w8, w12, #2
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	cbnz	x2, LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
	add	x19, x8, w1, uxtw #4
LBB0_2:
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x21]
	cbz	w12, LBB0_7
; %bb.3:
	ldr	x9, [x20]
	mov	w8, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #8
	subs	x12, x12, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldrb	w11, [x10]
	cbz	w11, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x10, [x21, w8, uxtw #3]
	add	w8, w8, #1
	b	LBB0_4
LBB0_7:
	mov	w8, #1
LBB0_8:
	str	xzr, [x21, w8, uxtw #3]
	ldr	x8, [x22, #8]
	ldr	w0, [x20, #8]
Lloh10:
	adrp	x24, _CG_SOURCE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _CG_SOURCE@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x22]
	ldr	w3, [x20, #16]
Lloh12:
	adrp	x4, l_.str.1@PAGE
Lloh13:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x5, x21
	cbz	x8, LBB0_10
; %bb.9:
	bl	_cgCreateProgramFromFile
	b	LBB0_11
LBB0_10:
	bl	_cgCreateProgram
LBB0_11:
	str	x0, [x19, #8]
	ldr	w0, [x20, #8]
	bl	_cgGetLastListing
	cbz	x0, LBB0_13
; %bb.12:
	bl	_strdup
	mov	x23, x0
	b	LBB0_14
LBB0_13:
	mov	x23, #0
LBB0_14:
	ldr	x8, [x22, #8]
	ldr	w1, [x24]
	ldr	w2, [x22]
	ldp	w0, w3, [x20, #8]
Lloh14:
	adrp	x4, l_.str.2@PAGE
Lloh15:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x5, x21
	cbz	x8, LBB0_16
; %bb.15:
	bl	_cgCreateProgramFromFile
	b	LBB0_17
LBB0_16:
	bl	_cgCreateProgram
LBB0_17:
	str	x0, [x19]
	ldr	w0, [x20, #8]
	bl	_cgGetLastListing
	cbz	x0, LBB0_19
; %bb.18:
	bl	_strdup
	mov	x20, x0
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_20
	b	LBB0_22
LBB0_19:
	mov	x20, #0
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_22
LBB0_20:
	ldr	x8, [x19]
	cbz	x8, LBB0_22
; %bb.21:
	bl	_cgGLLoadProgram
	ldr	x0, [x19]
	bl	_cgGLLoadProgram
	mov	w19, #1
	b	LBB0_28
LBB0_22:
	bl	_cgGetError
	bl	_cgGetErrorString
	mov	x1, x0
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_RARCH_ERR
	cbz	x23, LBB0_24
; %bb.23:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x23
	b	LBB0_26
LBB0_24:
	cbz	x20, LBB0_27
; %bb.25:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
LBB0_26:
	bl	_RARCH_ERR
LBB0_27:
	mov	w19, #0
LBB0_28:
	mov	x0, x23
	bl	_free
	mov	x0, x20
	bl	_free
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.29:
	mov	x0, x19
	sub	sp, x29, #48
	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_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFX_MAX_SHADERS,4,2            ; @GFX_MAX_SHADERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-DPARAMETER_UNIFORM"

	.comm	_CG_SOURCE,4,2                  ; @CG_SOURCE
l_.str.1:                               ; @.str.1
	.asciz	"main_fragment"

l_.str.2:                               ; @.str.2
	.asciz	"main_vertex"

l_.str.3:                               ; @.str.3
	.asciz	"CG error: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Fragment:\n%s\n"

l_.str.5:                               ; @.str.5
	.asciz	"Vertex:\n%s\n"

	.no_dead_strip	_gl_cg_compile_program
.subsections_via_symbols
