	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gl_fog_color_vertices
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_fog_color_vertices
	.p2align	4, 0x90
_gl_fog_color_vertices:                 ## @gl_fog_color_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, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	(%rdi), %rax
	movq	24(%rdi), %rcx
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	(%rcx), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	4(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	4(%rcx), %xmm0
	movss	%xmm0, -40(%rbp)                ## 4-byte Spill
	movss	8(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	8(%rcx), %xmm0
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	movl	12(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.3:
	testq	%r12, %r12
	je	LBB0_12
## %bb.4:
	movss	8(%rdi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	subss	16(%rdi), %xmm0
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%r14,%rbx), %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	-48(%rbp), %xmm2                ## 4-byte Folded Reload
	xorps	%xmm1, %xmm1
	movaps	%xmm2, %xmm0
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_CLAMP
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	-8(%r15,%rbx), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, -8(%r15,%rbx)
	movss	-40(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	-4(%r15,%rbx), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, -4(%r15,%rbx)
	mulss	-36(%rbp), %xmm1                ## 4-byte Folded Reload
	mulss	(%r15,%rbx), %xmm0
	addss	%xmm1, %xmm0
	movss	%xmm0, (%r15,%rbx)
	addq	$16, %rbx
	decq	%r12
	jne	LBB0_5
	jmp	LBB0_12
LBB0_6:
	testq	%r12, %r12
	je	LBB0_12
## %bb.7:
	movss	20(%rdi), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	xorps	LCPI0_0(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%r14,%rbx), %xmm0              ## xmm0 = mem[0],zero,zero,zero
	callq	_ABSF
	mulss	-64(%rbp), %xmm0                ## 16-byte Folded Reload
	callq	_exp
	xorps	%xmm1, %xmm1
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_CLAMP
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	-8(%r15,%rbx), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, -8(%r15,%rbx)
	movss	-40(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	-4(%r15,%rbx), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, -4(%r15,%rbx)
	mulss	-36(%rbp), %xmm1                ## 4-byte Folded Reload
	mulss	(%r15,%rbx), %xmm0
	addss	%xmm1, %xmm0
	movss	%xmm0, (%r15,%rbx)
	addq	$16, %rbx
	decq	%r12
	jne	LBB0_8
	jmp	LBB0_12
LBB0_9:
	testq	%r12, %r12
	je	LBB0_12
## %bb.10:
	movss	20(%rdi), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm0, %xmm1
	mulss	%xmm0, %xmm1
	movaps	%xmm1, -64(%rbp)                ## 16-byte Spill
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movss	(%r14,%rbx), %xmm0              ## xmm0 = mem[0],zero,zero,zero
	callq	_ABSF
	movaps	-64(%rbp), %xmm1                ## 16-byte Reload
	mulss	%xmm0, %xmm1
	mulss	%xmm1, %xmm0
	callq	_exp
	xorps	%xmm1, %xmm1
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_CLAMP
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	-8(%r15,%rbx), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, -8(%r15,%rbx)
	movss	-40(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	-4(%r15,%rbx), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, -4(%r15,%rbx)
	mulss	-36(%rbp), %xmm1                ## 4-byte Folded Reload
	mulss	(%r15,%rbx), %xmm0
	addss	%xmm1, %xmm0
	movss	%xmm0, (%r15,%rbx)
	addq	$16, %rbx
	decq	%r12
	jne	LBB0_11
LBB0_12:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	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_color_vertices"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_fog_color_vertices          ; -- Begin function gl_fog_color_vertices
	.p2align	2
_gl_fog_color_vertices:                 ; @gl_fog_color_vertices
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset b12, -88
	.cfi_offset b13, -96
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x9, [x0, #24]
	ldr	d0, [x8]
	ldr	d1, [x9]
	fmul.2s	v8, v0, v1
	ldr	s0, [x8, #8]
	ldr	s1, [x9, #8]
	fmul	s9, s0, s1
	ldr	w8, [x0, #12]
	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	x19, LBB0_12
; %bb.4:
	ldr	s10, [x0, #8]
	ldr	s0, [x0, #16]
	fsub	s0, s10, s0
	fmov	s11, #1.00000000
	fdiv	s12, s11, s0
	add	x20, x2, #8
	add	x21, x3, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x20], #16
	bl	_ABSF
	fsub	s0, s10, s0
	fmul	s0, s12, s0
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	bl	_CLAMP
                                        ; kill: def $s0 killed $s0 def $q0
	fsub	s1, s11, s0
	ldur	d2, [x21, #-8]
	fmul.2s	v3, v8, v1[0]
	fmla.2s	v3, v2, v0[0]
	stur	d3, [x21, #-8]
	ldr	s2, [x21]
	fmul	s1, s9, s1
	fmadd	s0, s0, s2, s1
	str	s0, [x21], #16
	subs	x19, x19, #1
	b.ne	LBB0_5
	b	LBB0_12
LBB0_6:
	cbz	x19, LBB0_12
; %bb.7:
	ldr	s0, [x0, #20]
	fneg	s10, s0
	add	x20, x2, #8
	add	x21, x3, #8
	fmov	s11, #1.00000000
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x20], #16
	bl	_ABSF
	fmul	s0, s0, s10
	bl	_exp
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	bl	_CLAMP
                                        ; kill: def $s0 killed $s0 def $q0
	fsub	s1, s11, s0
	ldur	d2, [x21, #-8]
	fmul.2s	v3, v8, v1[0]
	fmla.2s	v3, v2, v0[0]
	stur	d3, [x21, #-8]
	ldr	s2, [x21]
	fmul	s1, s9, s1
	fmadd	s0, s0, s2, s1
	str	s0, [x21], #16
	subs	x19, x19, #1
	b.ne	LBB0_8
	b	LBB0_12
LBB0_9:
	cbz	x19, LBB0_12
; %bb.10:
	ldr	s0, [x0, #20]
	fneg	s1, s0
	fmul	s10, s0, s1
	add	x20, x2, #8
	add	x21, x3, #8
	fmov	s11, #1.00000000
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x20], #16
	bl	_ABSF
	fmul	s1, s10, s0
	fmul	s0, s0, s1
	bl	_exp
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	bl	_CLAMP
                                        ; kill: def $s0 killed $s0 def $q0
	fsub	s1, s11, s0
	ldur	d2, [x21, #-8]
	fmul.2s	v3, v8, v1[0]
	fmla.2s	v3, v2, v0[0]
	stur	d3, [x21, #-8]
	ldr	s2, [x21]
	fmul	s1, s9, s1
	fmadd	s0, s0, s2, s1
	str	s0, [x21], #16
	subs	x19, x19, #1
	b.ne	LBB0_11
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #96             ; 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_color_vertices"

.subsections_via_symbols
