	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_texture_view
_create_texture_view:                   ## @create_texture_view
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, (%rdi)
	movl	(%rcx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_context_acquire
	movq	(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	24(%rcx), %rdx
	movq	_ARB_TEXTURE_VIEW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rdx,%rcx,4)
	je	LBB0_1
## %bb.3:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movq	%rax, %r13
	movq	%rax, %rsi
	callq	_wined3d_texture_prepare_texture
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_wined3d_texture_get_texture_name
	movl	(%r14), %r13d
	movl	4(%r14), %edx
	movq	_GL_TEXTURE_3D@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jne	LBB0_4
## %bb.5:
	testl	%r13d, %r13d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_8
## %bb.6:
	cmpl	$1, %edx
	jne	LBB0_8
## %bb.7:
	xorl	%r13d, %r13d
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
LBB0_1:
	movq	%rax, %rdi
	callq	_context_release
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movl	%edx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	movl	$1, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_FIXME
	xorl	%r13d, %r13d
LBB0_9:
	leaq	8(%r12), %rsi
	movl	$1, %edi
	callq	*16(%rbx)
	movl	8(%r12), %edi
	movq	(%r12), %rsi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %ecx
	movl	8(%r14), %r9d
	movl	12(%r14), %r8d
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	callq	_glTextureView
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str.2(%rip), %rdi
	callq	_checkGLcall
	movq	%r15, %rdi
	callq	_is_stencil_view_format
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	24(%rbx), %rax
	movq	_ARB_STENCIL_TEXTURING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_11
## %bb.12:
	movq	(%r12), %rsi
	movl	8(%r12), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_context_bind_texture
	movq	(%r12), %rdi
	movq	_GL_TEXTURE_SWIZZLE_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	_create_texture_view.swizzle(%rip), %rdx
	callq	*8(%rbx)
	movq	(%r12), %rdi
	movq	_GL_DEPTH_STENCIL_TEXTURE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_STENCIL_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	*(%rbx)
	leaq	L_.str.4(%rip), %rdi
	callq	_checkGLcall
	movq	_STATE_COMPUTE_SHADER_RESOURCE_BINDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_context_invalidate_compute_state
	movq	_STATE_GRAPHICS_SHADER_RESOURCE_BINDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_context_invalidate_state
LBB0_13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_context_release                ## TAILCALL
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_context_release
	leaq	L_.str.3(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARB_TEXTURE_VIEW,8,3           ## @ARB_TEXTURE_VIEW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OpenGL implementation does not support texture views.\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_GL_TEXTURE_3D,8,3              ## @GL_TEXTURE_3D
L_.str.1:                               ## @.str.1
	.asciz	"Depth slice (%u-%u) not supported.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Create texture view"

	.section	__TEXT,__const
	.p2align	4                               ## @create_texture_view.swizzle
_create_texture_view.swizzle:
	.long	128                             ## 0x80
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	128                             ## 0x80

	.comm	_ARB_STENCIL_TEXTURING,8,3      ## @ARB_STENCIL_TEXTURING
	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"OpenGL implementation does not support stencil texturing.\n"

	.comm	_GL_TEXTURE_SWIZZLE_RGBA,4,2    ## @GL_TEXTURE_SWIZZLE_RGBA
	.comm	_GL_DEPTH_STENCIL_TEXTURE_MODE,4,2 ## @GL_DEPTH_STENCIL_TEXTURE_MODE
	.comm	_GL_STENCIL_INDEX,4,2           ## @GL_STENCIL_INDEX
L_.str.4:                               ## @.str.4
	.asciz	"Initialize stencil view"

	.comm	_STATE_COMPUTE_SHADER_RESOURCE_BINDING,4,2 ## @STATE_COMPUTE_SHADER_RESOURCE_BINDING
	.comm	_STATE_GRAPHICS_SHADER_RESOURCE_BINDING,4,2 ## @STATE_GRAPHICS_SHADER_RESOURCE_BINDING
	.no_dead_strip	_create_texture_view
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_texture_view
_create_texture_view:                   ; @create_texture_view
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x23, x3
	mov	x22, x2
	mov	x26, x1
	mov	x20, x0
	str	x1, [x0]
	ldr	w0, [x3]
	mov	x1, #0
	mov	w2, #0
	bl	_context_acquire
	mov	x19, x0
	ldr	x27, [x0]
	ldr	x8, [x27, #24]
Lloh0:
	adrp	x9, _ARB_TEXTURE_VIEW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARB_TEXTURE_VIEW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_10
; %bb.1:
Lloh3:
	adrp	x24, _FALSE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x23
	mov	x1, x19
	bl	_wined3d_texture_prepare_texture
	ldr	w2, [x24]
	mov	x0, x23
	mov	x1, x19
	bl	_wined3d_texture_get_texture_name
	mov	x23, x0
	ldp	w24, w25, [x22]
Lloh5:
	adrp	x8, _GL_TEXTURE_3D@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_TEXTURE_3D@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x26
	b.ne	LBB0_6
; %bb.2:
	cbnz	w24, LBB0_4
; %bb.3:
	cmp	w25, #1
	b.eq	LBB0_5
LBB0_4:
	stp	x24, x25, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
LBB0_5:
	mov	w24, #0
	mov	w25, #1
LBB0_6:
	ldr	x8, [x27, #16]
	add	x1, x20, #8
	mov	w0, #1
	blr	x8
	ldr	w0, [x20, #8]
	ldr	x1, [x20]
	ldr	w3, [x21]
	ldp	w5, w4, [x22, #8]
	mov	x2, x23
	mov	x6, x24
	mov	x7, x25
	bl	_glTextureView
	bl	_GL_EXTCALL
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_checkGLcall
	mov	x0, x21
	bl	_is_stencil_view_format
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x27, #24]
Lloh12:
	adrp	x9, _ARB_STENCIL_TEXTURING@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ARB_STENCIL_TEXTURING@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_11
; %bb.8:
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_context_bind_texture
	ldr	x8, [x27, #8]
	ldr	x0, [x20]
Lloh15:
	adrp	x9, _GL_TEXTURE_SWIZZLE_RGBA@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GL_TEXTURE_SWIZZLE_RGBA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
Lloh18:
	adrp	x2, _create_texture_view.swizzle@PAGE
Lloh19:
	add	x2, x2, _create_texture_view.swizzle@PAGEOFF
	blr	x8
	ldr	x8, [x27]
	ldr	x0, [x20]
Lloh20:
	adrp	x9, _GL_DEPTH_STENCIL_TEXTURE_MODE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _GL_DEPTH_STENCIL_TEXTURE_MODE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x9]
Lloh23:
	adrp	x9, _GL_STENCIL_INDEX@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GL_STENCIL_INDEX@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x9]
	blr	x8
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_checkGLcall
Lloh28:
	adrp	x8, _STATE_COMPUTE_SHADER_RESOURCE_BINDING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _STATE_COMPUTE_SHADER_RESOURCE_BINDING@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_context_invalidate_compute_state
Lloh31:
	adrp	x8, _STATE_GRAPHICS_SHADER_RESOURCE_BINDING@GOTPAGE
Lloh32:
	ldr	x8, [x8, _STATE_GRAPHICS_SHADER_RESOURCE_BINDING@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_context_invalidate_state
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_context_release
LBB0_10:
	mov	x0, x19
	bl	_context_release
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_context_release
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_FIXME
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ARB_TEXTURE_VIEW,8,3           ; @ARB_TEXTURE_VIEW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OpenGL implementation does not support texture views.\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_GL_TEXTURE_3D,8,3              ; @GL_TEXTURE_3D
l_.str.1:                               ; @.str.1
	.asciz	"Depth slice (%u-%u) not supported.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Create texture view"

	.section	__TEXT,__const
	.p2align	2                               ; @create_texture_view.swizzle
_create_texture_view.swizzle:
	.long	128                             ; 0x80
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	128                             ; 0x80

	.comm	_ARB_STENCIL_TEXTURING,8,3      ; @ARB_STENCIL_TEXTURING
	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"OpenGL implementation does not support stencil texturing.\n"

	.comm	_GL_TEXTURE_SWIZZLE_RGBA,4,2    ; @GL_TEXTURE_SWIZZLE_RGBA
	.comm	_GL_DEPTH_STENCIL_TEXTURE_MODE,4,2 ; @GL_DEPTH_STENCIL_TEXTURE_MODE
	.comm	_GL_STENCIL_INDEX,4,2           ; @GL_STENCIL_INDEX
l_.str.4:                               ; @.str.4
	.asciz	"Initialize stencil view"

	.comm	_STATE_COMPUTE_SHADER_RESOURCE_BINDING,4,2 ; @STATE_COMPUTE_SHADER_RESOURCE_BINDING
	.comm	_STATE_GRAPHICS_SHADER_RESOURCE_BINDING,4,2 ; @STATE_GRAPHICS_SHADER_RESOURCE_BINDING
	.no_dead_strip	_create_texture_view
.subsections_via_symbols
