	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadShaderInfo                 ## -- Begin function LoadShaderInfo
	.p2align	4, 0x90
_LoadShaderInfo:                        ## @LoadShaderInfo
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, -1080(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SHADER_FILES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_gamedir@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movq	%rbx, %rdi
	callq	_LoadScriptFile
	movq	_qtrue@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_GetToken
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	_MAX_OS_PATH@GOTPCREL(%rip), %r15
	movq	_token@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_malloc
	movq	%rax, (%r13,%rbx,8)
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_strcpy
	incq	%rbx
	movl	(%r14), %edi
	callq	_GetToken
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	testl	%ebx, %ebx
	movq	_gamedir@GOTPCREL(%rip), %r12
	je	LBB0_6
## %bb.4:
	movl	%ebx, %ecx
	movq	%rcx, -1088(%rbp)               ## 8-byte Spill
	leaq	-1072(%rbp), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdx
	movq	(%r13,%r14,8), %rbx
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_sprintf
	movq	%r15, %rdi
	callq	_ParseShaderFile
	movq	%rbx, %rdi
	callq	_free
	incq	%r14
	cmpq	%r14, -1088(%rbp)               ## 8-byte Folded Reload
	jne	LBB0_5
LBB0_6:
	movq	_numShaderInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_qprintf
	movq	-1080(%rbp), %rsp               ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SHADER_FILES,4,2           ## @MAX_SHADER_FILES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sscripts/shaderlist.txt"

	.comm	_gamedir,8,3                    ## @gamedir
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_MAX_OS_PATH,4,2                ## @MAX_OS_PATH
	.comm	_token,4,2                      ## @token
L_.str.1:                               ## @.str.1
	.asciz	"%sscripts/%s.shader"

L_.str.2:                               ## @.str.2
	.asciz	"%5i shaderInfo\n"

	.comm	_numShaderInfo,4,2              ## @numShaderInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadShaderInfo                 ; -- Begin function LoadShaderInfo
	.p2align	2
_LoadShaderInfo:                        ; @LoadShaderInfo
	.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
	sub	sp, sp, #1040
	mov	x19, sp
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_SHADER_FILES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SHADER_FILES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	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	x23, x9, x8
	mov	sp, x23
Lloh8:
	adrp	x24, _gamedir@GOTPAGE
Lloh9:
	ldr	x24, [x24, _gamedir@GOTPAGEOFF]
	ldr	x2, [x24]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, x19, #8
	bl	_sprintf
	add	x0, x19, #8
	bl	_LoadScriptFile
Lloh12:
	adrp	x20, _qtrue@GOTPAGE
Lloh13:
	ldr	x20, [x20, _qtrue@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_GetToken
	cbz	w0, LBB0_6
; %bb.1:
	mov	x21, #0
Lloh14:
	adrp	x25, _MAX_OS_PATH@GOTPAGE
Lloh15:
	ldr	x25, [x25, _MAX_OS_PATH@GOTPAGEOFF]
Lloh16:
	adrp	x26, _token@GOTPAGE
Lloh17:
	ldr	x26, [x26, _token@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	bl	_malloc
	str	x0, [x23, x21, lsl #3]
	ldr	w1, [x26]
	bl	_strcpy
	add	x21, x21, #1
	ldr	w0, [x20]
	bl	_GetToken
	cbnz	w0, LBB0_2
; %bb.3:
	cbz	w21, LBB0_6
; %bb.4:
	and	x25, x21, #0xffffffff
Lloh18:
	adrp	x20, l_.str.1@PAGE
Lloh19:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x24]
	ldr	x21, [x23], #8
	str	x21, [sp, #-16]!
	add	x0, x19, #8
	mov	x1, x20
	bl	_sprintf
	add	sp, sp, #16
	add	x0, x19, #8
	bl	_ParseShaderFile
	mov	x0, x21
	bl	_free
	subs	x25, x25, #1
	b.ne	LBB0_5
LBB0_6:
Lloh20:
	adrp	x8, _numShaderInfo@GOTPAGE
Lloh21:
	ldr	x8, [x8, _numShaderInfo@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_qprintf
	mov	sp, x22
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #80
	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
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SHADER_FILES,4,2           ; @MAX_SHADER_FILES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sscripts/shaderlist.txt"

	.comm	_gamedir,8,3                    ; @gamedir
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_MAX_OS_PATH,4,2                ; @MAX_OS_PATH
	.comm	_token,4,2                      ; @token
l_.str.1:                               ; @.str.1
	.asciz	"%sscripts/%s.shader"

l_.str.2:                               ; @.str.2
	.asciz	"%5i shaderInfo\n"

	.comm	_numShaderInfo,4,2              ; @numShaderInfo
.subsections_via_symbols
