	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function R_LoadLightmaps
LCPI0_0:
	.long	0x3f2f5c29                      ## float 0.685000002
LCPI0_1:
	.long	0x3ea8f5c3                      ## float 0.330000013
LCPI0_2:
	.long	0x3d810625                      ## float 0.063000001
LCPI0_3:
	.long	0x3f800000                      ## float 1
LCPI0_4:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_5:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_6:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_R_LoadLightmaps:                       ## @R_LoadLightmaps
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LIGHTMAP_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	imull	%eax, %eax
	shll	$2, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r12), %r13d
	testl	%r13d, %r13d
	je	LBB0_21
## %bb.1:
	movq	_fileBase@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movslq	4(%r12), %r12
	xorl	%eax, %eax
	callq	_R_IssuePendingRenderCommands
	movl	(%rbx), %eax
	imull	%eax, %eax
	leal	(%rax,%rax,2), %ecx
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	cmpl	$1, %eax
	movl	$2, %edi
	cmovnel	%eax, %edi
	movq	_tr@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_r_vertexLight@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_21
## %bb.2:
	movq	_glConfig@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GLHW_PERMEDIA2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
## %bb.3:
	movq	_ri@GOTPCREL(%rip), %rcx
	shll	$3, %edi
	movq	_h_low@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*8(%rcx)
	movq	_tr@GOTPCREL(%rip), %rcx
	movq	%rax, 8(%rcx)
	cmpl	$0, (%rcx)
	jle	LBB0_18
## %bb.4:
	leaq	(%r14,%r12,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorps	%xmm4, %xmm4
	xorl	%edx, %edx
	movss	LCPI0_4(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	xorl	%r14d, %r14d
	movq	_tr@GOTPCREL(%rip), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movaps	%xmm4, %xmm0
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movss	%xmm0, -68(%rbp)                ## 4-byte Spill
	leaq	L_.str(%rip), %rdi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_va
	movq	_LIGHTMAP_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_IMGTYPE_COLORALPHA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_IMGFLAG_NO_COMPRESSION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	_IMGFLAG_NOLIGHTSCALE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r9d
	movq	_IMGFLAG_CLAMPTOEDGE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r9d
	subq	$8, %rsp
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	%ecx, %edx
	pushq	$0
	callq	_R_CreateImage
	movss	-68(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_4(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	addq	$16, %rsp
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%r14,4)
	incq	%r14
	movslq	(%r12), %rax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	addl	$3, %edx
	movaps	%xmm0, %xmm4
	cmpq	%rax, %r14
	jge	LBB0_19
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	movl	(%rbx), %eax
	movq	_r_lightmap@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	imull	%eax, %eax
	cmpl	$2, (%rcx)
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%eax, %eax
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	imull	%edx, %eax
	cltq
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r13
	addq	$8, %r13
	movl	$3, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=2
	movaps	%xmm0, %xmm1
	maxss	%xmm4, %xmm1
	movss	%xmm1, -68(%rbp)                ## 4-byte Spill
	movsd	LCPI0_5(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	LCPI0_6(%rip), %xmm2            ## xmm2 = mem[0],zero
	leaq	-64(%rbp), %rdi
	callq	_HSVtoRGB
	movss	LCPI0_4(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movss	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm0
	leal	-3(%rbx), %eax
	movss	%xmm0, (%r15,%rax,4)
	movss	-60(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm0
	leal	-2(%rbx), %eax
	movss	%xmm0, (%r15,%rax,4)
	movss	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm0
	leal	-1(%rbx), %eax
	movss	%xmm0, (%r15,%rax,4)
	movss	-68(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%ebx, %eax
	movl	$1132396544, (%r15,%rax,4)      ## imm = 0x437F0000
	incq	%r14
	movq	_LIGHTMAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%eax, %eax
	addq	$12, %r13
	addl	$4, %ebx
	movaps	%xmm0, %xmm4
	cmpq	%rax, %r14
	jae	LBB0_6
LBB0_11:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	-8(%r13), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	-4(%r13), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	movss	(%r13), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movl	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	mulss	LCPI0_0(%rip), %xmm2
	mulss	LCPI0_1(%rip), %xmm0
	addss	%xmm2, %xmm0
	mulss	LCPI0_2(%rip), %xmm1
	addss	%xmm0, %xmm1
	ucomiss	%xmm3, %xmm1
	movss	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	ja	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	divss	%xmm3, %xmm1
	movaps	%xmm1, %xmm0
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%eax, %eax
	je	LBB0_5
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movss	%xmm4, -68(%rbp)                ## 4-byte Spill
	imull	%edx, %eax
	cltq
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	movq	%r15, %r13
	xorl	%ebx, %ebx
	movq	_LIGHTMAP_SIZE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_R_ColorShiftLightingBytes
	movl	$1132396544, 12(%r13)           ## imm = 0x437F0000
	incq	%rbx
	movl	(%r12), %eax
	imull	%eax, %eax
	addq	$12, %r14
	addq	$16, %r13
	cmpq	%rax, %rbx
	jb	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movss	-68(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	_tr@GOTPCREL(%rip), %r12
	jmp	LBB0_6
LBB0_18:
	xorps	%xmm0, %xmm0
LBB0_19:
	movq	_r_lightmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$2, (%rax)
	jne	LBB0_21
## %bb.20:
	movq	_PRINT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	mulss	LCPI0_4(%rip), %xmm0
	cvttss2si	%xmm0, %edx
	leaq	L_.str.1(%rip), %rsi
	movq	_ri@GOTPCREL(%rip), %rax
	callq	*(%rax)
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LIGHTMAP_SIZE,4,2              ## @LIGHTMAP_SIZE
	.comm	_fileBase,8,3                   ## @fileBase
	.comm	_tr,16,3                        ## @tr
	.comm	_r_vertexLight,8,3              ## @r_vertexLight
	.comm	_glConfig,8,3                   ## @glConfig
	.comm	_GLHW_PERMEDIA2,8,3             ## @GLHW_PERMEDIA2
	.comm	_ri,16,3                        ## @ri
	.comm	_h_low,4,2                      ## @h_low
	.comm	_r_lightmap,8,3                 ## @r_lightmap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*lightmap%d"

	.comm	_IMGTYPE_COLORALPHA,4,2         ## @IMGTYPE_COLORALPHA
	.comm	_IMGFLAG_NOLIGHTSCALE,4,2       ## @IMGFLAG_NOLIGHTSCALE
	.comm	_IMGFLAG_NO_COMPRESSION,4,2     ## @IMGFLAG_NO_COMPRESSION
	.comm	_IMGFLAG_CLAMPTOEDGE,4,2        ## @IMGFLAG_CLAMPTOEDGE
	.comm	_PRINT_ALL,4,2                  ## @PRINT_ALL
L_.str.1:                               ## @.str.1
	.asciz	"Brightest lightmap value: %d\n"

	.no_dead_strip	_R_LoadLightmaps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function R_LoadLightmaps
_R_LoadLightmaps:                       ; @R_LoadLightmaps
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	sub	sp, sp, #48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-120]
Lloh3:
	adrp	x24, _LIGHTMAP_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _LIGHTMAP_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	mul	w8, w8, w8
	lsl	w8, w8, #2
	lsl	x8, x8, #2
	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
	ldr	w20, [x0]
	cbz	w20, LBB0_16
; %bb.1:
Lloh7:
	adrp	x8, _fileBase@GOTPAGE
Lloh8:
	ldr	x8, [x8, _fileBase@GOTPAGEOFF]
Lloh9:
	ldr	x21, [x8]
	ldrsw	x22, [x0, #4]
	bl	_R_IssuePendingRenderCommands
	ldr	w8, [x24]
	mul	w8, w8, w8
	add	w8, w8, w8, lsl #1
	sdiv	w8, w20, w8
	mov	w9, #2
Lloh10:
	adrp	x10, _tr@GOTPAGE
Lloh11:
	ldr	x10, [x10, _tr@GOTPAGEOFF]
	cmp	w8, #1
	csel	w8, w9, w8, eq
Lloh12:
	str	w8, [x10]
Lloh13:
	adrp	x9, _r_vertexLight@GOTPAGE
Lloh14:
	ldr	x9, [x9, _r_vertexLight@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	x9, [x9]
	cbnz	x9, LBB0_16
; %bb.2:
Lloh16:
	adrp	x9, _glConfig@GOTPAGE
Lloh17:
	ldr	x9, [x9, _glConfig@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _GLHW_PERMEDIA2@GOTPAGE
Lloh20:
	ldr	x10, [x10, _GLHW_PERMEDIA2@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_16
; %bb.3:
Lloh22:
	adrp	x9, _ri@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ri@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9, #8]
	lsl	w0, w8, #3
Lloh25:
	adrp	x8, _h_low@GOTPAGE
Lloh26:
	ldr	x8, [x8, _h_low@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	blr	x9
Lloh28:
	adrp	x8, _tr@GOTPAGE
Lloh29:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
	str	x0, [x8, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.4:
	mov	w10, #0
	mov	x20, #0
	add	x8, x21, x22, lsl #2
	stur	x8, [x29, #-152]                ; 8-byte Folded Spill
	add	x8, x8, #4
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
	movi	d8, #0000000000000000
	mov	w25, #1132396544
	fmov	s9, #1.00000000
	dup.2s	v10, w25
	mov	w27, #23593
	movk	w27, #16175, lsl #16
	mov	w21, #62915
	movk	w21, #16040, lsl #16
	mov	w28, #1573
	movk	w28, #15745, lsl #16
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_va
	ldr	w2, [x24]
Lloh32:
	adrp	x8, _IMGTYPE_COLORALPHA@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IMGTYPE_COLORALPHA@GOTPAGEOFF]
Lloh34:
	ldr	w4, [x8]
Lloh35:
	adrp	x8, _IMGFLAG_NOLIGHTSCALE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IMGFLAG_NOLIGHTSCALE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _IMGFLAG_NO_COMPRESSION@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IMGFLAG_NO_COMPRESSION@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh41:
	adrp	x9, _IMGFLAG_CLAMPTOEDGE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _IMGFLAG_CLAMPTOEDGE@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w5, w8, w9
	mov	x1, x19
	mov	x3, x2
	mov	w6, #0
	bl	_R_CreateImage
Lloh44:
	adrp	x9, _tr@GOTPAGE
Lloh45:
	ldr	x9, [x9, _tr@GOTPAGEOFF]
	ldr	x8, [x9, #8]
	str	w0, [x8, x20, lsl #2]
	add	x20, x20, #1
	ldrsw	x8, [x9]
	ldur	w10, [x29, #-140]               ; 4-byte Folded Reload
	add	w10, w10, #3
	cmp	x20, x8
	b.ge	LBB0_14
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w8, [x24]
Lloh46:
	adrp	x9, _r_lightmap@GOTPAGE
Lloh47:
	ldr	x9, [x9, _r_lightmap@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	ldr	w9, [x9]
	mul	w8, w8, w8
	cmp	w9, #2
	stur	w10, [x29, #-140]               ; 4-byte Folded Spill
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w8, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w22, #0
	mov	x23, #0
	mul	w8, w8, w10
	ldur	x9, [x29, #-160]                ; 8-byte Folded Reload
	add	x26, x9, w8, sxtw #2
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	s0, s1, [x26, #-4]
	ldr	s2, [x26, #4]
	stur	wzr, [x29, #-128]
	stur	xzr, [x29, #-136]
	fmov	s3, w27
	fmul	s1, s1, s3
	fmov	s3, w21
	fmadd	s0, s0, s3, s1
	fmov	s1, w28
	fmadd	s0, s2, s1, s0
	fmov	s11, w25
	fdiv	s1, s0, s11
	fcmp	s0, s11
	fcsel	s0, s9, s1, gt
	fcmp	s0, s8
	fcsel	s8, s0, s8, gt
	fmov	d1, #1.00000000
	fmov	d2, #0.50000000
	sub	x0, x29, #136
	bl	_HSVtoRGB
	mov	w8, w22
	lsl	x8, x8, #2
	ldur	d0, [x29, #-136]
	fmul.2s	v0, v0, v10
	str	d0, [x19, x8]
	ldur	s0, [x29, #-128]
	fmul	s0, s0, s11
	add	w8, w22, #2
	str	s0, [x19, w8, uxtw #2]
	add	w8, w22, #3
	str	w25, [x19, w8, uxtw #2]
	add	x23, x23, #1
	ldr	w8, [x24]
	mul	w8, w8, w8
	add	w22, w22, #4
	add	x26, x26, #12
	cmp	x23, x8
	b.lo	LBB0_9
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w8, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, #0
	mul	w8, w8, w10
	ldur	x9, [x29, #-152]                ; 8-byte Folded Reload
	add	x22, x9, w8, sxtw #2
	mov	x23, x19
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x23
	bl	_R_ColorShiftLightingBytes
	str	w25, [x23, #12]
	add	x26, x26, #1
	ldr	w8, [x24]
	mul	w8, w8, w8
	add	x22, x22, #12
	add	x23, x23, #16
	cmp	x26, x8
	b.lo	LBB0_12
	b	LBB0_5
LBB0_13:
	movi	d8, #0000000000000000
LBB0_14:
Lloh49:
	adrp	x8, _r_lightmap@GOTPAGE
Lloh50:
	ldr	x8, [x8, _r_lightmap@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #2
	b.ne	LBB0_16
; %bb.15:
Lloh52:
	adrp	x8, _ri@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
Lloh55:
	adrp	x9, _PRINT_ALL@GOTPAGE
Lloh56:
	ldr	x9, [x9, _PRINT_ALL@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x9]
	mov	w9, #1132396544
	fmov	s0, w9
	fmul	s0, s8, s0
	fcvtzs	w2, s0
Lloh58:
	adrp	x1, l_.str.1@PAGE
Lloh59:
	add	x1, x1, l_.str.1@PAGEOFF
	blr	x8
LBB0_16:
	ldur	x8, [x29, #-120]
Lloh60:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh61:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #112
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_LIGHTMAP_SIZE,4,2              ; @LIGHTMAP_SIZE
	.comm	_fileBase,8,3                   ; @fileBase
	.comm	_tr,16,3                        ; @tr
	.comm	_r_vertexLight,8,3              ; @r_vertexLight
	.comm	_glConfig,8,3                   ; @glConfig
	.comm	_GLHW_PERMEDIA2,8,3             ; @GLHW_PERMEDIA2
	.comm	_ri,16,3                        ; @ri
	.comm	_h_low,4,2                      ; @h_low
	.comm	_r_lightmap,8,3                 ; @r_lightmap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*lightmap%d"

	.comm	_IMGTYPE_COLORALPHA,4,2         ; @IMGTYPE_COLORALPHA
	.comm	_IMGFLAG_NOLIGHTSCALE,4,2       ; @IMGFLAG_NOLIGHTSCALE
	.comm	_IMGFLAG_NO_COMPRESSION,4,2     ; @IMGFLAG_NO_COMPRESSION
	.comm	_IMGFLAG_CLAMPTOEDGE,4,2        ; @IMGFLAG_CLAMPTOEDGE
	.comm	_PRINT_ALL,4,2                  ; @PRINT_ALL
l_.str.1:                               ; @.str.1
	.asciz	"Brightest lightmap value: %d\n"

	.no_dead_strip	_R_LoadLightmaps
.subsections_via_symbols
