	.file	"extr_pcm.c_snd_usb_pcm_close.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_usb_pcm_close, @function
snd_usb_pcm_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movsx	rbx, esi
	sal	rbx, 5
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	snd_pcm_substream_chip@PLT
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	add	rbx, QWORD PTR 8[rax]
	mov	rbp, rax
	mov	rdi, rbx
	call	stop_endpoints@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L2
	mov	esi, DWORD PTR [rbx]
	test	esi, esi
	jns	.L5
.L2:
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rbx], 0
	mov	edi, DWORD PTR [rax]
	call	snd_usb_autosuspend@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rbx]
	xor	edx, edx
	call	usb_set_interface@PLT
	mov	DWORD PTR [rbx], -1
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	snd_usb_pcm_close, .-snd_usb_pcm_close
	.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_pcm.c_snd_usb_pcm_close.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_usb_pcm_close, %function
snd_usb_pcm_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	bl	snd_pcm_substream_chip
	mov	r3, #0
	mov	r4, r0
	ldr	r6, [r0, #4]
	mov	r2, r3
	add	r7, r6, r5, lsl #4
	mov	r1, r3
	mov	r0, r7
	bl	stop_endpoints
	ldr	r3, [r4]
	ldr	r2, [r3]
	cmp	r2, #0
	bne	.L2
	ldr	r1, [r6, r5, lsl #4]
	cmp	r1, #0
	bge	.L5
.L2:
	mov	r4, #0
	ldr	r3, [r7, #4]
	str	r4, [r7, #8]
	ldr	r0, [r3]
	bl	snd_usb_autosuspend
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r0, [r7, #12]
	bl	usb_set_interface
	mvn	r3, #0
	str	r3, [r6, r5, lsl #4]
	b	.L2
	.size	snd_usb_pcm_close, .-snd_usb_pcm_close
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
