	.file	"extr_texture.c_d3drm_texture_destroy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"texture %p is being destroyed.\n"
	.text
	.p2align 4
	.type	d3drm_texture_destroy, @function
d3drm_texture_destroy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rsi, rdi
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	call	TRACE@PLT
	lea	rsi, 24[rbp]
	lea	rdi, 28[rbp]
	call	d3drm_object_cleanup@PLT
	cmp	QWORD PTR 16[rbp], 0
	jne	.L2
	cmp	QWORD PTR 0[rbp], 0
	je	.L3
.L2:
	mov	edi, DWORD PTR 8[rbp]
	call	IDirect3DRM_Release@PLT
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	jne	.L10
.L3:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	heap_free@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	IDirectDrawSurface_Release@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	heap_free@PLT
	.cfi_endproc
.LFE0:
	.size	d3drm_texture_destroy, .-d3drm_texture_destroy
	.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_texture.c_d3drm_texture_destroy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"texture %p is being destroyed.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	d3drm_texture_destroy, %function
d3drm_texture_destroy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, .L11
	mov	r1, r4
	bl	TRACE
	add	r1, r4, #12
	add	r0, r4, #16
	bl	d3drm_object_cleanup
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L3
.L2:
	ldr	r0, [r4, #4]
	bl	IDirect3DRM_Release
	ldr	r0, [r4]
	cmp	r0, #0
	bne	.L10
.L3:
	mov	r0, r4
	pop	{r4, lr}
	b	heap_free
.L10:
	bl	IDirectDrawSurface_Release
	mov	r0, r4
	pop	{r4, lr}
	b	heap_free
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	d3drm_texture_destroy, .-d3drm_texture_destroy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
