	.file	"extr_mlx4_ib_mcg.c_send_mad_to_slave.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	send_mad_to_slave, @function
send_mad_to_slave:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	r13, QWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR [rsi]
	mov	rdx, QWORD PTR 16[r13]
	mov	rdx, QWORD PTR -8[rdx+rax*8]
	cmp	QWORD PTR 8[rdx], 0
	je	.L8
	mov	rdx, QWORD PTR 8[r13]
	mov	ebp, edi
	mov	rbx, rsi
	lea	rsi, 12[rsp]
	lea	r14, 16[rsp]
	mov	edi, DWORD PTR -4[rdx+rax*4]
	call	ib_query_ah@PLT
	mov	edx, DWORD PTR IB_DEFAULT_PKEY_FULL[rip]
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r13
	lea	rcx, 48[rsp]
	call	ib_find_cached_pkey@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR 12[rsp]
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR 20[rsp], 1
	mov	esi, ebp
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	ecx, DWORD PTR IB_QPT_GSI[rip]
	xor	r9d, r9d
	mov	r8, r14
	mov	QWORD PTR 48[rsp], 0
	mov	rdi, r13
	mov	QWORD PTR 40[rsp], 0
	mov	DWORD PTR 24[rsp], edx
	mov	DWORD PTR 32[rsp], eax
	push	r12
	.cfi_def_cfa_offset 128
	call	mlx4_ib_send_to_slave@PLT
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR EAGAIN[rip]
	neg	eax
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	send_mad_to_slave, .-send_mad_to_slave
	.comm	IB_QPT_GSI,4,4
	.comm	IB_DEFAULT_PKEY_FULL,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_mlx4_ib_mcg.c_send_mad_to_slave.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_mad_to_slave, %function
send_mad_to_slave:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldm	r1, {r3, r5}
	mov	r4, r1
	ldr	r1, [r5, #8]
	sub	r3, r3, #-1073741823
	ldr	r1, [r1, r3, lsl #2]
	mov	r7, r2
	ldr	r1, [r1, #4]
	ldr	r2, .L10
	sub	sp, sp, #48
	cmp	r1, #0
	ldr	r2, [r2]
	str	r2, [sp, #44]
	mov	r2,#0
	beq	.L8
	ldr	r2, [r5, #4]
	add	r1, sp, #16
	mov	r6, r0
	ldr	r0, [r2, r3, lsl #2]
	bl	ib_query_ah
	ldr	r2, .L10+4
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r4]
	add	r3, sp, #40
	bl	ib_find_cached_pkey
	subs	ip, r0, #0
	beq	.L4
	ldr	r3, .L10+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r8, #1
	add	r1, sp, #20
	ldr	r3, .L10+12
	ldr	r2, [r4]
	ldr	lr, [sp, #16]
	str	r1, [sp]
	str	r7, [sp, #8]
	str	ip, [sp, #4]
	mov	r1, r6
	mov	r0, r5
	ldr	r3, [r3]
	str	r2, [sp, #20]
	str	ip, [sp, #36]
	str	ip, [sp, #32]
	str	r8, [sp, #24]
	str	lr, [sp, #28]
	bl	mlx4_ib_send_to_slave
	b	.L1
.L8:
	ldr	r3, .L10+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	IB_DEFAULT_PKEY_FULL
	.word	EINVAL
	.word	IB_QPT_GSI
	.word	EAGAIN
	.size	send_mad_to_slave, .-send_mad_to_slave
	.comm	IB_QPT_GSI,4,4
	.comm	IB_DEFAULT_PKEY_FULL,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
