	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function d3drm_frame_create
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_d3drm_frame_create
	.p2align	4, 0x90
_d3drm_frame_create:                    ## @d3drm_frame_create
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_D3DRM_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_TRACE
	movl	$56, %edi
	callq	_heap_alloc_zero
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_d3drm_frame1_vtbl@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	_d3drm_frame2_vtbl@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_d3drm_frame3_vtbl@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%r13, 8(%rbx)
	movl	$1, (%rbx)
	leaq	32(%rbx), %rdi
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	xorps	%xmm2, %xmm2
	callq	_d3drm_set_color
	movq	_D3DRMFRAME_RENDERENABLE@GOTPCREL(%rip), %rax
	movq	_D3DRMFRAME_PICKENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	leaq	28(%rbx), %rdi
	leaq	_d3drm_frame_create.classname(%rip), %rsi
	callq	_d3drm_object_init
	movq	_identity@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:
	movq	_IID_IDirect3DRMFrame3@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_IDirect3DRMFrame_QueryInterface
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rbx, %rdi
	callq	_heap_free
	jmp	LBB0_6
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %r13
	addq	$16, %r13
	movq	%r12, %rdi
	callq	_IDirect3DRMFrame_Release
	movq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_IDirect3DRMFrame3_AddChild
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_IDirect3DRM_AddRef
	movq	%rbx, (%r14)
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_d3drm_frame_create.classname:          ## @d3drm_frame_create.classname
	.asciz	"Frame"

	.comm	_D3DRM_OK,4,2                   ## @D3DRM_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame %p, parent_frame %p, d3drm %p.\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_d3drm_frame1_vtbl,4,2          ## @d3drm_frame1_vtbl
	.comm	_d3drm_frame2_vtbl,4,2          ## @d3drm_frame2_vtbl
	.comm	_d3drm_frame3_vtbl,4,2          ## @d3drm_frame3_vtbl
	.comm	_D3DRMFRAME_RENDERENABLE,4,2    ## @D3DRMFRAME_RENDERENABLE
	.comm	_D3DRMFRAME_PICKENABLE,4,2      ## @D3DRMFRAME_PICKENABLE
	.comm	_identity,4,2                   ## @identity
	.comm	_IID_IDirect3DRMFrame3,4,2      ## @IID_IDirect3DRMFrame3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3drm_frame_create             ; -- Begin function d3drm_frame_create
	.p2align	2
_d3drm_frame_create:                    ; @d3drm_frame_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x24, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _D3DRM_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DRM_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	mov	x3, x24
	bl	_TRACE
	mov	w0, #56
	bl	_heap_alloc_zero
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh5:
	adrp	x8, _d3drm_frame1_vtbl@GOTPAGE
Lloh6:
	ldr	x8, [x8, _d3drm_frame1_vtbl@GOTPAGEOFF]
Lloh7:
	adrp	x9, _d3drm_frame2_vtbl@GOTPAGE
Lloh8:
	ldr	x9, [x9, _d3drm_frame2_vtbl@GOTPAGEOFF]
	stp	x9, x8, [x0, #40]
Lloh9:
	adrp	x8, _d3drm_frame3_vtbl@GOTPAGE
Lloh10:
	ldr	x8, [x8, _d3drm_frame3_vtbl@GOTPAGEOFF]
	mov	x23, x0
	str	x8, [x23, #16]!
	str	x24, [x0, #8]
	mov	w8, #1
	str	w8, [x0], #32
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	movi	d2, #0000000000000000
	fmov	s3, #1.00000000
	bl	_d3drm_set_color
Lloh11:
	adrp	x8, _D3DRMFRAME_RENDERENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D3DRMFRAME_RENDERENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _D3DRMFRAME_PICKENABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _D3DRMFRAME_PICKENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #4]
	add	x0, x21, #28
Lloh17:
	adrp	x1, _d3drm_frame_create.classname@PAGE
Lloh18:
	add	x1, x1, _d3drm_frame_create.classname@PAGEOFF
	bl	_d3drm_object_init
Lloh19:
	adrp	x8, _identity@GOTPAGE
Lloh20:
	ldr	x8, [x8, _identity@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	cbz	x22, LBB0_6
; %bb.2:
Lloh22:
	adrp	x1, _IID_IDirect3DRMFrame3@GOTPAGE
Lloh23:
	ldr	x1, [x1, _IID_IDirect3DRMFrame3@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x0, x22
	bl	_IDirect3DRMFrame_QueryInterface
	mov	x19, x0
	bl	_FAILED
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_heap_free
	b	LBB0_7
LBB0_4:
Lloh24:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh26:
	ldr	w19, [x8]
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	bl	_IDirect3DRMFrame_Release
	ldr	x0, [sp, #8]
	mov	x1, x23
	bl	_IDirect3DRMFrame3_AddChild
LBB0_6:
	ldr	x0, [x21, #8]
	bl	_IDirect3DRM_AddRef
	str	x21, [x20]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_d3drm_frame_create.classname:          ; @d3drm_frame_create.classname
	.asciz	"Frame"

	.comm	_D3DRM_OK,4,2                   ; @D3DRM_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame %p, parent_frame %p, d3drm %p.\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_d3drm_frame1_vtbl,4,2          ; @d3drm_frame1_vtbl
	.comm	_d3drm_frame2_vtbl,4,2          ; @d3drm_frame2_vtbl
	.comm	_d3drm_frame3_vtbl,4,2          ; @d3drm_frame3_vtbl
	.comm	_D3DRMFRAME_RENDERENABLE,4,2    ; @D3DRMFRAME_RENDERENABLE
	.comm	_D3DRMFRAME_PICKENABLE,4,2      ; @D3DRMFRAME_PICKENABLE
	.comm	_identity,4,2                   ; @identity
	.comm	_IID_IDirect3DRMFrame3,4,2      ; @IID_IDirect3DRMFrame3
.subsections_via_symbols
