	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shader_glsl_validate_link      ## -- Begin function shader_glsl_validate_link
	.p2align	4, 0x90
_shader_glsl_validate_link:             ## @shader_glsl_validate_link
	.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	%esi, %ebx
	movq	%rdi, %r14
	movq	_d3d_shader@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_TRACE_ON
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	callq	_FIXME_ON
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	movq	_GL_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movl	%ebx, %edi
	callq	_glGetProgramiv
	movl	%eax, %edi
	callq	_GL_EXTCALL
	cmpl	$0, -28(%rbp)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_FIXME
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_shader_glsl_dump_program_source
LBB0_4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_print_glsl_info_log
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_d3d_shader,4,2                 ## @d3d_shader
	.comm	_GL_LINK_STATUS,4,2             ## @GL_LINK_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Program %u link status invalid.\n"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shader_glsl_validate_link      ; -- Begin function shader_glsl_validate_link
	.p2align	2
_shader_glsl_validate_link:             ; @shader_glsl_validate_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _d3d_shader@GOTPAGE
Lloh1:
	ldr	x21, [x21, _d3d_shader@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_TRACE_ON
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	bl	_FIXME_ON
	cbz	w0, LBB0_5
LBB0_2:
Lloh2:
	adrp	x8, _GL_LINK_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_LINK_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_glGetProgramiv
	bl	_GL_EXTCALL
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_FIXME
	mov	x0, x20
	mov	x1, x19
	bl	_shader_glsl_dump_program_source
LBB0_4:
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_print_glsl_info_log
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_d3d_shader,4,2                 ; @d3d_shader
	.comm	_GL_LINK_STATUS,4,2             ; @GL_LINK_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Program %u link status invalid.\n"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
