	.file	"extr_mpu401.c_mpu401_close.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mpu401_close, @function
mpu401_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movsx	rbp, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rbp
	sal	rbx, 5
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	add	rbx, QWORD PTR dev_conf[rip]
	cmp	QWORD PTR 24[rbx], 0
	jne	.L9
.L2:
	mov	rax, QWORD PTR midi_devs[rip]
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
	mov	rax, QWORD PTR [rax+rbp*8]
	mov	rbp, QWORD PTR [rax]
	test	rbp, rbp
	je	.L3
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR COPR_MIDI[rip]
	call	[QWORD PTR 8[rbp]]
	mov	edi, DWORD PTR 0[rbp]
	call	module_put@PLT
.L3:
	mov	QWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbx
	call	reset_mpu401@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	mpu401_close, .-mpu401_close
	.comm	midi_devs,8,8
	.comm	dev_conf,8,8
	.comm	COPR_MIDI,4,4
	.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_mpu401.c_mpu401_close.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpu401_close, %function
mpu401_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, r5, r6, lr}
	ldr	r6, [r3]
	mov	r4, r0
	add	r5, r6, r0, lsl #4
	ldr	r3, [r5, #12]
	cmp	r3, #0
	bne	.L12
.L2:
	mov	r3, #0
	ldr	r2, .L13+4
	str	r3, [r5, #8]
	ldr	r2, [r2]
	str	r3, [r5, #4]
	ldr	r3, [r2, r4, lsl #2]
	ldr	r5, [r3]
	cmp	r5, #0
	beq	.L3
	ldr	r2, .L13+8
	ldr	r3, [r5, #8]
	ldr	r1, [r2]
	ldr	r0, [r5, #4]
	blx	r3
	ldr	r0, [r5]
	bl	module_put
.L3:
	mov	r3, #0
	str	r3, [r6, r4, lsl #4]
	pop	{r4, r5, r6, pc}
.L12:
	mov	r0, r5
	bl	reset_mpu401
	b	.L2
.L14:
	.align	2
.L13:
	.word	dev_conf
	.word	midi_devs
	.word	COPR_MIDI
	.size	mpu401_close, .-mpu401_close
	.comm	midi_devs,4,4
	.comm	dev_conf,4,4
	.comm	COPR_MIDI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
