	.file	"extr_qed_dev.c_qed_llh_set_roce_affinity.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Invalid affinity value for RoCE [%d]\n"
	.text
	.p2align 4
	.globl	qed_llh_set_roce_affinity
	.type	qed_llh_set_roce_affinity, @function
qed_llh_set_roce_affinity:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	QED_LEADING_HWFN@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	qed_ptt_acquire@PLT
	test	rax, rax
	je	.L20
	mov	rdi, r14
	mov	r13, rax
	call	QED_IS_CMT@PLT
	test	eax, eax
	je	.L4
	cmp	r12d, 129
	je	.L11
	cmp	r12d, 130
	je	.L6
	cmp	r12d, 128
	je	.L21
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	DP_NOTICE@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	mov	DWORD PTR 12[rsp], 1
.L5:
	mov	rax, QWORD PTR [r14]
	cmp	QWORD PTR [rax], 0
	jle	.L4
	xor	r15d, r15d
	lea	rbx, 16[rsp]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, rbx
	mov	rsi, r15
	mov	rdi, r14
	call	qed_llh_abs_ppfid@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, r13
	mov	rdi, rbp
	add	r15, 1
	mov	eax, DWORD PTR NIG_REG_PPF_TO_ENGINE_SEL[rip]
	lea	r9d, [rax+rdx*4]
	mov	edx, r9d
	mov	DWORD PTR 8[rsp], r9d
	call	qed_rd@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR NIG_REG_PPF_TO_ENGINE_SEL_ROCE[rip]
	mov	edi, eax
	mov	r12d, eax
	call	SET_FIELD@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	ecx, r12d
	mov	rsi, r13
	mov	rdi, rbp
	mov	edx, r9d
	call	qed_wr@PLT
	mov	rax, QWORD PTR [r14]
	cmp	QWORD PTR [rax], r15
	jg	.L9
.L4:
	xor	r12d, r12d
.L8:
	mov	rsi, r13
	mov	rdi, rbp
	call	qed_ptt_release@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	r12d, DWORD PTR EAGAIN[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR NIG_REG_LLH_ENG_CLS_ROCE_QP_SEL[rip]
	mov	ecx, 15
	mov	rsi, r13
	mov	rdi, rbp
	call	qed_wr@PLT
	mov	DWORD PTR 12[rsp], 2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR 12[rsp], 0
	jmp	.L5
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qed_llh_set_roce_affinity, .-qed_llh_set_roce_affinity
	.comm	NIG_REG_PPF_TO_ENGINE_SEL_ROCE,4,4
	.comm	NIG_REG_PPF_TO_ENGINE_SEL,4,4
	.comm	NIG_REG_LLH_ENG_CLS_ROCE_QP_SEL,4,4
	.comm	EINVAL,4,4
	.comm	EAGAIN,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_qed_dev.c_qed_llh_set_roce_affinity.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid affinity value for RoCE [%d]\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	qed_llh_set_roce_affinity
	.syntax unified
	.arm
	.fpu softvfp
	.type	qed_llh_set_roce_affinity, %function
qed_llh_set_roce_affinity:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L23
	sub	sp, sp, #12
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	QED_LEADING_HWFN
	mov	r7, r0
	bl	qed_ptt_acquire
	subs	r5, r0, #0
	beq	.L20
	mov	r0, r6
	bl	QED_IS_CMT
	cmp	r0, #0
	beq	.L4
	cmp	r4, #129
	beq	.L11
	cmp	r4, #130
	beq	.L6
	cmp	r4, #128
	beq	.L21
	mov	r2, r4
	mov	r0, r6
	ldr	r1, .L23+4
	bl	DP_NOTICE
	ldr	r3, .L23+8
	ldr	r0, [r3]
	rsb	fp, r0, #0
	b	.L8
.L21:
	mov	r8, #1
.L5:
	ldr	r3, [r6]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L4
	mov	r4, #0
	ldr	r10, .L23+12
.L9:
	mov	r2, sp
	mov	r1, r4
	mov	r0, r6
	bl	qed_llh_abs_ppfid
	subs	fp, r0, #0
	bne	.L8
	ldr	r3, [sp]
	ldr	fp, [r10]
	mov	r1, r5
	add	fp, fp, r3, lsl #2
	mov	r2, fp
	mov	r0, r7
	bl	qed_rd
	mov	r9, r0
	ldr	r3, .L23+16
	mov	r2, r8
	ldr	r1, [r3]
	bl	SET_FIELD
	mov	r3, r9
	mov	r2, fp
	mov	r1, r5
	mov	r0, r7
	bl	qed_wr
	ldr	r3, [r6]
	add	r4, r4, #1
	ldr	r3, [r3]
	cmp	r3, r4
	bgt	.L9
.L4:
	mov	fp, #0
.L8:
	mov	r1, r5
	mov	r0, r7
	bl	qed_ptt_release
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r3, .L23+20
	ldr	r0, [r3]
	rsb	fp, r0, #0
	b	.L1
.L6:
	ldr	r2, .L23+24
	mov	r3, #15
	mov	r1, r5
	mov	r0, r7
	ldr	r2, [r2]
	bl	qed_wr
	mov	r8, #2
	b	.L5
.L11:
	mov	r8, #0
	b	.L5
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	.LC0
	.word	EINVAL
	.word	NIG_REG_PPF_TO_ENGINE_SEL
	.word	NIG_REG_PPF_TO_ENGINE_SEL_ROCE
	.word	EAGAIN
	.word	NIG_REG_LLH_ENG_CLS_ROCE_QP_SEL
	.size	qed_llh_set_roce_affinity, .-qed_llh_set_roce_affinity
	.comm	NIG_REG_PPF_TO_ENGINE_SEL_ROCE,4,4
	.comm	NIG_REG_PPF_TO_ENGINE_SEL,4,4
	.comm	NIG_REG_LLH_ENG_CLS_ROCE_QP_SEL,4,4
	.comm	EINVAL,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
