	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_6120_quiet_serdes
_qib_6120_quiet_serdes:                 ## @qib_6120_quiet_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	_QLOGIC_IB_IBCC_LINKINITCMD_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_qib_set_ib_6120_lstate
	movq	_QLOGIC_IB_C_LINKENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	(%r12), %edx
	movl	%edx, (%r12)
	movq	_kr_control@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLOGIC_IB_C_FREEZEMODE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_qib_write_kreg
	movq	8(%r12), %rax
	cmpq	$0, 24(%rax)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 16(%rax)
	je	LBB0_14
LBB0_3:
	movq	_kr_hwdiagctrl@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_qib_read_kreg64
	movl	%eax, %r14d
	movl	(%r13), %r15d
	movq	_HwDiagCtrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CounterWrEnable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	orl	%r14d, %eax
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_qib_write_kreg
	movq	8(%r12), %rax
	cmpq	$0, 24(%rax)
	jne	LBB0_5
## %bb.4:
	cmpq	$0, 16(%rax)
	je	LBB0_8
LBB0_5:
	movq	_cr_ibsymbolerr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_read_6120_creg32
	movq	8(%r12), %rcx
	cmpq	$0, 16(%rcx)
	je	LBB0_7
## %bb.6:
	movl	32(%rcx), %eax
LBB0_7:
	subl	24(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_write_6120_creg
	movq	8(%r12), %rax
LBB0_8:
	cmpq	$0, (%rax)
	jne	LBB0_10
## %bb.9:
	cmpq	$0, 16(%rax)
	je	LBB0_13
LBB0_10:
	movq	_cr_iblinkerrrecov@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_read_6120_creg32
	movq	8(%r12), %rcx
	cmpq	$0, 16(%rcx)
	je	LBB0_12
## %bb.11:
	movl	8(%rcx), %eax
LBB0_12:
	subl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_write_6120_creg
LBB0_13:
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_qib_write_kreg
LBB0_14:
	movq	_kr_serdes_cfg0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_qib_read_kreg64
	movl	%eax, %ebx
	movq	_SerdesCfg0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TxIdeEnX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	orl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qib_write_kreg                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QLOGIC_IB_IBCC_LINKINITCMD_DISABLE,4,2 ## @QLOGIC_IB_IBCC_LINKINITCMD_DISABLE
	.comm	_QLOGIC_IB_C_LINKENABLE,4,2     ## @QLOGIC_IB_C_LINKENABLE
	.comm	_kr_control,4,2                 ## @kr_control
	.comm	_QLOGIC_IB_C_FREEZEMODE,4,2     ## @QLOGIC_IB_C_FREEZEMODE
	.comm	_kr_hwdiagctrl,4,2              ## @kr_hwdiagctrl
	.comm	_HwDiagCtrl,4,2                 ## @HwDiagCtrl
	.comm	_CounterWrEnable,4,2            ## @CounterWrEnable
	.comm	_cr_ibsymbolerr,4,2             ## @cr_ibsymbolerr
	.comm	_cr_iblinkerrrecov,4,2          ## @cr_iblinkerrrecov
	.comm	_kr_serdes_cfg0,4,2             ## @kr_serdes_cfg0
	.comm	_SerdesCfg0,4,2                 ## @SerdesCfg0
	.comm	_TxIdeEnX,4,2                   ## @TxIdeEnX
	.no_dead_strip	_qib_6120_quiet_serdes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_6120_quiet_serdes
_qib_6120_quiet_serdes:                 ; @qib_6120_quiet_serdes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _QLOGIC_IB_IBCC_LINKINITCMD_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLOGIC_IB_IBCC_LINKINITCMD_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_qib_set_ib_6120_lstate
Lloh3:
	adrp	x8, _QLOGIC_IB_C_LINKENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLOGIC_IB_C_LINKENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
Lloh6:
	adrp	x9, _kr_control@GOTPAGE
Lloh7:
	ldr	x9, [x9, _kr_control@GOTPAGEOFF]
	str	w8, [x19]
Lloh8:
	ldr	w1, [x9]
Lloh9:
	adrp	x9, _QLOGIC_IB_C_FREEZEMODE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QLOGIC_IB_C_FREEZEMODE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_qib_write_kreg
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_3
; %bb.1:
	ldr	x9, [x8]
	cbnz	x9, LBB0_3
; %bb.2:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_14
LBB0_3:
Lloh12:
	adrp	x22, _kr_hwdiagctrl@GOTPAGE
Lloh13:
	ldr	x22, [x22, _kr_hwdiagctrl@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_qib_read_kreg64
	mov	x20, x0
	ldr	w21, [x22]
Lloh14:
	adrp	x8, _HwDiagCtrl@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HwDiagCtrl@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _CounterWrEnable@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CounterWrEnable@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_SYM_MASK
	orr	w2, w0, w20
	mov	x0, x19
	mov	x1, x21
	bl	_qib_write_kreg
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_5
; %bb.4:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_8
LBB0_5:
Lloh20:
	adrp	x21, _cr_ibsymbolerr@GOTPAGE
Lloh21:
	ldr	x21, [x21, _cr_ibsymbolerr@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_read_6120_creg32
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	w0, [x8, #32]
LBB0_7:
	ldr	w8, [x8, #24]
	sub	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_write_6120_creg
	ldr	x8, [x19, #8]
LBB0_8:
	ldr	x9, [x8]
	cbnz	x9, LBB0_10
; %bb.9:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_13
LBB0_10:
Lloh22:
	adrp	x21, _cr_iblinkerrrecov@GOTPAGE
Lloh23:
	ldr	x21, [x21, _cr_iblinkerrrecov@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_read_6120_creg32
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_12
; %bb.11:
	ldr	w0, [x8, #8]
LBB0_12:
	ldr	w8, [x8]
	sub	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_write_6120_creg
LBB0_13:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_qib_write_kreg
LBB0_14:
Lloh24:
	adrp	x21, _kr_serdes_cfg0@GOTPAGE
Lloh25:
	ldr	x21, [x21, _kr_serdes_cfg0@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_qib_read_kreg64
	mov	x20, x0
Lloh26:
	adrp	x8, _SerdesCfg0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SerdesCfg0@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _TxIdeEnX@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TxIdeEnX@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_SYM_MASK
	orr	w2, w0, w20
	ldr	w1, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_qib_write_kreg
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_QLOGIC_IB_IBCC_LINKINITCMD_DISABLE,4,2 ; @QLOGIC_IB_IBCC_LINKINITCMD_DISABLE
	.comm	_QLOGIC_IB_C_LINKENABLE,4,2     ; @QLOGIC_IB_C_LINKENABLE
	.comm	_kr_control,4,2                 ; @kr_control
	.comm	_QLOGIC_IB_C_FREEZEMODE,4,2     ; @QLOGIC_IB_C_FREEZEMODE
	.comm	_kr_hwdiagctrl,4,2              ; @kr_hwdiagctrl
	.comm	_HwDiagCtrl,4,2                 ; @HwDiagCtrl
	.comm	_CounterWrEnable,4,2            ; @CounterWrEnable
	.comm	_cr_ibsymbolerr,4,2             ; @cr_ibsymbolerr
	.comm	_cr_iblinkerrrecov,4,2          ; @cr_iblinkerrrecov
	.comm	_kr_serdes_cfg0,4,2             ; @kr_serdes_cfg0
	.comm	_SerdesCfg0,4,2                 ; @SerdesCfg0
	.comm	_TxIdeEnX,4,2                   ; @TxIdeEnX
	.no_dead_strip	_qib_6120_quiet_serdes
.subsections_via_symbols
