	.file	"extr_mos7840.c_mos7840_release.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" release :entering.........."
.LC1:
	.string	"%s"
.LC2:
	.string	"Invalid Handler"
.LC3:
	.string	"mos7840_port %d = %p"
.LC4:
	.string	"Thank u :: "
	.text
	.p2align 4
	.type	mos7840_release, @function
mos7840_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, .LC0[rip]
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	lea	rdi, .LC1[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	dbg@PLT
	lea	rsi, .LC2[rip]
	test	r12, r12
	je	.L13
	mov	eax, DWORD PTR [r12]
	xor	ebx, ebx
	lea	r13, .LC3[rip]
	test	eax, eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	mos7840_get_port_private@PLT
	mov	esi, ebx
	mov	rdi, r13
	mov	rbp, rax
	mov	rdx, rax
	xor	eax, eax
	call	dbg@PLT
	test	rbp, rbp
	je	.L5
	mov	rdi, QWORD PTR 8[rbp]
	call	kfree@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	kfree@PLT
	mov	rdi, rbp
	call	kfree@PLT
.L5:
	add	rbx, 1
	cmp	DWORD PTR [r12], ebx
	jg	.L3
.L4:
	lea	rsi, .LC4[rip]
.L13:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	lea	rdi, .LC1[rip]
	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
	jmp	dbg@PLT
	.cfi_endproc
.LFE0:
	.size	mos7840_release, .-mos7840_release
	.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_mos7840.c_mos7840_release.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" release :entering..........\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Invalid Handler\000"
	.align	2
.LC3:
	.ascii	"mos7840_port %d = %p\000"
	.align	2
.LC4:
	.ascii	"Thank u :: \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mos7840_release, %function
mos7840_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r1, .L13
	ldr	r0, .L13+4
	bl	dbg
	cmp	r6, #0
	beq	.L2
	ldr	r3, [r6]
	cmp	r3, #0
	movgt	r5, #0
	ldrgt	r7, .L13+8
	ble	.L4
.L3:
	ldr	r3, [r6, #4]
	ldr	r0, [r3, r5, lsl #2]
	bl	mos7840_get_port_private
	mov	r4, r0
	mov	r1, r5
	mov	r2, r0
	mov	r0, r7
	bl	dbg
	cmp	r4, #0
	add	r5, r5, #1
	beq	.L5
	ldr	r0, [r4, #4]
	bl	kfree
	ldr	r0, [r4]
	bl	kfree
	mov	r0, r4
	bl	kfree
.L5:
	ldr	r3, [r6]
	cmp	r3, r5
	bgt	.L3
.L4:
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L13+12
	ldr	r0, .L13+4
	b	dbg
.L2:
	ldr	r1, .L13+16
	ldr	r0, .L13+4
	pop	{r4, r5, r6, r7, r8, lr}
	b	dbg
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC4
	.word	.LC2
	.size	mos7840_release, .-mos7840_release
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
