	.file	"extr_fw.c_mlx4_QUERY_FUNC_CAP_wrapper.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx4_QUERY_FUNC_CAP_wrapper
	.type	mlx4_QUERY_FUNC_CAP_wrapper, @function
mlx4_QUERY_FUNC_CAP_wrapper:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	mlx4_priv@PLT
	mov	r15d, DWORD PTR 0[r13]
	mov	r14, rax
	cmp	r15d, 1
	je	.L31
	test	r15d, r15d
	je	.L32
.L11:
	mov	r15d, DWORD PTR EINVAL[rip]
	neg	r15d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L32:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, rbp
	call	mlx4_get_active_ports@PLT
	mov	edi, DWORD PTR [rbx]
	xor	edx, edx
	mov	esi, 220
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR 8[r14]
	mov	QWORD PTR 16[rsp], rax
	movsx	rax, r12d
	mov	QWORD PTR 24[rsp], rax
	call	MLX4_PUT@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR 56[rbp]
	mov	edi, r8d
	mov	DWORD PTR [rsp], esi
	call	bitmap_weight@PLT
	mov	esi, DWORD PTR [rsp]
	mov	edi, eax
	call	min@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, 1
	mov	rsi, rax
	call	MLX4_PUT@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 4
	call	MLX4_PUT@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, 8
	xor	esi, esi
	call	MLX4_PUT@PLT
	mov	rax, QWORD PTR [r14]
	movsx	rcx, r12d
	mov	edi, DWORD PTR [rbx]
	mov	rdx, QWORD PTR RES_QP[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	edx, 80
	mov	esi, DWORD PTR [rax+rcx*4]
	call	MLX4_PUT@PLT
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 16
	call	MLX4_PUT@PLT
	mov	rax, QWORD PTR [r14]
	movsx	rcx, r12d
	mov	edi, DWORD PTR [rbx]
	mov	rdx, QWORD PTR RES_SRQ[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	edx, 88
	mov	esi, DWORD PTR [rax+rcx*4]
	call	MLX4_PUT@PLT
	mov	esi, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 24
	call	MLX4_PUT@PLT
	mov	rax, QWORD PTR [r14]
	movsx	rcx, r12d
	mov	edi, DWORD PTR [rbx]
	mov	rdx, QWORD PTR RES_CQ[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	edx, 84
	mov	esi, DWORD PTR [rax+rcx*4]
	call	MLX4_PUT@PLT
	mov	esi, DWORD PTR 20[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 20
	call	MLX4_PUT@PLT
	mov	eax, DWORD PTR 24[rbp]
	test	DWORD PTR MLX4_DEV_CAP_FLAG2_SYS_EQS[rip], eax
	jne	.L12
.L15:
	mov	eax, DWORD PTR 4[r13]
	mov	edi, 31
	mov	DWORD PTR [rsp], eax
	xor	eax, eax
	call	BIT@PLT
	test	DWORD PTR [rsp], eax
	je	.L34
	mov	esi, DWORD PTR 28[rbp]
.L17:
	mov	edi, DWORD PTR [rbx]
	mov	edx, 44
	call	MLX4_PUT@PLT
	mov	esi, DWORD PTR 32[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 48
	call	MLX4_PUT@PLT
.L18:
	mov	rax, QWORD PTR [r14]
	mov	rdx, QWORD PTR RES_MPT[rip]
	movsx	rcx, r12d
	mov	edi, DWORD PTR [rbx]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	edx, 96
	mov	esi, DWORD PTR [rax+rcx*4]
	call	MLX4_PUT@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR 36[rbp]
	mov	edx, 32
	call	MLX4_PUT@PLT
	mov	rax, QWORD PTR [r14]
	movsx	rcx, r12d
	mov	edi, DWORD PTR [rbx]
	mov	rdx, QWORD PTR RES_MTT[rip]
	sal	r12d, 8
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	edx, 100
	mov	esi, DWORD PTR [rax+rcx*4]
	call	MLX4_PUT@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR 40[rbp]
	mov	edx, 36
	call	MLX4_PUT@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r14d, DWORD PTR 48[rbp]
	mov	edx, 104
	add	r14d, DWORD PTR 44[rbp]
	mov	esi, r14d
	call	MLX4_PUT@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, 40
	mov	esi, r14d
	call	MLX4_PUT@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, 108
	mov	esi, -1073741824
	call	MLX4_PUT@PLT
	mov	edi, DWORD PTR [rbx]
	movzx	esi, r12w
	mov	edx, 72
	add	esi, DWORD PTR 52[rbp]
	call	MLX4_PUT@PLT
	mov	ebx, DWORD PTR 4[r13]
	xor	eax, eax
	mov	edi, 30
	call	BIT@PLT
	test	ebx, eax
	je	.L1
	mov	rax, QWORD PTR 16[rsp]
	mov	rcx, QWORD PTR 24[rsp]
	mov	DWORD PTR [rax+rcx*4], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, r12d
	mov	rdi, rbp
	call	mlx4_get_active_ports@PLT
	mov	edx, DWORD PTR 4[r13]
	mov	esi, r12d
	mov	rdi, rbp
	mov	r15d, eax
	call	mlx4_slave_convert_port@PLT
	test	eax, eax
	js	.L11
	mov	DWORD PTR 4[r13], eax
	mov	esi, DWORD PTR 56[rbp]
	mov	edi, r15d
	mov	DWORD PTR [rsp], eax
	call	find_first_bit@PLT
	movsx	rsi, DWORD PTR [rsp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 3
	sub	rsi, rax
	call	MLX4_PUT@PLT
	mov	esi, DWORD PTR 72[rbp]
	movsx	rdx, DWORD PTR 4[r13]
	mov	rdi, rbp
	lea	eax, 0[0+r12*8]
	add	esi, eax
	mov	DWORD PTR 16[rsp], eax
	mov	r15, rdx
	lea	eax, [rsi+rdx]
	mov	esi, r12d
	mov	QWORD PTR [rsp], rdx
	mov	DWORD PTR 24[rsp], eax
	sub	eax, 1
	mov	DWORD PTR 12[rsp], eax
	call	mlx4_vf_smi_enabled@PLT
	test	rax, rax
	jne	.L5
.L7:
	mov	esi, 16
.L6:
	mov	edi, DWORD PTR [rbx]
	mov	edx, 12
	call	MLX4_PUT@PLT
	mov	ecx, DWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 16
	add	ecx, DWORD PTR 76[rbp]
	add	ecx, r15d
	lea	esi, -1[rcx]
	mov	DWORD PTR 16[rsp], ecx
	call	MLX4_PUT@PLT
	mov	ecx, DWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 24
	lea	esi, 1[rcx]
	call	MLX4_PUT@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 20
	call	MLX4_PUT@PLT
	mov	esi, DWORD PTR 24[rsp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 28
	add	esi, 1
	call	MLX4_PUT@PLT
	movsx	rdx, DWORD PTR 4[r13]
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	edx, 40
	call	MLX4_PUT@PLT
	mov	rax, QWORD PTR 16[r14]
	movsx	rdx, r12d
	mov	esi, r12d
	mov	rdi, r14
	mov	r13, QWORD PTR [rax+rdx*8]
	mov	rdx, QWORD PTR [rsp]
	call	mlx4_handle_vst_qinq@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L1
	mov	rcx, QWORD PTR [rsp]
	mov	rax, QWORD PTR 64[rbp]
	mov	edi, DWORD PTR ETH_P_8021AD[rip]
	cmp	QWORD PTR [rax+rcx*8], 1
	mov	r12, QWORD PTR 0[r13+rcx*8]
	sbb	rbp, rbp
	call	htons@PLT
	not	rbp
	mov	edi, DWORD PTR [rbx]
	mov	edx, 8
	and	ebp, 64
	mov	r9, rax
	mov	rax, rbp
	or	rax, 32
	cmp	r12, r9
	cmove	rbp, rax
	mov	esi, ebp
	call	MLX4_PUT@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, 32[rsp]
	mov	edx, r12d
	mov	rdi, rbp
	call	mlx4_QUERY_FUNC@PLT
	test	rax, rax
	jne	.L15
	mov	eax, DWORD PTR 4[r13]
	mov	edi, 31
	mov	DWORD PTR [rsp], eax
	xor	eax, eax
	call	BIT@PLT
	test	DWORD PTR [rsp], eax
	je	.L19
	mov	esi, DWORD PTR 32[rsp]
.L20:
	mov	edi, DWORD PTR [rbx]
	mov	edx, 44
	call	MLX4_PUT@PLT
	mov	esi, DWORD PTR 36[rsp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 48
	call	MLX4_PUT@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L34:
	mov	edi, DWORD PTR 28[rbp]
	call	rounddown_pow_of_two@PLT
	mov	esi, eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR 12[rsp]
	lea	rdx, 32[rsp]
	mov	rdi, rbp
	call	mlx4_get_parav_qkey@PLT
	test	eax, eax
	jne	.L7
	mov	esi, DWORD PTR 32[rsp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 4
	call	MLX4_PUT@PLT
	mov	esi, 24
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR 32[rsp]
	call	rounddown_pow_of_two@PLT
	mov	esi, eax
	jmp	.L20
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlx4_QUERY_FUNC_CAP_wrapper, .-mlx4_QUERY_FUNC_CAP_wrapper
	.comm	RES_SRQ,8,8
	.comm	RES_QP,8,8
	.comm	RES_MTT,8,8
	.comm	RES_MPT,8,8
	.comm	RES_CQ,8,8
	.comm	QUERY_FUNC_CAP_VLAN_OFFLOAD_DISABLE,8,8
	.comm	QUERY_FUNC_CAP_VF_ENABLE_QP0,8,8
	.comm	QUERY_FUNC_CAP_SUPPORTS_VST_QINQ,4,4
	.comm	QUERY_FUNC_CAP_SUPPORTS_NON_POWER_OF_2_NUM_EQS,4,4
	.comm	QUERY_FUNC_CAP_SRQ_QUOTA_OFFSET_DEP,4,4
	.comm	QUERY_FUNC_CAP_SRQ_QUOTA_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_RESERVED_EQ_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_QP_RESD_LKEY_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_QP_QUOTA_OFFSET_DEP,4,4
	.comm	QUERY_FUNC_CAP_QP_QUOTA_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_QP1_TUNNEL,4,4
	.comm	QUERY_FUNC_CAP_QP1_PROXY,4,4
	.comm	QUERY_FUNC_CAP_QP0_TUNNEL,4,4
	.comm	QUERY_FUNC_CAP_QP0_PROXY,4,4
	.comm	QUERY_FUNC_CAP_PRIV_VF_QKEY_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_PHYS_PORT_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_PHYS_PORT_ID,4,4
	.comm	QUERY_FUNC_CAP_PHV_BIT,8,8
	.comm	QUERY_FUNC_CAP_PF_BHVR_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_NUM_PORTS_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_MTT_QUOTA_OFFSET_DEP,4,4
	.comm	QUERY_FUNC_CAP_MTT_QUOTA_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_MPT_QUOTA_OFFSET_DEP,4,4
	.comm	QUERY_FUNC_CAP_MPT_QUOTA_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_MCG_QUOTA_OFFSET_DEP,4,4
	.comm	QUERY_FUNC_CAP_MCG_QUOTA_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_MAX_EQ_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_FMR_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_FLAG_VALID_MAILBOX,8,8
	.comm	QUERY_FUNC_CAP_FLAG_RESD_LKEY,8,8
	.comm	QUERY_FUNC_CAP_FLAG_RDMA,8,8
	.comm	QUERY_FUNC_CAP_FLAG_QUOTAS,8,8
	.comm	QUERY_FUNC_CAP_FLAG_ETH,8,8
	.comm	QUERY_FUNC_CAP_FLAGS_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_FLAGS1_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_FLAGS1_NIC_INFO,8,8
	.comm	QUERY_FUNC_CAP_FLAGS0_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_EXTRA_FLAGS_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_EXTRA_FLAGS_BF_QP_ALLOC_FLAG,4,4
	.comm	QUERY_FUNC_CAP_EXTRA_FLAGS_A0_QP_ALLOC_FLAG,4,4
	.comm	QUERY_FUNC_CAP_CQ_QUOTA_OFFSET_DEP,4,4
	.comm	QUERY_FUNC_CAP_CQ_QUOTA_OFFSET,4,4
	.comm	MLX4_DEV_CAP_FLAG2_SYS_EQS,4,4
	.comm	ETH_P_8021AD,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_fw.c_mlx4_QUERY_FUNC_CAP_wrapper.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mlx4_QUERY_FUNC_CAP_wrapper
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_QUERY_FUNC_CAP_wrapper, %function
mlx4_QUERY_FUNC_CAP_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	r9, r2
	ldr	r3, .L35
	sub	sp, sp, #28
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r4, r0
	ldr	r5, [sp, #64]
	bl	mlx4_priv
	ldr	r6, [r9]
	mov	r7, r0
	cmp	r6, #1
	beq	.L31
	cmp	r6, #0
	beq	.L32
.L11:
	ldr	r3, .L35+4
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	mov	r0, r6
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L32:
	mov	r1, r8
	mov	r0, r4
	bl	mlx4_get_active_ports
	mov	fp, r0
	mov	r2, r6
	mov	r1, #220
	ldr	r0, [r5]
	ldr	r10, [r7, #4]
	bl	MLX4_PUT
	ldr	r1, [r4, #52]
	mov	r0, fp
	bl	bitmap_weight
	ldr	r1, [r4, #52]
	bl	min
	mov	r2, #1
	mov	r1, r0
	ldr	r0, [r5]
	bl	MLX4_PUT
	mov	r2, #4
	ldr	r1, [r4, #4]
	ldr	r0, [r5]
	bl	MLX4_PUT
	mov	r2, #8
	mov	r1, r6
	ldr	r0, [r5]
	bl	MLX4_PUT
	ldr	r2, .L35+8
	ldr	r3, [r7]
	ldr	r1, [r2]
	ldr	r0, [r5]
	ldr	r3, [r3, r1, lsl #2]
	mov	r2, #80
	ldr	r1, [r3, r8, lsl #2]
	bl	MLX4_PUT
	mov	r2, #16
	ldr	r1, [r4, #8]
	ldr	r0, [r5]
	bl	MLX4_PUT
	ldr	r2, .L35+12
	ldr	r3, [r7]
	ldr	r1, [r2]
	ldr	r0, [r5]
	ldr	r3, [r3, r1, lsl #2]
	mov	r2, #88
	ldr	r1, [r3, r8, lsl #2]
	bl	MLX4_PUT
	mov	r2, #24
	ldr	r1, [r4, #12]
	ldr	r0, [r5]
	bl	MLX4_PUT
	ldr	r2, .L35+16
	ldr	r3, [r7]
	ldr	r1, [r2]
	ldr	r0, [r5]
	ldr	r3, [r3, r1, lsl #2]
	mov	r2, #84
	ldr	r1, [r3, r8, lsl #2]
	bl	MLX4_PUT
	mov	r2, #20
	ldr	r1, [r4, #16]
	ldr	r0, [r5]
	bl	MLX4_PUT
	ldr	r3, .L35+20
	ldr	r2, [r4, #20]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L12
.L15:
	mov	r0, #31
	ldr	fp, [r9, #4]
	bl	BIT
	tst	fp, r0
	ldrne	r1, [r4, #24]
	beq	.L34
.L17:
	mov	r2, #44
	ldr	r0, [r5]
	bl	MLX4_PUT
	mov	r2, #48
	ldr	r1, [r4, #28]
	ldr	r0, [r5]
	bl	MLX4_PUT
.L18:
	ldr	r2, .L35+24
	ldr	r3, [r7]
	ldr	r1, [r2]
	ldr	r0, [r5]
	ldr	r3, [r3, r1, lsl #2]
	mov	r2, #96
	ldr	r1, [r3, r8, lsl #2]
	bl	MLX4_PUT
	ldr	r1, [r4, #32]
	mov	r2, #32
	ldr	r0, [r5]
	bl	MLX4_PUT
	ldr	r2, .L35+28
	ldr	r3, [r7]
	ldr	r1, [r2]
	ldr	r0, [r5]
	ldr	r3, [r3, r1, lsl #2]
	mov	r2, #100
	ldr	r1, [r3, r8, lsl #2]
	bl	MLX4_PUT
	ldr	r1, [r4, #36]
	mov	r2, #36
	ldr	r0, [r5]
	bl	MLX4_PUT
	ldr	r1, [r4, #44]
	ldr	r7, [r4, #40]
	mov	r2, #104
	add	r7, r7, r1
	mov	r1, r7
	ldr	r0, [r5]
	bl	MLX4_PUT
	mov	r1, r7
	mov	r2, #40
	ldr	r0, [r5]
	bl	MLX4_PUT
	mov	r2, #108
	mov	r1, #-1073741824
	ldr	r0, [r5]
	bl	MLX4_PUT
	ldr	r3, .L35+32
	ldr	r1, [r4, #48]
	and	r3, r3, r8, lsl #8
	add	r1, r3, r1
	mov	r2, #72
	ldr	r0, [r5]
	bl	MLX4_PUT
	mov	r0, #30
	ldr	r4, [r9, #4]
	bl	BIT
	tst	r4, r0
	movne	r3, #1
	strne	r3, [r10, r8, lsl #2]
	b	.L1
.L31:
	mov	r1, r8
	mov	r0, r4
	bl	mlx4_get_active_ports
	mov	r1, r8
	mov	r10, r0
	ldr	r2, [r9, #4]
	mov	r0, r4
	bl	mlx4_slave_convert_port
	subs	r6, r0, #0
	blt	.L11
	mov	r0, r10
	ldr	r1, [r4, #52]
	str	r6, [r9, #4]
	bl	find_first_bit
	mov	r2, #3
	sub	r1, r6, r0
	ldr	r0, [r5]
	bl	MLX4_PUT
	ldr	r10, [r9, #4]
	mov	r1, r8
	mov	r2, r10
	mov	r0, r4
	ldr	r6, [r4, #60]
	bl	mlx4_vf_smi_enabled
	add	r6, r6, r8, lsl #3
	add	r6, r6, r10
	cmp	r0, #0
	sub	r3, r6, #1
	lsl	fp, r8, #3
	bne	.L5
.L7:
	mov	r1, #16
.L6:
	mov	r2, #12
	ldr	r0, [r5]
	str	r3, [sp, #4]
	bl	MLX4_PUT
	ldr	r1, [r4, #64]
	mov	r2, #16
	add	fp, fp, r1
	add	fp, fp, r10
	sub	r1, fp, #1
	ldr	r0, [r5]
	bl	MLX4_PUT
	mov	r2, #24
	add	r1, fp, #1
	ldr	r0, [r5]
	bl	MLX4_PUT
	ldr	r3, [sp, #4]
	mov	r2, #20
	mov	r1, r3
	ldr	r0, [r5]
	bl	MLX4_PUT
	add	r1, r6, #1
	mov	r2, #28
	ldr	r0, [r5]
	bl	MLX4_PUT
	ldr	r3, [r4]
	ldr	r1, [r9, #4]
	mov	r2, #40
	ldr	r1, [r3, r1, lsl #2]
	ldr	r0, [r5]
	bl	MLX4_PUT
	ldr	r3, [r7, #8]
	mov	r0, r7
	mov	r1, r8
	mov	r2, r10
	ldr	r7, [r3, r8, lsl #2]
	bl	mlx4_handle_vst_qinq
	subs	r6, r0, #0
	bne	.L1
	ldr	r3, [r4, #56]
	ldr	r2, .L35+36
	ldr	r3, [r3, r10, lsl #2]
	ldr	r0, [r2]
	cmp	r3, #0
	moveq	r4, #0
	movne	r4, #64
	ldr	r7, [r7, r10, lsl #2]
	bl	htons
	cmp	r7, r0
	orreq	r4, r4, #32
	mov	r1, r4
	mov	r2, #8
	ldr	r0, [r5]
	bl	MLX4_PUT
	b	.L1
.L12:
	mov	r2, r8
	mov	r0, r4
	add	r1, sp, #12
	bl	mlx4_QUERY_FUNC
	cmp	r0, #0
	bne	.L15
	mov	r0, #31
	ldr	fp, [r9, #4]
	bl	BIT
	tst	fp, r0
	beq	.L19
	ldr	r1, [sp, #12]
.L20:
	mov	r2, #44
	ldr	r0, [r5]
	bl	MLX4_PUT
	mov	r2, #48
	ldr	r1, [sp, #16]
	ldr	r0, [r5]
	bl	MLX4_PUT
	b	.L18
.L34:
	ldr	r0, [r4, #24]
	bl	rounddown_pow_of_two
	mov	r1, r0
	b	.L17
.L5:
	mov	r1, r3
	mov	r0, r4
	add	r2, sp, #12
	str	r3, [sp, #4]
	bl	mlx4_get_parav_qkey
	cmp	r0, #0
	ldr	r3, [sp, #4]
	bne	.L7
	ldr	r1, [sp, #12]
	mov	r2, #4
	ldr	r0, [r5]
	bl	MLX4_PUT
	mov	r1, #24
	ldr	r3, [sp, #4]
	b	.L6
.L19:
	ldr	r0, [sp, #12]
	bl	rounddown_pow_of_two
	mov	r1, r0
	b	.L20
.L33:
	bl	__stack_chk_fail
.L36:
	.align	2
.L35:
	.word	.LC0
	.word	EINVAL
	.word	RES_QP
	.word	RES_SRQ
	.word	RES_CQ
	.word	MLX4_DEV_CAP_FLAG2_SYS_EQS
	.word	RES_MPT
	.word	RES_MTT
	.word	65535
	.word	ETH_P_8021AD
	.size	mlx4_QUERY_FUNC_CAP_wrapper, .-mlx4_QUERY_FUNC_CAP_wrapper
	.comm	RES_SRQ,4,4
	.comm	RES_QP,4,4
	.comm	RES_MTT,4,4
	.comm	RES_MPT,4,4
	.comm	RES_CQ,4,4
	.comm	QUERY_FUNC_CAP_VLAN_OFFLOAD_DISABLE,4,4
	.comm	QUERY_FUNC_CAP_VF_ENABLE_QP0,4,4
	.comm	QUERY_FUNC_CAP_SUPPORTS_VST_QINQ,4,4
	.comm	QUERY_FUNC_CAP_SUPPORTS_NON_POWER_OF_2_NUM_EQS,4,4
	.comm	QUERY_FUNC_CAP_SRQ_QUOTA_OFFSET_DEP,4,4
	.comm	QUERY_FUNC_CAP_SRQ_QUOTA_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_RESERVED_EQ_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_QP_RESD_LKEY_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_QP_QUOTA_OFFSET_DEP,4,4
	.comm	QUERY_FUNC_CAP_QP_QUOTA_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_QP1_TUNNEL,4,4
	.comm	QUERY_FUNC_CAP_QP1_PROXY,4,4
	.comm	QUERY_FUNC_CAP_QP0_TUNNEL,4,4
	.comm	QUERY_FUNC_CAP_QP0_PROXY,4,4
	.comm	QUERY_FUNC_CAP_PRIV_VF_QKEY_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_PHYS_PORT_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_PHYS_PORT_ID,4,4
	.comm	QUERY_FUNC_CAP_PHV_BIT,4,4
	.comm	QUERY_FUNC_CAP_PF_BHVR_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_NUM_PORTS_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_MTT_QUOTA_OFFSET_DEP,4,4
	.comm	QUERY_FUNC_CAP_MTT_QUOTA_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_MPT_QUOTA_OFFSET_DEP,4,4
	.comm	QUERY_FUNC_CAP_MPT_QUOTA_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_MCG_QUOTA_OFFSET_DEP,4,4
	.comm	QUERY_FUNC_CAP_MCG_QUOTA_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_MAX_EQ_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_FMR_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_FLAG_VALID_MAILBOX,4,4
	.comm	QUERY_FUNC_CAP_FLAG_RESD_LKEY,4,4
	.comm	QUERY_FUNC_CAP_FLAG_RDMA,4,4
	.comm	QUERY_FUNC_CAP_FLAG_QUOTAS,4,4
	.comm	QUERY_FUNC_CAP_FLAG_ETH,4,4
	.comm	QUERY_FUNC_CAP_FLAGS_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_FLAGS1_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_FLAGS1_NIC_INFO,4,4
	.comm	QUERY_FUNC_CAP_FLAGS0_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_EXTRA_FLAGS_OFFSET,4,4
	.comm	QUERY_FUNC_CAP_EXTRA_FLAGS_BF_QP_ALLOC_FLAG,4,4
	.comm	QUERY_FUNC_CAP_EXTRA_FLAGS_A0_QP_ALLOC_FLAG,4,4
	.comm	QUERY_FUNC_CAP_CQ_QUOTA_OFFSET_DEP,4,4
	.comm	QUERY_FUNC_CAP_CQ_QUOTA_OFFSET,4,4
	.comm	MLX4_DEV_CAP_FLAG2_SYS_EQS,4,4
	.comm	ETH_P_8021AD,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
