	.file	"extr_libcxgbi.c_cxgbi_device_portmap_cleanup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"csk 0x%p, cdev 0x%p, offload down.\n"
	.text
	.p2align 4
	.globl	cxgbi_device_portmap_cleanup
	.type	cxgbi_device_portmap_cleanup, @function
cxgbi_device_portmap_cleanup:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L10
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[r12]
	lea	rax, [rax+rbx*8]
	mov	rbp, QWORD PTR [rax]
	test	rbp, rbp
	je	.L3
	mov	ecx, DWORD PTR CXGBI_DBG_SOCK[rip]
	mov	QWORD PTR [rax], 0
	mov	edi, r13d
	mov	rdx, rbp
	lea	rsi, .LC0[rip]
	sal	edi, cl
	mov	rcx, r12
	call	log_debug@PLT
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	esi, DWORD PTR CTPF_OFFLOAD_DOWN[rip]
	mov	rdi, rbp
	call	cxgbi_sock_set_flag@PLT
	mov	rdi, rbp
	call	cxgbi_sock_closed@PLT
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	mov	rdi, rbp
	call	cxgbi_sock_put@PLT
.L3:
	add	rbx, 1
	cmp	DWORD PTR [r12], ebx
	jg	.L4
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
.L10:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	cxgbi_device_portmap_cleanup, .-cxgbi_device_portmap_cleanup
	.comm	CXGBI_DBG_SOCK,4,4
	.comm	CTPF_OFFLOAD_DOWN,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_libcxgbi.c_cxgbi_device_portmap_cleanup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"csk 0x%p, cdev 0x%p, offload down.\012\000"
	.text
	.align	2
	.global	cxgbi_device_portmap_cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	cxgbi_device_portmap_cleanup, %function
cxgbi_device_portmap_cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	cmp	r2, #0
	bxle	lr
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r5, #0
	ldr	r9, .L14
	ldr	r8, .L14+4
	ldr	r7, .L14+8
.L4:
	ldr	r3, [r6, #4]
	ldr	r4, [r3, r5, lsl #2]
	cmp	r4, #0
	beq	.L3
	mov	r1, #0
	mov	r0, #1
	ldr	r2, [r9]
	str	r1, [r3, r5, lsl #2]
	lsl	r0, r0, r2
	mov	r3, r6
	mov	r2, r4
	mov	r1, r8
	bl	log_debug
	mov	r0, r4
	bl	spin_lock_bh
	ldr	r1, [r7]
	mov	r0, r4
	bl	cxgbi_sock_set_flag
	mov	r0, r4
	bl	cxgbi_sock_closed
	mov	r0, r4
	bl	spin_unlock_bh
	mov	r0, r4
	bl	cxgbi_sock_put
	ldr	r2, [r6]
.L3:
	add	r5, r5, #1
	cmp	r2, r5
	bgt	.L4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	CXGBI_DBG_SOCK
	.word	.LC0
	.word	CTPF_OFFLOAD_DOWN
	.size	cxgbi_device_portmap_cleanup, .-cxgbi_device_portmap_cleanup
	.comm	CXGBI_DBG_SOCK,4,4
	.comm	CTPF_OFFLOAD_DOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
