	.file	"extr_mad.c___subn_get_opa_cc_table.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__subn_get_opa_cc_table, @function
__subn_get_opa_cc_table:
.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	r14d, esi
	mov	esi, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], r9
	mov	r15d, DWORD PTR 80[rsp]
	call	to_iport@PLT
	mov	rdi, rax
	call	ppd_from_ibp@PLT
	mov	edi, r14d
	mov	QWORD PTR [rsp], rax
	call	OPA_AM_START_BLK@PLT
	mov	edi, r14d
	mov	ebx, eax
	call	OPA_AM_NBLK@PLT
	test	eax, eax
	je	.L3
	mov	r13d, eax
	mov	eax, DWORD PTR IB_CCT_ENTRIES[rip]
	mov	esi, r15d
	imul	eax, r13d
	lea	r14d, 4[0+rax*4]
	mov	edi, r14d
	call	smp_length_check@PLT
	test	rax, rax
	jne	.L3
	mov	r15, QWORD PTR [rsp]
	lea	eax, [rbx+r13]
	cmp	eax, DWORD PTR [r15]
	jg	.L3
	xor	eax, eax
	call	rcu_read_lock@PLT
	mov	rdi, r15
	call	get_cc_state@PLT
	mov	r15, rax
	test	rax, rax
	je	.L14
	mov	eax, DWORD PTR IB_CCT_ENTRIES[rip]
	mov	edi, DWORD PTR 8[r15]
	imul	ebx, eax
	imul	eax, r13d
	mov	DWORD PTR [rsp], eax
	lea	r13d, [rax+rbx]
	call	cpu_to_be16@PLT
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR [r15]
	cmp	ebx, r13d
	jge	.L5
	mov	edx, DWORD PTR [rsp]
	movsx	rbx, ebx
	lea	r15, [rax+rbx*4]
	xor	ebx, ebx
	lea	eax, -1[rdx]
	lea	rax, 8[0+rax*8]
	mov	QWORD PTR [rsp], rax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r13, QWORD PTR [r12]
	mov	edi, DWORD PTR [r15]
	add	r15, 4
	call	cpu_to_be16@PLT
	add	r13, rbx
	add	rbx, 8
	mov	QWORD PTR 0[r13], rax
	cmp	QWORD PTR [rsp], rbx
	jne	.L6
.L5:
	xor	eax, eax
	call	rcu_read_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L7
	add	DWORD PTR [rax], r14d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR IB_SMP_INVALID_FIELD[rip]
	or	DWORD PTR 0[rbp], eax
.L7:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	reply@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	xor	eax, eax
	call	rcu_read_unlock@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	__subn_get_opa_cc_table, .-__subn_get_opa_cc_table
	.comm	IB_SMP_INVALID_FIELD,4,4
	.comm	IB_CCT_ENTRIES,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_mad.c___subn_get_opa_cc_table.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__subn_get_opa_cc_table, %function
__subn_get_opa_cc_table:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	mov	r7, r0
	ldr	r1, [sp, #40]
	mov	r0, r3
	mov	r8, r2
	ldr	r9, [sp, #44]
	ldr	r10, [sp, #48]
	bl	to_iport
	bl	ppd_from_ibp
	mov	r6, r0
	mov	r0, r5
	bl	OPA_AM_START_BLK
	mov	r4, r0
	mov	r0, r5
	bl	OPA_AM_NBLK
	subs	r5, r0, #0
	beq	.L3
	ldr	fp, .L15
	mov	r1, r10
	ldr	r10, [fp]
	mul	r10, r5, r10
	add	r10, r10, #1
	lsl	r10, r10, #2
	mov	r0, r10
	bl	smp_length_check
	cmp	r0, #0
	bne	.L3
	ldr	r3, [r6]
	add	r2, r4, r5
	cmp	r2, r3
	bgt	.L3
	bl	rcu_read_lock
	mov	r0, r6
	bl	get_cc_state
	subs	r6, r0, #0
	beq	.L14
	ldr	r3, [fp]
	ldr	r0, [r6, #4]
	mul	r4, r3, r4
	mla	r5, r3, r5, r4
	bl	cpu_to_be16
	cmp	r4, r5
	ldr	r3, [r6]
	str	r0, [r8, #4]
	bge	.L5
	lsl	r6, r4, #2
	sub	r4, r6, #4
	add	r5, r3, r5, lsl #2
	sub	r5, r5, #4
	add	r4, r3, r4
	add	r6, r6, r3
.L6:
	ldr	r0, [r4, #4]
	ldr	fp, [r8]
	bl	cpu_to_be16
	add	r4, r4, #4
	sub	r3, r4, r6
	cmp	r4, r5
	str	r0, [fp, r3]
	bne	.L6
.L5:
	bl	rcu_read_unlock
	cmp	r9, #0
	ldrne	r3, [r9]
	mov	r0, r7
	addne	r10, r3, r10
	strne	r10, [r9]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	reply
.L3:
	ldr	r2, .L15+4
	ldr	r3, [r7]
	ldr	r2, [r2]
	mov	r0, r7
	orr	r3, r3, r2
	str	r3, [r7]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	reply
.L14:
	bl	rcu_read_unlock
	mov	r0, r7
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	reply
.L16:
	.align	2
.L15:
	.word	IB_CCT_ENTRIES
	.word	IB_SMP_INVALID_FIELD
	.size	__subn_get_opa_cc_table, .-__subn_get_opa_cc_table
	.comm	IB_SMP_INVALID_FIELD,4,4
	.comm	IB_CCT_ENTRIES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
