	.file	"extr_frame.c_d3drm_frame_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"frame %p, parent_frame %p, d3drm %p.\n"
	.text
	.p2align 4
	.globl	d3drm_frame_create
	.type	d3drm_frame_create, @function
d3drm_frame_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rcx, rdx
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	mov	rdx, rsi
	mov	rsi, rdi
	lea	rdi, .LC0[rip]
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r13d, DWORD PTR D3DRM_OK[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	TRACE@PLT
	mov	edi, 56
	call	heap_alloc_zero@PLT
	test	rax, rax
	je	.L12
	mov	rbp, rax
	lea	rax, d3drm_frame1_vtbl[rip]
	pxor	xmm2, xmm2
	movss	xmm3, DWORD PTR .LC1[rip]
	mov	QWORD PTR 48[rbp], rax
	lea	rdi, 32[rbp]
	movaps	xmm1, xmm2
	movaps	xmm0, xmm2
	lea	rax, d3drm_frame2_vtbl[rip]
	mov	QWORD PTR 8[rbp], rbx
	mov	QWORD PTR 40[rbp], rax
	lea	rax, d3drm_frame3_vtbl[rip]
	mov	QWORD PTR 16[rbp], rax
	mov	DWORD PTR 0[rbp], 1
	call	d3drm_set_color@PLT
	mov	eax, DWORD PTR D3DRMFRAME_RENDERENABLE[rip]
	lea	rdi, 28[rbp]
	or	eax, DWORD PTR D3DRMFRAME_PICKENABLE[rip]
	mov	DWORD PTR 4[rbp], eax
	lea	rsi, classname.1983[rip]
	call	d3drm_object_init@PLT
	mov	eax, DWORD PTR identity[rip]
	mov	DWORD PTR 24[rbp], eax
	test	r14, r14
	je	.L4
	mov	rdi, r14
	mov	rdx, rsp
	lea	rsi, IID_IDirect3DRMFrame3[rip]
	call	IDirect3DRMFrame_QueryInterface@PLT
	mov	edi, eax
	mov	r13d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L13
	mov	rdi, r14
	call	IDirect3DRMFrame_Release@PLT
	mov	rdi, QWORD PTR [rsp]
	lea	rsi, 16[rbp]
	call	IDirect3DRMFrame3_AddChild@PLT
.L4:
	mov	rdi, QWORD PTR 8[rbp]
	call	IDirect3DRM_AddRef@PLT
	mov	QWORD PTR [r12], rbp
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	r13d, DWORD PTR E_OUTOFMEMORY[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbp
	call	heap_free@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	d3drm_frame_create, .-d3drm_frame_create
	.section	.rodata
	.type	classname.1983, @object
	.size	classname.1983, 6
classname.1983:
	.string	"Frame"
	.comm	identity,4,4
	.comm	d3drm_frame3_vtbl,4,4
	.comm	d3drm_frame2_vtbl,4,4
	.comm	d3drm_frame1_vtbl,4,4
	.comm	IID_IDirect3DRMFrame3,4,4
	.comm	E_OUTOFMEMORY,4,4
	.comm	D3DRM_OK,4,4
	.comm	D3DRMFRAME_RENDERENABLE,4,4
	.comm	D3DRMFRAME_PICKENABLE,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1065353216
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_frame.c_d3drm_frame_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"frame %p, parent_frame %p, d3drm %p.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	d3drm_frame_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	d3drm_frame_create, %function
d3drm_frame_create:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, .L15
	ldr	lr, .L15+4
	mov	r3, r2
	sub	sp, sp, #16
	mov	r7, r0
	mov	r6, r1
	mov	r5, r2
	mov	r2, r1
	mov	r1, r0
	ldr	r0, .L15+8
	ldr	lr, [lr]
	str	lr, [sp, #12]
	mov	lr,#0
	ldr	r8, [ip]
	bl	TRACE
	mov	r0, #36
	bl	heap_alloc_zero
	subs	r4, r0, #0
	beq	.L12
	ldr	r2, .L15+12
	ldr	r3, .L15+16
	str	r2, [r4, #32]
	str	r3, [r4, #28]
	mov	r1, #1
	mov	r3, #0
	mov	r0, r4
	mov	r2, #1065353216
	ldr	ip, .L15+20
	str	r5, [r4, #8]
	str	ip, [r4, #12]
	str	r1, [r0], #24
	mov	r1, r3
	str	r2, [sp]	@ float
	mov	r2, r3
	bl	d3drm_set_color
	ldr	r3, .L15+24
	ldr	r2, .L15+28
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L15+32
	orr	r3, r3, r2
	str	r3, [r4, #4]
	add	r0, r4, #20
	bl	d3drm_object_init
	ldr	r3, .L15+36
	cmp	r6, #0
	ldr	r3, [r3]
	str	r3, [r4, #16]
	beq	.L4
	ldr	r1, .L15+40
	add	r2, sp, #8
	mov	r0, r6
	bl	IDirect3DRMFrame_QueryInterface
	mov	r8, r0
	bl	FAILED
	cmp	r0, #0
	bne	.L13
	mov	r0, r6
	bl	IDirect3DRMFrame_Release
	ldr	r0, [sp, #8]
	add	r1, r4, #12
	bl	IDirect3DRMFrame3_AddChild
.L4:
	ldr	r0, [r4, #8]
	bl	IDirect3DRM_AddRef
	str	r4, [r7]
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r8
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L15+44
	ldr	r8, [r3]
	b	.L1
.L13:
	mov	r0, r4
	bl	heap_free
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	D3DRM_OK
	.word	.LC1
	.word	.LC0
	.word	d3drm_frame1_vtbl
	.word	d3drm_frame2_vtbl
	.word	d3drm_frame3_vtbl
	.word	D3DRMFRAME_RENDERENABLE
	.word	D3DRMFRAME_PICKENABLE
	.word	.LANCHOR0
	.word	identity
	.word	IID_IDirect3DRMFrame3
	.word	E_OUTOFMEMORY
	.size	d3drm_frame_create, .-d3drm_frame_create
	.comm	identity,4,4
	.comm	d3drm_frame3_vtbl,4,4
	.comm	d3drm_frame2_vtbl,4,4
	.comm	d3drm_frame1_vtbl,4,4
	.comm	IID_IDirect3DRMFrame3,4,4
	.comm	E_OUTOFMEMORY,4,4
	.comm	D3DRM_OK,4,4
	.comm	D3DRMFRAME_RENDERENABLE,4,4
	.comm	D3DRMFRAME_PICKENABLE,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	classname.4267, %object
	.size	classname.4267, 6
classname.4267:
	.ascii	"Frame\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
