	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function GX_InitLightDistAttn
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_GX_InitLightDistAttn
	.p2align	4, 0x90
_GX_InitLightDistAttn:                  ## @GX_InitLightDistAttn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorps	%xmm2, %xmm2
	ucomiss	%xmm1, %xmm2
	movl	$129, %eax
	cmoval	%eax, %esi
	ucomiss	%xmm0, %xmm2
	cmoval	%eax, %esi
	ucomiss	LCPI0_0(%rip), %xmm1
	cmovael	%eax, %esi
	cmpl	$128, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$130, %esi
	je	LBB0_4
## %bb.2:
	xorps	%xmm2, %xmm2
	cmpl	$131, %esi
	jne	LBB0_6
## %bb.3:
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm3
	mulss	%xmm1, %xmm0
	divss	%xmm0, %xmm3
	xorps	%xmm2, %xmm2
	blendps	$1, %xmm3, %xmm2                ## xmm2 = xmm3[0],xmm2[1,2,3]
	jmp	LBB0_6
LBB0_5:
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	mulss	%xmm0, %xmm1
	mulss	%xmm0, %xmm1
	divss	%xmm1, %xmm2
	insertps	$29, %xmm2, %xmm2               ## xmm2 = zero,xmm2[0],zero,zero
	jmp	LBB0_6
LBB0_4:
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	mulss	LCPI0_1(%rip), %xmm2
	mulss	%xmm0, %xmm1
	mulss	%xmm1, %xmm0
	movsldup	%xmm2, %xmm2                    ## xmm2 = xmm2[0,0,2,2]
	insertps	$16, %xmm0, %xmm1               ## xmm1 = xmm1[0],xmm0[0],xmm1[2,3]
	divps	%xmm1, %xmm2
LBB0_6:
	movl	$1065353216, (%rdi)             ## imm = 0x3F800000
	movss	%xmm2, 4(%rdi)
	extractps	$1, %xmm2, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_InitLightDistAttn           ; -- Begin function GX_InitLightDistAttn
	.p2align	2
_GX_InitLightDistAttn:                  ; @GX_InitLightDistAttn
	.cfi_startproc
; %bb.0:
	fcmp	s1, #0.0
	movi	d2, #0000000000000000
	fccmp	s0, s2, #8, pl
	fmov	s4, #1.00000000
	fccmp	s1, s4, #0, pl
	mov	w8, #129
	csel	w8, w8, w1, ge
	fmul	s3, s0, s1
	fsub	s1, s4, s1
	cmp	w8, #128
	b.eq	LBB0_2
; %bb.1:
	fmov	s4, #0.50000000
	fmul	s4, s1, s4
	fdiv	s5, s4, s3
	fmul	s0, s3, s0
	fdiv	s0, s4, s0
	cmp	w8, #131
	fdiv	s1, s1, s3
	fcsel	s1, s2, s1, ne
	cmp	w8, #130
	fcsel	s0, s0, s2, eq
	fcsel	s2, s5, s1, eq
	b	LBB0_3
LBB0_2:
	fmul	s0, s3, s0
	fdiv	s0, s1, s0
LBB0_3:
	mov	w8, #1065353216
	str	w8, [x0]
	stp	s2, s0, [x0, #4]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
