	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_SetArray                    ## -- Begin function GX_SetArray
	.p2align	4, 0x90
_GX_SetArray:                           ## @GX_SetArray
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	_GX_VA_NBT@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_GX_VA_NRM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_2:
	movq	_GX_VA_POS@GOTPCREL(%rip), %rax
	movq	%rdi, %rbx
	subq	(%rax), %rbx
	jl	LBB0_4
## %bb.3:
	movq	_GX_LIGHTARRAY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jg	LBB0_4
## %bb.5:
	leaq	160(%rbx), %r15
	movq	%rsi, %rdi
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_GX_LOAD_CP_REG
	addq	$176, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GX_LOAD_CP_REG                 ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GX_VA_NBT,8,3                  ## @GX_VA_NBT
	.comm	_GX_VA_NRM,8,3                  ## @GX_VA_NRM
	.comm	_GX_VA_POS,8,3                  ## @GX_VA_POS
	.comm	_GX_LIGHTARRAY,8,3              ## @GX_LIGHTARRAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_SetArray                    ; -- Begin function GX_SetArray
	.p2align	2
_GX_SetArray:                           ; @GX_SetArray
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _GX_VA_NBT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GX_VA_NBT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GX_VA_NRM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GX_VA_NRM@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x0
	csel	x8, x9, x0, eq
Lloh6:
	adrp	x9, _GX_VA_POS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GX_VA_POS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _GX_LIGHTARRAY@GOTPAGE
Lloh10:
	ldr	x10, [x10, _GX_LIGHTARRAY@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	subs	x21, x8, x9
	ccmp	x8, x10, #0, ge
	b.le	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x2
	add	x20, x21, #160
	mov	x0, x1
	bl	_MEM_VIRTUAL_TO_PHYSICAL
	mov	x1, x0
	mov	x0, x20
	bl	_GX_LOAD_CP_REG
	add	x0, x21, #176
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_GX_LOAD_CP_REG
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GX_VA_NBT,8,3                  ; @GX_VA_NBT
	.comm	_GX_VA_NRM,8,3                  ; @GX_VA_NRM
	.comm	_GX_VA_POS,8,3                  ; @GX_VA_POS
	.comm	_GX_LIGHTARRAY,8,3              ; @GX_LIGHTARRAY
.subsections_via_symbols
