	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_7220_bringup_serdes
_qib_7220_bringup_serdes:               ## @qib_7220_bringup_serdes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %r12
	movq	_QLOGIC_IB_C_LINKENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	movq	_kr_control@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_qib_write_kreg
	movq	_qib_compat_ddr_negotiate@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	16(%r15), %rax
	movl	$1, (%rax)
	movq	_cr_ibsymbolerr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_read_7220_creg32
	movq	16(%r15), %rcx
	movq	%rax, 24(%rcx)
	movq	_cr_iblinkerrrecov@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_read_7220_creg32
	movq	16(%r15), %rcx
	movq	%rax, 16(%rcx)
LBB0_2:
	movq	_IBCCtrl@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_FlowCtrlWaterMark@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_LSB
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	_FlowCtrlPeriod@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_LSB
	movabsq	$21474836480, %rbx              ## imm = 0x500000000
	movl	%r14d, %ecx
	shlq	%cl, %rbx
	movl	%eax, %r13d
	movq	_IBCCtrl@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_PhyerrThreshold@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_LSB
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movabsq	$12884901888, %r12              ## imm = 0x300000000
	movl	%r13d, %ecx
	shlq	%cl, %r12
	orq	%rbx, %r12
	movl	(%r14), %edi
	movq	_CreditScale@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_LSB
	movabsq	$64424509440, %rbx              ## imm = 0xF00000000
	movl	%r15d, %ecx
	shlq	%cl, %rbx
	movl	%eax, %r15d
	movl	(%r14), %edi
	movq	_OverrunThreshold@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_LSB
	movl	$15, %r13d
	movl	%eax, %ecx
	shlq	%cl, %r13
	movabsq	$17179869184, %r14              ## imm = 0x400000000
	movl	%r15d, %ecx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	shlq	%cl, %r14
	orq	%rbx, %r14
	orq	%r12, %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	shrq	$32, %r14
	movl	(%r15), %ebx
	sarl	$2, %ebx
	incl	%ebx
	movq	_IBCCtrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MaxPktLen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_LSB
	movl	%eax, %ecx
	shll	%cl, %ebx
	orl	%r13d, %ebx
	orl	%r14d, %ebx
	movq	16(%r15), %rax
	movl	%ebx, 4(%rax)
	movq	_QLOGIC_IB_IBCC_LINKINITCMD_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_QLOGIC_IB_IBCC_LINKINITCMD_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	orl	%ebx, %edx
	movq	_kr_ibcctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_qib_write_kreg
	movq	16(%r15), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_3
## %bb.15:
	movq	_kr_scratch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_qib_write_kreg
	movq	16(%r15), %rax
	movl	8(%rax), %edx
	jmp	LBB0_16
LBB0_3:
	movq	_kr_ibcddrctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_qib_read_kreg64
	movq	16(%r15), %rsi
	movl	%eax, 8(%rsi)
	movl	4(%r15), %ecx
	movq	_QIB_IB_SDR@GOTPCREL(%rip), %rdi
	movq	_QIB_IB_DDR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rdi), %edi
	orl	%edx, %edi
	cmpl	%edi, %ecx
	jne	LBB0_5
## %bb.4:
	movq	_IBA7220_IBC_SPEED_AUTONEG_MASK@GOTPCREL(%rip), %rcx
	movq	_IBA7220_IBC_IBTA_1_2_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	jmp	LBB0_9
LBB0_5:
	cmpl	%edx, %ecx
	jne	LBB0_6
## %bb.7:
	movq	_IBA7220_IBC_SPEED_DDR@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	_IBA7220_IBC_SPEED_SDR@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %edi
LBB0_9:
	orl	%eax, %edi
	movl	%edi, 8(%rsi)
	movl	8(%r15), %ebx
	movq	_IB_WIDTH_1X@GOTPCREL(%rip), %rdx
	movq	_IB_WIDTH_4X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	movl	%ebx, %eax
	notl	%eax
	testl	%eax, %edx
	jne	LBB0_11
## %bb.10:
	movq	_IBA7220_IBC_WIDTH_AUTONEG@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	cmpl	%ecx, %ebx
	jne	LBB0_12
## %bb.13:
	movq	_IBA7220_IBC_WIDTH_4X_ONLY@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_IBA7220_IBC_WIDTH_1X_ONLY@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movq	_IBA7220_IBC_RXPOL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_IBA7220_IBC_RXPOL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movq	_IBA7220_IBC_HRTBT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_IBA7220_IBC_HRTBT_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	orl	%eax, %edi
	orl	%ebx, %edx
	orl	%edi, %edx
	movq	_IBA7220_IBC_LANE_REV_SUPPORTED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, 8(%rsi)
LBB0_16:
	movq	_kr_ibcddrctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_qib_write_kreg
	movq	_kr_scratch@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_qib_write_kreg
	movq	_kr_ncmodectrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_qib_write_kreg
	movl	(%r14), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_qib_write_kreg
	movq	%r12, %rdi
	callq	_qib_sd7220_init
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_kr_xgxs_cfg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_qib_read_kreg64
	movq	%rax, %r13
	movq	_QLOGIC_IB_XGXS_FC_SAFE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	orl	%r13d, %r15d
	cmpl	%r13d, %r15d
	je	LBB0_18
## %bb.17:
	movq	_kr_xgxs_cfg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_qib_write_kreg
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_qib_read_kreg32
LBB0_18:
	movq	_QLOGIC_IB_XGXS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	andl	%r15d, %ecx
	cmpl	$1, %ecx
	sbbl	%ebx, %ebx
	notl	%eax
	orl	%eax, %ebx
	andl	%r15d, %ebx
	cmpl	%r13d, %ebx
	je	LBB0_20
## %bb.19:
	movq	_kr_xgxs_cfg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_qib_write_kreg
LBB0_20:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	testl	%edi, %edi
	jne	LBB0_22
## %bb.21:
	movl	4(%r12), %edi
	movl	%edi, 12(%rax)
LBB0_22:
	callq	_be64_to_cpu
	movq	_kr_hrtbt_guid@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_qib_write_kreg
	xorl	%edx, %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_24
## %bb.23:
	movl	(%r12), %edx
	movq	_QLOGIC_IB_C_LINKENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%r12)
	movq	_kr_control@GOTPCREL(%rip), %r14
LBB0_24:
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_qib_write_kreg
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLOGIC_IB_C_LINKENABLE,4,2     ## @QLOGIC_IB_C_LINKENABLE
	.comm	_kr_control,4,2                 ## @kr_control
	.comm	_qib_compat_ddr_negotiate,8,3   ## @qib_compat_ddr_negotiate
	.comm	_cr_ibsymbolerr,4,2             ## @cr_ibsymbolerr
	.comm	_cr_iblinkerrrecov,4,2          ## @cr_iblinkerrrecov
	.comm	_IBCCtrl,4,2                    ## @IBCCtrl
	.comm	_FlowCtrlWaterMark,4,2          ## @FlowCtrlWaterMark
	.comm	_FlowCtrlPeriod,4,2             ## @FlowCtrlPeriod
	.comm	_PhyerrThreshold,4,2            ## @PhyerrThreshold
	.comm	_CreditScale,4,2                ## @CreditScale
	.comm	_OverrunThreshold,4,2           ## @OverrunThreshold
	.comm	_MaxPktLen,4,2                  ## @MaxPktLen
	.comm	_QLOGIC_IB_IBCC_LINKINITCMD_DISABLE,4,2 ## @QLOGIC_IB_IBCC_LINKINITCMD_DISABLE
	.comm	_QLOGIC_IB_IBCC_LINKINITCMD_SHIFT,4,2 ## @QLOGIC_IB_IBCC_LINKINITCMD_SHIFT
	.comm	_kr_ibcctrl,4,2                 ## @kr_ibcctrl
	.comm	_kr_ibcddrctrl,4,2              ## @kr_ibcddrctrl
	.comm	_QIB_IB_SDR,4,2                 ## @QIB_IB_SDR
	.comm	_QIB_IB_DDR,4,2                 ## @QIB_IB_DDR
	.comm	_IBA7220_IBC_SPEED_AUTONEG_MASK,4,2 ## @IBA7220_IBC_SPEED_AUTONEG_MASK
	.comm	_IBA7220_IBC_IBTA_1_2_MASK,4,2  ## @IBA7220_IBC_IBTA_1_2_MASK
	.comm	_IBA7220_IBC_SPEED_DDR,4,2      ## @IBA7220_IBC_SPEED_DDR
	.comm	_IBA7220_IBC_SPEED_SDR,4,2      ## @IBA7220_IBC_SPEED_SDR
	.comm	_IB_WIDTH_1X,4,2                ## @IB_WIDTH_1X
	.comm	_IB_WIDTH_4X,4,2                ## @IB_WIDTH_4X
	.comm	_IBA7220_IBC_WIDTH_AUTONEG,4,2  ## @IBA7220_IBC_WIDTH_AUTONEG
	.comm	_IBA7220_IBC_WIDTH_4X_ONLY,4,2  ## @IBA7220_IBC_WIDTH_4X_ONLY
	.comm	_IBA7220_IBC_WIDTH_1X_ONLY,4,2  ## @IBA7220_IBC_WIDTH_1X_ONLY
	.comm	_IBA7220_IBC_RXPOL_MASK,4,2     ## @IBA7220_IBC_RXPOL_MASK
	.comm	_IBA7220_IBC_RXPOL_SHIFT,4,2    ## @IBA7220_IBC_RXPOL_SHIFT
	.comm	_IBA7220_IBC_HRTBT_MASK,4,2     ## @IBA7220_IBC_HRTBT_MASK
	.comm	_IBA7220_IBC_HRTBT_SHIFT,4,2    ## @IBA7220_IBC_HRTBT_SHIFT
	.comm	_IBA7220_IBC_LANE_REV_SUPPORTED,4,2 ## @IBA7220_IBC_LANE_REV_SUPPORTED
	.comm	_kr_scratch,4,2                 ## @kr_scratch
	.comm	_kr_ncmodectrl,4,2              ## @kr_ncmodectrl
	.comm	_kr_xgxs_cfg,4,2                ## @kr_xgxs_cfg
	.comm	_QLOGIC_IB_XGXS_FC_SAFE,4,2     ## @QLOGIC_IB_XGXS_FC_SAFE
	.comm	_QLOGIC_IB_XGXS_RESET,4,2       ## @QLOGIC_IB_XGXS_RESET
	.comm	_kr_hrtbt_guid,4,2              ## @kr_hrtbt_guid
	.no_dead_strip	_qib_7220_bringup_serdes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_7220_bringup_serdes
_qib_7220_bringup_serdes:               ; @qib_7220_bringup_serdes
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x19, [x0, #24]
Lloh0:
	adrp	x24, _QLOGIC_IB_C_LINKENABLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _QLOGIC_IB_C_LINKENABLE@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh2:
	adrp	x8, _kr_control@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kr_control@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_qib_write_kreg
Lloh5:
	adrp	x8, _qib_compat_ddr_negotiate@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qib_compat_ddr_negotiate@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
	mov	w9, #1
	str	w9, [x8]
Lloh8:
	adrp	x8, _cr_ibsymbolerr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cr_ibsymbolerr@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_read_7220_creg32
	ldr	x8, [x20, #16]
	str	x0, [x8, #24]
Lloh11:
	adrp	x8, _cr_iblinkerrrecov@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cr_iblinkerrrecov@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_read_7220_creg32
	ldr	x8, [x20, #16]
	str	x0, [x8, #16]
LBB0_2:
Lloh14:
	adrp	x23, _IBCCtrl@GOTPAGE
Lloh15:
	ldr	x23, [x23, _IBCCtrl@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh16:
	adrp	x8, _FlowCtrlWaterMark@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FlowCtrlWaterMark@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_SYM_LSB
	mov	x21, x0
	ldr	w0, [x23]
Lloh19:
	adrp	x8, _FlowCtrlPeriod@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FlowCtrlPeriod@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_SYM_LSB
	mov	x22, x0
	mov	x8, #21474836480
	lsl	x25, x8, x21
	ldr	w0, [x23]
Lloh22:
	adrp	x8, _PhyerrThreshold@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PhyerrThreshold@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_SYM_LSB
	mov	x21, x0
	mov	x8, #12884901888
	lsl	x8, x8, x22
	orr	x25, x8, x25
	ldr	w0, [x23]
Lloh25:
	adrp	x8, _CreditScale@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CreditScale@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_SYM_LSB
	mov	x22, x0
	mov	x8, #64424509440
	lsl	x8, x8, x21
	orr	x21, x25, x8
	ldr	w0, [x23]
Lloh28:
	adrp	x8, _OverrunThreshold@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OverrunThreshold@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_SYM_LSB
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w8, #15
	lsl	x8, x8, x0
	mov	x9, #17179869184
	lsl	x9, x9, x22
	orr	x9, x21, x9
	lsr	x9, x9, #32
	orr	w21, w8, w9
	ldr	w8, [x20]
	asr	w8, w8, #2
	add	w22, w8, #1
	ldr	w0, [x23]
Lloh31:
	adrp	x8, _MaxPktLen@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MaxPktLen@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_SYM_LSB
	lsl	w8, w22, w0
	orr	w8, w8, w21
	ldr	x9, [x20, #16]
	str	w8, [x9, #4]
Lloh34:
	adrp	x9, _QLOGIC_IB_IBCC_LINKINITCMD_DISABLE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _QLOGIC_IB_IBCC_LINKINITCMD_DISABLE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _QLOGIC_IB_IBCC_LINKINITCMD_SHIFT@GOTPAGE
Lloh38:
	ldr	x10, [x10, _QLOGIC_IB_IBCC_LINKINITCMD_SHIFT@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w2, w9, w8
Lloh40:
	adrp	x8, _kr_ibcctrl@GOTPAGE
Lloh41:
	ldr	x8, [x8, _kr_ibcctrl@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
	ldr	x8, [x20, #16]
	ldr	w8, [x8, #8]
Lloh43:
	adrp	x25, _kr_scratch@GOTPAGE
Lloh44:
	ldr	x25, [x25, _kr_scratch@GOTPAGEOFF]
Lloh45:
	adrp	x21, _kr_ibcddrctrl@GOTPAGE
Lloh46:
	ldr	x21, [x21, _kr_ibcddrctrl@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #0
	bl	_qib_write_kreg
	ldr	x8, [x20, #16]
	ldr	w2, [x8, #8]
	b	LBB0_11
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_qib_read_kreg64
	ldr	x8, [x20, #16]
	str	w0, [x8, #8]
	ldr	w9, [x20, #4]
Lloh47:
	adrp	x10, _QIB_IB_SDR@GOTPAGE
Lloh48:
	ldr	x10, [x10, _QIB_IB_SDR@GOTPAGEOFF]
Lloh49:
	ldr	w11, [x10]
Lloh50:
	adrp	x10, _QIB_IB_DDR@GOTPAGE
Lloh51:
	ldr	x10, [x10, _QIB_IB_DDR@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	orr	w11, w10, w11
	cmp	w9, w11
	b.ne	LBB0_6
; %bb.5:
Lloh53:
	adrp	x9, _IBA7220_IBC_SPEED_AUTONEG_MASK@GOTPAGE
Lloh54:
	ldr	x9, [x9, _IBA7220_IBC_SPEED_AUTONEG_MASK@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
Lloh56:
	adrp	x10, _IBA7220_IBC_IBTA_1_2_MASK@GOTPAGE
Lloh57:
	ldr	x10, [x10, _IBA7220_IBC_IBTA_1_2_MASK@GOTPAGEOFF]
Lloh58:
	ldr	w10, [x10]
	orr	w9, w10, w9
	b	LBB0_7
LBB0_6:
Lloh59:
	adrp	x11, _IBA7220_IBC_SPEED_DDR@GOTPAGE
Lloh60:
	ldr	x11, [x11, _IBA7220_IBC_SPEED_DDR@GOTPAGEOFF]
Lloh61:
	adrp	x12, _IBA7220_IBC_SPEED_SDR@GOTPAGE
Lloh62:
	ldr	x12, [x12, _IBA7220_IBC_SPEED_SDR@GOTPAGEOFF]
	cmp	w9, w10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
LBB0_7:
	orr	w9, w9, w0
	str	w9, [x8, #8]
	ldr	w10, [x20, #8]
Lloh63:
	adrp	x11, _IB_WIDTH_1X@GOTPAGE
Lloh64:
	ldr	x11, [x11, _IB_WIDTH_1X@GOTPAGEOFF]
Lloh65:
	ldr	w12, [x11]
Lloh66:
	adrp	x11, _IB_WIDTH_4X@GOTPAGE
Lloh67:
	ldr	x11, [x11, _IB_WIDTH_4X@GOTPAGEOFF]
Lloh68:
	ldr	w11, [x11]
	orr	w12, w11, w12
	bics	wzr, w12, w10
	b.ne	LBB0_9
; %bb.8:
Lloh69:
	adrp	x10, _IBA7220_IBC_WIDTH_AUTONEG@GOTPAGE
Lloh70:
	ldr	x10, [x10, _IBA7220_IBC_WIDTH_AUTONEG@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh71:
	adrp	x12, _IBA7220_IBC_WIDTH_4X_ONLY@GOTPAGE
Lloh72:
	ldr	x12, [x12, _IBA7220_IBC_WIDTH_4X_ONLY@GOTPAGEOFF]
Lloh73:
	adrp	x13, _IBA7220_IBC_WIDTH_1X_ONLY@GOTPAGE
Lloh74:
	ldr	x13, [x13, _IBA7220_IBC_WIDTH_1X_ONLY@GOTPAGEOFF]
	cmp	w10, w11
	csel	x10, x12, x13, eq
LBB0_10:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh75:
	adrp	x10, _IBA7220_IBC_RXPOL_MASK@GOTPAGE
Lloh76:
	ldr	x10, [x10, _IBA7220_IBC_RXPOL_MASK@GOTPAGEOFF]
Lloh77:
	ldr	w10, [x10]
Lloh78:
	adrp	x11, _IBA7220_IBC_RXPOL_SHIFT@GOTPAGE
Lloh79:
	ldr	x11, [x11, _IBA7220_IBC_RXPOL_SHIFT@GOTPAGEOFF]
Lloh80:
	ldr	w11, [x11]
	lsl	w10, w10, w11
Lloh81:
	adrp	x11, _IBA7220_IBC_HRTBT_MASK@GOTPAGE
Lloh82:
	ldr	x11, [x11, _IBA7220_IBC_HRTBT_MASK@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh83:
	ldr	w10, [x11]
Lloh84:
	adrp	x11, _IBA7220_IBC_HRTBT_SHIFT@GOTPAGE
Lloh85:
	ldr	x11, [x11, _IBA7220_IBC_HRTBT_SHIFT@GOTPAGEOFF]
Lloh86:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w9, w10, w9
Lloh87:
	adrp	x10, _IBA7220_IBC_LANE_REV_SUPPORTED@GOTPAGE
Lloh88:
	ldr	x10, [x10, _IBA7220_IBC_LANE_REV_SUPPORTED@GOTPAGEOFF]
Lloh89:
	ldr	w10, [x10]
	orr	w2, w9, w10
	str	w2, [x8, #8]
LBB0_11:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_qib_write_kreg
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #0
	bl	_qib_write_kreg
Lloh90:
	adrp	x8, _kr_ncmodectrl@GOTPAGE
Lloh91:
	ldr	x8, [x8, _kr_ncmodectrl@GOTPAGEOFF]
Lloh92:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_qib_write_kreg
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #0
	bl	_qib_write_kreg
	mov	x0, x19
	bl	_qib_sd7220_init
	mov	x21, x0
Lloh93:
	adrp	x26, _kr_xgxs_cfg@GOTPAGE
Lloh94:
	ldr	x26, [x26, _kr_xgxs_cfg@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_qib_read_kreg64
	mov	x22, x0
Lloh95:
	adrp	x8, _QLOGIC_IB_XGXS_FC_SAFE@GOTPAGE
Lloh96:
	ldr	x8, [x8, _QLOGIC_IB_XGXS_FC_SAFE@GOTPAGEOFF]
Lloh97:
	ldr	w8, [x8]
	orr	w23, w8, w22
	cmp	w23, w22
	b.eq	LBB0_13
; %bb.12:
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x23
	bl	_qib_write_kreg
	ldr	w1, [x25]
	mov	x0, x19
	bl	_qib_read_kreg32
LBB0_13:
Lloh98:
	adrp	x8, _QLOGIC_IB_XGXS_RESET@GOTPAGE
Lloh99:
	ldr	x8, [x8, _QLOGIC_IB_XGXS_RESET@GOTPAGEOFF]
Lloh100:
	ldr	w8, [x8]
	tst	w8, w23
	mov	w9, #-1
	csinv	w8, w9, w8, eq
	and	w2, w8, w23
	cmp	w2, w22
	b.eq	LBB0_15
; %bb.14:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_qib_write_kreg
LBB0_15:
	ldr	w0, [x20, #12]
	cbnz	w0, LBB0_17
; %bb.16:
	ldr	w0, [x19, #4]
	str	w0, [x20, #12]
LBB0_17:
	bl	_be64_to_cpu
	mov	x2, x0
Lloh101:
	adrp	x8, _kr_hrtbt_guid@GOTPAGE
Lloh102:
	ldr	x8, [x8, _kr_hrtbt_guid@GOTPAGEOFF]
Lloh103:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
	cbz	w21, LBB0_19
; %bb.18:
	mov	w2, #0
Lloh104:
	adrp	x8, _kr_scratch@GOTPAGE
Lloh105:
	ldr	x8, [x8, _kr_scratch@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
	ldr	w8, [x24]
	ldr	w9, [x19]
	orr	w2, w9, w8
	str	w2, [x19]
Lloh106:
	adrp	x8, _kr_control@GOTPAGE
Lloh107:
	ldr	x8, [x8, _kr_control@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh106, Lloh107
	.cfi_endproc
                                        ; -- End function
	.comm	_QLOGIC_IB_C_LINKENABLE,4,2     ; @QLOGIC_IB_C_LINKENABLE
	.comm	_kr_control,4,2                 ; @kr_control
	.comm	_qib_compat_ddr_negotiate,8,3   ; @qib_compat_ddr_negotiate
	.comm	_cr_ibsymbolerr,4,2             ; @cr_ibsymbolerr
	.comm	_cr_iblinkerrrecov,4,2          ; @cr_iblinkerrrecov
	.comm	_IBCCtrl,4,2                    ; @IBCCtrl
	.comm	_FlowCtrlWaterMark,4,2          ; @FlowCtrlWaterMark
	.comm	_FlowCtrlPeriod,4,2             ; @FlowCtrlPeriod
	.comm	_PhyerrThreshold,4,2            ; @PhyerrThreshold
	.comm	_CreditScale,4,2                ; @CreditScale
	.comm	_OverrunThreshold,4,2           ; @OverrunThreshold
	.comm	_MaxPktLen,4,2                  ; @MaxPktLen
	.comm	_QLOGIC_IB_IBCC_LINKINITCMD_DISABLE,4,2 ; @QLOGIC_IB_IBCC_LINKINITCMD_DISABLE
	.comm	_QLOGIC_IB_IBCC_LINKINITCMD_SHIFT,4,2 ; @QLOGIC_IB_IBCC_LINKINITCMD_SHIFT
	.comm	_kr_ibcctrl,4,2                 ; @kr_ibcctrl
	.comm	_kr_ibcddrctrl,4,2              ; @kr_ibcddrctrl
	.comm	_QIB_IB_SDR,4,2                 ; @QIB_IB_SDR
	.comm	_QIB_IB_DDR,4,2                 ; @QIB_IB_DDR
	.comm	_IBA7220_IBC_SPEED_AUTONEG_MASK,4,2 ; @IBA7220_IBC_SPEED_AUTONEG_MASK
	.comm	_IBA7220_IBC_IBTA_1_2_MASK,4,2  ; @IBA7220_IBC_IBTA_1_2_MASK
	.comm	_IBA7220_IBC_SPEED_DDR,4,2      ; @IBA7220_IBC_SPEED_DDR
	.comm	_IBA7220_IBC_SPEED_SDR,4,2      ; @IBA7220_IBC_SPEED_SDR
	.comm	_IB_WIDTH_1X,4,2                ; @IB_WIDTH_1X
	.comm	_IB_WIDTH_4X,4,2                ; @IB_WIDTH_4X
	.comm	_IBA7220_IBC_WIDTH_AUTONEG,4,2  ; @IBA7220_IBC_WIDTH_AUTONEG
	.comm	_IBA7220_IBC_WIDTH_4X_ONLY,4,2  ; @IBA7220_IBC_WIDTH_4X_ONLY
	.comm	_IBA7220_IBC_WIDTH_1X_ONLY,4,2  ; @IBA7220_IBC_WIDTH_1X_ONLY
	.comm	_IBA7220_IBC_RXPOL_MASK,4,2     ; @IBA7220_IBC_RXPOL_MASK
	.comm	_IBA7220_IBC_RXPOL_SHIFT,4,2    ; @IBA7220_IBC_RXPOL_SHIFT
	.comm	_IBA7220_IBC_HRTBT_MASK,4,2     ; @IBA7220_IBC_HRTBT_MASK
	.comm	_IBA7220_IBC_HRTBT_SHIFT,4,2    ; @IBA7220_IBC_HRTBT_SHIFT
	.comm	_IBA7220_IBC_LANE_REV_SUPPORTED,4,2 ; @IBA7220_IBC_LANE_REV_SUPPORTED
	.comm	_kr_scratch,4,2                 ; @kr_scratch
	.comm	_kr_ncmodectrl,4,2              ; @kr_ncmodectrl
	.comm	_kr_xgxs_cfg,4,2                ; @kr_xgxs_cfg
	.comm	_QLOGIC_IB_XGXS_FC_SAFE,4,2     ; @QLOGIC_IB_XGXS_FC_SAFE
	.comm	_QLOGIC_IB_XGXS_RESET,4,2       ; @QLOGIC_IB_XGXS_RESET
	.comm	_kr_hrtbt_guid,4,2              ; @kr_hrtbt_guid
	.no_dead_strip	_qib_7220_bringup_serdes
.subsections_via_symbols
