	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function R_CreateBuiltinImages
LCPI0_0:
	.space	4
	.long	255                             ## 0xff
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_R_CreateBuiltinImages
	.p2align	4, 0x90
_R_CreateBuiltinImages:                 ## @R_CreateBuiltinImages
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DEFAULT_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movq	%r15, %rbx
	imulq	%r15, %rbx
	movq	%rbx, %rax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	xorl	%eax, %eax
	callq	_R_CreateDefaultImage
	shll	$4, %ebx
	movq	%r14, %rdi
	movl	$255, %esi
	movl	%ebx, %edx
	callq	_Com_Memset
	movq	_IMGTYPE_COLORALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IMGFLAG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	movl	$8, %ecx
	pushq	$0
	callq	_R_CreateImage
	addq	$16, %rsp
	movq	_tr@GOTPCREL(%rip), %rcx
	movq	%rax, 24(%rcx)
	movl	(%r12), %r9d
	testl	%r9d, %r9d
	jle	LBB0_10
## %bb.1:
	leaq	-1(%r9), %r8
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <u,255,u,u>
	movq	_tr@GOTPCREL(%rip), %rax
	pinsrd	$0, (%rax), %xmm0
	pshufd	$64, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,0,1]
	movl	%r9d, %r10d
	andl	$3, %r10d
	movl	%r9d, %esi
	andl	$-4, %esi
	movq	%r15, %rdi
	shlq	$5, %rdi
	movq	%r15, %rbx
	shlq	$6, %rbx
	movq	%r15, %rcx
	shlq	$4, %rcx
	leaq	(%rcx,%rcx,2), %rax
	xorl	%r11d, %r11d
	movq	%r14, %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r11
	addq	$16, %r13
	cmpq	%r9, %r11
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	cmpq	$3, %r8
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqa	%xmm0, (%rdx)
	movdqa	%xmm0, (%rdx,%rcx)
	movdqa	%xmm0, (%rdx,%rdi)
	movdqa	%xmm0, (%rdx,%rax)
	addq	$4, %r12
	addq	%rbx, %rdx
	cmpq	%r12, %rsi
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r10, %r10
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	imulq	%r15, %r12
	shlq	$4, %r12
	addq	%r13, %r12
	movq	%r10, %rdx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqa	%xmm0, (%r12)
	addq	%rcx, %r12
	decq	%rdx
	jne	LBB0_8
	jmp	LBB0_9
LBB0_10:
	movq	_IMGTYPE_COLORALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IMGFLAG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	movl	$8, %ecx
	pushq	$0
	callq	_R_CreateImage
	addq	$16, %rsp
	movq	_tr@GOTPCREL(%rip), %rcx
	movq	%rax, 16(%rcx)
	xorl	%ebx, %ebx
	movq	_IMGFLAG_CLAMPTOEDGE@GOTPCREL(%rip), %r13
	leaq	L_.str.2(%rip), %r15
	movq	%r14, %r12
	movq	_DEFAULT_SIZE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ecx
	movq	_IMGTYPE_COLORALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r13), %r9d
	movq	_IMGFLAG_PICMIP@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ecx, %edx
	pushq	$0
	callq	_R_CreateImage
	addq	$16, %rsp
	movq	_tr@GOTPCREL(%rip), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	$32, %rbx
	jne	LBB0_11
## %bb.12:
	xorl	%eax, %eax
	callq	_R_CreateDlightImage
	xorl	%eax, %eax
	callq	_R_CreateFogImage
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_SIZE,4,2               ## @DEFAULT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*white"

	.comm	_IMGTYPE_COLORALPHA,4,2         ## @IMGTYPE_COLORALPHA
	.comm	_IMGFLAG_NONE,4,2               ## @IMGFLAG_NONE
	.comm	_tr,32,3                        ## @tr
L_.str.1:                               ## @.str.1
	.asciz	"*identityLight"

L_.str.2:                               ## @.str.2
	.asciz	"*scratch"

	.comm	_IMGFLAG_PICMIP,4,2             ## @IMGFLAG_PICMIP
	.comm	_IMGFLAG_CLAMPTOEDGE,4,2        ## @IMGFLAG_CLAMPTOEDGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_CreateBuiltinImages          ; -- Begin function R_CreateBuiltinImages
	.p2align	2
_R_CreateBuiltinImages:                 ; @R_CreateBuiltinImages
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x21, _DEFAULT_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DEFAULT_SIZE@GOTPAGEOFF]
	ldr	w25, [x21]
	mul	x20, x25, x25
	lsl	x8, x20, #4
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x19, x9, x8
	mov	sp, x19
	bl	_R_CreateDefaultImage
	lsl	w2, w20, #4
	mov	w20, #255
	mov	x0, x19
	mov	w1, #255
	bl	_Com_Memset
Lloh7:
	adrp	x22, _IMGTYPE_COLORALPHA@GOTPAGE
Lloh8:
	ldr	x22, [x22, _IMGTYPE_COLORALPHA@GOTPAGEOFF]
	ldr	w4, [x22]
Lloh9:
	adrp	x24, _IMGFLAG_NONE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _IMGFLAG_NONE@GOTPAGEOFF]
	ldr	w5, [x24]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	w2, #8
	mov	w3, #8
	mov	w6, #0
	bl	_R_CreateImage
Lloh13:
	adrp	x23, _tr@GOTPAGE
Lloh14:
	ldr	x23, [x23, _tr@GOTPAGEOFF]
	str	x0, [x23, #24]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x9, #0
	ldr	w10, [x23]
	add	x11, x19, #8
	lsl	x12, x25, #4
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x13, x8
	mov	x14, x11
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	w10, w10, [x14, #-8]
	stp	w10, w20, [x14]
	add	x14, x14, x12
	subs	x13, x13, #1
	b.ne	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	add	x11, x11, #16
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_5:
	ldr	w4, [x22]
	ldr	w5, [x24]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	w2, #8
	mov	w3, #8
	mov	w6, #0
	bl	_R_CreateImage
	mov	x24, #0
	str	x0, [x23, #16]
Lloh17:
	adrp	x25, _IMGFLAG_PICMIP@GOTPAGE
Lloh18:
	ldr	x25, [x25, _IMGFLAG_PICMIP@GOTPAGEOFF]
Lloh19:
	adrp	x26, _IMGFLAG_CLAMPTOEDGE@GOTPAGE
Lloh20:
	ldr	x26, [x26, _IMGFLAG_CLAMPTOEDGE@GOTPAGEOFF]
Lloh21:
	adrp	x20, l_.str.2@PAGE
Lloh22:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	ldr	w4, [x22]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w5, w9, w8
	mov	x0, x20
	mov	x1, x19
	mov	x3, x2
	mov	w6, #0
	bl	_R_CreateImage
	ldr	x8, [x23, #8]
	str	x0, [x8, x24]
	add	x24, x24, #8
	cmp	x24, #256
	b.ne	LBB0_6
; %bb.7:
	bl	_R_CreateDlightImage
	bl	_R_CreateFogImage
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #64
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_SIZE,4,2               ; @DEFAULT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*white"

	.comm	_IMGTYPE_COLORALPHA,4,2         ; @IMGTYPE_COLORALPHA
	.comm	_IMGFLAG_NONE,4,2               ; @IMGFLAG_NONE
	.comm	_tr,32,3                        ; @tr
l_.str.1:                               ; @.str.1
	.asciz	"*identityLight"

l_.str.2:                               ; @.str.2
	.asciz	"*scratch"

	.comm	_IMGFLAG_PICMIP,4,2             ; @IMGFLAG_PICMIP
	.comm	_IMGFLAG_CLAMPTOEDGE,4,2        ; @IMGFLAG_CLAMPTOEDGE
.subsections_via_symbols
