	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_install_gl_compat_wrapper      ## -- Begin function install_gl_compat_wrapper
	.p2align	4, 0x90
_install_gl_compat_wrapper:             ## @install_gl_compat_wrapper
	.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	%rdi, %rbx
	cmpl	$128, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_15
## %bb.2:
	movq	(%rbx), %rax
	cmpq	$0, 1032(%rax)
	jne	LBB0_17
## %bb.3:
	movl	68(%rbx), %eax
	movq	_wine_glActiveTexture@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_16
## %bb.4:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_6:
	movq	(%rbx), %rax
	cmpq	$0, 1024(%rax)
	jne	LBB0_17
## %bb.7:
	movl	120(%rbx), %eax
	movq	_wine_glFogi@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
LBB0_15:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	movl	(%r14), %eax
	movl	%eax, 68(%rbx)
	movq	_wine_glClientActiveTextureARB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_wine_glMultiTexCoord1fARB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_wine_glMultiTexCoord1fvARB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_wine_glMultiTexCoord2fARB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_wine_glMultiTexCoord2fvARB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_wine_glMultiTexCoord3fARB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_wine_glMultiTexCoord3fvARB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_wine_glMultiTexCoord4fARB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_wine_glMultiTexCoord4fvARB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_wine_glMultiTexCoord2svARB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_wine_glMultiTexCoord4svARB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	132(%rbx), %eax
	movq	_old_multitex_glGetIntegerv@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_wine_glGetIntegerv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 132(%rbx)
	movl	128(%rbx), %eax
	movq	_old_multitex_glGetFloatv@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_wine_glGetFloatv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%rbx)
	movl	124(%rbx), %eax
	movq	_old_multitex_glGetDoublev@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_wine_glGetDoublev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	%rax, 1032(%rcx)
	jmp	LBB0_17
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	callq	_TRACE
	movq	(%rbx), %rax
	movq	_ARB_FRAGMENT_PROGRAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_13
LBB0_11:
	movq	_ARB_FRAGMENT_SHADER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_14
## %bb.12:
	leaq	L_.str.6(%rip), %rdi
LBB0_13:
	xorl	%eax, %eax
	callq	_FIXME
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_14:
	movl	120(%rbx), %eax
	movq	_old_fogcoord_glFogi@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r14), %eax
	movl	%eax, 120(%rbx)
	movl	116(%rbx), %eax
	movq	_old_fogcoord_glFogiv@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_wine_glFogiv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%rbx)
	movl	112(%rbx), %eax
	movq	_old_fogcoord_glFogf@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_wine_glFogf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%rbx)
	movl	108(%rbx), %eax
	movq	_old_fogcoord_glFogfv@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_wine_glFogfv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%rbx)
	movq	_glEnableWINE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_old_fogcoord_glEnable@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_wine_glEnable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_glDisableWINE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_old_fogcoord_glDisable@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_wine_glDisable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	104(%rbx), %eax
	movq	_old_fogcoord_glVertex4f@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_wine_glVertex4f@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%rbx)
	movq	_wine_glVertex4fv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rbx)
	movq	_wine_glVertex3f@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	_wine_glVertex3fv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	movl	88(%rbx), %eax
	movq	_old_fogcoord_glColor4f@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_wine_glColor4f@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movq	_wine_glColor4fv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movq	_wine_glColor3f@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_wine_glColor3fv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_wine_glColor4ub@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_wine_glFogCoordfEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_wine_glFogCoordfvEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_wine_glFogCoorddEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_wine_glFogCoorddvEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	%rax, 1024(%rcx)
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wine_glActiveTexture,4,2       ## @wine_glActiveTexture
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ARB_multitexture emulation hooks already applied.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Applying GL_ARB_multitexture emulation hooks.\n"

	.comm	_wine_glClientActiveTextureARB,4,2 ## @wine_glClientActiveTextureARB
	.comm	_wine_glMultiTexCoord1fARB,4,2  ## @wine_glMultiTexCoord1fARB
	.comm	_wine_glMultiTexCoord1fvARB,4,2 ## @wine_glMultiTexCoord1fvARB
	.comm	_wine_glMultiTexCoord2fARB,4,2  ## @wine_glMultiTexCoord2fARB
	.comm	_wine_glMultiTexCoord2fvARB,4,2 ## @wine_glMultiTexCoord2fvARB
	.comm	_wine_glMultiTexCoord3fARB,4,2  ## @wine_glMultiTexCoord3fARB
	.comm	_wine_glMultiTexCoord3fvARB,4,2 ## @wine_glMultiTexCoord3fvARB
	.comm	_wine_glMultiTexCoord4fARB,4,2  ## @wine_glMultiTexCoord4fARB
	.comm	_wine_glMultiTexCoord4fvARB,4,2 ## @wine_glMultiTexCoord4fvARB
	.comm	_wine_glMultiTexCoord2svARB,4,2 ## @wine_glMultiTexCoord2svARB
	.comm	_wine_glMultiTexCoord4svARB,4,2 ## @wine_glMultiTexCoord4svARB
	.comm	_old_multitex_glGetIntegerv,4,2 ## @old_multitex_glGetIntegerv
	.comm	_wine_glGetIntegerv,4,2         ## @wine_glGetIntegerv
	.comm	_old_multitex_glGetFloatv,4,2   ## @old_multitex_glGetFloatv
	.comm	_wine_glGetFloatv,4,2           ## @wine_glGetFloatv
	.comm	_old_multitex_glGetDoublev,4,2  ## @old_multitex_glGetDoublev
	.comm	_wine_glGetDoublev,4,2          ## @wine_glGetDoublev
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_wine_glFogi,4,2                ## @wine_glFogi
L_.str.2:                               ## @.str.2
	.asciz	"EXT_fog_coord emulation hooks already applied.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Applying GL_ARB_fog_coord emulation hooks\n"

	.comm	_ARB_FRAGMENT_PROGRAM,8,3       ## @ARB_FRAGMENT_PROGRAM
L_.str.4:                               ## @.str.4
	.asciz	"GL implementation supports GL_ARB_fragment_program but not GL_EXT_fog_coord\n"

L_.str.5:                               ## @.str.5
	.asciz	"The fog coord emulation will most likely fail\n"

	.comm	_ARB_FRAGMENT_SHADER,8,3        ## @ARB_FRAGMENT_SHADER
L_.str.6:                               ## @.str.6
	.asciz	"GL implementation supports GL_ARB_fragment_shader but not GL_EXT_fog_coord\n"

	.comm	_old_fogcoord_glFogi,4,2        ## @old_fogcoord_glFogi
	.comm	_old_fogcoord_glFogiv,4,2       ## @old_fogcoord_glFogiv
	.comm	_wine_glFogiv,4,2               ## @wine_glFogiv
	.comm	_old_fogcoord_glFogf,4,2        ## @old_fogcoord_glFogf
	.comm	_wine_glFogf,4,2                ## @wine_glFogf
	.comm	_old_fogcoord_glFogfv,4,2       ## @old_fogcoord_glFogfv
	.comm	_wine_glFogfv,4,2               ## @wine_glFogfv
	.comm	_glEnableWINE,4,2               ## @glEnableWINE
	.comm	_old_fogcoord_glEnable,4,2      ## @old_fogcoord_glEnable
	.comm	_wine_glEnable,4,2              ## @wine_glEnable
	.comm	_glDisableWINE,4,2              ## @glDisableWINE
	.comm	_old_fogcoord_glDisable,4,2     ## @old_fogcoord_glDisable
	.comm	_wine_glDisable,4,2             ## @wine_glDisable
	.comm	_old_fogcoord_glVertex4f,4,2    ## @old_fogcoord_glVertex4f
	.comm	_wine_glVertex4f,4,2            ## @wine_glVertex4f
	.comm	_wine_glVertex4fv,4,2           ## @wine_glVertex4fv
	.comm	_wine_glVertex3f,4,2            ## @wine_glVertex3f
	.comm	_wine_glVertex3fv,4,2           ## @wine_glVertex3fv
	.comm	_old_fogcoord_glColor4f,4,2     ## @old_fogcoord_glColor4f
	.comm	_wine_glColor4f,4,2             ## @wine_glColor4f
	.comm	_wine_glColor4fv,4,2            ## @wine_glColor4fv
	.comm	_wine_glColor3f,4,2             ## @wine_glColor3f
	.comm	_wine_glColor3fv,4,2            ## @wine_glColor3fv
	.comm	_wine_glColor4ub,4,2            ## @wine_glColor4ub
	.comm	_wine_glFogCoordfEXT,4,2        ## @wine_glFogCoordfEXT
	.comm	_wine_glFogCoordfvEXT,4,2       ## @wine_glFogCoordfvEXT
	.comm	_wine_glFogCoorddEXT,4,2        ## @wine_glFogCoorddEXT
	.comm	_wine_glFogCoorddvEXT,4,2       ## @wine_glFogCoorddvEXT
L_.str.7:                               ## @.str.7
	.asciz	"Extension %u emulation not supported.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_install_gl_compat_wrapper      ; -- Begin function install_gl_compat_wrapper
	.p2align	2
_install_gl_compat_wrapper:             ; @install_gl_compat_wrapper
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_9
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8, #1032]
	cbnz	x8, LBB0_10
; %bb.3:
	ldr	w8, [x19, #68]
Lloh0:
	adrp	x20, _wine_glActiveTexture@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wine_glActiveTexture@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_5:
	ldr	x8, [x19]
	ldr	x8, [x8, #1024]
	cbnz	x8, LBB0_10
; %bb.6:
	ldr	w8, [x19, #120]
Lloh4:
	adrp	x20, _wine_glFogi@GOTPAGE
Lloh5:
	ldr	x20, [x20, _wine_glFogi@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.7:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_FIXME
LBB0_9:
	str	x1, [sp]
Lloh8:
	adrp	x0, l_.str.7@PAGE
Lloh9:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_FIXME
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _wine_glClientActiveTextureARB@GOTPAGE
Lloh13:
	ldr	x9, [x9, _wine_glClientActiveTextureARB@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #64]
Lloh15:
	adrp	x8, _wine_glMultiTexCoord1fARB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _wine_glMultiTexCoord1fARB@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _wine_glMultiTexCoord1fvARB@GOTPAGE
Lloh19:
	ldr	x9, [x9, _wine_glMultiTexCoord1fvARB@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _wine_glMultiTexCoord2fARB@GOTPAGE
Lloh22:
	ldr	x10, [x10, _wine_glMultiTexCoord2fARB@GOTPAGEOFF]
	stp	w9, w8, [x19, #56]
Lloh23:
	ldr	w8, [x10]
Lloh24:
	adrp	x9, _wine_glMultiTexCoord2fvARB@GOTPAGE
Lloh25:
	ldr	x9, [x9, _wine_glMultiTexCoord2fvARB@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh27:
	adrp	x8, _wine_glMultiTexCoord3fARB@GOTPAGE
Lloh28:
	ldr	x8, [x8, _wine_glMultiTexCoord3fARB@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _wine_glMultiTexCoord3fvARB@GOTPAGE
Lloh31:
	ldr	x9, [x9, _wine_glMultiTexCoord3fvARB@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh33:
	adrp	x8, _wine_glMultiTexCoord4fARB@GOTPAGE
Lloh34:
	ldr	x8, [x8, _wine_glMultiTexCoord4fARB@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _wine_glMultiTexCoord4fvARB@GOTPAGE
Lloh37:
	ldr	x9, [x9, _wine_glMultiTexCoord4fvARB@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	ldr	w8, [x19, #132]
Lloh39:
	adrp	x9, _old_multitex_glGetIntegerv@GOTPAGE
Lloh40:
	ldr	x9, [x9, _old_multitex_glGetIntegerv@GOTPAGEOFF]
Lloh41:
	str	w8, [x9]
Lloh42:
	adrp	x8, _old_multitex_glGetFloatv@GOTPAGE
Lloh43:
	ldr	x8, [x8, _old_multitex_glGetFloatv@GOTPAGEOFF]
	ldp	w10, w9, [x19, #124]
Lloh44:
	str	w9, [x8]
Lloh45:
	adrp	x8, _wine_glMultiTexCoord2svARB@GOTPAGE
Lloh46:
	ldr	x8, [x8, _wine_glMultiTexCoord2svARB@GOTPAGEOFF]
Lloh47:
	adrp	x9, _wine_glMultiTexCoord4svARB@GOTPAGE
Lloh48:
	ldr	x9, [x9, _wine_glMultiTexCoord4svARB@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh51:
	adrp	x8, _old_multitex_glGetDoublev@GOTPAGE
Lloh52:
	ldr	x8, [x8, _old_multitex_glGetDoublev@GOTPAGEOFF]
Lloh53:
	str	w10, [x8]
Lloh54:
	adrp	x8, _wine_glGetIntegerv@GOTPAGE
Lloh55:
	ldr	x8, [x8, _wine_glGetIntegerv@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	adrp	x9, _wine_glGetFloatv@GOTPAGE
Lloh58:
	ldr	x9, [x9, _wine_glGetFloatv@GOTPAGEOFF]
	str	w8, [x19, #132]
Lloh59:
	ldr	w8, [x9]
Lloh60:
	adrp	x9, _wine_glGetDoublev@GOTPAGE
Lloh61:
	ldr	x9, [x9, _wine_glGetDoublev@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #124]
Lloh63:
	adrp	x8, _TRUE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x8, [x9, #1032]
	b	LBB0_10
LBB0_12:
Lloh66:
	adrp	x0, l_.str.3@PAGE
Lloh67:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19]
Lloh68:
	adrp	x9, _ARB_FRAGMENT_PROGRAM@GOTPAGE
Lloh69:
	ldr	x9, [x9, _ARB_FRAGMENT_PROGRAM@GOTPAGEOFF]
Lloh70:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_14
; %bb.13:
Lloh71:
	adrp	x0, l_.str.4@PAGE
Lloh72:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh73:
	adrp	x9, _ARB_FRAGMENT_SHADER@GOTPAGE
Lloh74:
	ldr	x9, [x9, _ARB_FRAGMENT_SHADER@GOTPAGEOFF]
Lloh75:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_17
; %bb.15:
Lloh76:
	adrp	x0, l_.str.6@PAGE
Lloh77:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_16:
	bl	_FIXME
Lloh78:
	adrp	x0, l_.str.5@PAGE
Lloh79:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_FIXME
LBB0_17:
	ldr	w8, [x19, #120]
Lloh80:
	adrp	x9, _old_fogcoord_glFogi@GOTPAGE
Lloh81:
	ldr	x9, [x9, _old_fogcoord_glFogi@GOTPAGEOFF]
Lloh82:
	str	w8, [x9]
	ldr	w8, [x20]
Lloh83:
	adrp	x9, _old_fogcoord_glFogiv@GOTPAGE
Lloh84:
	ldr	x9, [x9, _old_fogcoord_glFogiv@GOTPAGEOFF]
	str	w8, [x19, #120]
	ldp	w10, w8, [x19, #112]
Lloh85:
	str	w8, [x9]
Lloh86:
	adrp	x8, _old_fogcoord_glFogf@GOTPAGE
Lloh87:
	ldr	x8, [x8, _old_fogcoord_glFogf@GOTPAGEOFF]
Lloh88:
	str	w10, [x8]
Lloh89:
	adrp	x8, _old_fogcoord_glFogfv@GOTPAGE
Lloh90:
	ldr	x8, [x8, _old_fogcoord_glFogfv@GOTPAGEOFF]
	ldp	w10, w9, [x19, #104]
Lloh91:
	str	w9, [x8]
Lloh92:
	adrp	x8, _glEnableWINE@GOTPAGE
Lloh93:
	ldr	x8, [x8, _glEnableWINE@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh94:
	adrp	x11, _old_fogcoord_glEnable@GOTPAGE
Lloh95:
	ldr	x11, [x11, _old_fogcoord_glEnable@GOTPAGEOFF]
Lloh96:
	str	w9, [x11]
Lloh97:
	adrp	x9, _wine_glEnable@GOTPAGE
Lloh98:
	ldr	x9, [x9, _wine_glEnable@GOTPAGEOFF]
Lloh99:
	ldr	w9, [x9]
	str	w9, [x8]
Lloh100:
	adrp	x8, _glDisableWINE@GOTPAGE
Lloh101:
	ldr	x8, [x8, _glDisableWINE@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh102:
	adrp	x11, _old_fogcoord_glDisable@GOTPAGE
Lloh103:
	ldr	x11, [x11, _old_fogcoord_glDisable@GOTPAGEOFF]
Lloh104:
	str	w9, [x11]
Lloh105:
	adrp	x9, _wine_glFogiv@GOTPAGE
Lloh106:
	ldr	x9, [x9, _wine_glFogiv@GOTPAGEOFF]
Lloh107:
	ldr	w9, [x9]
Lloh108:
	adrp	x11, _wine_glFogf@GOTPAGE
Lloh109:
	ldr	x11, [x11, _wine_glFogf@GOTPAGEOFF]
Lloh110:
	ldr	w11, [x11]
	stp	w11, w9, [x19, #112]
Lloh111:
	adrp	x9, _wine_glDisable@GOTPAGE
Lloh112:
	ldr	x9, [x9, _wine_glDisable@GOTPAGEOFF]
Lloh113:
	ldr	w9, [x9]
	str	w9, [x8]
Lloh114:
	adrp	x8, _wine_glFogfv@GOTPAGE
Lloh115:
	ldr	x8, [x8, _wine_glFogfv@GOTPAGEOFF]
Lloh116:
	ldr	w8, [x8]
Lloh117:
	adrp	x9, _old_fogcoord_glVertex4f@GOTPAGE
Lloh118:
	ldr	x9, [x9, _old_fogcoord_glVertex4f@GOTPAGEOFF]
Lloh119:
	str	w10, [x9]
Lloh120:
	adrp	x9, _wine_glVertex4f@GOTPAGE
Lloh121:
	ldr	x9, [x9, _wine_glVertex4f@GOTPAGEOFF]
Lloh122:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #104]
Lloh123:
	adrp	x8, _wine_glVertex4fv@GOTPAGE
Lloh124:
	ldr	x8, [x8, _wine_glVertex4fv@GOTPAGEOFF]
Lloh125:
	ldr	w8, [x8]
Lloh126:
	adrp	x9, _wine_glVertex3f@GOTPAGE
Lloh127:
	ldr	x9, [x9, _wine_glVertex3f@GOTPAGEOFF]
Lloh128:
	ldr	w9, [x9]
Lloh129:
	adrp	x10, _wine_glVertex3fv@GOTPAGE
Lloh130:
	ldr	x10, [x10, _wine_glVertex3fv@GOTPAGEOFF]
	stp	w9, w8, [x19, #96]
Lloh131:
	ldr	w8, [x10]
	ldr	w9, [x19, #88]
Lloh132:
	adrp	x10, _old_fogcoord_glColor4f@GOTPAGE
Lloh133:
	ldr	x10, [x10, _old_fogcoord_glColor4f@GOTPAGEOFF]
Lloh134:
	str	w9, [x10]
Lloh135:
	adrp	x9, _wine_glColor4f@GOTPAGE
Lloh136:
	ldr	x9, [x9, _wine_glColor4f@GOTPAGEOFF]
Lloh137:
	ldr	w9, [x9]
Lloh138:
	adrp	x10, _wine_glColor4fv@GOTPAGE
Lloh139:
	ldr	x10, [x10, _wine_glColor4fv@GOTPAGEOFF]
	stp	w9, w8, [x19, #88]
Lloh140:
	ldr	w8, [x10]
Lloh141:
	adrp	x9, _wine_glColor3f@GOTPAGE
Lloh142:
	ldr	x9, [x9, _wine_glColor3f@GOTPAGEOFF]
Lloh143:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #80]
Lloh144:
	adrp	x8, _wine_glColor3fv@GOTPAGE
Lloh145:
	ldr	x8, [x8, _wine_glColor3fv@GOTPAGEOFF]
Lloh146:
	ldr	w8, [x8]
Lloh147:
	adrp	x9, _wine_glColor4ub@GOTPAGE
Lloh148:
	ldr	x9, [x9, _wine_glColor4ub@GOTPAGEOFF]
Lloh149:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #72]
Lloh150:
	adrp	x8, _wine_glFogCoordfEXT@GOTPAGE
Lloh151:
	ldr	x8, [x8, _wine_glFogCoordfEXT@GOTPAGEOFF]
Lloh152:
	ldr	w8, [x8]
Lloh153:
	adrp	x9, _wine_glFogCoordfvEXT@GOTPAGE
Lloh154:
	ldr	x9, [x9, _wine_glFogCoordfvEXT@GOTPAGEOFF]
Lloh155:
	ldr	w9, [x9]
Lloh156:
	adrp	x10, _wine_glFogCoorddEXT@GOTPAGE
Lloh157:
	ldr	x10, [x10, _wine_glFogCoorddEXT@GOTPAGEOFF]
	stp	w9, w8, [x19, #16]
Lloh158:
	ldr	w8, [x10]
Lloh159:
	adrp	x9, _wine_glFogCoorddvEXT@GOTPAGE
Lloh160:
	ldr	x9, [x9, _wine_glFogCoorddvEXT@GOTPAGEOFF]
Lloh161:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
Lloh162:
	adrp	x8, _TRUE@GOTPAGE
Lloh163:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh164:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x8, [x9, #1024]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh49
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh162, Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotStr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotStr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotStr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotStr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGotStr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotStr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotStr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotStr	Lloh80, Lloh81, Lloh82
	.cfi_endproc
                                        ; -- End function
	.comm	_wine_glActiveTexture,4,2       ; @wine_glActiveTexture
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ARB_multitexture emulation hooks already applied.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Applying GL_ARB_multitexture emulation hooks.\n"

	.comm	_wine_glClientActiveTextureARB,4,2 ; @wine_glClientActiveTextureARB
	.comm	_wine_glMultiTexCoord1fARB,4,2  ; @wine_glMultiTexCoord1fARB
	.comm	_wine_glMultiTexCoord1fvARB,4,2 ; @wine_glMultiTexCoord1fvARB
	.comm	_wine_glMultiTexCoord2fARB,4,2  ; @wine_glMultiTexCoord2fARB
	.comm	_wine_glMultiTexCoord2fvARB,4,2 ; @wine_glMultiTexCoord2fvARB
	.comm	_wine_glMultiTexCoord3fARB,4,2  ; @wine_glMultiTexCoord3fARB
	.comm	_wine_glMultiTexCoord3fvARB,4,2 ; @wine_glMultiTexCoord3fvARB
	.comm	_wine_glMultiTexCoord4fARB,4,2  ; @wine_glMultiTexCoord4fARB
	.comm	_wine_glMultiTexCoord4fvARB,4,2 ; @wine_glMultiTexCoord4fvARB
	.comm	_wine_glMultiTexCoord2svARB,4,2 ; @wine_glMultiTexCoord2svARB
	.comm	_wine_glMultiTexCoord4svARB,4,2 ; @wine_glMultiTexCoord4svARB
	.comm	_old_multitex_glGetIntegerv,4,2 ; @old_multitex_glGetIntegerv
	.comm	_wine_glGetIntegerv,4,2         ; @wine_glGetIntegerv
	.comm	_old_multitex_glGetFloatv,4,2   ; @old_multitex_glGetFloatv
	.comm	_wine_glGetFloatv,4,2           ; @wine_glGetFloatv
	.comm	_old_multitex_glGetDoublev,4,2  ; @old_multitex_glGetDoublev
	.comm	_wine_glGetDoublev,4,2          ; @wine_glGetDoublev
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_wine_glFogi,4,2                ; @wine_glFogi
l_.str.2:                               ; @.str.2
	.asciz	"EXT_fog_coord emulation hooks already applied.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Applying GL_ARB_fog_coord emulation hooks\n"

	.comm	_ARB_FRAGMENT_PROGRAM,8,3       ; @ARB_FRAGMENT_PROGRAM
l_.str.4:                               ; @.str.4
	.asciz	"GL implementation supports GL_ARB_fragment_program but not GL_EXT_fog_coord\n"

l_.str.5:                               ; @.str.5
	.asciz	"The fog coord emulation will most likely fail\n"

	.comm	_ARB_FRAGMENT_SHADER,8,3        ; @ARB_FRAGMENT_SHADER
l_.str.6:                               ; @.str.6
	.asciz	"GL implementation supports GL_ARB_fragment_shader but not GL_EXT_fog_coord\n"

	.comm	_old_fogcoord_glFogi,4,2        ; @old_fogcoord_glFogi
	.comm	_old_fogcoord_glFogiv,4,2       ; @old_fogcoord_glFogiv
	.comm	_wine_glFogiv,4,2               ; @wine_glFogiv
	.comm	_old_fogcoord_glFogf,4,2        ; @old_fogcoord_glFogf
	.comm	_wine_glFogf,4,2                ; @wine_glFogf
	.comm	_old_fogcoord_glFogfv,4,2       ; @old_fogcoord_glFogfv
	.comm	_wine_glFogfv,4,2               ; @wine_glFogfv
	.comm	_glEnableWINE,4,2               ; @glEnableWINE
	.comm	_old_fogcoord_glEnable,4,2      ; @old_fogcoord_glEnable
	.comm	_wine_glEnable,4,2              ; @wine_glEnable
	.comm	_glDisableWINE,4,2              ; @glDisableWINE
	.comm	_old_fogcoord_glDisable,4,2     ; @old_fogcoord_glDisable
	.comm	_wine_glDisable,4,2             ; @wine_glDisable
	.comm	_old_fogcoord_glVertex4f,4,2    ; @old_fogcoord_glVertex4f
	.comm	_wine_glVertex4f,4,2            ; @wine_glVertex4f
	.comm	_wine_glVertex4fv,4,2           ; @wine_glVertex4fv
	.comm	_wine_glVertex3f,4,2            ; @wine_glVertex3f
	.comm	_wine_glVertex3fv,4,2           ; @wine_glVertex3fv
	.comm	_old_fogcoord_glColor4f,4,2     ; @old_fogcoord_glColor4f
	.comm	_wine_glColor4f,4,2             ; @wine_glColor4f
	.comm	_wine_glColor4fv,4,2            ; @wine_glColor4fv
	.comm	_wine_glColor3f,4,2             ; @wine_glColor3f
	.comm	_wine_glColor3fv,4,2            ; @wine_glColor3fv
	.comm	_wine_glColor4ub,4,2            ; @wine_glColor4ub
	.comm	_wine_glFogCoordfEXT,4,2        ; @wine_glFogCoordfEXT
	.comm	_wine_glFogCoordfvEXT,4,2       ; @wine_glFogCoordfvEXT
	.comm	_wine_glFogCoorddEXT,4,2        ; @wine_glFogCoorddEXT
	.comm	_wine_glFogCoorddvEXT,4,2       ; @wine_glFogCoorddvEXT
l_.str.7:                               ; @.str.7
	.asciz	"Extension %u emulation not supported.\n"

.subsections_via_symbols
