	.file	"extr_mlx4_ib_mad.c_mlx4_ib_process_mad.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx4_ib_process_mad
	.type	mlx4_ib_process_mad, @function
mlx4_ib_process_mad:
.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, edx
	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, r9
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR 120[rsp]
	mov	r14, QWORD PTR 112[rsp]
	mov	DWORD PTR 12[rsp], esi
	mov	QWORD PTR 16[rsp], rcx
	mov	r15, QWORD PTR 128[rsp]
	mov	QWORD PTR 24[rsp], r8
	mov	QWORD PTR 32[rsp], rax
	call	to_mdev@PLT
	mov	rdi, rbp
	mov	esi, r12d
	mov	QWORD PTR 40[rsp], rax
	call	rdma_port_get_link_layer@PLT
	mov	edi, 1
	mov	r13d, eax
	cmp	r14, 16
	jne	.L2
	xor	edi, edi
	cmp	QWORD PTR [r15], 16
	setne	dil
.L2:
	call	WARN_ON_ONCE@PLT
	test	rax, rax
	jne	.L17
	cmp	r13d, DWORD PTR IB_LINK_LAYER_INFINIBAND[rip]
	je	.L18
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	cmp	r13d, DWORD PTR IB_LINK_LAYER_ETHERNET[rip]
	je	.L15
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L17:
	.cfi_restore_state
	mov	eax, DWORD PTR IB_MAD_RESULT_FAILURE[rip]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L18:
	.cfi_restore_state
	mov	rax, QWORD PTR 40[rsp]
	mov	edi, DWORD PTR [rax]
	call	mlx4_is_slave@PLT
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR IB_MGMT_CLASS_PERF_MGMT[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L6
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, QWORD PTR IB_PMA_PORT_COUNTERS[rip]
	je	.L15
	cmp	rax, QWORD PTR IB_PMA_PORT_COUNTERS_EXT[rip]
	je	.L15
	cmp	rax, QWORD PTR IB_PMA_CLASS_PORT_INFO[rip]
	jne	.L6
.L15:
	mov	rax, QWORD PTR 32[rsp]
	mov	r8, QWORD PTR 24[rsp]
	mov	r9, rbx
	mov	edx, r12d
	mov	rcx, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, rbp
	mov	QWORD PTR 112[rsp], rax
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	jmp	iboe_process_mad@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rsp]
	mov	r8, QWORD PTR 24[rsp]
	mov	r9, rbx
	mov	edx, r12d
	mov	rcx, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, rbp
	mov	QWORD PTR 112[rsp], rax
	add	rsp, 56
	.cfi_def_cfa_offset 56
	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
	jmp	ib_process_mad@PLT
	.cfi_endproc
.LFE0:
	.size	mlx4_ib_process_mad, .-mlx4_ib_process_mad
	.comm	IB_PMA_PORT_COUNTERS_EXT,8,8
	.comm	IB_PMA_PORT_COUNTERS,8,8
	.comm	IB_PMA_CLASS_PORT_INFO,8,8
	.comm	IB_MGMT_CLASS_PERF_MGMT,8,8
	.comm	IB_MAD_RESULT_FAILURE,4,4
	.comm	IB_LINK_LAYER_INFINIBAND,4,4
	.comm	IB_LINK_LAYER_ETHERNET,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_ib_mad.c_mlx4_ib_process_mad.c"
	.text
	.align	2
	.global	mlx4_ib_process_mad
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_ib_process_mad, %function
mlx4_ib_process_mad:
	@ args = 24, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r7, r3
	ldr	r3, [sp, #48]
	add	r8, sp, #52
	mov	r5, r2
	ldm	r8, {r8, r10, fp}
	mov	r4, r0
	mov	r6, r1
	str	r3, [sp]
	ldr	r9, [sp, #64]
	bl	to_mdev
	mov	r2, r0
	mov	r1, r5
	mov	r0, r4
	str	r2, [sp, #4]
	bl	rdma_port_get_link_layer
	cmp	r10, #8
	mov	r10, r0
	movne	r0, #1
	bne	.L2
	ldr	r0, [r9]
	subs	r0, r0, #8
	movne	r0, #1
.L2:
	bl	WARN_ON_ONCE
	cmp	r0, #0
	bne	.L16
	ldr	r2, .L18
	ldr	r2, [r2]
	cmp	r10, r2
	beq	.L17
	ldr	r2, .L18+4
	ldr	r2, [r2]
	cmp	r10, r2
	beq	.L14
	ldr	r3, .L18+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r3, .L18+12
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r3, [sp, #4]
	ldr	r0, [r3]
	bl	mlx4_is_slave
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L18+16
	ldr	r2, [r8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L6
	ldr	r2, .L18+20
	ldr	r3, [r8, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L14
	ldr	r2, .L18+24
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L14
	ldr	r2, .L18+28
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L6
.L14:
	ldr	r3, [sp]
	mov	r2, r5
	str	r3, [sp, #48]
	mov	r1, r6
	mov	r3, r7
	mov	r0, r4
	str	fp, [sp, #56]
	str	r8, [sp, #52]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	iboe_process_mad
.L6:
	ldr	r3, [sp]
	mov	r2, r5
	str	r3, [sp, #48]
	mov	r1, r6
	mov	r3, r7
	mov	r0, r4
	str	fp, [sp, #56]
	str	r8, [sp, #52]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ib_process_mad
.L19:
	.align	2
.L18:
	.word	IB_LINK_LAYER_INFINIBAND
	.word	IB_LINK_LAYER_ETHERNET
	.word	EINVAL
	.word	IB_MAD_RESULT_FAILURE
	.word	IB_MGMT_CLASS_PERF_MGMT
	.word	IB_PMA_PORT_COUNTERS
	.word	IB_PMA_PORT_COUNTERS_EXT
	.word	IB_PMA_CLASS_PORT_INFO
	.size	mlx4_ib_process_mad, .-mlx4_ib_process_mad
	.comm	IB_PMA_PORT_COUNTERS_EXT,4,4
	.comm	IB_PMA_PORT_COUNTERS,4,4
	.comm	IB_PMA_CLASS_PORT_INFO,4,4
	.comm	IB_MGMT_CLASS_PERF_MGMT,4,4
	.comm	IB_MAD_RESULT_FAILURE,4,4
	.comm	IB_LINK_LAYER_INFINIBAND,4,4
	.comm	IB_LINK_LAYER_ETHERNET,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
