	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function gl_fog_index_vertices
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x5f000000                      ## float 9.22337203E+18
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_fog_index_vertices
	.p2align	4, 0x90
_gl_fog_index_vertices:                 ## @gl_fog_index_vertices
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movl	(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_15
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_22
## %bb.3:
	testq	%r15, %r15
	je	LBB0_21
## %bb.4:
	movss	4(%rdi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	12(%rdi), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, -36(%rbp)                ## 4-byte Spill
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	subss	8(%rdi), %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movss	%xmm1, -40(%rbp)                ## 4-byte Spill
	addq	$8, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rax, %xmm1
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm2
	mulss	-36(%rbp), %xmm2                ## 4-byte Folded Reload
	addss	%xmm1, %xmm2
	cvttss2si	%xmm2, %rax
	movq	%rax, %rcx
	sarq	$63, %rcx
	subss	LCPI0_1(%rip), %xmm2
	cvttss2si	%xmm2, %rdx
	andq	%rcx, %rdx
	orq	%rax, %rdx
	movq	%rdx, (%r14,%rbx,8)
	incq	%rbx
	addq	$16, %r12
	cmpq	%rbx, %r15
	je	LBB0_21
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%r12), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	callq	_ABSF
	movss	-64(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm2
	mulss	-40(%rbp), %xmm2                ## 4-byte Folded Reload
	xorps	%xmm1, %xmm1
	movaps	%xmm2, %xmm0
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_CLAMP
	movq	(%r14,%rbx,8), %rax
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rcx
	shrq	%rcx
	andl	$1, %eax
	orq	%rcx, %rax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rax, %xmm1
	addss	%xmm1, %xmm1
	jmp	LBB0_8
LBB0_9:
	testq	%r15, %r15
	je	LBB0_21
## %bb.10:
	movss	16(%rdi), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	xorps	LCPI0_2(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movss	12(%rdi), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	addq	$8, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rax, %xmm1
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm2
	mulss	-36(%rbp), %xmm2                ## 4-byte Folded Reload
	addss	%xmm1, %xmm2
	cvttss2si	%xmm2, %rax
	movq	%rax, %rcx
	sarq	$63, %rcx
	subss	LCPI0_1(%rip), %xmm2
	cvttss2si	%xmm2, %rdx
	andq	%rcx, %rdx
	orq	%rax, %rdx
	movq	%rdx, (%r14,%rbx,8)
	incq	%rbx
	addq	$16, %r12
	cmpq	%rbx, %r15
	je	LBB0_21
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movss	(%r12), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	callq	_ABSF
	mulss	-64(%rbp), %xmm0                ## 16-byte Folded Reload
	callq	_exp
	xorps	%xmm1, %xmm1
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_CLAMP
	movq	(%r14,%rbx,8), %rax
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rcx
	shrq	%rcx
	andl	$1, %eax
	orq	%rcx, %rax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rax, %xmm1
	addss	%xmm1, %xmm1
	jmp	LBB0_14
LBB0_15:
	testq	%r15, %r15
	je	LBB0_21
## %bb.16:
	movss	12(%rdi), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movss	16(%rdi), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm0
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	addq	$8, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rax, %xmm1
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm2
	mulss	-64(%rbp), %xmm2                ## 4-byte Folded Reload
	addss	%xmm1, %xmm2
	cvttss2si	%xmm2, %rax
	movq	%rax, %rcx
	sarq	$63, %rcx
	subss	LCPI0_1(%rip), %xmm2
	cvttss2si	%xmm2, %rdx
	andq	%rcx, %rdx
	orq	%rax, %rdx
	movq	%rdx, (%r14,%rbx,8)
	incq	%rbx
	addq	$16, %r12
	cmpq	%rbx, %r15
	je	LBB0_21
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movss	(%r12), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	callq	_ABSF
	movss	-36(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	mulss	%xmm1, %xmm0
	callq	_exp
	xorps	%xmm1, %xmm1
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_CLAMP
	movq	(%r14,%rbx,8), %rax
	testq	%rax, %rax
	jns	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %rcx
	shrq	%rcx
	andl	$1, %eax
	orq	%rcx, %rax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rax, %xmm1
	addss	%xmm1, %xmm1
	jmp	LBB0_20
LBB0_21:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	leaq	L_.str(%rip), %rsi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_problem                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad fog mode in gl_fog_index_vertices"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_fog_index_vertices          ; -- Begin function gl_fog_index_vertices
	.p2align	2
_gl_fog_index_vertices:                 ; @gl_fog_index_vertices
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	mov	x19, x3
	mov	x20, x1
	ldr	w8, [x0]
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.3:
	cbz	x20, LBB0_12
; %bb.4:
	ldp	s8, s0, [x0, #4]
	fsub	s0, s8, s0
	fmov	s9, #1.00000000
	fdiv	s10, s9, s0
	ldr	s11, [x0, #12]
	add	x21, x2, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x21], #16
	bl	_ABSF
	fsub	s0, s8, s0
	fmul	s0, s10, s0
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	bl	_CLAMP
	ldr	x8, [x19]
	ucvtf	s1, x8
	fsub	s0, s9, s0
	fmadd	s0, s0, s11, s1
	fcvtzu	x8, s0
	str	x8, [x19], #8
	subs	x20, x20, #1
	b.ne	LBB0_5
	b	LBB0_12
LBB0_6:
	cbz	x20, LBB0_12
; %bb.7:
	ldp	s8, s0, [x0, #12]
	fneg	s9, s0
	add	x21, x2, #8
	fmov	s10, #1.00000000
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x21], #16
	bl	_ABSF
	fmul	s0, s0, s9
	bl	_exp
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	bl	_CLAMP
	ldr	x8, [x19]
	ucvtf	s1, x8
	fsub	s0, s10, s0
	fmadd	s0, s0, s8, s1
	fcvtzu	x8, s0
	str	x8, [x19], #8
	subs	x20, x20, #1
	b.ne	LBB0_8
	b	LBB0_12
LBB0_9:
	cbz	x20, LBB0_12
; %bb.10:
	ldp	s8, s0, [x0, #12]
	fmul	s9, s0, s0
	add	x21, x2, #8
	fmov	s10, #1.00000000
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x21], #16
	bl	_ABSF
	fmul	s1, s9, s0
	fmul	s0, s0, s1
	bl	_exp
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	bl	_CLAMP
	ldr	x8, [x19]
	ucvtf	s1, x8
	fsub	s0, s10, s0
	fmadd	s0, s0, s8, s1
	fcvtzu	x8, s0
	str	x8, [x19], #8
	subs	x20, x20, #1
	b.ne	LBB0_11
LBB0_12:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #80             ; 16-byte Folded Reload
	b	_gl_problem
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad fog mode in gl_fog_index_vertices"

.subsections_via_symbols
