	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function get_fog_start_end
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_2:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_get_fog_start_end
	.p2align	4, 0x90
_get_fog_start_end:                     ## @get_fog_start_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.4:
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_9
LBB0_1:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_9
LBB0_5:
	movq	(%rsi), %rax
	movq	_WINED3D_RS_FOGSTART@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbx)
	movq	_WINED3D_RS_FOGEND@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r14)
	movq	_WINED3D_RS_FOGTABLEMODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_WINED3D_FOG_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.6:
	movss	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jne	LBB0_10
	jp	LBB0_10
## %bb.7:
	movq	_INFINITY@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	xorps	LCPI0_1(%rip), %xmm0
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	xorps	%xmm0, %xmm0
LBB0_9:
	movss	%xmm0, (%rbx)
	movl	$0, (%r14)
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_RS_FOGSTART,8,3        ## @WINED3D_RS_FOGSTART
	.comm	_WINED3D_RS_FOGEND,8,3          ## @WINED3D_RS_FOGEND
	.comm	_WINED3D_RS_FOGTABLEMODE,8,3    ## @WINED3D_RS_FOGTABLEMODE
	.comm	_WINED3D_FOG_NONE,4,2           ## @WINED3D_FOG_NONE
	.comm	_INFINITY,4,2                   ## @INFINITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected fog coordinate source.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_fog_start_end              ; -- Begin function get_fog_start_end
	.p2align	2
_get_fog_start_end:                     ; @get_fog_start_end
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	mov	x20, x2
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.3:
	mov	w8, #1132396544
	fmov	s0, w8
	b	LBB0_9
LBB0_4:
	fmov	s0, #1.00000000
	b	LBB0_9
LBB0_5:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _WINED3D_RS_FOGSTART@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_RS_FOGSTART@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	s0, [x8, x9, lsl #2]
	str	s0, [x20]
Lloh3:
	adrp	x9, _WINED3D_RS_FOGEND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3D_RS_FOGEND@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	s0, [x8, x9, lsl #2]
	str	s0, [x19]
Lloh6:
	adrp	x9, _WINED3D_RS_FOGTABLEMODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WINED3D_RS_FOGTABLEMODE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh9:
	adrp	x9, _WINED3D_FOG_NONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WINED3D_FOG_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.6:
	ldr	s1, [x20]
	fcmp	s1, s0
	b.ne	LBB0_10
; %bb.7:
Lloh12:
	adrp	x8, _INFINITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INFINITY@GOTPAGEOFF]
Lloh14:
	ldr	s0, [x8]
	fneg	s0, s0
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
	movi	d0, #0000000000000000
LBB0_9:
	str	s0, [x20]
	str	wzr, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_RS_FOGSTART,8,3        ; @WINED3D_RS_FOGSTART
	.comm	_WINED3D_RS_FOGEND,8,3          ; @WINED3D_RS_FOGEND
	.comm	_WINED3D_RS_FOGTABLEMODE,8,3    ; @WINED3D_RS_FOGTABLEMODE
	.comm	_WINED3D_FOG_NONE,4,2           ; @WINED3D_FOG_NONE
	.comm	_INFINITY,4,2                   ; @INFINITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected fog coordinate source.\n"

.subsections_via_symbols
