	.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_color_pixels
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_fog_color_pixels
	.p2align	4, 0x90
_gl_fog_color_pixels:                   ## @gl_fog_color_pixels
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movsd	80(%rax), %xmm2                 ## xmm2 = mem[0],zero
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	8(%rcx), %xmm1                  ## xmm1 = mem[0],zero
	movsd	16(%rcx), %xmm3                 ## xmm3 = mem[0],zero
	movq	64(%rdi), %rcx
	mulsd	(%rcx), %xmm0
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	mulsd	8(%rcx), %xmm1
	movsd	%xmm1, -72(%rbp)                ## 8-byte Spill
	mulsd	16(%rcx), %xmm3
	movsd	%xmm3, -64(%rbp)                ## 8-byte Spill
	movsd	112(%rax), %xmm3                ## xmm3 = mem[0],zero
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	divss	56(%rdi), %xmm0
	movsd	48(%rdi), %xmm4                 ## xmm4 = mem[0],zero
	cvtss2sd	%xmm0, %xmm5
	movl	16(%rdi), %eax
	cmpl	$128, %eax
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movsd	%xmm2, -88(%rbp)                ## 8-byte Spill
	movsd	%xmm4, -56(%rbp)                ## 8-byte Spill
	movsd	%xmm5, -48(%rbp)                ## 8-byte Spill
	je	LBB0_6
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_13
## %bb.3:
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.4:
	xorpd	LCPI0_1(%rip), %xmm3
	xorl	%r13d, %r13d
	movapd	%xmm3, -128(%rbp)               ## 16-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rdx,%r13,4), %xmm0
	subsd	%xmm4, %xmm0
	mulsd	%xmm5, %xmm0
	addsd	%xmm2, %xmm0
	movapd	%xmm3, %xmm1
	divsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm2
	movapd	LCPI0_1(%rip), %xmm3            ## xmm3 = [-0.0E+0,-0.0E+0]
	xorpd	%xmm3, %xmm2
	maxsd	%xmm1, %xmm2
	movsd	40(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	xorpd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm0
	callq	_exp
	xorpd	%xmm1, %xmm1
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_CLAMP
	movsd	-48(%rbp), %xmm5                ## 8-byte Reload
                                        ## xmm5 = mem[0],zero
	movsd	-56(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%r12,%r13,4), %xmm2
	movsd	-80(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	mulsd	%xmm1, %xmm3
	mulsd	%xmm0, %xmm2
	addsd	%xmm3, %xmm2
	cvttsd2si	%xmm2, %eax
	movl	%eax, (%r12,%r13,4)
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%r15,%r13,4), %xmm2
	movsd	-72(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	mulsd	%xmm1, %xmm3
	mulsd	%xmm0, %xmm2
	addsd	%xmm3, %xmm2
	movapd	-128(%rbp), %xmm3               ## 16-byte Reload
	cvttsd2si	%xmm2, %eax
	movl	%eax, (%r15,%r13,4)
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%r14,%r13,4), %xmm2
	mulsd	-64(%rbp), %xmm1                ## 8-byte Folded Reload
	mulsd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	cvttsd2si	%xmm2, %eax
	movsd	-88(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movl	%eax, (%r14,%r13,4)
	incq	%r13
	cmpq	%r13, -96(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
	jmp	LBB0_12
LBB0_6:
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.7:
	movsd	24(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	movss	32(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	movsd	%xmm1, -144(%rbp)               ## 8-byte Spill
	subsd	%xmm0, %xmm1
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	xorpd	LCPI0_1(%rip), %xmm3
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -152(%rbp)               ## 8-byte Spill
	xorl	%ebx, %ebx
	movapd	%xmm3, -128(%rbp)               ## 16-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rdx,%rbx,4), %xmm0
	subsd	%xmm4, %xmm0
	mulsd	%xmm5, %xmm0
	addsd	%xmm2, %xmm0
	movapd	%xmm3, %xmm1
	divsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm2
	xorpd	LCPI0_1(%rip), %xmm2
	maxsd	%xmm1, %xmm2
	movsd	-144(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	%xmm2, %xmm0
	mulsd	-152(%rbp), %xmm0               ## 8-byte Folded Reload
	xorpd	%xmm1, %xmm1
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_CLAMP
	movsd	-48(%rbp), %xmm5                ## 8-byte Reload
                                        ## xmm5 = mem[0],zero
	movsd	-56(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%r12,%rbx,4), %xmm2
	movsd	-80(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	mulsd	%xmm1, %xmm3
	mulsd	%xmm0, %xmm2
	addsd	%xmm3, %xmm2
	cvttsd2si	%xmm2, %eax
	movl	%eax, (%r12,%rbx,4)
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%r15,%rbx,4), %xmm2
	movsd	-72(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	mulsd	%xmm1, %xmm3
	mulsd	%xmm0, %xmm2
	addsd	%xmm3, %xmm2
	movapd	-128(%rbp), %xmm3               ## 16-byte Reload
	cvttsd2si	%xmm2, %eax
	movl	%eax, (%r15,%rbx,4)
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%r14,%rbx,4), %xmm2
	mulsd	-64(%rbp), %xmm1                ## 8-byte Folded Reload
	mulsd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	cvttsd2si	%xmm2, %eax
	movsd	-88(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpq	%rbx, -96(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
	jmp	LBB0_12
LBB0_9:
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.10:
	movsd	40(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	movapd	LCPI0_1(%rip), %xmm1            ## xmm1 = [-0.0E+0,-0.0E+0]
	xorpd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	movapd	%xmm1, -144(%rbp)               ## 16-byte Spill
	xorpd	LCPI0_1(%rip), %xmm3
	xorl	%ebx, %ebx
	movapd	%xmm3, -128(%rbp)               ## 16-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rdx,%rbx,4), %xmm0
	subsd	%xmm4, %xmm0
	mulsd	%xmm5, %xmm0
	addsd	%xmm2, %xmm0
	movapd	%xmm3, %xmm1
	divsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm2
	xorpd	LCPI0_1(%rip), %xmm2
	maxsd	%xmm1, %xmm2
	movapd	-144(%rbp), %xmm0               ## 16-byte Reload
	mulsd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	callq	_exp
	xorpd	%xmm1, %xmm1
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_CLAMP
	movsd	-48(%rbp), %xmm5                ## 8-byte Reload
                                        ## xmm5 = mem[0],zero
	movsd	-56(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%r12,%rbx,4), %xmm2
	movsd	-80(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	mulsd	%xmm1, %xmm3
	mulsd	%xmm0, %xmm2
	addsd	%xmm3, %xmm2
	cvttsd2si	%xmm2, %eax
	movl	%eax, (%r12,%rbx,4)
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%r15,%rbx,4), %xmm2
	movsd	-72(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	mulsd	%xmm1, %xmm3
	mulsd	%xmm0, %xmm2
	addsd	%xmm3, %xmm2
	movapd	-128(%rbp), %xmm3               ## 16-byte Reload
	cvttsd2si	%xmm2, %eax
	movl	%eax, (%r15,%rbx,4)
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%r14,%rbx,4), %xmm2
	mulsd	-64(%rbp), %xmm1                ## 8-byte Folded Reload
	mulsd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	cvttsd2si	%xmm2, %eax
	movsd	-88(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpq	%rbx, -96(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_11
LBB0_12:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_pixels"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_fog_color_pixels            ; -- Begin function gl_fog_color_pixels
	.p2align	2
_gl_fog_color_pixels:                   ; @gl_fog_color_pixels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d15, d14, [sp, #16]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	.cfi_offset b12, -104
	.cfi_offset b13, -112
	.cfi_offset b14, -120
	.cfi_offset b15, -128
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldp	x8, x9, [x0]
	ldr	d8, [x8, #80]
	ldr	d0, [x8, #112]
	ldr	x8, [x0, #64]
	ldp	d1, d2, [x9]
	ldp	d3, d4, [x8]
	fmul	d9, d1, d3
	fmul	d10, d2, d4
	ldr	d1, [x9, #16]
	ldr	d2, [x8, #16]
	fmul	d11, d1, d2
	ldr	d12, [x0, #48]
	ldr	s1, [x0, #56]
	fmov	s2, #1.00000000
	fdiv	s1, s2, s1
	fcvt	d13, s1
	ldr	w8, [x0, #16]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_13
; %bb.3:
	cbz	x23, LBB0_12
; %bb.4:
	fneg	d14, d0
	fmov	d15, #1.00000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22], #4
	scvtf	d0, w8
	fsub	d0, d0, d12
	fmul	d0, d0, d13
	fadd	d0, d8, d0
	fdiv	d0, d14, d0
	fneg	d1, d0
	fcmp	d0, #0.0
	fcsel	d0, d1, d0, mi
	ldr	d1, [x24, #40]
	fneg	d1, d1
	fmul	d0, d0, d1
	bl	_exp
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	bl	_CLAMP
	fsub	d1, d15, d0
	ldr	s2, [x21]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fmul	d3, d9, d1
	fmadd	d2, d0, d2, d3
	fcvtzs	w8, d2
	str	w8, [x21], #4
	ldr	s2, [x20]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fmul	d3, d10, d1
	fmadd	d2, d0, d2, d3
	fcvtzs	w8, d2
	str	w8, [x20], #4
	ldr	s2, [x19]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fmul	d1, d11, d1
	fmadd	d0, d0, d2, d1
	fcvtzs	w8, d0
	str	w8, [x19], #4
	subs	x23, x23, #1
	b.ne	LBB0_5
	b	LBB0_12
LBB0_6:
	cbz	x23, LBB0_12
; %bb.7:
	ldr	d2, [x24, #24]
	ldr	s1, [x24, #32]
	fcvt	d1, s1
	str	d2, [sp, #8]                    ; 8-byte Folded Spill
	fsub	d1, d2, d1
	fmov	d2, #1.00000000
	fdiv	d15, d2, d1
	fneg	d14, d0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22], #4
	scvtf	d0, w8
	fsub	d0, d0, d12
	fmul	d0, d0, d13
	fadd	d0, d8, d0
	fdiv	d0, d14, d0
	fneg	d1, d0
	fcmp	d0, #0.0
	fcsel	d0, d1, d0, mi
	ldr	d1, [sp, #8]                    ; 8-byte Folded Reload
	fsub	d0, d1, d0
	fmul	d0, d15, d0
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	bl	_CLAMP
	fmov	d1, #1.00000000
	fsub	d1, d1, d0
	ldr	s2, [x21]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fmul	d3, d9, d1
	fmadd	d2, d0, d2, d3
	fcvtzs	w8, d2
	str	w8, [x21], #4
	ldr	s2, [x20]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fmul	d3, d10, d1
	fmadd	d2, d0, d2, d3
	fcvtzs	w8, d2
	str	w8, [x20], #4
	ldr	s2, [x19]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fmul	d1, d11, d1
	fmadd	d0, d0, d2, d1
	fcvtzs	w8, d0
	str	w8, [x19], #4
	subs	x23, x23, #1
	b.ne	LBB0_8
	b	LBB0_12
LBB0_9:
	cbz	x23, LBB0_12
; %bb.10:
	ldr	d1, [x24, #40]
	fneg	d2, d1
	fmul	d14, d1, d2
	fneg	d15, d0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22], #4
	scvtf	d0, w8
	fsub	d0, d0, d12
	fmul	d0, d0, d13
	fadd	d0, d8, d0
	fdiv	d0, d15, d0
	fneg	d1, d0
	fcmp	d0, #0.0
	fcsel	d0, d1, d0, mi
	fmul	d1, d14, d0
	fmul	d0, d0, d1
	bl	_exp
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	bl	_CLAMP
	fmov	d1, #1.00000000
	fsub	d1, d1, d0
	ldr	s2, [x21]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fmul	d3, d9, d1
	fmadd	d2, d0, d2, d3
	fcvtzs	w8, d2
	str	w8, [x21], #4
	ldr	s2, [x20]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fmul	d3, d10, d1
	fmadd	d2, d0, d2, d3
	fcvtzs	w8, d2
	str	w8, [x20], #4
	ldr	s2, [x19]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fmul	d1, d11, d1
	fmadd	d0, d0, d2, d1
	fcvtzs	w8, d0
	str	w8, [x19], #4
	subs	x23, x23, #1
	b.ne	LBB0_11
LBB0_12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_13:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #144
	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_pixels"

.subsections_via_symbols
