	.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_InitFogAdjTable
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x3fddb3d0                      ## float 1.73204994
LCPI0_2:
	.long	0xbf800000                      ## float -1
LCPI0_3:
	.long	0x40000000                      ## float 2
LCPI0_8:
	.long	0x43800000                      ## float 256
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_4:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_5:
	.quad	-9223372034707292160            ## 0x8000000080000000
	.quad	-9223372034707292160            ## 0x8000000080000000
LCPI0_6:
	.quad	-9223372034707292150            ## 0x800000008000000a
	.quad	-9223372034707292150            ## 0x800000008000000a
LCPI0_7:
	.long	0x42000000                      ## float 32
	.long	0x42000000                      ## float 32
	.space	4
	.space	4
LCPI0_9:
	.quad	2                               ## 0x2
	.quad	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_GX_InitFogAdjTable
	.p2align	4, 0x90
_GX_InitFogAdjTable:                    ## @GX_InitFogAdjTable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movss	60(%rdx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jne	LBB0_2
	jp	LBB0_2
## %bb.1:
	movss	40(%rdx), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	addss	LCPI0_2(%rip), %xmm1
	movss	44(%rdx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	divss	%xmm1, %xmm0
	movaps	%xmm0, %xmm2
	divss	(%rdx), %xmm2
	jmp	LBB0_3
LBB0_2:
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	divss	(%rdx), %xmm2
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
LBB0_3:
	mulss	%xmm0, %xmm0
	movq	(%rdi), %rax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rsi, %xmm1
	movss	LCPI0_3(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	divss	%xmm1, %xmm3
	movsldup	%xmm3, %xmm1                    ## xmm1 = xmm3[0,0,2,2]
	movsldup	%xmm2, %xmm2                    ## xmm2 = xmm2[0,0,2,2]
	movdqa	LCPI0_4(%rip), %xmm3            ## xmm3 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	movl	$1, %ecx
	movdqa	LCPI0_5(%rip), %xmm8            ## xmm8 = [9223372039002259456,9223372039002259456]
	movdqa	LCPI0_6(%rip), %xmm5            ## xmm5 = [9223372039002259466,9223372039002259466]
	pcmpeqd	%xmm9, %xmm9
	movaps	LCPI0_7(%rip), %xmm10           ## xmm10 = <3.2E+1,3.2E+1,u,u>
	movss	LCPI0_0(%rip), %xmm11           ## xmm11 = mem[0],zero,zero,zero
	movss	LCPI0_8(%rip), %xmm12           ## xmm12 = mem[0],zero,zero,zero
	movdqa	LCPI0_9(%rip), %xmm13           ## xmm13 = [2,2]
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	paddq	%xmm13, %xmm3
	addq	$2, %rcx
	cmpq	$11, %rcx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm3, %xmm4
	pxor	%xmm8, %xmm4
	movdqa	%xmm5, %xmm6
	pcmpgtd	%xmm4, %xmm6
	pcmpeqd	%xmm5, %xmm4
	pshufd	$245, %xmm4, %xmm4              ## xmm4 = xmm4[1,1,3,3]
	pand	%xmm6, %xmm4
	pshufd	$245, %xmm6, %xmm6              ## xmm6 = xmm6[1,1,3,3]
	por	%xmm4, %xmm6
	pshufd	$232, %xmm3, %xmm4              ## xmm4 = xmm3[0,2,2,3]
	psubd	%xmm9, %xmm4
	cvtdq2ps	%xmm4, %xmm7
	mulps	%xmm10, %xmm7
	mulps	%xmm1, %xmm7
	mulps	%xmm2, %xmm7
	movd	%xmm6, %edx
	testb	$1, %dl
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movaps	%xmm7, %xmm4
	mulss	%xmm7, %xmm4
	divss	%xmm0, %xmm4
	addss	%xmm11, %xmm4
	sqrtss	%xmm4, %xmm4
	mulss	%xmm12, %xmm4
	cvttss2si	%xmm4, %edx
	andl	$4095, %edx                     ## imm = 0xFFF
	movl	%edx, -4(%rax,%rcx,4)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	pextrb	$8, %xmm6, %edx
	testb	$1, %dl
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	mulps	%xmm7, %xmm7
	movshdup	%xmm7, %xmm4                    ## xmm4 = xmm7[1,1,3,3]
	divss	%xmm0, %xmm4
	addss	%xmm11, %xmm4
	sqrtss	%xmm4, %xmm4
	mulss	%xmm12, %xmm4
	cvttss2si	%xmm4, %edx
	andl	$4095, %edx                     ## imm = 0xFFF
	movl	%edx, (%rax,%rcx,4)
	jmp	LBB0_8
LBB0_9:
	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
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function GX_InitFogAdjTable
lCPI0_0:
	.long	0x42000000                      ; float 32
	.long	0x42800000                      ; float 64
	.long	0x42c00000                      ; float 96
	.long	0x43000000                      ; float 128
lCPI0_1:
	.long	0x43200000                      ; float 160
	.long	0x43400000                      ; float 192
	.long	0x43600000                      ; float 224
	.long	0x43800000                      ; float 256
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_2:
	.long	0x43900000                      ; float 288
	.long	0x43a00000                      ; float 320
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_GX_InitFogAdjTable
	.p2align	2
_GX_InitFogAdjTable:                    ; @GX_InitFogAdjTable
	.cfi_startproc
; %bb.0:
	ldr	s0, [x2, #60]
	fcmp	s0, #0.0
	b.ne	LBB0_2
; %bb.1:
	ldp	s1, s0, [x2, #40]
	fmov	s2, #-1.00000000
	fadd	s1, s1, s2
	fdiv	s1, s0, s1
	ldr	s0, [x2]
	fdiv	s0, s1, s0
	b	LBB0_3
LBB0_2:
	ldr	s0, [x2]
	fmov	s1, #1.00000000
	fdiv	s0, s1, s0
	mov	w8, #46032
	movk	w8, #16349, lsl #16
	fmov	s1, w8
	fmul	s1, s0, s1
LBB0_3:
	fmul	s1, s1, s1
	scvtf	s2, x1
	fmov	s3, #2.00000000
	fdiv	s2, s3, s2
	ldr	x8, [x0]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	q3, [x9, lCPI0_0@PAGEOFF]
	fmul.4s	v3, v3, v2[0]
	fmul.4s	v3, v3, v0[0]
	fmul.4s	v3, v3, v3
	dup.4s	v4, v1[0]
	fdiv.4s	v3, v3, v4
	fmov.4s	v5, #1.00000000
	fadd.4s	v3, v3, v5
	fsqrt.4s	v3, v3
	fcvtzs.4s	v3, v3, #8
Lloh2:
	adrp	x9, lCPI0_1@PAGE
Lloh3:
	ldr	q6, [x9, lCPI0_1@PAGEOFF]
	fmul.4s	v6, v6, v2[0]
	fmul.4s	v6, v6, v0[0]
	fmul.4s	v6, v6, v6
	fdiv.4s	v4, v6, v4
	movi.4s	v6, #15, msl #8
	and.16b	v3, v3, v6
	fadd.4s	v4, v4, v5
	fsqrt.4s	v4, v4
	fcvtzs.4s	v4, v4, #8
	and.16b	v4, v4, v6
	stp	q3, q4, [x8]
Lloh4:
	adrp	x9, lCPI0_2@PAGE
Lloh5:
	ldr	d3, [x9, lCPI0_2@PAGEOFF]
	fmul.2s	v2, v3, v2[0]
	fmul.2s	v0, v2, v0[0]
	fmul.2s	v0, v0, v0
	dup.2s	v1, v1[0]
	fdiv.2s	v0, v0, v1
	fmov.2s	v1, #1.00000000
	fadd.2s	v0, v0, v1
	fsqrt.2s	v0, v0
	fcvtzs.2s	v0, v0, #8
	movi.2s	v1, #15, msl #8
	and.8b	v0, v0, v1
	str	d0, [x8, #32]
	ret
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
