	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_texture_allocate_gl_immutable_storage
_wined3d_texture_allocate_gl_immutable_storage: ## @wined3d_texture_allocate_gl_immutable_storage
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_wined3d_texture_get_gl_sample_count
	movl	%eax, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wined3d_texture_get_level_pow2_height
	movl	%eax, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wined3d_texture_get_level_pow2_width
	movl	(%rbx), %edi
	cmpl	$128, %edi
	je	LBB0_5
## %bb.1:
	cmpl	$129, %edi
	je	LBB0_4
## %bb.2:
	cmpl	$130, %edi
	jne	LBB0_6
## %bb.3:
	movl	4(%rbx), %esi
	movl	8(%rbx), %r9d
	movl	$130, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	%r12d, %r8d
	callq	_glTexStorage3D
	jmp	LBB0_7
LBB0_5:
	movl	8(%rbx), %r9d
	movq	_GL_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	movl	$128, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	%r12d, %r8d
	callq	_glTexStorage3DMultisample
	jmp	LBB0_7
LBB0_4:
	movq	_GL_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	$129, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	%r12d, %r8d
	callq	_glTexStorage2DMultisample
	jmp	LBB0_7
LBB0_6:
	movl	4(%rbx), %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	%r12d, %r8d
	callq	_glTexStorage2D
LBB0_7:
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str(%rip), %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allocate immutable storage"

	.no_dead_strip	_wined3d_texture_allocate_gl_immutable_storage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_texture_allocate_gl_immutable_storage
_wined3d_texture_allocate_gl_immutable_storage: ; @wined3d_texture_allocate_gl_immutable_storage
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
	bl	_wined3d_texture_get_gl_sample_count
	mov	x22, x0
	mov	x0, x21
	mov	w1, #0
	bl	_wined3d_texture_get_level_pow2_height
	mov	x20, x0
	mov	x0, x21
	mov	w1, #0
	bl	_wined3d_texture_get_level_pow2_width
	mov	x3, x0
	ldr	w0, [x21]
	cmp	w0, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_6
; %bb.3:
	ldp	w1, w5, [x21, #4]
	mov	x2, x19
	mov	x4, x20
	bl	_glTexStorage3D
	b	LBB0_7
LBB0_4:
	ldr	w5, [x21, #8]
Lloh0:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
	mov	x1, x22
	mov	x2, x19
	mov	x4, x20
	bl	_glTexStorage3DMultisample
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x1, x22
	mov	x2, x19
	mov	x4, x20
	bl	_glTexStorage2DMultisample
	b	LBB0_7
LBB0_6:
	ldr	w1, [x21, #4]
	mov	x2, x19
	mov	x4, x20
	bl	_glTexStorage2D
LBB0_7:
	bl	_GL_EXTCALL
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_checkGLcall
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allocate immutable storage"

	.no_dead_strip	_wined3d_texture_allocate_gl_immutable_storage
.subsections_via_symbols
