	.file	"extr_netprio_cgroup.c_get_prioidx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_prioidx, @function
get_prioidx:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	esi, esi
	mov	rbp, rdi
	lea	rdi, prioidx_map_lock[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR PRIOIDX_SZ[rip]
	mov	edi, DWORD PTR prioidx_map[rip]
	lea	esi, 0[0+rax*8]
	call	find_first_zero_bit@PLT
	movsx	rdx, eax
	movsx	rax, DWORD PTR PRIOIDX_SZ[rip]
	sal	rax, 3
	cmp	rdx, rax
	je	.L7
	mov	esi, DWORD PTR prioidx_map[rip]
	mov	edi, edx
	mov	rbx, rdx
	call	set_bit@PLT
	lea	rdi, max_prioidx[rip]
	call	atomic_read@PLT
	cmp	eax, ebx
	jl	.L8
.L4:
	xor	esi, esi
	lea	rdi, prioidx_map_lock[rip]
	call	spin_unlock_irqrestore@PLT
	mov	DWORD PTR 0[rbp], ebx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, ebx
	lea	rdi, max_prioidx[rip]
	call	atomic_set@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	xor	esi, esi
	lea	rdi, prioidx_map_lock[rip]
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR ENOSPC[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	get_prioidx, .-get_prioidx
	.comm	prioidx_map_lock,4,4
	.comm	prioidx_map,4,4
	.comm	max_prioidx,4,4
	.comm	PRIOIDX_SZ,4,4
	.comm	ENOSPC,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_netprio_cgroup.c_get_prioidx.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_prioidx, %function
get_prioidx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L9
	mov	r1, #0
	mov	r7, r0
	ldr	r0, .L9+4
	bl	spin_lock_irqsave
	ldr	r6, .L9+8
	ldr	r1, [r5]
	ldr	r0, [r6]
	lsl	r1, r1, #2
	bl	find_first_zero_bit
	ldr	r3, [r5]
	cmp	r0, r3, lsl #2
	beq	.L7
	ldr	r1, [r6]
	mov	r4, r0
	bl	set_bit
	ldr	r0, .L9+12
	bl	atomic_read
	cmp	r0, r4
	blt	.L8
.L4:
	mov	r1, #0
	ldr	r0, .L9+4
	bl	spin_unlock_irqrestore
	mov	r0, #0
	str	r4, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r1, r4
	ldr	r0, .L9+12
	bl	atomic_set
	b	.L4
.L7:
	mov	r1, #0
	ldr	r0, .L9+4
	bl	spin_unlock_irqrestore
	ldr	r3, .L9+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	PRIOIDX_SZ
	.word	prioidx_map_lock
	.word	prioidx_map
	.word	max_prioidx
	.word	ENOSPC
	.size	get_prioidx, .-get_prioidx
	.comm	prioidx_map_lock,4,4
	.comm	prioidx_map,4,4
	.comm	max_prioidx,4,4
	.comm	PRIOIDX_SZ,4,4
	.comm	ENOSPC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
