	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_RenderMissingCubemaps        ## -- Begin function R_RenderMissingCubemaps
	.p2align	4, 0x90
_R_RenderMissingCubemaps:               ## @R_RenderMissingCubemaps
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_tr@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	_IMGFLAG_NO_COMPRESSION@GOTPCREL(%rip), %rcx
	movq	_IMGFLAG_CLAMPTOEDGE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	orl	(%rcx), %r15d
	movq	_IMGFLAG_MIPMAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_IMGFLAG_NOLIGHTSCALE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_IMGFLAG_CUBEMAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_GL_RGBA8@GOTPCREL(%rip), %r14
	movq	_qfalse@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	cmpq	$0, (%rcx,%rbx,8)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_va
	movq	_r_cubemapSize@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movq	_IMGTYPE_COLORALPHA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	(%r14), %edx
	movl	%edx, (%rsp)
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ecx, %edx
	movl	%r15d, %r9d
	callq	_R_CreateImage
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	xorl	%eax, %eax
	callq	_RE_ClearScene
	movl	(%r13), %edx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_R_RenderCubemapSide
	xorl	%eax, %eax
	callq	_R_IssuePendingRenderCommands
	xorl	%eax, %eax
	callq	_R_InitNextFrame
	xorl	%eax, %eax
	callq	_RE_ClearScene
	movl	(%r13), %edx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_R_RenderCubemapSide
	xorl	%eax, %eax
	callq	_R_IssuePendingRenderCommands
	xorl	%eax, %eax
	callq	_R_InitNextFrame
	xorl	%eax, %eax
	callq	_RE_ClearScene
	movl	(%r13), %edx
	movl	%ebx, %edi
	movl	$2, %esi
	callq	_R_RenderCubemapSide
	xorl	%eax, %eax
	callq	_R_IssuePendingRenderCommands
	xorl	%eax, %eax
	callq	_R_InitNextFrame
	xorl	%eax, %eax
	callq	_RE_ClearScene
	movl	(%r13), %edx
	movl	%ebx, %edi
	movl	$3, %esi
	callq	_R_RenderCubemapSide
	xorl	%eax, %eax
	callq	_R_IssuePendingRenderCommands
	xorl	%eax, %eax
	callq	_R_InitNextFrame
	xorl	%eax, %eax
	callq	_RE_ClearScene
	movl	(%r13), %edx
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_R_RenderCubemapSide
	xorl	%eax, %eax
	callq	_R_IssuePendingRenderCommands
	xorl	%eax, %eax
	callq	_R_InitNextFrame
	xorl	%eax, %eax
	callq	_RE_ClearScene
	movl	(%r13), %edx
	movl	%ebx, %edi
	movl	$5, %esi
	callq	_R_RenderCubemapSide
	xorl	%eax, %eax
	callq	_R_IssuePendingRenderCommands
	xorl	%eax, %eax
	callq	_R_InitNextFrame
	movl	(%r12), %eax
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMGFLAG_NO_COMPRESSION,4,2     ## @IMGFLAG_NO_COMPRESSION
	.comm	_IMGFLAG_CLAMPTOEDGE,4,2        ## @IMGFLAG_CLAMPTOEDGE
	.comm	_IMGFLAG_MIPMAP,4,2             ## @IMGFLAG_MIPMAP
	.comm	_IMGFLAG_NOLIGHTSCALE,4,2       ## @IMGFLAG_NOLIGHTSCALE
	.comm	_IMGFLAG_CUBEMAP,4,2            ## @IMGFLAG_CUBEMAP
	.comm	_tr,16,3                        ## @tr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*cubeMap%d"

	.comm	_r_cubemapSize,8,3              ## @r_cubemapSize
	.comm	_IMGTYPE_COLORALPHA,4,2         ## @IMGTYPE_COLORALPHA
	.comm	_GL_RGBA8,4,2                   ## @GL_RGBA8
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_RenderMissingCubemaps        ; -- Begin function R_RenderMissingCubemaps
	.p2align	2
_R_RenderMissingCubemaps:               ; @R_RenderMissingCubemaps
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x22, _tr@GOTPAGE
Lloh1:
	ldr	x22, [x22, _tr@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, #0
Lloh2:
	adrp	x9, _IMGFLAG_NO_COMPRESSION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IMGFLAG_NO_COMPRESSION@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _IMGFLAG_CLAMPTOEDGE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IMGFLAG_CLAMPTOEDGE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh8:
	adrp	x10, _IMGFLAG_MIPMAP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IMGFLAG_MIPMAP@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh11:
	adrp	x10, _IMGFLAG_NOLIGHTSCALE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IMGFLAG_NOLIGHTSCALE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh14:
	adrp	x10, _IMGFLAG_CUBEMAP@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IMGFLAG_CUBEMAP@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w20, w9, w10
Lloh17:
	adrp	x21, l_.str@PAGE
Lloh18:
	add	x21, x21, l_.str@PAGEOFF
Lloh19:
	adrp	x23, _r_cubemapSize@GOTPAGE
Lloh20:
	ldr	x23, [x23, _r_cubemapSize@GOTPAGEOFF]
Lloh21:
	adrp	x24, _IMGTYPE_COLORALPHA@GOTPAGE
Lloh22:
	ldr	x24, [x24, _IMGTYPE_COLORALPHA@GOTPAGEOFF]
Lloh23:
	adrp	x25, _GL_RGBA8@GOTPAGE
Lloh24:
	ldr	x25, [x25, _GL_RGBA8@GOTPAGEOFF]
Lloh25:
	adrp	x26, _qfalse@GOTPAGE
Lloh26:
	ldr	x26, [x26, _qfalse@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	cmp	x19, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	ldr	x9, [x9, x19, lsl #3]
	cbnz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_va
	ldr	x8, [x23]
	ldr	w2, [x8]
	ldr	w4, [x24]
	ldr	w6, [x25]
	mov	x1, #0
	mov	x3, x2
	mov	x5, x20
	bl	_R_CreateImage
	ldr	x8, [x22, #8]
	str	x0, [x8, x19, lsl #3]
	bl	_RE_ClearScene
	ldr	w2, [x26]
	mov	x0, x19
	mov	w1, #0
	bl	_R_RenderCubemapSide
	bl	_R_IssuePendingRenderCommands
	bl	_R_InitNextFrame
	bl	_RE_ClearScene
	ldr	w2, [x26]
	mov	x0, x19
	mov	w1, #1
	bl	_R_RenderCubemapSide
	bl	_R_IssuePendingRenderCommands
	bl	_R_InitNextFrame
	bl	_RE_ClearScene
	ldr	w2, [x26]
	mov	x0, x19
	mov	w1, #2
	bl	_R_RenderCubemapSide
	bl	_R_IssuePendingRenderCommands
	bl	_R_InitNextFrame
	bl	_RE_ClearScene
	ldr	w2, [x26]
	mov	x0, x19
	mov	w1, #3
	bl	_R_RenderCubemapSide
	bl	_R_IssuePendingRenderCommands
	bl	_R_InitNextFrame
	bl	_RE_ClearScene
	ldr	w2, [x26]
	mov	x0, x19
	mov	w1, #4
	bl	_R_RenderCubemapSide
	bl	_R_IssuePendingRenderCommands
	bl	_R_InitNextFrame
	bl	_RE_ClearScene
	ldr	w2, [x26]
	mov	x0, x19
	mov	w1, #5
	bl	_R_RenderCubemapSide
	bl	_R_IssuePendingRenderCommands
	bl	_R_InitNextFrame
	ldr	w8, [x22]
	b	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IMGFLAG_NO_COMPRESSION,4,2     ; @IMGFLAG_NO_COMPRESSION
	.comm	_IMGFLAG_CLAMPTOEDGE,4,2        ; @IMGFLAG_CLAMPTOEDGE
	.comm	_IMGFLAG_MIPMAP,4,2             ; @IMGFLAG_MIPMAP
	.comm	_IMGFLAG_NOLIGHTSCALE,4,2       ; @IMGFLAG_NOLIGHTSCALE
	.comm	_IMGFLAG_CUBEMAP,4,2            ; @IMGFLAG_CUBEMAP
	.comm	_tr,16,3                        ; @tr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*cubeMap%d"

	.comm	_r_cubemapSize,8,3              ; @r_cubemapSize
	.comm	_IMGTYPE_COLORALPHA,4,2         ; @IMGTYPE_COLORALPHA
	.comm	_GL_RGBA8,4,2                   ; @GL_RGBA8
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
