	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_generate_rt_mask_from_resource
_context_generate_rt_mask_from_resource: ## @context_generate_rt_mask_from_resource
	.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), %rax
	movq	_WINED3D_RTYPE_TEXTURE_2D@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	callq	_texture_from_resource
	movl	%eax, %edi
	callq	_wined3d_texture_get_gl_buffer
	orl	$-2147483648, %eax              ## imm = 0x80000000
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %rdi
	callq	_debug_d3dresourcetype
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_RTYPE_TEXTURE_2D,8,3   ## @WINED3D_RTYPE_TEXTURE_2D
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not implemented for %s resources.\n"

	.no_dead_strip	_context_generate_rt_mask_from_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_generate_rt_mask_from_resource
_context_generate_rt_mask_from_resource: ; @context_generate_rt_mask_from_resource
	.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
	mov	x8, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x9, _WINED3D_RTYPE_TEXTURE_2D@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_RTYPE_TEXTURE_2D@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x8
	bl	_texture_from_resource
	bl	_wined3d_texture_get_gl_buffer
	orr	w0, w0, #0x80000000
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_debug_d3dresourcetype
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_RTYPE_TEXTURE_2D,8,3   ; @WINED3D_RTYPE_TEXTURE_2D
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not implemented for %s resources.\n"

	.no_dead_strip	_context_generate_rt_mask_from_resource
.subsections_via_symbols
