	.file	"extr_mlx4_cmd.c_mlx4_MAD_IFC_wrapper.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Network"
.LC1:
	.string	"Host"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Unprivileged slave %d is trying to execute a Subnet MGMT MAD, class 0x%x, method 0x%x, view=%s for attr 0x%x. Rejecting\n"
	.text
	.p2align 4
	.type	mlx4_MAD_IFC_wrapper, @function
mlx4_MAD_IFC_wrapper:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movsx	r12, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	r14, QWORD PTR 8[rcx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	mlx4_priv@PLT
	mov	edx, DWORD PTR [rbx]
	mov	esi, r12d
	mov	rdi, r15
	mov	QWORD PTR 32[rsp], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 40[rsp], rax
	call	mlx4_slave_convert_port@PLT
	mov	r11d, eax
	mov	eax, DWORD PTR 4[rbx]
	mov	ecx, eax
	and	eax, 8
	and	ecx, -9
	cmp	DWORD PTR 8[r14], 1
	mov	DWORD PTR 28[rsp], eax
	mov	DWORD PTR 8[rsp], ecx
	jne	.L2
	mov	rax, QWORD PTR IB_MGMT_CLASS_SUBN_LID_ROUTED[rip]
	cmp	QWORD PTR 16[r14], rax
	je	.L40
.L2:
	mov	rdi, r15
	mov	DWORD PTR 16[rsp], r11d
	call	mlx4_master_func_num@PLT
	cmp	eax, r12d
	je	.L19
	mov	r11d, DWORD PTR 16[rsp]
	mov	esi, r12d
	mov	rdi, r15
	mov	edx, r11d
	call	mlx4_vf_smi_enabled@PLT
	test	eax, eax
	je	.L41
.L19:
	mov	eax, DWORD PTR MLX4_CMD_NATIVE[rip]
	mov	rdi, r15
	push	rax
	.cfi_def_cfa_offset 136
	mov	eax, DWORD PTR MLX4_CMD_TIME_CLASS_C[rip]
	push	rax
	.cfi_def_cfa_offset 144
	mov	r8d, DWORD PTR 24[rsp]
	mov	edx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR 0[r13]
	mov	r9d, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR [rbx]
	call	mlx4_cmd_box@PLT
	mov	r13d, eax
	pop	rax
	.cfi_def_cfa_offset 136
	pop	rdx
	.cfi_def_cfa_offset 128
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L42
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L41:
	.cfi_restore_state
	mov	rax, QWORD PTR IB_MGMT_CLASS_SUBN_LID_ROUTED[rip]
	cmp	QWORD PTR 16[r14], rax
	jne	.L20
	mov	rax, QWORD PTR IB_MGMT_METHOD_GET[rip]
	cmp	QWORD PTR 32[r14], rax
	je	.L43
.L20:
	mov	rdi, QWORD PTR 40[r14]
	call	be16_to_cpu@PLT
	mov	edi, DWORD PTR 28[rsp]
	lea	r9, .LC0[rip]
	lea	rdx, .LC1[rip]
	test	edi, edi
	cmove	r9, rdx
.L22:
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	mov	rcx, QWORD PTR 16[r14]
	mov	r8, QWORD PTR 32[r14]
	mov	edx, r12d
	push	rax
	.cfi_def_cfa_offset 144
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	call	mlx4_err@PLT
	mov	r13d, DWORD PTR EPERM[rip]
	pop	rcx
	.cfi_def_cfa_offset 136
	pop	rsi
	.cfi_def_cfa_offset 128
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	cmp	DWORD PTR 24[r14], 1
	jne	.L2
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR IB_MGMT_METHOD_GET[rip]
	cmp	QWORD PTR 32[r14], rax
	jne	.L2
	mov	rax, QWORD PTR 40[r14]
	cmp	rax, QWORD PTR IB_SMP_ATTR_PKEY_TABLE[rip]
	je	.L44
	cmp	rax, QWORD PTR IB_SMP_ATTR_PORT_INFO[rip]
	je	.L45
	cmp	rax, QWORD PTR IB_SMP_ATTR_GUID_INFO[rip]
	je	.L46
	cmp	rax, QWORD PTR IB_SMP_ATTR_NODE_INFO[rip]
	jne	.L2
	mov	eax, DWORD PTR MLX4_CMD_NATIVE[rip]
	mov	ecx, r11d
	mov	rdi, r15
	push	rax
	.cfi_def_cfa_offset 136
	mov	eax, DWORD PTR MLX4_CMD_TIME_CLASS_C[rip]
	push	rax
	.cfi_def_cfa_offset 144
	mov	r8d, DWORD PTR 24[rsp]
	mov	r9d, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 0[r13]
	mov	edx, DWORD PTR 0[rbp]
	call	mlx4_cmd_box@PLT
	pop	r9
	.cfi_def_cfa_offset 136
	pop	r10
	.cfi_def_cfa_offset 128
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	esi, r12d
	mov	rdi, r15
	call	mlx4_get_slave_node_guid@PLT
	lea	rsi, 48[rsp]
	mov	edx, 8
	mov	QWORD PTR 48[rsp], rax
	mov	rax, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR [rax]
	add	rdi, 48
	call	memcpy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L43:
	mov	r8d, DWORD PTR 28[rsp]
	test	r8d, r8d
	je	.L19
	mov	rdi, QWORD PTR 40[r14]
	call	be16_to_cpu@PLT
	lea	r9, .LC0[rip]
	jmp	.L22
.L46:
	test	r11d, r11d
	jle	.L14
	cmp	DWORD PTR [r15], r11d
	jl	.L14
	mov	edx, r11d
	mov	esi, r12d
	mov	rdi, r15
	mov	DWORD PTR 28[rsp], r11d
	call	mlx4_get_admin_guid@PLT
	mov	QWORD PTR 48[rsp], rax
	test	r12d, r12d
	jne	.L17
	test	rax, rax
	jne	.L17
	mov	eax, DWORD PTR MLX4_CMD_NATIVE[rip]
	mov	QWORD PTR 48[r14], 0
	mov	rdi, r15
	push	rax
	.cfi_def_cfa_offset 136
	mov	eax, DWORD PTR MLX4_CMD_TIME_CLASS_C[rip]
	push	rax
	.cfi_def_cfa_offset 144
	mov	r8d, DWORD PTR 24[rsp]
	mov	r9d, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR [rbx]
	mov	esi, DWORD PTR 0[r13]
	mov	edx, DWORD PTR 0[rbp]
	call	mlx4_cmd_box@PLT
	pop	r11
	.cfi_def_cfa_offset 136
	pop	rbx
	.cfi_def_cfa_offset 128
	test	eax, eax
	mov	r11d, DWORD PTR 28[rsp]
	mov	r13d, eax
	jne	.L1
	mov	rax, QWORD PTR 16[rsp]
	mov	ecx, r11d
	xor	edx, edx
	mov	rdi, r15
	mov	rax, QWORD PTR [rax]
	mov	rsi, QWORD PTR [rax]
	call	mlx4_set_admin_guid@PLT
.L18:
	mov	rax, QWORD PTR 16[rsp]
	mov	edx, 56
	xor	esi, esi
	xor	r13d, r13d
	mov	rdi, QWORD PTR [rax]
	add	rdi, 32
	call	memset@PLT
	jmp	.L1
.L14:
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
.L44:
	mov	rdi, QWORD PTR 48[r14]
	mov	DWORD PTR 8[rsp], r11d
	call	be32_to_cpu@PLT
	mov	r11d, DWORD PTR 8[rsp]
	mov	r14d, eax
	test	r11d, r11d
	jle	.L14
	cmp	DWORD PTR [r15], r11d
	jl	.L14
	mov	rax, QWORD PTR 8[r15]
	movsx	rbx, r11d
	mov	ecx, 32
	mov	esi, 128
	mov	DWORD PTR 8[rsp], r11d
	mov	eax, DWORD PTR [rax+rbx*4]
	cdq
	idiv	ecx
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	lea	edi, 1[rax]
	call	kcalloc@PLT
	mov	r11d, DWORD PTR 8[rsp]
	test	rax, rax
	je	.L47
	mov	rcx, r13
	mov	r8, rbp
	mov	rdx, rax
	mov	esi, r11d
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rax
	call	get_full_pkey_table@PLT
	mov	r9, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r13d, eax
	jne	.L8
	sal	r14d, 5
	lea	r15, -8[0+rbx*8]
	sal	r12, 3
	lea	eax, 32[r14]
	movsx	rbx, r14d
	mov	DWORD PTR 8[rsp], eax
	sal	rbx, 2
.L9:
	mov	ecx, r14d
	mov	rsi, QWORD PTR 40[rsp]
	mov	QWORD PTR 16[rsp], r9
	sar	ecx, 31
	shr	ecx, 27
	lea	eax, [r14+rcx]
	add	r14d, 1
	and	eax, 31
	sub	eax, ecx
	cdqe
	lea	rbp, [rsi+rax*4]
	mov	rax, QWORD PTR 32[rsp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax+r12]
	mov	rax, QWORD PTR [rax+r15]
	movsx	rax, DWORD PTR [rax+rbx]
	add	rbx, 4
	mov	edi, DWORD PTR [r9+rax*4]
	call	cpu_to_be16@PLT
	cmp	r14d, DWORD PTR 8[rsp]
	mov	r9, QWORD PTR 16[rsp]
	mov	DWORD PTR 0[rbp], eax
	jl	.L9
.L8:
	mov	rdi, r9
	call	kfree@PLT
	jmp	.L1
.L45:
	mov	edi, r11d
	mov	DWORD PTR 28[rsp], r11d
	call	cpu_to_be32@PLT
	mov	rdi, r15
	mov	QWORD PTR 48[r14], rax
	mov	eax, DWORD PTR MLX4_CMD_NATIVE[rip]
	push	rax
	.cfi_def_cfa_offset 136
	mov	eax, DWORD PTR MLX4_CMD_TIME_CLASS_C[rip]
	push	rax
	.cfi_def_cfa_offset 144
	mov	r11d, DWORD PTR 44[rsp]
	mov	r8d, DWORD PTR 24[rsp]
	mov	edx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR 0[r13]
	mov	r9d, DWORD PTR 8[rbx]
	mov	ecx, r11d
	mov	DWORD PTR 24[rsp], r11d
	call	mlx4_cmd_box@PLT
	pop	rbp
	.cfi_def_cfa_offset 136
	pop	r14
	.cfi_def_cfa_offset 128
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, r15
	call	mlx4_master_func_num@PLT
	cmp	eax, r12d
	je	.L1
	mov	r11d, DWORD PTR 8[rsp]
	test	r11d, r11d
	jle	.L14
	cmp	DWORD PTR [r15], r11d
	jl	.L14
	mov	r14, QWORD PTR 16[rsp]
	mov	esi, r11d
	mov	rdi, r15
	mov	DWORD PTR 8[rsp], r11d
	movsx	rdx, DWORD PTR PORT_STATE_OFFSET[rip]
	mov	rax, QWORD PTR [r14]
	lea	rbp, [rax+rdx*4]
	mov	edx, r12d
	mov	ebx, DWORD PTR 0[rbp]
	call	vf_port_state@PLT
	movsx	r11, DWORD PTR 8[rsp]
	lea	rsi, 48[rsp]
	and	ebx, 240
	or	ebx, eax
	mov	rax, QWORD PTR 32[rsp]
	mov	DWORD PTR 0[rbp], ebx
	movsx	rdx, DWORD PTR PORT_CAPABILITY_LOCATION_IN_SMP[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax+r12*8]
	mov	rax, QWORD PTR [rax+r11*8]
	mov	QWORD PTR 48[rsp], rax
	mov	rax, QWORD PTR [r14]
	lea	rdi, [rax+rdx*4]
	mov	edx, 4
	call	memcpy@PLT
	jmp	.L1
.L42:
	call	__stack_chk_fail@PLT
.L17:
	mov	rax, QWORD PTR 16[rsp]
	lea	rsi, 48[rsp]
	mov	edx, 8
	mov	rdi, QWORD PTR [rax]
	call	memcpy@PLT
	jmp	.L18
.L47:
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mlx4_MAD_IFC_wrapper, .-mlx4_MAD_IFC_wrapper
	.comm	PORT_STATE_OFFSET,4,4
	.comm	PORT_CAPABILITY_LOCATION_IN_SMP,4,4
	.comm	MLX4_CMD_TIME_CLASS_C,4,4
	.comm	MLX4_CMD_NATIVE,4,4
	.comm	IB_SMP_ATTR_PORT_INFO,8,8
	.comm	IB_SMP_ATTR_PKEY_TABLE,8,8
	.comm	IB_SMP_ATTR_NODE_INFO,8,8
	.comm	IB_SMP_ATTR_GUID_INFO,8,8
	.comm	IB_MGMT_METHOD_GET,8,8
	.comm	IB_MGMT_CLASS_SUBN_LID_ROUTED,8,8
	.comm	GFP_KERNEL,4,4
	.comm	EPERM,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_cmd.c_mlx4_MAD_IFC_wrapper.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Network\000"
	.align	2
.LC1:
	.ascii	"Host\000"
	.align	2
.LC2:
	.ascii	"Unprivileged slave %d is trying to execute a Subnet"
	.ascii	" MGMT MAD, class 0x%x, method 0x%x, view=%s for att"
	.ascii	"r 0x%x. Rejecting\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_MAD_IFC_wrapper, %function
mlx4_MAD_IFC_wrapper:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r3
	ldr	r3, .L40
	sub	sp, sp, #44
	mov	r5, r2
	mov	r6, r1
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	ldr	fp, [r7, #4]
	ldr	r9, [sp, #80]
	bl	mlx4_priv
	mov	r3, r0
	ldr	r10, [r9, #4]
	str	r3, [sp, #24]
	ldr	r3, [r10]
	ldr	r2, [r5]
	mov	r1, r6
	mov	r0, r4
	str	r3, [sp, #28]
	bl	mlx4_slave_convert_port
	ldr	r2, [fp, #4]
	ldr	r3, [r5, #4]
	cmp	r2, #1
	bic	r2, r3, #8
	and	r3, r3, #8
	mov	r8, r0
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	bne	.L2
	ldr	r3, .L40+4
	ldr	r2, [fp, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L32
.L2:
	mov	r0, r4
	bl	mlx4_master_func_num
	cmp	r0, r6
	beq	.L20
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	bl	mlx4_vf_smi_enabled
	cmp	r0, #0
	beq	.L33
.L20:
	ldr	r2, .L40+8
	ldr	r3, .L40+12
	ldr	ip, [r2]
	ldr	r2, [sp, #16]
	ldr	r3, [r3]
	str	r2, [sp]
	ldr	r1, [r7]
	ldr	r2, [r9]
	str	r3, [sp, #12]
	ldr	r3, [r5, #8]
	mov	r0, r4
	stmib	sp, {r3, ip}
	ldr	r3, [r5]
	bl	mlx4_cmd_box
	mov	r7, r0
.L1:
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L34
	mov	r0, r7
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	ldr	r3, .L40+4
	ldr	r8, [fp, #8]
	ldr	r3, [r3]
	ldr	r10, [fp, #16]
	cmp	r8, r3
	beq	.L35
.L21:
	ldr	r2, [sp, #20]
	ldr	r3, .L40+16
	cmp	r2, #0
	ldr	r5, .L40+20
	moveq	r5, r3
.L22:
	ldr	r0, [fp, #20]
	bl	be16_to_cpu
	mov	r3, r8
	str	r0, [sp, #8]
	mov	r2, r6
	mov	r0, r4
	ldr	r1, .L40+24
	str	r5, [sp, #4]
	str	r10, [sp]
	bl	mlx4_err
	ldr	r3, .L40+28
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L32:
	ldr	r3, [fp, #12]
	ldr	r2, [sp, #20]
	cmp	r3, #1
	cmpeq	r2, #0
	bne	.L2
	ldr	r3, .L40+32
	ldr	r2, [fp, #16]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	ldr	r2, .L40+36
	ldr	r3, [fp, #20]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L36
	ldr	r2, .L40+40
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L37
	ldr	r2, .L40+44
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L38
	ldr	r2, .L40+48
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L2
	ldr	r3, [r5, #8]
	ldr	r1, .L40+12
	ldr	r2, .L40+8
	ldr	ip, [r1]
	ldr	r0, [r2]
	str	r3, [sp, #4]
	ldr	r3, [sp, #16]
	str	r3, [sp]
	ldr	r1, [r7]
	ldr	r2, [r9]
	mov	r3, r8
	str	r0, [sp, #8]
	str	ip, [sp, #12]
	mov	r0, r4
	bl	mlx4_cmd_box
	subs	r7, r0, #0
	bne	.L1
	mov	r1, r6
	mov	r0, r4
	bl	mlx4_get_slave_node_guid
	mov	r3, r0
	ldr	r0, [r10]
	mov	r2, #8
	add	r1, sp, #32
	add	r0, r0, #48
	str	r3, [sp, #32]
	bl	memcpy
	b	.L1
.L35:
	ldr	r3, .L40+32
	ldr	r3, [r3]
	cmp	r3, r10
	bne	.L21
	ldr	r3, [sp, #20]
	cmp	r3, #0
	beq	.L20
	ldr	r5, .L40+20
	b	.L22
.L38:
	cmp	r0, #0
	ble	.L15
	ldr	r3, [r4]
	cmp	r3, r0
	blt	.L15
	mov	r2, r0
	mov	r1, r6
	mov	r0, r4
	bl	mlx4_get_admin_guid
	orrs	r2, r0, r6
	str	r0, [sp, #32]
	bne	.L18
	mov	r3, #0
	ldr	r1, .L40+12
	ldr	r2, .L40+8
	ldr	ip, [r1]
	ldr	r0, [r2]
	ldr	r1, [r7]
	ldr	r2, [r9]
	ldr	lr, [sp, #16]
	str	r3, [fp, #24]
	ldr	r3, [r5, #8]
	str	r0, [sp, #8]
	str	lr, [sp]
	str	ip, [sp, #12]
	str	r3, [sp, #4]
	mov	r0, r4
	ldr	r3, [r5]
	bl	mlx4_cmd_box
	subs	r7, r0, #0
	bne	.L1
	ldr	r1, [r10]
	mov	r3, r8
	mov	r2, r7
	mov	r0, r4
	ldr	r1, [r1]
	bl	mlx4_set_admin_guid
.L19:
	ldr	r0, [r10]
	mov	r2, #56
	mov	r1, #0
	add	r0, r0, #32
	bl	memset
	mov	r7, #0
	b	.L1
.L15:
	ldr	r3, .L40+52
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L36:
	ldr	r0, [fp, #24]
	bl	be32_to_cpu
	cmp	r8, #0
	mov	r5, r0
	ble	.L15
	ldr	r3, [r4]
	cmp	r3, r8
	blt	.L15
	ldr	r3, [r4, #4]
	ldr	r2, .L40+56
	ldr	r3, [r3, r8, lsl #2]
	mov	r1, #128
	add	r0, r3, #31
	cmp	r3, #0
	movlt	r3, r0
	asr	r0, r3, #5
	ldr	r2, [r2]
	add	r0, r0, #1
	bl	kcalloc
	subs	fp, r0, #0
	lsl	r10, r8, #2
	beq	.L39
	mov	r3, r7
	mov	r1, r8
	mov	r0, r4
	mov	r2, fp
	str	r9, [sp]
	bl	get_full_pkey_table
	subs	r7, r0, #0
	bne	.L10
	lsl	r5, r5, #5
	ldr	r9, [sp, #24]
	lsl	r6, r6, #2
	sub	r10, r10, #4
	add	r8, r5, #32
.L9:
	ldr	r2, [r9]
	rsbs	r3, r5, #0
	ldr	r2, [r2, r6]
	and	r3, r3, #31
	ldr	r2, [r2, r10]
	and	r4, r5, #31
	ldr	r2, [r2, r5, lsl #2]
	rsbpl	r4, r3, #0
	ldr	r0, [fp, r2, lsl #2]
	bl	cpu_to_be16
	add	r5, r5, #1
	ldr	r3, [sp, #28]
	cmp	r8, r5
	str	r0, [r3, r4, lsl #2]
	bgt	.L9
.L10:
	mov	r0, fp
	bl	kfree
	b	.L1
.L37:
	bl	cpu_to_be32
	ldr	r1, [r5, #8]
	ldr	r2, .L40+12
	ldr	r3, .L40+8
	ldr	ip, [r2]
	ldr	r3, [r3]
	str	r0, [fp, #24]
	ldr	r2, [r9]
	str	r1, [sp, #4]
	ldr	r1, [sp, #16]
	mov	r0, r4
	str	r1, [sp]
	ldr	r1, [r7]
	str	r3, [sp, #8]
	str	ip, [sp, #12]
	mov	r3, r8
	bl	mlx4_cmd_box
	subs	r7, r0, #0
	bne	.L1
	mov	r0, r4
	bl	mlx4_master_func_num
	cmp	r0, r6
	beq	.L1
	cmp	r8, #0
	ble	.L15
	ldr	r3, [r4]
	cmp	r3, r8
	blt	.L15
	ldr	r3, .L40+60
	ldr	r5, [r10]
	ldr	r9, [r3]
	mov	r2, r6
	mov	r1, r8
	mov	r0, r4
	ldr	r4, [r5, r9, lsl #2]
	bl	vf_port_state
	ldr	r3, [sp, #24]
	and	r4, r4, #240
	ldr	r3, [r3, #4]
	orr	r4, r4, r0
	ldr	r1, .L40+64
	ldr	r3, [r3, r6, lsl #2]
	str	r4, [r5, r9, lsl #2]
	ldr	r2, [r10]
	ldr	r0, [r1]
	ldr	r3, [r3, r8, lsl #2]
	add	r0, r2, r0, lsl #2
	add	r1, sp, #32
	mov	r2, #4
	str	r3, [sp, #32]
	bl	memcpy
	b	.L1
.L34:
	bl	__stack_chk_fail
.L39:
	ldr	r3, .L40+68
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L18:
	mov	r2, #8
	ldr	r0, [r10]
	add	r1, sp, #32
	bl	memcpy
	b	.L19
.L41:
	.align	2
.L40:
	.word	.LC3
	.word	IB_MGMT_CLASS_SUBN_LID_ROUTED
	.word	MLX4_CMD_TIME_CLASS_C
	.word	MLX4_CMD_NATIVE
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	EPERM
	.word	IB_MGMT_METHOD_GET
	.word	IB_SMP_ATTR_PKEY_TABLE
	.word	IB_SMP_ATTR_PORT_INFO
	.word	IB_SMP_ATTR_GUID_INFO
	.word	IB_SMP_ATTR_NODE_INFO
	.word	EINVAL
	.word	GFP_KERNEL
	.word	PORT_STATE_OFFSET
	.word	PORT_CAPABILITY_LOCATION_IN_SMP
	.word	ENOMEM
	.size	mlx4_MAD_IFC_wrapper, .-mlx4_MAD_IFC_wrapper
	.comm	PORT_STATE_OFFSET,4,4
	.comm	PORT_CAPABILITY_LOCATION_IN_SMP,4,4
	.comm	MLX4_CMD_TIME_CLASS_C,4,4
	.comm	MLX4_CMD_NATIVE,4,4
	.comm	IB_SMP_ATTR_PORT_INFO,4,4
	.comm	IB_SMP_ATTR_PKEY_TABLE,4,4
	.comm	IB_SMP_ATTR_NODE_INFO,4,4
	.comm	IB_SMP_ATTR_GUID_INFO,4,4
	.comm	IB_MGMT_METHOD_GET,4,4
	.comm	IB_MGMT_CLASS_SUBN_LID_ROUTED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPERM,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
