	.file	"extr_qlnxr_verbs.c_qlnxr_query_port.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enter\n"
.LC1:
	.string	"port [%d] > 1 \n"
.LC2:
	.string	"rdma_ctx == NULL\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"state = %d phys_state = %d  link_speed = %d active_speed = %d active_width = %d attr->gid_tbl_len = %d attr->pkey_tbl_len = %d max_msg_sz = 0x%x max_vl_num = 0x%x \n"
	.section	.rodata.str1.1
.LC4:
	.string	"exit\n"
	.text
	.p2align 4
	.globl	qlnxr_query_port
	.type	qlnxr_query_port, @function
qlnxr_query_port:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	get_qlnxr_dev@PLT
	lea	rsi, .LC0[rip]
	mov	r13, QWORD PTR [rax]
	mov	rbp, rax
	xor	eax, eax
	mov	rdi, r13
	call	QL_DPRINT12@PLT
	cmp	r12d, 1
	jg	.L11
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L12
	call	ecore_rdma_query_port@PLT
	mov	edx, 96
	xor	esi, esi
	mov	rdi, rbx
	mov	r12, rax
	call	memset@PLT
	mov	rax, QWORD PTR ECORE_RDMA_PORT_UP[rip]
	cmp	QWORD PTR [r12], rax
	je	.L13
	mov	eax, DWORD PTR IB_PORT_DOWN[rip]
	mov	DWORD PTR [rbx], 3
	mov	DWORD PTR 28[rbx], eax
.L6:
	mov	eax, DWORD PTR IB_MTU_4096[rip]
	mov	DWORD PTR 92[rbx], eax
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	iboe_get_mtu@PLT
	mov	QWORD PTR 80[rbx], 0
	mov	rdi, rbp
	mov	DWORD PTR 88[rbx], eax
	mov	QWORD PTR 72[rbx], 0
	mov	QWORD PTR 64[rbx], 0
	mov	QWORD PTR 56[rbx], 0
	mov	QWORD PTR 48[rbx], 0
	call	QLNX_IS_IWARP@PLT
	test	rax, rax
	je	.L7
	movabs	rax, 4294967297
	mov	QWORD PTR 4[rbx], rax
.L8:
	mov	eax, DWORD PTR 16[r12]
	mov	QWORD PTR 32[rbx], 0
	lea	rdx, 20[rbx]
	lea	rsi, 24[rbx]
	mov	edi, DWORD PTR 8[r12]
	mov	DWORD PTR 40[rbx], eax
	call	get_link_speed_and_width@PLT
	mov	eax, DWORD PTR 12[r12]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	ecx, DWORD PTR [rbx]
	mov	r8d, DWORD PTR 8[r12]
	push	4
	.cfi_def_cfa_offset 64
	mov	rdi, r13
	lea	rsi, .LC3[rip]
	mov	edx, DWORD PTR 28[rbx]
	mov	r9d, DWORD PTR 24[rbx]
	push	rax
	.cfi_def_cfa_offset 72
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 12[rbx], 4
	push	rax
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR 4[rbx]
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR 20[rbx]
	push	rax
	.cfi_def_cfa_offset 96
	xor	eax, eax
	call	QL_DPRINT12@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 48
	mov	rdi, r13
	xor	eax, eax
	lea	rsi, .LC4[rip]
	call	QL_DPRINT12@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR IB_PORT_ACTIVE[rip]
	mov	DWORD PTR [rbx], 5
	mov	DWORD PTR 28[rbx], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR QLNXR_MAX_SGID[rip]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR QLNXR_ROCE_PKEY_TABLE_LEN[rip]
	mov	DWORD PTR 8[rbx], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, r12d
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	QL_DPRINT12@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, r13
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	QL_DPRINT12@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qlnxr_query_port, .-qlnxr_query_port
	.comm	QLNXR_ROCE_PKEY_TABLE_LEN,4,4
	.comm	QLNXR_MAX_SGID,4,4
	.comm	IB_PORT_DOWN,4,4
	.comm	IB_PORT_ACTIVE,4,4
	.comm	IB_MTU_4096,4,4
	.comm	EINVAL,4,4
	.comm	ECORE_RDMA_PORT_UP,8,8
	.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_qlnxr_verbs.c_qlnxr_query_port.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enter\012\000"
	.align	2
.LC1:
	.ascii	"port [%d] > 1 \012\000"
	.align	2
.LC2:
	.ascii	"rdma_ctx == NULL\012\000"
	.align	2
.LC3:
	.ascii	"state = %d phys_state = %d  link_speed = %d active_"
	.ascii	"speed = %d active_width = %d attr->gid_tbl_len = %d"
	.ascii	" attr->pkey_tbl_len = %d max_msg_sz = 0x%x max_vl_n"
	.ascii	"um = 0x%x \012\000"
	.align	2
.LC4:
	.ascii	"exit\012\000"
	.text
	.align	2
	.global	qlnxr_query_port
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlnxr_query_port, %function
qlnxr_query_port:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #36
	mov	r6, r1
	mov	r4, r2
	bl	get_qlnxr_dev
	ldr	r7, [r0]
	mov	r5, r0
	ldr	r1, .L13
	mov	r0, r7
	bl	QL_DPRINT12
	cmp	r6, #1
	bgt	.L11
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L12
	bl	ecore_rdma_query_port
	mov	r6, r0
	mov	r1, #0
	mov	r2, #68
	mov	r0, r4
	bl	memset
	ldr	r3, .L13+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r2, #5
	movne	r2, #3
	ldreq	r3, .L13+8
	ldrne	r3, .L13+12
	ldr	r3, [r3]
	str	r2, [r4]
	str	r3, [r4, #28]
	ldr	r2, .L13+16
	ldr	r3, [r5]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r4, #64]
	ldr	r0, [r3]
	bl	iboe_get_mtu
	mov	r3, #0
	str	r0, [r4, #60]
	str	r3, [r4, #56]
	str	r3, [r4, #52]
	str	r3, [r4, #48]
	str	r3, [r4, #44]
	str	r3, [r4, #40]
	mov	r0, r5
	bl	QLNX_IS_IWARP
	cmp	r0, #0
	movne	r3, #1
	mov	r5, #0
	ldreq	r2, .L13+20
	ldreq	r3, .L13+24
	ldreq	r2, [r2]
	ldreq	r3, [r3]
	strne	r3, [r4, #4]
	stmibeq	r4, {r2, r3}
	strne	r3, [r4, #8]
	ldr	r3, [r6, #12]
	add	r2, r4, #20
	str	r3, [r4, #36]
	add	r1, r4, #24
	ldr	r0, [r6, #4]
	str	r5, [r4, #32]
	bl	get_link_speed_and_width
	mov	r3, #4
	ldr	r2, [r6, #8]
	ldr	r0, [r4, #8]
	ldr	r1, [r4, #4]
	str	r3, [sp, #24]
	str	r2, [sp, #20]
	str	r0, [sp, #16]
	ldr	r0, [r4, #20]
	str	r1, [sp, #12]
	ldr	r1, [r4, #24]
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	ldr	r1, [r6, #4]
	str	r2, [r4, #16]
	str	r3, [r4, #12]
	str	r1, [sp]
	ldr	r3, [r4]
	ldr	r2, [r4, #28]
	mov	r0, r7
	ldr	r1, .L13+28
	bl	QL_DPRINT12
	mov	r0, r7
	ldr	r1, .L13+32
	bl	QL_DPRINT12
	mov	r0, r5
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	mov	r2, r6
	mov	r0, r7
	ldr	r1, .L13+36
	bl	QL_DPRINT12
	ldr	r3, .L13+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	mov	r0, r7
	ldr	r1, .L13+44
	bl	QL_DPRINT12
	ldr	r3, .L13+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	ECORE_RDMA_PORT_UP
	.word	IB_PORT_ACTIVE
	.word	IB_PORT_DOWN
	.word	IB_MTU_4096
	.word	QLNXR_MAX_SGID
	.word	QLNXR_ROCE_PKEY_TABLE_LEN
	.word	.LC3
	.word	.LC4
	.word	.LC1
	.word	EINVAL
	.word	.LC2
	.size	qlnxr_query_port, .-qlnxr_query_port
	.comm	QLNXR_ROCE_PKEY_TABLE_LEN,4,4
	.comm	QLNXR_MAX_SGID,4,4
	.comm	IB_PORT_DOWN,4,4
	.comm	IB_PORT_ACTIVE,4,4
	.comm	IB_MTU_4096,4,4
	.comm	EINVAL,4,4
	.comm	ECORE_RDMA_PORT_UP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
