	.file	"extr_direct3d9.c_Direct3D9DestroyScene.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Direct3D9 scene released successfully"
	.text
	.p2align 4
	.type	Direct3D9DestroyScene, @function
Direct3D9DestroyScene:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR [rdi]
	mov	rdi, QWORD PTR 8[rbx]
	mov	rsi, QWORD PTR [rbx]
	call	Direct3D9DeleteRegions@PLT
	mov	rdi, QWORD PTR 24[rbx]
	test	rdi, rdi
	je	.L2
	call	IDirect3DVertexBuffer9_Release@PLT
	mov	QWORD PTR 24[rbx], 0
.L2:
	mov	rdi, QWORD PTR 16[rbx]
	test	rdi, rdi
	je	.L3
	call	IDirect3DTexture9_Release@PLT
	mov	QWORD PTR 16[rbx], 0
.L3:
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	mov	QWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	msg_Dbg@PLT
	.cfi_endproc
.LFE0:
	.size	Direct3D9DestroyScene, .-Direct3D9DestroyScene
	.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_direct3d9.c_Direct3D9DestroyScene.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Direct3D9 scene released successfully\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Direct3D9DestroyScene, %function
Direct3D9DestroyScene:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0]
	mov	r5, r0
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	bl	Direct3D9DeleteRegions
	ldr	r0, [r4, #12]
	cmp	r0, #0
	beq	.L2
	bl	IDirect3DVertexBuffer9_Release
	mov	r3, #0
	str	r3, [r4, #12]
.L2:
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L3
	bl	IDirect3DTexture9_Release
	mov	r3, #0
	str	r3, [r4, #8]
.L3:
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4, #4]
	str	r3, [r4]
	ldr	r1, .L12
	pop	{r4, r5, r6, lr}
	b	msg_Dbg
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	Direct3D9DestroyScene, .-Direct3D9DestroyScene
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
