	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ddraw_surface_get_rendertarget_view ## -- Begin function ddraw_surface_get_rendertarget_view
	.p2align	4, 0x90
_ddraw_surface_get_rendertarget_view:   ## @ddraw_surface_get_rendertarget_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %esi
	movl	12(%rdi), %edi
	movq	_ddraw_view_wined3d_parent_ops@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdx
	movq	%rbx, %r8
	callq	_wined3d_rendertarget_view_create_from_sub_resource
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_ERR
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movq	(%rbx), %rax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ddraw_view_wined3d_parent_ops,4,2 ## @ddraw_view_wined3d_parent_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create rendertarget view, hr %#x.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ddraw_surface_get_rendertarget_view ; -- Begin function ddraw_surface_get_rendertarget_view
	.p2align	2
_ddraw_surface_get_rendertarget_view:   ; @ddraw_surface_get_rendertarget_view
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_4
; %bb.1:
	ldp	w1, w0, [x19, #8]
Lloh0:
	adrp	x3, _ddraw_view_wined3d_parent_ops@GOTPAGE
Lloh1:
	ldr	x3, [x3, _ddraw_view_wined3d_parent_ops@GOTPAGEOFF]
	mov	x2, x19
	mov	x4, x19
	bl	_wined3d_rendertarget_view_create_from_sub_resource
	mov	x20, x0
	bl	_FAILED
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_ERR
	mov	x0, #0
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ddraw_view_wined3d_parent_ops,4,2 ; @ddraw_view_wined3d_parent_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create rendertarget view, hr %#x.\n"

.subsections_via_symbols
