	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_attach_gl_texture_fbo
_context_attach_gl_texture_fbo:         ## @context_attach_gl_texture_fbo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r9
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movl	12(%rcx), %r8d
	movq	_WINED3D_ALL_LAYERS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_5
## %bb.3:
	movq	24(%r9), %r8
	testq	%r8, %r8
	je	LBB0_15
## %bb.4:
	movl	(%rcx), %eax
	movl	4(%rcx), %ecx
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%ecx, %edx
	movl	%eax, %ecx
	callq	*%r8
	jmp	LBB0_14
LBB0_1:
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
LBB0_13:
	callq	*(%r9)
LBB0_14:
	leaq	L_.str.3(%rip), %rdi
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
LBB0_5:
	movl	8(%rcx), %eax
	movq	_GL_TEXTURE_1D_ARRAY@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	je	LBB0_8
## %bb.6:
	movq	_GL_TEXTURE_2D_ARRAY@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	je	LBB0_8
## %bb.7:
	movq	_GL_TEXTURE_3D@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	je	LBB0_8
## %bb.10:
	movq	_GL_TEXTURE_1D@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	jne	LBB0_12
## %bb.11:
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%eax, %edx
	callq	*8(%r9)
	leaq	L_.str.2(%rip), %rdi
	callq	_checkGLcall
	jmp	LBB0_14
LBB0_8:
	movq	16(%r9), %r9
	testq	%r9, %r9
	je	LBB0_16
## %bb.9:
	movl	(%rcx), %eax
	movl	4(%rcx), %ecx
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%ecx, %edx
	movl	%eax, %ecx
	callq	*%r9
	jmp	LBB0_14
LBB0_15:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
LBB0_12:
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%eax, %edx
	jmp	LBB0_13
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_WINED3D_ALL_LAYERS,4,2         ## @WINED3D_ALL_LAYERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OpenGL implementation doesn't support glFramebufferTexture().\n"

	.comm	_GL_TEXTURE_1D_ARRAY,4,2        ## @GL_TEXTURE_1D_ARRAY
	.comm	_GL_TEXTURE_2D_ARRAY,4,2        ## @GL_TEXTURE_2D_ARRAY
	.comm	_GL_TEXTURE_3D,4,2              ## @GL_TEXTURE_3D
L_.str.1:                               ## @.str.1
	.asciz	"OpenGL implementation doesn't support glFramebufferTextureLayer().\n"

	.comm	_GL_TEXTURE_1D,4,2              ## @GL_TEXTURE_1D
L_.str.2:                               ## @.str.2
	.asciz	"glFramebufferTexture1D()"

L_.str.3:                               ## @.str.3
	.asciz	"attach texture to fbo"

	.no_dead_strip	_context_attach_gl_texture_fbo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_attach_gl_texture_fbo
_context_attach_gl_texture_fbo:         ; @context_attach_gl_texture_fbo
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x0]
	cbz	x3, LBB0_4
; %bb.1:
	ldr	w4, [x3, #12]
Lloh0:
	adrp	x8, _WINED3D_ALL_LAYERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_ALL_LAYERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w4, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	x9, [x9, #24]
	cbz	x9, LBB0_10
; %bb.3:
	ldp	w3, w8, [x3]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x8
	blr	x9
	b	LBB0_12
LBB0_4:
	ldr	x9, [x9]
Lloh3:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x8
	mov	w4, #0
	blr	x9
	b	LBB0_12
LBB0_5:
	ldr	w8, [x3, #8]
Lloh6:
	adrp	x10, _GL_TEXTURE_1D_ARRAY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GL_TEXTURE_1D_ARRAY@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _GL_TEXTURE_2D_ARRAY@GOTPAGE
Lloh10:
	ldr	x11, [x11, _GL_TEXTURE_2D_ARRAY@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	adrp	x12, _GL_TEXTURE_3D@GOTPAGE
Lloh13:
	ldr	x12, [x12, _GL_TEXTURE_3D@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	cmp	w8, w10
	ccmp	w8, w11, #4, ne
	ccmp	w8, w12, #4, ne
	b.ne	LBB0_8
; %bb.6:
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_13
; %bb.7:
	ldp	w3, w8, [x3]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x8
	blr	x9
	b	LBB0_12
LBB0_8:
Lloh15:
	adrp	x10, _GL_TEXTURE_1D@GOTPAGE
Lloh16:
	ldr	x10, [x10, _GL_TEXTURE_1D@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_11
; %bb.9:
	ldr	x10, [x9, #8]
	ldp	w4, w9, [x3]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x8
	mov	x3, x9
	blr	x10
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_checkGLcall
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_FIXME
LBB0_11:
	ldr	x10, [x9]
	ldp	w4, w9, [x3]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x8
	mov	x3, x9
	blr	x10
LBB0_12:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_checkGLcall
LBB0_13:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_FIXME
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_WINED3D_ALL_LAYERS,4,2         ; @WINED3D_ALL_LAYERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OpenGL implementation doesn't support glFramebufferTexture().\n"

	.comm	_GL_TEXTURE_1D_ARRAY,4,2        ; @GL_TEXTURE_1D_ARRAY
	.comm	_GL_TEXTURE_2D_ARRAY,4,2        ; @GL_TEXTURE_2D_ARRAY
	.comm	_GL_TEXTURE_3D,4,2              ; @GL_TEXTURE_3D
l_.str.1:                               ; @.str.1
	.asciz	"OpenGL implementation doesn't support glFramebufferTextureLayer().\n"

	.comm	_GL_TEXTURE_1D,4,2              ; @GL_TEXTURE_1D
l_.str.2:                               ; @.str.2
	.asciz	"glFramebufferTexture1D()"

l_.str.3:                               ; @.str.3
	.asciz	"attach texture to fbo"

	.no_dead_strip	_context_attach_gl_texture_fbo
.subsections_via_symbols
