	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atifs_tfactor
_atifs_tfactor:                         ## @atifs_tfactor
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	movq	_ATIFS_CONST_TFACTOR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	_GL_CON_0_ATI@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_ATIFS_CONSTANT_TFACTOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	(%rsi), %rax
	movq	_WINED3D_RS_TEXTUREFACTOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	callq	_wined3d_color_from_d3dcolor
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_glSetFragmentShaderConstantATI
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATIFS_CONST_TFACTOR,8,3        ## @ATIFS_CONST_TFACTOR
	.comm	_GL_CON_0_ATI,8,3               ## @GL_CON_0_ATI
	.comm	_ATIFS_CONSTANT_TFACTOR,8,3     ## @ATIFS_CONSTANT_TFACTOR
	.comm	_WINED3D_RS_TEXTUREFACTOR,8,3   ## @WINED3D_RS_TEXTUREFACTOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glSetFragmentShaderConstantATI(ATIFS_CONST_TFACTOR, &color.r)"

	.no_dead_strip	_atifs_tfactor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atifs_tfactor
_atifs_tfactor:                         ; @atifs_tfactor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x19, _ATIFS_CONST_TFACTOR@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ATIFS_CONST_TFACTOR@GOTPAGEOFF]
	ldr	x8, [x8]
	ldr	x9, [x19]
Lloh2:
	adrp	x10, _GL_CON_0_ATI@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GL_CON_0_ATI@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	sub	x9, x9, x10
	ldr	x8, [x8, x9, lsl #3]
Lloh5:
	adrp	x9, _ATIFS_CONSTANT_TFACTOR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ATIFS_CONSTANT_TFACTOR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x1]
Lloh8:
	adrp	x9, _WINED3D_RS_TEXTUREFACTOR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WINED3D_RS_TEXTUREFACTOR@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	add	x0, sp, #8
	bl	_wined3d_color_from_d3dcolor
	ldr	x0, [x19]
	add	x1, sp, #8
	bl	_glSetFragmentShaderConstantATI
	bl	_GL_EXTCALL
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ATIFS_CONST_TFACTOR,8,3        ; @ATIFS_CONST_TFACTOR
	.comm	_GL_CON_0_ATI,8,3               ; @GL_CON_0_ATI
	.comm	_ATIFS_CONSTANT_TFACTOR,8,3     ; @ATIFS_CONSTANT_TFACTOR
	.comm	_WINED3D_RS_TEXTUREFACTOR,8,3   ; @WINED3D_RS_TEXTUREFACTOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glSetFragmentShaderConstantATI(ATIFS_CONST_TFACTOR, &color.r)"

	.no_dead_strip	_atifs_tfactor
.subsections_via_symbols
