	.file	"extr_cm4040_cs.c_cm4040_close.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"-> cm4040_close(maj/min=%d.%d)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"<- cm4040_close\n"
	.text
	.p2align 4
	.type	cm4040_close, @function
cm4040_close:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR [rsi]
	call	iminor@PLT
	mov	rdi, rbp
	movsx	rbx, eax
	call	iminor@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	imajor@PLT
	mov	r8d, r13d
	mov	rsi, r12
	mov	edi, 2
	mov	ecx, eax
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	DEBUGP@PLT
	cmp	DWORD PTR CM_MAX_DEV[rip], ebx
	jle	.L4
	mov	rax, QWORD PTR dev_table[rip]
	mov	rbx, QWORD PTR [rax+rbx*8]
	test	rbx, rbx
	je	.L4
	mov	rdi, r12
	call	cm4040_stop_poll@PLT
	mov	QWORD PTR [rbx], 0
	mov	rdi, r12
	call	wake_up@PLT
	mov	rsi, r12
	mov	edi, 2
	xor	eax, eax
	lea	rdx, .LC1[rip]
	call	DEBUGP@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cm4040_close, .-cm4040_close
	.comm	dev_table,8,8
	.comm	ENODEV,4,4
	.comm	CM_MAX_DEV,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_cm4040_cs.c_cm4040_close.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"-> cm4040_close(maj/min=%d.%d)\012\000"
	.align	2
.LC1:
	.ascii	"<- cm4040_close\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cm4040_close, %function
cm4040_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r4, r0
	ldr	r6, [r1]
	bl	iminor
	mov	r5, r0
	mov	r0, r4
	bl	imajor
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	iminor
	mov	r3, r4
	str	r0, [sp]
	mov	r1, r6
	mov	r0, #2
	ldr	r2, .L10
	bl	DEBUGP
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r3, r5
	ble	.L4
	ldr	r3, .L10+8
	ldr	r3, [r3]
	ldr	r5, [r3, r5, lsl #2]
	cmp	r5, #0
	beq	.L4
	mov	r4, #0
	mov	r0, r6
	bl	cm4040_stop_poll
	mov	r0, r6
	str	r4, [r5]
	bl	wake_up
	mov	r1, r6
	ldr	r2, .L10+12
	mov	r0, #2
	bl	DEBUGP
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L10+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	CM_MAX_DEV
	.word	dev_table
	.word	.LC1
	.word	ENODEV
	.size	cm4040_close, .-cm4040_close
	.comm	dev_table,4,4
	.comm	ENODEV,4,4
	.comm	CM_MAX_DEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
