	.file	"extr_mad.c_mlx5_query_mad_ifc_gids.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx5_query_mad_ifc_gids
	.type	mlx5_query_mad_ifc_gids, @function
mlx5_query_mad_ifc_gids:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	mov	edi, 24
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	ebx, DWORD PTR ENOMEM[rip]
	mov	QWORD PTR 8[rsp], rcx
	call	kzalloc@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 24
	mov	rbp, rax
	call	kmalloc@PLT
	mov	r12, rax
	test	rbp, rbp
	je	.L5
	test	rax, rax
	je	.L5
	mov	rdi, rbp
	call	init_query_mad@PLT
	mov	eax, DWORD PTR IB_SMP_ATTR_PORT_INFO[rip]
	mov	edi, r14d
	mov	DWORD PTR 16[rbp], eax
	call	cpu_to_be32@PLT
	mov	rdi, r15
	mov	QWORD PTR 8[rbp], rax
	call	to_mdev@PLT
	push	r12
	.cfi_def_cfa_offset 88
	mov	ecx, r14d
	mov	esi, 1
	push	rbp
	.cfi_def_cfa_offset 96
	mov	edi, eax
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edx, 1
	call	mlx5_MAD_IFC@PLT
	pop	rcx
	.cfi_def_cfa_offset 88
	pop	rsi
	.cfi_def_cfa_offset 80
	mov	ebx, eax
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR [r12]
	mov	edx, 8
	lea	rsi, 8[rax]
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rax]
	call	memcpy@PLT
	mov	rdi, rbp
	call	init_query_mad@PLT
	mov	eax, DWORD PTR IB_SMP_ATTR_GUID_INFO[rip]
	test	r13d, r13d
	lea	edi, 7[r13]
	cmovns	edi, r13d
	mov	DWORD PTR 16[rbp], eax
	sar	edi, 3
	call	cpu_to_be32@PLT
	mov	rdi, r15
	mov	QWORD PTR 8[rbp], rax
	call	to_mdev@PLT
	push	r12
	.cfi_def_cfa_offset 88
	mov	edx, 1
	xor	r9d, r9d
	push	rbp
	.cfi_def_cfa_offset 96
	mov	edi, eax
	xor	r8d, r8d
	mov	ecx, r14d
	mov	esi, 1
	call	mlx5_MAD_IFC@PLT
	mov	ebx, eax
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	ebx, ebx
	jne	.L4
	mov	ecx, r13d
	mov	edx, 8
	sar	ecx, 31
	mov	eax, ecx
	shr	eax, 29
	lea	esi, 0[r13+rax]
	and	esi, 7
	sub	esi, eax
	mov	rax, QWORD PTR 8[rsp]
	sal	esi, 3
	mov	rdi, QWORD PTR [rax]
	movsx	rsi, esi
	add	rsi, QWORD PTR [r12]
	add	rdi, 8
	call	memcpy@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	neg	ebx
.L4:
	mov	rdi, rbp
	call	kfree@PLT
	mov	rdi, r12
	call	kfree@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	eax, ebx
	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
	.cfi_endproc
.LFE0:
	.size	mlx5_query_mad_ifc_gids, .-mlx5_query_mad_ifc_gids
	.comm	IB_SMP_ATTR_PORT_INFO,4,4
	.comm	IB_SMP_ATTR_GUID_INFO,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_mad.c_mlx5_query_mad_ifc_gids.c"
	.text
	.align	2
	.global	mlx5_query_mad_ifc_gids
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_query_mad_ifc_gids, %function
mlx5_query_mad_ifc_gids:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L7
	ldr	ip, .L7+4
	sub	sp, sp, #20
	mov	r8, r0
	mov	r7, r1
	mov	r0, #12
	ldr	r1, [r10]
	ldr	r5, [ip]
	mov	r6, r2
	mov	r9, r3
	bl	kzalloc
	ldr	r1, [r10]
	mov	r4, r0
	mov	r0, #12
	bl	kmalloc
	clz	ip, r0
	cmp	r4, #0
	lsr	ip, ip, #5
	movne	fp, ip
	moveq	fp, #1
	cmp	fp, #0
	mov	r10, r0
	rsbne	r5, r5, #0
	beq	.L6
.L3:
	mov	r0, r4
	bl	kfree
	mov	r0, r10
	bl	kfree
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r0, r4
	bl	init_query_mad
	ldr	r3, .L7+8
	mov	r0, r7
	ldr	r3, [r3]
	str	r3, [r4, #8]
	bl	cpu_to_be32
	mov	r3, r0
	mov	r0, r8
	str	r3, [r4, #4]
	bl	to_mdev
	mov	r2, #1
	mov	r3, r7
	mov	r1, r2
	str	r10, [sp, #12]
	str	r4, [sp, #8]
	str	fp, [sp, #4]
	str	fp, [sp]
	bl	mlx5_MAD_IFC
	subs	r5, r0, #0
	bne	.L3
	mov	r2, #8
	ldr	r1, [r10]
	ldr	r0, [r9]
	add	r1, r1, r2
	bl	memcpy
	mov	r0, r4
	bl	init_query_mad
	cmp	r6, #0
	add	r0, r6, #7
	movge	r0, r6
	ldr	r3, .L7+12
	asr	r0, r0, #3
	ldr	r3, [r3]
	str	r3, [r4, #8]
	bl	cpu_to_be32
	mov	r3, r0
	mov	r0, r8
	str	r3, [r4, #4]
	bl	to_mdev
	mov	r2, #1
	str	r5, [sp, #4]
	str	r5, [sp]
	mov	r3, r7
	mov	r1, r2
	str	r10, [sp, #12]
	str	r4, [sp, #8]
	bl	mlx5_MAD_IFC
	subs	r5, r0, #0
	bne	.L3
	rsbs	r3, r6, #0
	ldr	r0, [r9]
	ldr	r1, [r10]
	and	r3, r3, #7
	and	r6, r6, #7
	rsbpl	r6, r3, #0
	mov	r2, #8
	add	r1, r1, r6, lsl #3
	add	r0, r0, #8
	bl	memcpy
	b	.L3
.L8:
	.align	2
.L7:
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	IB_SMP_ATTR_PORT_INFO
	.word	IB_SMP_ATTR_GUID_INFO
	.size	mlx5_query_mad_ifc_gids, .-mlx5_query_mad_ifc_gids
	.comm	IB_SMP_ATTR_PORT_INFO,4,4
	.comm	IB_SMP_ATTR_GUID_INFO,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
