	.file	"extr_capture.c_DirectSoundCaptureDevice_Release.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"(%p) ref was %d\n"
.LC1:
	.string	"deleting object\n"
.LC2:
	.string	"(%p) released\n"
	.text
	.p2align 4
	.type	DirectSoundCaptureDevice_Release, @function
DirectSoundCaptureDevice_Release:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	add	rdi, 40
	call	InterlockedDecrement@PLT
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	mov	r12, rax
	lea	rdx, 1[rax]
	xor	eax, eax
	call	TRACE@PLT
	test	r12, r12
	je	.L13
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	TRACE@PLT
	mov	rdi, QWORD PTR 32[rbp]
	test	rdi, rdi
	jne	.L14
	mov	rdi, QWORD PTR 24[rbp]
	test	rdi, rdi
	jne	.L15
.L4:
	mov	r13, QWORD PTR 16[rbp]
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	rdx, r13
	mov	edi, eax
	call	HeapFree@PLT
	mov	rax, QWORD PTR 8[rbp]
	lea	rdi, 8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rax], 0
	call	DeleteCriticalSection@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR DSOUND_capture[rip]
	mov	QWORD PTR [rax+rdx*8], 0
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, rbp
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	mov	rsi, rbp
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	TRACE@PLT
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	call	IDirectSoundCaptureBufferImpl_Release@PLT
	mov	rdi, QWORD PTR 24[rbp]
	test	rdi, rdi
	je	.L4
.L15:
	call	IDsCaptureDriver_Close@PLT
	mov	rdi, QWORD PTR 24[rbp]
	call	IDsCaptureDriver_Release@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	DirectSoundCaptureDevice_Release, .-DirectSoundCaptureDevice_Release
	.comm	DSOUND_capture,8,8
	.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_capture.c_DirectSoundCaptureDevice_Release.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(%p) ref was %d\012\000"
	.align	2
.LC1:
	.ascii	"deleting object\012\000"
	.align	2
.LC2:
	.ascii	"(%p) released\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DirectSoundCaptureDevice_Release, %function
DirectSoundCaptureDevice_Release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r0, r0, #20
	bl	InterlockedDecrement
	mov	r5, r0
	add	r2, r0, #1
	mov	r1, r4
	ldr	r0, .L16
	bl	TRACE
	cmp	r5, #0
	beq	.L13
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r0, .L16+4
	bl	TRACE
	ldr	r0, [r4, #16]
	cmp	r0, #0
	bne	.L14
	ldr	r0, [r4, #12]
	cmp	r0, #0
	bne	.L15
.L4:
	bl	GetProcessHeap
	mov	r1, #0
	ldr	r2, [r4, #8]
	bl	HeapFree
	mov	r0, r4
	mov	r6, #0
	ldr	r3, [r0, #4]!
	ldr	r3, [r3]
	str	r6, [r3]
	bl	DeleteCriticalSection
	ldr	r3, .L16+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	str	r6, [r3, r2, lsl #2]
	bl	GetProcessHeap
	mov	r2, r4
	mov	r1, r6
	bl	HeapFree
	mov	r1, r4
	ldr	r0, .L16+12
	bl	TRACE
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	bl	IDirectSoundCaptureBufferImpl_Release
	ldr	r0, [r4, #12]
	cmp	r0, #0
	beq	.L4
.L15:
	bl	IDsCaptureDriver_Close
	ldr	r0, [r4, #12]
	bl	IDsCaptureDriver_Release
	b	.L4
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	.LC1
	.word	DSOUND_capture
	.word	.LC2
	.size	DirectSoundCaptureDevice_Release, .-DirectSoundCaptureDevice_Release
	.comm	DSOUND_capture,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
