	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ParseSkyParms
_ParseSkyParms:                         ## @ParseSkyParms
	.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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_COM_ParseExt
	cmpb	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.7(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	xorl	%r15d, %r15d
	movq	_GL_CLAMP@GOTPCREL(%rip), %r13
	movq	_shader@GOTPCREL(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %r15
	cmpq	$48, %r15
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	_ParseSkyParms.suf(%rip), %rax
	movq	(%r15,%rax), %r8
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str.8(%rip), %rdx
	movq	%r12, %rcx
	callq	_Com_sprintf
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_R_FindImageFile
	movq	24(%r14), %rcx
	movq	%rax, (%rcx,%r15)
	movq	24(%r14), %rax
	cmpq	$0, (%rax,%r15)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_tr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax,%r15)
	jmp	LBB0_7
LBB0_8:
	movq	_qfalse@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_COM_ParseExt
	cmpb	$0, (%rax)
	je	LBB0_9
## %bb.10:
	movq	%rax, %rdi
	callq	_atof
	testl	%eax, %eax
	movl	$512, %edi                      ## imm = 0x200
	cmovnel	%eax, %edi
	movq	_shader@GOTPCREL(%rip), %r13
	movl	%edi, 8(%r13)
	callq	_R_InitSkyTexCoords
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_COM_ParseExt
	cmpb	$0, (%rax)
	je	LBB0_11
## %bb.13:
	movq	%rax, %r15
	leaq	L_.str.7(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	xorl	%r12d, %r12d
	movq	_GL_REPEAT@GOTPCREL(%rip), %r14
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$8, %r12
	cmpq	$48, %r12
	je	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	leaq	_ParseSkyParms.suf(%rip), %rax
	movq	(%r12,%rax), %r8
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str.8(%rip), %rdx
	movq	%r15, %rcx
	callq	_Com_sprintf
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_R_FindImageFile
	movq	16(%r13), %rcx
	movq	%rax, (%rcx,%r12)
	movq	16(%r13), %rax
	cmpq	$0, (%rax,%r12)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_tr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax,%r12)
	jmp	LBB0_17
LBB0_1:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PRINT_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_shader@GOTPCREL(%rip), %rcx
	movl	32(%rcx), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.2:
	leaq	L_.str.6(%rip), %rsi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_18:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	jmp	LBB0_19
LBB0_9:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_shader@GOTPCREL(%rip), %rcx
	movl	32(%rcx), %edx
	jmp	LBB0_12
LBB0_11:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	32(%r13), %edx
LBB0_12:
	leaq	L_.str.6(%rip), %rsi
	callq	*(%rax)
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @ParseSkyParms.suf
_ParseSkyParms.suf:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rt"

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

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

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

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

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

	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_WARNING,4,2              ## @PRINT_WARNING
L_.str.6:                               ## @.str.6
	.asciz	"WARNING: 'skyParms' missing parameter in shader '%s'\n"

	.comm	_shader,40,3                    ## @shader
L_.str.7:                               ## @.str.7
	.asciz	"-"

L_.str.8:                               ## @.str.8
	.asciz	"%s_%s.tga"

	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_GL_CLAMP,4,2                   ## @GL_CLAMP
	.comm	_tr,8,3                         ## @tr
	.comm	_GL_REPEAT,4,2                  ## @GL_REPEAT
	.no_dead_strip	_ParseSkyParms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ParseSkyParms
_ParseSkyParms:                         ; @ParseSkyParms
	.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, #16
	mov	x21, x0
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_QPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x8, _qfalse@GOTPAGE
Lloh9:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_COM_ParseExt
	ldrb	w8, [x0]
	cbz	w8, LBB0_14
; %bb.1:
	mov	x22, x0
	stur	x21, [x29, #-96]                ; 8-byte Folded Spill
Lloh11:
	adrp	x1, l_.str.7@PAGE
Lloh12:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
Lloh13:
	adrp	x24, _shader@GOTPAGE
Lloh14:
	ldr	x24, [x24, _shader@GOTPAGEOFF]
Lloh15:
	adrp	x25, _qtrue@GOTPAGE
Lloh16:
	ldr	x25, [x25, _qtrue@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x27, #0
Lloh17:
	adrp	x28, _ParseSkyParms.suf@PAGE
Lloh18:
	add	x28, x28, _ParseSkyParms.suf@PAGEOFF
Lloh19:
	adrp	x26, _GL_CLAMP@GOTPAGE
Lloh20:
	ldr	x26, [x26, _GL_CLAMP@GOTPAGEOFF]
Lloh21:
	adrp	x21, _tr@GOTPAGE
Lloh22:
	ldr	x21, [x21, _tr@GOTPAGEOFF]
Lloh23:
	adrp	x23, l_.str.8@PAGE
Lloh24:
	add	x23, x23, l_.str.8@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #8
	cmp	x27, #48
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x4, [x28, x27]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_Com_sprintf
	ldr	w1, [x25]
	ldr	w3, [x26]
	mov	x0, x20
	mov	x2, x1
	bl	_R_FindImageFile
	ldr	x8, [x24, #24]
	str	x0, [x8, x27]
	ldr	x8, [x24, #24]
	ldr	x9, [x8, x27]
	cbnz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
	str	x9, [x8, x27]
	b	LBB0_3
LBB0_6:
Lloh25:
	adrp	x22, _qfalse@GOTPAGE
Lloh26:
	ldr	x22, [x22, _qfalse@GOTPAGEOFF]
	ldr	w1, [x22]
	ldur	x21, [x29, #-96]                ; 8-byte Folded Reload
	mov	x0, x21
	bl	_COM_ParseExt
	ldrb	w8, [x0]
	cbz	w8, LBB0_13
; %bb.7:
	bl	_atof
	mov	w8, #512
	cmp	w0, #0
	csel	w0, w8, w0, eq
	str	w0, [x24, #8]
	bl	_R_InitSkyTexCoords
	ldr	w1, [x22]
	mov	x0, x21
	bl	_COM_ParseExt
	ldrb	w8, [x0]
	cbz	w8, LBB0_13
; %bb.8:
	mov	x21, x0
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.9:
	mov	x23, #0
Lloh29:
	adrp	x26, _ParseSkyParms.suf@PAGE
Lloh30:
	add	x26, x26, _ParseSkyParms.suf@PAGEOFF
Lloh31:
	adrp	x27, _GL_REPEAT@GOTPAGE
Lloh32:
	ldr	x27, [x27, _GL_REPEAT@GOTPAGEOFF]
Lloh33:
	adrp	x28, _tr@GOTPAGE
Lloh34:
	ldr	x28, [x28, _tr@GOTPAGEOFF]
Lloh35:
	adrp	x22, l_.str.8@PAGE
Lloh36:
	add	x22, x22, l_.str.8@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #8
	cmp	x23, #48
	b.eq	LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x4, [x26, x23]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_Com_sprintf
	ldr	w1, [x25]
	ldr	w3, [x27]
	mov	x0, x20
	mov	x2, x1
	bl	_R_FindImageFile
	ldr	x8, [x24, #16]
	str	x0, [x8, x23]
	ldr	x8, [x24, #16]
	ldr	x9, [x8, x23]
	cbnz	x9, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x28]
	str	x9, [x8, x23]
	b	LBB0_10
LBB0_13:
Lloh37:
	adrp	x8, _ri@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
Lloh40:
	adrp	x9, _PRINT_WARNING@GOTPAGE
Lloh41:
	ldr	x9, [x9, _PRINT_WARNING@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x9]
	ldr	w2, [x24, #32]
Lloh43:
	adrp	x1, l_.str.6@PAGE
Lloh44:
	add	x1, x1, l_.str.6@PAGEOFF
	blr	x8
	b	LBB0_17
LBB0_14:
Lloh45:
	adrp	x8, _ri@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh47:
	ldr	x3, [x8]
Lloh48:
	adrp	x8, _PRINT_WARNING@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PRINT_WARNING@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
Lloh51:
	adrp	x8, _shader@GOTPAGE
Lloh52:
	ldr	x8, [x8, _shader@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8, #32]
	ldur	x8, [x29, #-88]
Lloh54:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh55:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.15:
Lloh57:
	adrp	x1, l_.str.6@PAGE
Lloh58:
	add	x1, x1, l_.str.6@PAGEOFF
	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
	br	x3
LBB0_16:
	ldr	w8, [x25]
	str	w8, [x24]
LBB0_17:
	ldur	x8, [x29, #-88]
Lloh59:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh60:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	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_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @ParseSkyParms.suf
_ParseSkyParms.suf:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rt"

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

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

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

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

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

	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_WARNING,4,2              ; @PRINT_WARNING
l_.str.6:                               ; @.str.6
	.asciz	"WARNING: 'skyParms' missing parameter in shader '%s'\n"

	.comm	_shader,40,3                    ; @shader
l_.str.7:                               ; @.str.7
	.asciz	"-"

l_.str.8:                               ; @.str.8
	.asciz	"%s_%s.tga"

	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_GL_CLAMP,4,2                   ; @GL_CLAMP
	.comm	_tr,8,3                         ; @tr
	.comm	_GL_REPEAT,4,2                  ; @GL_REPEAT
	.no_dead_strip	_ParseSkyParms
.subsections_via_symbols
