	.file	"extr_bnxt.c_bnxt_free_ctx_mem.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnxt_free_ctx_mem, @function
bnxt_free_ctx_mem:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 8[rdi]
	test	r12, r12
	je	.L1
	mov	rax, QWORD PTR 32[r12]
	mov	rbp, rdi
	mov	rsi, QWORD PTR [rax]
	test	rsi, rsi
	je	.L3
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	js	.L4
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, QWORD PTR [rax+rbx*8]
.L6:
	mov	rdi, rbp
	add	rbx, 1
	call	bnxt_free_ctx_pg_tbls@PLT
	cmp	DWORD PTR 0[rbp], ebx
	mov	rax, QWORD PTR 32[r12]
	jge	.L5
	mov	rsi, QWORD PTR [rax]
.L4:
	mov	rdi, rsi
	call	kfree@PLT
	mov	rax, QWORD PTR 32[r12]
	mov	QWORD PTR [rax], 0
.L3:
	lea	rsi, 28[r12]
	mov	rdi, rbp
	call	bnxt_free_ctx_pg_tbls@PLT
	lea	rsi, 24[r12]
	mov	rdi, rbp
	call	bnxt_free_ctx_pg_tbls@PLT
	lea	rsi, 20[r12]
	mov	rdi, rbp
	call	bnxt_free_ctx_pg_tbls@PLT
	lea	rsi, 16[r12]
	mov	rdi, rbp
	call	bnxt_free_ctx_pg_tbls@PLT
	lea	rsi, 12[r12]
	mov	rdi, rbp
	call	bnxt_free_ctx_pg_tbls@PLT
	lea	rsi, 8[r12]
	mov	rdi, rbp
	call	bnxt_free_ctx_pg_tbls@PLT
	lea	rsi, 4[r12]
	mov	rdi, rbp
	call	bnxt_free_ctx_pg_tbls@PLT
	mov	eax, DWORD PTR BNXT_CTX_FLAG_INITED[rip]
	not	eax
	and	DWORD PTR [r12], eax
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bnxt_free_ctx_mem, .-bnxt_free_ctx_mem
	.comm	BNXT_CTX_FLAG_INITED,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_bnxt.c_bnxt_free_ctx_mem.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnxt_free_ctx_mem, %function
bnxt_free_ctx_mem:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r0, #4]
	cmp	r6, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r6, #32]
	mov	r4, r0
	ldr	r1, [r3]
	cmp	r1, #0
	beq	.L3
	ldr	r3, [r0]
	cmp	r3, #0
	blt	.L4
	mov	r5, #0
	b	.L6
.L5:
	ldr	r1, [r3, r5, lsl #2]
.L6:
	mov	r0, r4
	bl	bnxt_free_ctx_pg_tbls
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r3, r5
	ldr	r3, [r6, #32]
	bge	.L5
	ldr	r1, [r3]
.L4:
	mov	r0, r1
	bl	kfree
	mov	r2, #0
	ldr	r3, [r6, #32]
	str	r2, [r3]
.L3:
	add	r1, r6, #28
	mov	r0, r4
	bl	bnxt_free_ctx_pg_tbls
	add	r1, r6, #24
	mov	r0, r4
	bl	bnxt_free_ctx_pg_tbls
	add	r1, r6, #20
	mov	r0, r4
	bl	bnxt_free_ctx_pg_tbls
	add	r1, r6, #16
	mov	r0, r4
	bl	bnxt_free_ctx_pg_tbls
	add	r1, r6, #12
	mov	r0, r4
	bl	bnxt_free_ctx_pg_tbls
	add	r1, r6, #8
	mov	r0, r4
	bl	bnxt_free_ctx_pg_tbls
	mov	r0, r4
	add	r1, r6, #4
	bl	bnxt_free_ctx_pg_tbls
	ldr	r2, .L15
	ldr	r3, [r6]
	ldr	r2, [r2]
	bic	r3, r3, r2
	str	r3, [r6]
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	BNXT_CTX_FLAG_INITED
	.size	bnxt_free_ctx_mem, .-bnxt_free_ctx_mem
	.comm	BNXT_CTX_FLAG_INITED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
