	.file	"extr_lpfc_sli.c_lpfc_sli4_scmd_to_wqidx_distr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lpfc_sli4_scmd_to_wqidx_distr, @function
lpfc_sli4_scmd_to_wqidx_distr:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rax, QWORD PTR LPFC_FCP_SCHED_BY_CPU[rip]
	mov	rbx, rdi
	cmp	QWORD PTR [rdi], rax
	je	.L6
.L2:
	lea	rsi, 12[rbx]
	mov	edi, 1
	call	atomic_add_return@PLT
	cdq
	idiv	DWORD PTR 8[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	r8d, edx
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	eax, eax
	call	smp_processor_id@PLT
	cmp	DWORD PTR 16[rbx], eax
	jle	.L2
	mov	rdx, QWORD PTR 24[rbx]
	cdqe
	pop	rbx
	.cfi_def_cfa_offset 8
	mov	r8d, DWORD PTR [rdx+rax*4]
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	lpfc_sli4_scmd_to_wqidx_distr, .-lpfc_sli4_scmd_to_wqidx_distr
	.comm	LPFC_FCP_SCHED_BY_CPU,8,8
	.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_lpfc_sli.c_lpfc_sli4_scmd_to_wqidx_distr.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_sli4_scmd_to_wqidx_distr, %function
lpfc_sli4_scmd_to_wqidx_distr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, lr}
	cmp	r2, r3
	mov	r4, r0
	beq	.L6
.L2:
	add	r1, r4, #8
	mov	r0, #1
	bl	atomic_add_return
	ldr	r1, [r4, #4]
	bl	__aeabi_idivmod
	mov	r0, r1
	pop	{r4, pc}
.L6:
	bl	smp_processor_id
	ldr	r3, [r4, #12]
	cmp	r3, r0
	ble	.L2
	ldr	r3, [r4, #16]
	ldr	r0, [r3, r0, lsl #2]
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	LPFC_FCP_SCHED_BY_CPU
	.size	lpfc_sli4_scmd_to_wqidx_distr, .-lpfc_sli4_scmd_to_wqidx_distr
	.comm	LPFC_FCP_SCHED_BY_CPU,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
