	.file	"extr_cxgb4_main.c_cxgb4_free_stid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cxgb4_free_stid
	.type	cxgb4_free_stid, @function
cxgb4_free_stid:
.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
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 56[rdi], 0
	je	.L2
	mov	eax, DWORD PTR [rdi]
	cmp	eax, esi
	jbe	.L11
.L2:
	sub	ebp, DWORD PTR 48[rbx]
.L3:
	lea	r13, 12[rbx]
	mov	rdi, r13
	call	spin_lock_bh@PLT
	cmp	DWORD PTR PF_INET[rip], r12d
	je	.L12
	mov	edi, DWORD PTR 40[rbx]
	mov	edx, 1
	mov	esi, ebp
	call	bitmap_release_region@PLT
.L5:
	mov	rax, QWORD PTR 32[rbx]
	mov	edx, ebp
	mov	QWORD PTR [rax+rdx*8], 0
	cmp	DWORD PTR 4[rbx], ebp
	jbe	.L6
	cmp	DWORD PTR PF_INET6[rip], r12d
	mov	rax, QWORD PTR 24[rbx]
	je	.L13
	sub	rax, 1
	mov	QWORD PTR 24[rbx], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	sub	DWORD PTR 16[rbx], 1
.L8:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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	spin_unlock_bh@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	add	ebp, DWORD PTR 4[rdi]
	sub	ebp, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR 40[rbx]
	mov	edi, ebp
	call	__clear_bit@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	sub	rax, 2
	sub	DWORD PTR 8[rbx], 2
	mov	QWORD PTR 24[rbx], rax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	cxgb4_free_stid, .-cxgb4_free_stid
	.comm	PF_INET6,4,4
	.comm	PF_INET,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_cxgb4_main.c_cxgb4_free_stid.c"
	.text
	.align	2
	.global	cxgb4_free_stid
	.syntax unified
	.arm
	.fpu softvfp
	.type	cxgb4_free_stid, %function
cxgb4_free_stid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #36]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r4, r0
	mov	r6, r2
	beq	.L2
	ldr	r3, [r0]
	cmp	r3, r1
	bls	.L14
.L2:
	ldr	r5, [r4, #32]
	sub	r5, r1, r5
.L3:
	add	r7, r4, #12
	mov	r0, r7
	bl	spin_lock_bh
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L15
	mov	r2, #1
	mov	r1, r5
	ldr	r0, [r4, #28]
	bl	bitmap_release_region
.L5:
	mov	r2, #0
	ldr	r1, [r4, #4]
	ldr	r3, [r4, #24]
	cmp	r1, r5
	str	r2, [r3, r5, lsl #2]
	bls	.L6
	ldr	r2, .L16+4
	ldr	r3, [r4, #20]
	ldr	r2, [r2]
	mov	r0, r7
	cmp	r2, r6
	ldreq	r2, [r4, #8]
	subeq	r3, r3, #2
	subeq	r2, r2, #2
	subne	r3, r3, #1
	streq	r3, [r4, #20]
	streq	r2, [r4, #8]
	strne	r3, [r4, #20]
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock_bh
.L6:
	ldr	r3, [r4, #16]
	mov	r0, r7
	sub	r3, r3, #1
	str	r3, [r4, #16]
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock_bh
.L14:
	ldr	r5, [r0, #4]
	add	r5, r1, r5
	sub	r5, r5, r3
	b	.L3
.L15:
	mov	r0, r5
	ldr	r1, [r4, #28]
	bl	__clear_bit
	b	.L5
.L17:
	.align	2
.L16:
	.word	PF_INET
	.word	PF_INET6
	.size	cxgb4_free_stid, .-cxgb4_free_stid
	.comm	PF_INET6,4,4
	.comm	PF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
