	.file	"extr_qib_verbs.c_init_ibport.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	init_ibport, @function
init_ibport:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	add	rdi, 88
	sub	rsp, 64
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	spin_lock_init@PLT
	mov	eax, DWORD PTR IB_DEFAULT_GID_PREFIX[rip]
	mov	edi, DWORD PTR IB_LID_PERMISSIVE[rip]
	mov	DWORD PTR 84[rbx], eax
	call	be16_to_cpu@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	DWORD PTR 80[rbx], eax
	mov	eax, DWORD PTR IB_PORT_SYS_IMAGE_GUID_SUP[rip]
	or	eax, DWORD PTR IB_PORT_CLIENT_REG_SUP[rip]
	or	eax, DWORD PTR IB_PORT_SL_MAP_SUP[rip]
	or	eax, DWORD PTR IB_PORT_TRAP_SUP[rip]
	or	eax, DWORD PTR IB_PORT_AUTO_MIGR_SUP[rip]
	or	eax, DWORD PTR IB_PORT_DR_NOTICE_SUP[rip]
	or	eax, DWORD PTR IB_PORT_CAP_MASK_NOTICE_SUP[rip]
	or	eax, DWORD PTR IB_PORT_OTHER_LOCAL_CHANGES_SUP[rip]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR 8[rbx], eax
	test	DWORD PTR QIB_HAS_LINK_LATENCY[rip], edx
	je	.L2
	or	eax, DWORD PTR IB_PORT_LINK_LATENCY_SUP[rip]
	mov	DWORD PTR 8[rbx], eax
.L2:
	mov	rax, QWORD PTR 72[rbx]
	mov	edx, DWORD PTR IB_PMA_PORT_XMIT_DATA[rip]
	mov	rsi, rsp
	mov	rdi, rbx
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR IB_PMA_PORT_RCV_DATA[rip]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR IB_PMA_PORT_XMIT_PKTS[rip]
	mov	DWORD PTR 8[rax], edx
	mov	edx, DWORD PTR IB_PMA_PORT_RCV_PKTS[rip]
	mov	DWORD PTR 12[rax], edx
	mov	edx, DWORD PTR IB_PMA_PORT_XMIT_WAIT[rip]
	mov	DWORD PTR 16[rax], edx
	call	qib_get_counters@PLT
	mov	eax, DWORD PTR [rsp]
	mov	edi, DWORD PTR 16[rbx]
	xor	esi, esi
	mov	DWORD PTR 20[rbx], eax
	mov	rax, QWORD PTR 4[rsp]
	mov	QWORD PTR 24[rbx], rax
	mov	rax, QWORD PTR 12[rsp]
	mov	QWORD PTR 32[rbx], rax
	mov	rax, QWORD PTR 20[rsp]
	mov	QWORD PTR 40[rbx], rax
	mov	rax, QWORD PTR 28[rsp]
	mov	QWORD PTR 48[rbx], rax
	mov	rax, QWORD PTR 36[rsp]
	mov	QWORD PTR 56[rbx], rax
	mov	rax, QWORD PTR 44[rsp]
	mov	QWORD PTR 64[rbx], rax
	call	rcu_assign_pointer@PLT
	mov	edi, DWORD PTR 12[rbx]
	xor	esi, esi
	call	rcu_assign_pointer@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	init_ibport, .-init_ibport
	.comm	QIB_HAS_LINK_LATENCY,4,4
	.comm	IB_PORT_TRAP_SUP,4,4
	.comm	IB_PORT_SYS_IMAGE_GUID_SUP,4,4
	.comm	IB_PORT_SL_MAP_SUP,4,4
	.comm	IB_PORT_OTHER_LOCAL_CHANGES_SUP,4,4
	.comm	IB_PORT_LINK_LATENCY_SUP,4,4
	.comm	IB_PORT_DR_NOTICE_SUP,4,4
	.comm	IB_PORT_CLIENT_REG_SUP,4,4
	.comm	IB_PORT_CAP_MASK_NOTICE_SUP,4,4
	.comm	IB_PORT_AUTO_MIGR_SUP,4,4
	.comm	IB_PMA_PORT_XMIT_WAIT,4,4
	.comm	IB_PMA_PORT_XMIT_PKTS,4,4
	.comm	IB_PMA_PORT_XMIT_DATA,4,4
	.comm	IB_PMA_PORT_RCV_PKTS,4,4
	.comm	IB_PMA_PORT_RCV_DATA,4,4
	.comm	IB_LID_PERMISSIVE,4,4
	.comm	IB_DEFAULT_GID_PREFIX,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_qib_verbs.c_init_ibport.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_ibport, %function
init_ibport:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, .L10
	sub	sp, sp, #56
	add	r0, r0, #80
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	bl	spin_lock_init
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	ldr	r3, [r3]
	ldr	r0, [r2]
	str	r3, [r4, #76]
	bl	be16_to_cpu
	ldr	r1, .L10+12
	ldr	r3, .L10+16
	ldr	r2, .L10+20
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L10+24
	orr	r3, r3, ip
	ldr	ip, .L10+28
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, .L10+32
	ldr	ip, [ip]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, .L10+36
	orr	r3, r3, ip
	ldr	lr, [r1]
	orr	r3, r3, r2
	ldr	r1, [r4]
	ldr	r2, .L10+40
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	ip, .L10+44
	tst	r1, r2
	ldrne	r2, .L10+48
	ldr	ip, [ip]
	ldrne	r2, [r2]
	orr	r3, r3, lr
	orr	r3, r3, ip
	str	r3, [r4, #4]
	orrne	r3, r2, r3
	ldr	r2, .L10+52
	strne	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r3, [r4, #68]
	str	r0, [r4, #72]
	ldr	ip, .L10+56
	str	r2, [r3]
	ldr	r0, .L10+60
	ldr	r1, .L10+64
	ldr	r2, .L10+68
	ldr	ip, [ip]
	ldr	r0, [r0]
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	ip, [r3, #4]
	str	r0, [r3, #8]
	str	r1, [r3, #12]
	str	r2, [r3, #16]
	mov	r1, sp
	mov	r0, r4
	bl	qib_get_counters
	ldr	r1, [sp, #48]
	ldr	r2, [sp, #44]
	ldr	r3, [sp, #40]
	ldr	ip, [sp, #36]
	ldr	r0, [sp, #32]
	str	r1, [r4, #64]
	str	r2, [r4, #60]
	ldr	r1, [sp, #28]
	ldr	r2, [sp, #24]
	str	r3, [r4, #56]
	ldr	r3, [sp, #20]
	str	ip, [r4, #52]
	str	r0, [r4, #48]
	ldr	ip, [sp, #16]
	ldr	r0, [sp, #12]
	str	r1, [r4, #44]
	str	r2, [r4, #40]
	ldr	r1, [sp, #8]
	ldr	r2, [sp, #4]
	str	r3, [r4, #36]
	ldr	r3, [sp]
	str	r2, [r4, #20]
	str	r3, [r4, #16]
	str	ip, [r4, #32]
	str	r0, [r4, #28]
	str	r1, [r4, #24]
	ldr	r0, [r4, #12]
	mov	r1, #0
	bl	rcu_assign_pointer
	mov	r1, #0
	ldr	r0, [r4, #8]
	bl	rcu_assign_pointer
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #56
	@ sp needed
	pop	{r4, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	IB_DEFAULT_GID_PREFIX
	.word	IB_LID_PERMISSIVE
	.word	IB_PORT_CLIENT_REG_SUP
	.word	IB_PORT_SYS_IMAGE_GUID_SUP
	.word	IB_PORT_SL_MAP_SUP
	.word	IB_PORT_TRAP_SUP
	.word	IB_PORT_AUTO_MIGR_SUP
	.word	IB_PORT_DR_NOTICE_SUP
	.word	IB_PORT_CAP_MASK_NOTICE_SUP
	.word	QIB_HAS_LINK_LATENCY
	.word	IB_PORT_OTHER_LOCAL_CHANGES_SUP
	.word	IB_PORT_LINK_LATENCY_SUP
	.word	IB_PMA_PORT_XMIT_DATA
	.word	IB_PMA_PORT_RCV_DATA
	.word	IB_PMA_PORT_XMIT_PKTS
	.word	IB_PMA_PORT_RCV_PKTS
	.word	IB_PMA_PORT_XMIT_WAIT
	.size	init_ibport, .-init_ibport
	.comm	QIB_HAS_LINK_LATENCY,4,4
	.comm	IB_PORT_TRAP_SUP,4,4
	.comm	IB_PORT_SYS_IMAGE_GUID_SUP,4,4
	.comm	IB_PORT_SL_MAP_SUP,4,4
	.comm	IB_PORT_OTHER_LOCAL_CHANGES_SUP,4,4
	.comm	IB_PORT_LINK_LATENCY_SUP,4,4
	.comm	IB_PORT_DR_NOTICE_SUP,4,4
	.comm	IB_PORT_CLIENT_REG_SUP,4,4
	.comm	IB_PORT_CAP_MASK_NOTICE_SUP,4,4
	.comm	IB_PORT_AUTO_MIGR_SUP,4,4
	.comm	IB_PMA_PORT_XMIT_WAIT,4,4
	.comm	IB_PMA_PORT_XMIT_PKTS,4,4
	.comm	IB_PMA_PORT_XMIT_DATA,4,4
	.comm	IB_PMA_PORT_RCV_PKTS,4,4
	.comm	IB_PMA_PORT_RCV_DATA,4,4
	.comm	IB_LID_PERMISSIVE,4,4
	.comm	IB_DEFAULT_GID_PREFIX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
