	.file	"extr_mad.c_process_subn_opa.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	process_subn_opa, @function
process_subn_opa:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	mov	rsi, rdx
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	eax, DWORD PTR 112[rsp]
	mov	QWORD PTR 8[rsp], r9
	mov	DWORD PTR 36[rsp], eax
	call	to_iport@PLT
	mov	rdi, r15
	mov	r13, rax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR [r15], eax
	call	opa_get_smp_data@PLT
	mov	rdi, r15
	mov	rbx, rax
	call	opa_get_smp_data_size@PLT
	mov	edi, DWORD PTR 40[r15]
	mov	QWORD PTR 16[rsp], rax
	call	be32_to_cpu@PLT
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR OPA_SM_CLASS_VERSION[rip]
	cmp	QWORD PTR 8[r15], rax
	je	.L2
	mov	eax, DWORD PTR IB_SMP_UNSUP_VERSION[rip]
.L28:
	or	DWORD PTR 20[r15], eax
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR [r15]
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r9d, DWORD PTR 28[r15]
	mov	edx, r14d
	mov	r8d, DWORD PTR 32[r15]
	mov	ecx, DWORD PTR 36[r15]
	mov	rsi, r15
	mov	rdi, r13
	mov	QWORD PTR 48[rsp], rax
	mov	eax, DWORD PTR 24[r15]
	push	rax
	.cfi_def_cfa_offset 128
	call	check_mkey@PLT
	pop	r8
	.cfi_def_cfa_offset 120
	pop	r9
	.cfi_def_cfa_offset 112
	test	eax, eax
	jne	.L30
	mov	rdi, r15
	call	opa_get_smp_header_size@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rcx], rax
	mov	eax, DWORD PTR 16[r15]
	sub	eax, 129
	cmp	eax, 6
	ja	.L6
	lea	rdx, .L8[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L11-.L8
	.long	.L27-.L8
	.long	.L10-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L7-.L8
	.text
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, r15
	mov	rdi, r13
	call	subn_handle_opa_trap_repress@PLT
.L27:
	mov	eax, DWORD PTR IB_MAD_RESULT_SUCCESS[rip]
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L30:
	.cfi_restore_state
	mov	edi, DWORD PTR 40[r15]
	call	be32_to_cpu@PLT
	mov	rbx, QWORD PTR 40[rsp]
	cmp	QWORD PTR IB_SMP_ATTR_PORT_INFO[rip], rbx
	je	.L31
.L4:
	mov	eax, DWORD PTR IB_MAD_RESULT_FAILURE[rip]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L7:
	.cfi_restore_state
	mov	r14, QWORD PTR 40[rsp]
	cmp	r14, 128
	je	.L12
	mov	rdi, r15
	call	clear_opa_smp_data@PLT
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 120
	mov	rcx, rbx
	mov	r9, r12
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 128
	mov	r8, rbp
	mov	rsi, r15
	mov	rdi, r14
	mov	rdx, QWORD PTR 40[rsp]
	call	subn_get_opa_sma@PLT
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 40[rsp]
	cmp	rdi, 128
	je	.L13
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r9, r12
	mov	r8, rbp
	mov	rcx, rbx
	mov	eax, DWORD PTR 44[rsp]
	mov	rsi, r15
	push	rax
	.cfi_def_cfa_offset 128
	push	QWORD PTR 32[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 32[rsp]
	.cfi_def_cfa_offset 144
	mov	rdx, QWORD PTR 56[rsp]
	call	subn_set_opa_sma@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	jmp	.L1
.L6:
	mov	eax, DWORD PTR IB_SMP_UNSUP_METHOD[rip]
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edx, DWORD PTR 16[r15]
	and	edx, -5
	cmp	edx, 131
	jne	.L4
	test	rax, rax
	je	.L4
	cmp	QWORD PTR 0[rbp], rax
	jl	.L4
	cmp	r12, rax
	je	.L4
	mov	r14d, DWORD PTR 24[r15]
	mov	rsi, rax
	mov	rdi, rbp
	mov	r13d, DWORD PTR 28[r15]
	mov	ebx, DWORD PTR 32[r15]
	mov	r12d, DWORD PTR 36[r15]
	call	to_iport@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	rsi, r15
	mov	r9d, r13d
	push	r14
	.cfi_def_cfa_offset 128
	mov	rdi, rax
	mov	r8d, ebx
	mov	ecx, r12d
	xor	edx, edx
	call	check_mkey@PLT
	pop	rsi
	.cfi_def_cfa_offset 120
	pop	rdi
	.cfi_def_cfa_offset 112
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rcx, QWORD PTR 8[rsp]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdx, r12
	mov	rsi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdi, r15
	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	subn_get_opa_aggregate@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r8d, DWORD PTR 36[rsp]
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, r12
	mov	rsi, rbp
	add	rsp, 56
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	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	subn_set_opa_aggregate@PLT
	.cfi_endproc
.LFE0:
	.size	process_subn_opa, .-process_subn_opa
	.comm	OPA_SM_CLASS_VERSION,8,8
	.comm	IB_SMP_UNSUP_VERSION,4,4
	.comm	IB_SMP_UNSUP_METHOD,4,4
	.comm	IB_SMP_ATTR_PORT_INFO,8,8
	.comm	IB_MAD_RESULT_SUCCESS,4,4
	.comm	IB_MAD_RESULT_FAILURE,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_process_subn_opa.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_subn_opa, %function
process_subn_opa:
	@ args = 12, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	mov	r8, r3
	ldr	r3, [sp, #80]
	mov	r7, r1
	mov	r1, r2
	ldr	r4, [sp, #72]
	mov	r5, r2
	str	r3, [sp, #28]
	ldr	fp, [sp, #76]
	str	r0, [sp, #24]
	bl	to_iport
	ldr	r3, [r8]
	mov	r6, r0
	str	r3, [r4]
	mov	r0, r4
	bl	opa_get_smp_data
	mov	r9, r0
	mov	r0, r4
	bl	opa_get_smp_data_size
	mov	r10, r0
	ldr	r0, [r4, #32]
	bl	be32_to_cpu
	ldr	r3, .L26
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L2
	ldr	r2, .L26+4
.L22:
	mov	r0, r4
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #12]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	reply
.L2:
	mov	r8, r0
	add	r0, r4, #16
	ldm	r0, {r0, r1, r3}
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	str	r3, [sp]
	ldr	ip, [r4]
	mov	r2, r7
	mov	r1, r4
	mov	r0, r6
	ldr	r3, [r4, #28]
	mov	r7, ip
	bl	check_mkey
	cmp	r0, #0
	bne	.L24
	mov	r0, r4
	bl	opa_get_smp_header_size
	ldr	r3, [r4, #8]
	str	r0, [fp]
	sub	r3, r3, #129
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L11
	.word	.L21
	.word	.L10
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L7
.L11:
	mov	r1, r4
	mov	r0, r6
	bl	subn_handle_opa_trap_repress
.L21:
	ldr	r3, .L26+8
	ldr	r0, [r3]
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	ldr	r0, [r4, #32]
	bl	be32_to_cpu
	ldr	r3, .L26+12
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L25
.L4:
	ldr	r3, .L26+16
	ldr	r0, [r3]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	cmp	r7, #128
	beq	.L12
	mov	r0, r4
	bl	clear_opa_smp_data
	ldr	r3, [sp, #24]
	mov	r2, r8
	str	r3, [sp]
	mov	r1, r4
	mov	r3, r9
	mov	r0, r7
	stmib	sp, {r5, fp}
	str	r10, [sp, #12]
	bl	subn_get_opa_sma
	b	.L1
.L10:
	cmp	r7, #128
	mov	r0, r7
	ldr	r3, [sp, #28]
	beq	.L13
	str	r3, [sp, #16]
	ldr	r3, [sp, #24]
	mov	r2, r8
	str	r3, [sp]
	mov	r1, r4
	mov	r3, r9
	stmib	sp, {r5, fp}
	str	r10, [sp, #12]
	bl	subn_set_opa_sma
	b	.L1
.L25:
	ldr	r3, [r4, #8]
	cmp	r0, #0
	bic	r3, r3, #4
	sub	r3, r3, #131
	clz	r3, r3
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	beq	.L4
	ldr	r3, [sp, #24]
	ldr	r3, [r3]
	cmp	r3, r0
	movlt	r3, #0
	movge	r3, #1
	cmp	r5, r0
	moveq	r3, #0
	cmp	r3, #0
	beq	.L4
	mov	r1, r0
	ldr	r0, [sp, #24]
	bl	to_iport
	add	r1, r4, #16
	ldm	r1, {r1, r2, r3}
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r1, r4
	mov	r2, #0
	ldr	r3, [r4, #28]
	bl	check_mkey
	b	.L4
.L12:
	mov	r3, fp
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [sp, #24]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	subn_get_opa_aggregate
.L13:
	str	r3, [sp, #72]
	mov	r2, r5
	mov	r3, fp
	mov	r0, r4
	ldr	r1, [sp, #24]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	subn_set_opa_aggregate
.L6:
	ldr	r2, .L26+20
	b	.L22
.L27:
	.align	2
.L26:
	.word	OPA_SM_CLASS_VERSION
	.word	IB_SMP_UNSUP_VERSION
	.word	IB_MAD_RESULT_SUCCESS
	.word	IB_SMP_ATTR_PORT_INFO
	.word	IB_MAD_RESULT_FAILURE
	.word	IB_SMP_UNSUP_METHOD
	.size	process_subn_opa, .-process_subn_opa
	.comm	OPA_SM_CLASS_VERSION,4,4
	.comm	IB_SMP_UNSUP_VERSION,4,4
	.comm	IB_SMP_UNSUP_METHOD,4,4
	.comm	IB_SMP_ATTR_PORT_INFO,4,4
	.comm	IB_MAD_RESULT_SUCCESS,4,4
	.comm	IB_MAD_RESULT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
