	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_cg_set_program_base_attrib
_gl_cg_set_program_base_attrib:         ## @gl_cg_set_program_base_attrib
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,4), %r13
	movl	(%rax,%r13,8), %edi
	movq	_CG_PROGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cgGetFirstParameter
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %rbx
	movq	_CG_IN@GOTPCREL(%rip), %r14
	movq	_CG_VARYING@GOTPCREL(%rip), %r15
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	leaq	(%rax,%r13,8), %rax
	addq	$32, %rax
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, (%rax)
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_cgGetNextParameter
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_cgGetParameterDirection
	cmpq	(%r14), %rax
	jne	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_cgGetParameterVariability
	cmpq	(%r15), %rax
	jne	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_cgGetParameterSemantic
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_RARCH_LOG
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	leaq	(%rax,%r13,8), %rax
	addq	$24, %rax
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	leaq	(%rax,%r13,8), %rax
	addq	$16, %rax
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	leaq	(%rax,%r13,8), %rax
	addq	$8, %rax
	jmp	LBB0_15
LBB0_17:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rcx
	cmpq	$0, 32(%rcx,%r13,8)
	je	LBB0_19
## %bb.18:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 24(%rcx,%r13,8)
	jne	LBB0_22
LBB0_21:
	leaq	(,%rbx,8), %rax
	leaq	(%rax,%rax,4), %r14
	movl	(%rcx,%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_cgGetNamedParameter
	movq	(%r15), %rcx
	movq	%rax, 24(%rcx,%r14)
LBB0_22:
	cmpq	$0, 16(%rcx,%r13,8)
	je	LBB0_23
## %bb.24:
	cmpq	$0, 8(%rcx,%r13,8)
	je	LBB0_25
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	(,%rbx,8), %rax
	leaq	(%rax,%rax,4), %r14
	movl	(%rcx,%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_cgGetNamedParameter
	movq	(%r15), %rcx
	movq	%rax, 32(%rcx,%r14)
	cmpq	$0, 24(%rcx,%r13,8)
	jne	LBB0_22
	jmp	LBB0_21
LBB0_23:
	leaq	(,%rbx,8), %rax
	leaq	(%rax,%rax,4), %r14
	movl	(%rcx,%r14), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_cgGetNamedParameter
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx,%r14)
	cmpq	$0, 8(%rcx,%r13,8)
	jne	LBB0_26
LBB0_25:
	shlq	$3, %rbx
	leaq	(%rbx,%rbx,4), %r14
	movl	(%rcx,%r14), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_cgGetNamedParameter
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx,%r14)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_CG_PROGRAM,4,2                 ## @CG_PROGRAM
	.comm	_CG_IN,8,3                      ## @CG_IN
	.comm	_CG_VARYING,8,3                 ## @CG_VARYING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CG]: Found semantic \"%s\" in prog #%u.\n"

L_.str.1:                               ## @.str.1
	.asciz	"TEXCOORD"

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

L_.str.3:                               ## @.str.3
	.asciz	"COLOR"

L_.str.4:                               ## @.str.4
	.asciz	"COLOR0"

L_.str.5:                               ## @.str.5
	.asciz	"POSITION"

L_.str.6:                               ## @.str.6
	.asciz	"TEXCOORD1"

L_.str.7:                               ## @.str.7
	.asciz	"IN.tex_coord"

L_.str.8:                               ## @.str.8
	.asciz	"IN.color"

L_.str.9:                               ## @.str.9
	.asciz	"IN.vertex_coord"

L_.str.10:                              ## @.str.10
	.asciz	"IN.lut_tex_coord"

	.no_dead_strip	_gl_cg_set_program_base_attrib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl_cg_set_program_base_attrib
_gl_cg_set_program_base_attrib:         ; @gl_cg_set_program_base_attrib
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	mov	w27, w1
	mov	w9, #40
	umull	x9, w1, w9
	ldr	w0, [x8, x9]
Lloh0:
	adrp	x8, _CG_PROGRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CG_PROGRAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cgGetFirstParameter
	cbz	x0, LBB0_17
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x26, _CG_IN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _CG_IN@GOTPAGEOFF]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
Lloh7:
	adrp	x25, _CG_VARYING@GOTPAGE
Lloh8:
	ldr	x25, [x25, _CG_VARYING@GOTPAGEOFF]
Lloh9:
	adrp	x23, l_.str.1@PAGE
Lloh10:
	add	x23, x23, l_.str.1@PAGEOFF
	mov	w24, #40
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	madd	x8, x27, x24, x8
	add	x8, x8, #32
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x21, [x8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_cgGetNextParameter
	mov	x21, x0
	cbz	x0, LBB0_17
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_cgGetParameterDirection
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_cgGetParameterVariability
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_cgGetParameterSemantic
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, x0
	mov	x0, x22
	mov	x1, x28
	mov	x2, x20
	bl	_RARCH_LOG
	mov	x0, x28
	mov	x1, x23
	bl	_string_is_equal
	cbnz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x28
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x28
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x28
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	madd	x8, x27, x24, x8
	add	x8, x8, #24
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x28
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	madd	x8, x27, x24, x8
	add	x8, x8, #16
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x28
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	madd	x8, x27, x24, x8
	add	x8, x8, #8
	b	LBB0_3
LBB0_17:
	ldr	x8, [x19]
	mov	w9, #40
	madd	x9, x27, x9, x8
	ldr	x9, [x9, #32]
	cbnz	x9, LBB0_19
; %bb.18:
	add	x9, x27, x27, lsl #2
	lsl	x20, x9, #3
	ldr	w0, [x8, x20]
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_cgGetNamedParameter
	ldr	x8, [x19]
	add	x9, x8, x20
	str	x0, [x9, #32]
LBB0_19:
	mov	w9, #40
	madd	x9, x27, x9, x8
	ldr	x9, [x9, #24]
	cbnz	x9, LBB0_21
; %bb.20:
	add	x9, x27, x27, lsl #2
	lsl	x20, x9, #3
	ldr	w0, [x8, x20]
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_cgGetNamedParameter
	ldr	x8, [x19]
	add	x9, x8, x20
	str	x0, [x9, #24]
LBB0_21:
	mov	w9, #40
	madd	x9, x27, x9, x8
	ldr	x9, [x9, #16]
	cbnz	x9, LBB0_23
; %bb.22:
	add	x9, x27, x27, lsl #2
	lsl	x20, x9, #3
	ldr	w0, [x8, x20]
Lloh25:
	adrp	x1, l_.str.9@PAGE
Lloh26:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_cgGetNamedParameter
	ldr	x8, [x19]
	add	x9, x8, x20
	str	x0, [x9, #16]
LBB0_23:
	mov	w9, #40
	madd	x9, x27, x9, x8
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_25
; %bb.24:
	add	x9, x27, x27, lsl #2
	lsl	x20, x9, #3
	ldr	w0, [x8, x20]
Lloh27:
	adrp	x1, l_.str.10@PAGE
Lloh28:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_cgGetNamedParameter
	ldr	x8, [x19]
	add	x8, x8, x20
	str	x0, [x8, #8]
LBB0_25:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_CG_PROGRAM,4,2                 ; @CG_PROGRAM
	.comm	_CG_IN,8,3                      ; @CG_IN
	.comm	_CG_VARYING,8,3                 ; @CG_VARYING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CG]: Found semantic \"%s\" in prog #%u.\n"

l_.str.1:                               ; @.str.1
	.asciz	"TEXCOORD"

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

l_.str.3:                               ; @.str.3
	.asciz	"COLOR"

l_.str.4:                               ; @.str.4
	.asciz	"COLOR0"

l_.str.5:                               ; @.str.5
	.asciz	"POSITION"

l_.str.6:                               ; @.str.6
	.asciz	"TEXCOORD1"

l_.str.7:                               ; @.str.7
	.asciz	"IN.tex_coord"

l_.str.8:                               ; @.str.8
	.asciz	"IN.color"

l_.str.9:                               ; @.str.9
	.asciz	"IN.vertex_coord"

l_.str.10:                              ; @.str.10
	.asciz	"IN.lut_tex_coord"

	.no_dead_strip	_gl_cg_set_program_base_attrib
.subsections_via_symbols
