	.file	"extr_cnic.c_cnic_free_resc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cnic_free_resc, @function
cnic_free_resc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR [rdi]
	mov	rdi, QWORD PTR 64[rbp]
	test	rdi, rdi
	je	.L3
	cmp	DWORD PTR [rdi], -1
	mov	QWORD PTR 8[rdi], 0
	mov	QWORD PTR 64[rbp], 0
	je	.L7
.L3:
	mov	rdi, r12
	call	cnic_free_context@PLT
	mov	rdi, QWORD PTR 56[rbp]
	call	kfree@PLT
	mov	QWORD PTR 56[rbp], 0
	lea	rsi, 40[rbp]
	mov	rdi, r12
	mov	QWORD PTR 48[rbp], 0
	call	cnic_free_dma@PLT
	lea	rsi, 36[rbp]
	mov	rdi, r12
	call	cnic_free_dma@PLT
	lea	rsi, 32[rbp]
	mov	rdi, r12
	call	cnic_free_dma@PLT
	lea	rsi, 28[rbp]
	mov	rdi, r12
	call	cnic_free_dma@PLT
	lea	rsi, 24[rbp]
	mov	rdi, r12
	call	cnic_free_dma@PLT
	mov	rdi, QWORD PTR 16[rbp]
	call	kfree@PLT
	mov	QWORD PTR 16[rbp], 0
	mov	rdi, QWORD PTR 8[rbp]
	call	kfree@PLT
	mov	QWORD PTR 8[rbp], 0
	lea	rdi, 4[rbp]
	call	cnic_free_id_tbl@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	cnic_free_id_tbl@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	__cnic_free_uio_rings@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	cnic_free_resc, .-cnic_free_resc
	.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_cnic.c_cnic_free_resc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cnic_free_resc, %function
cnic_free_resc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0]
	mov	r5, r0
	ldr	r0, [r4, #44]
	cmp	r0, #0
	beq	.L3
	mov	r3, #0
	ldr	r2, [r0]
	str	r3, [r0, #4]
	cmn	r2, #1
	str	r3, [r4, #44]
	beq	.L7
.L3:
	mov	r6, #0
	mov	r0, r5
	bl	cnic_free_context
	ldr	r0, [r4, #40]
	bl	kfree
	add	r1, r4, #32
	mov	r0, r5
	str	r6, [r4, #40]
	str	r6, [r4, #36]
	bl	cnic_free_dma
	add	r1, r4, #28
	mov	r0, r5
	bl	cnic_free_dma
	add	r1, r4, #24
	mov	r0, r5
	bl	cnic_free_dma
	add	r1, r4, #20
	mov	r0, r5
	bl	cnic_free_dma
	add	r1, r4, #16
	mov	r0, r5
	bl	cnic_free_dma
	ldr	r0, [r4, #12]
	bl	kfree
	ldr	r0, [r4, #8]
	str	r6, [r4, #12]
	bl	kfree
	str	r6, [r4, #8]
	add	r0, r4, #4
	bl	cnic_free_id_tbl
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	cnic_free_id_tbl
.L7:
	bl	__cnic_free_uio_rings
	b	.L3
	.size	cnic_free_resc, .-cnic_free_resc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
