	.file	"extr_mlx4_ib_main.c_mlx4_ib_query_sl2vl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx4_ib_query_sl2vl, @function
mlx4_ib_query_sl2vl:
.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
	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, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR ENOMEM[rip]
	mov	r15d, DWORD PTR MLX4_MAD_IFC_IGNORE_KEYS[rip]
	mov	DWORD PTR 12[rsp], eax
	call	to_mdev@PLT
	mov	edi, DWORD PTR [rax]
	call	mlx4_is_slave@PLT
	test	rax, rax
	je	.L2
	mov	DWORD PTR [rbx], 0
	xor	r12d, r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 24
	call	kzalloc@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 24
	mov	r14, rax
	call	kmalloc@PLT
	mov	r13, rax
	test	r14, r14
	je	.L9
	test	rax, rax
	je	.L9
	mov	rdi, r14
	call	init_query_mad@PLT
	mov	eax, DWORD PTR IB_SMP_ATTR_SL_TO_VL_TABLE[rip]
	mov	QWORD PTR 8[r14], 0
	mov	rdi, rbp
	mov	DWORD PTR 16[r14], eax
	call	to_mdev@PLT
	mov	edi, DWORD PTR [rax]
	call	mlx4_is_mfunc@PLT
	test	rax, rax
	je	.L7
	or	r15d, DWORD PTR MLX4_MAD_IFC_NET_VIEW[rip]
.L7:
	mov	rdi, rbp
	call	to_mdev@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	edx, r12d
	mov	r9, r14
	push	r13
	.cfi_def_cfa_offset 96
	mov	rdi, rax
	xor	r8d, r8d
	xor	ecx, ecx
	mov	esi, r15d
	call	mlx4_MAD_IFC@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	r12d, r12d
	jne	.L6
	mov	rcx, QWORD PTR 0[r13]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR [rcx+rax]
	add	rax, 4
	mov	DWORD PTR -4[rax], edx
	cmp	rax, 32
	jne	.L8
	mov	DWORD PTR [rbx], 0
.L6:
	mov	rdi, r14
	call	kfree@PLT
	mov	rdi, r13
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, DWORD PTR 12[rsp]
	mov	rdi, r14
	call	kfree@PLT
	mov	rdi, r13
	neg	r12d
	call	kfree@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mlx4_ib_query_sl2vl, .-mlx4_ib_query_sl2vl
	.comm	MLX4_MAD_IFC_NET_VIEW,4,4
	.comm	MLX4_MAD_IFC_IGNORE_KEYS,4,4
	.comm	IB_SMP_ATTR_SL_TO_VL_TABLE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_main.c_mlx4_ib_query_sl2vl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_ib_query_sl2vl, %function
mlx4_ib_query_sl2vl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L15
	ldr	r3, .L15+4
	sub	sp, sp, #20
	ldr	r4, [r3]
	mov	r5, r2
	mov	r9, r1
	ldr	r10, [ip]
	mov	r6, r0
	bl	to_mdev
	ldr	r0, [r0]
	bl	mlx4_is_slave
	cmp	r0, #0
	movne	r4, #0
	strne	r4, [r5]
	beq	.L14
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r8, .L15+8
	mov	r0, #12
	ldr	r1, [r8]
	bl	kzalloc
	ldr	r1, [r8]
	mov	r7, r0
	mov	r0, #12
	bl	kmalloc
	clz	r3, r0
	cmp	r7, #0
	lsr	r3, r3, #5
	movne	fp, r3
	moveq	fp, #1
	cmp	fp, #0
	mov	r8, r0
	rsbne	r4, r4, #0
	bne	.L5
	mov	r0, r7
	bl	init_query_mad
	ldr	r3, .L15+12
	mov	r0, r6
	ldr	r3, [r3]
	str	fp, [r7, #4]
	str	r3, [r7, #8]
	bl	to_mdev
	ldr	r0, [r0]
	bl	mlx4_is_mfunc
	cmp	r0, #0
	ldrne	r3, .L15+16
	mov	r0, r6
	ldrne	r3, [r3]
	orrne	r10, r10, r3
	bl	to_mdev
	mov	r3, #0
	mov	r2, r9
	mov	r1, r10
	stmib	sp, {r7, r8}
	str	r3, [sp]
	bl	mlx4_MAD_IFC
	subs	r4, r0, #0
	bne	.L5
	ldr	r0, [r8]
	mov	r3, r0
	add	r0, r0, #32
	rsb	ip, r3, #0
.L7:
	add	r2, ip, r3
	ldr	r1, [r3], #4
	cmp	r3, r0
	str	r1, [r2]
	bne	.L7
	mov	r3, #0
	str	r3, [r5]
.L5:
	mov	r0, r7
	bl	kfree
	mov	r0, r8
	bl	kfree
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	.align	2
.L15:
	.word	MLX4_MAD_IFC_IGNORE_KEYS
	.word	ENOMEM
	.word	GFP_KERNEL
	.word	IB_SMP_ATTR_SL_TO_VL_TABLE
	.word	MLX4_MAD_IFC_NET_VIEW
	.size	mlx4_ib_query_sl2vl, .-mlx4_ib_query_sl2vl
	.comm	MLX4_MAD_IFC_NET_VIEW,4,4
	.comm	MLX4_MAD_IFC_IGNORE_KEYS,4,4
	.comm	IB_SMP_ATTR_SL_TO_VL_TABLE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
