	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_sd7220_clr_ibpar           ## -- Begin function qib_sd7220_clr_ibpar
	.p2align	4, 0x90
_qib_sd7220_clr_ibpar:                  ## @qib_sd7220_clr_ibpar
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_IB_7220_SERDES@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_IB_MPREG6@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_UC_PAR_CLR_D@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_UC_PAR_CLR_M@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	callq	_qib_sd7220_reg_mod
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r14), %esi
	movl	(%r15), %edx
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_qib_sd7220_reg_mod
	movq	_kr_scratch@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_qib_read_kreg32
	movl	$4, %edi
	callq	_udelay
	movq	_kr_hwerrclear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLOGIC_IB_HWE_IB_UC_MEMORYPARITYERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_qib_write_kreg
	movl	(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qib_read_kreg32                ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qib_dev_err                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_7220_SERDES,4,2             ## @IB_7220_SERDES
	.comm	_IB_MPREG6,4,2                  ## @IB_MPREG6
	.comm	_UC_PAR_CLR_D,4,2               ## @UC_PAR_CLR_D
	.comm	_UC_PAR_CLR_M,4,2               ## @UC_PAR_CLR_M
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed clearing IBSerDes Parity err\n"

	.comm	_kr_scratch,4,2                 ## @kr_scratch
	.comm	_kr_hwerrclear,4,2              ## @kr_hwerrclear
	.comm	_QLOGIC_IB_HWE_IB_UC_MEMORYPARITYERR,4,2 ## @QLOGIC_IB_HWE_IB_UC_MEMORYPARITYERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_sd7220_clr_ibpar           ; -- Begin function qib_sd7220_clr_ibpar
	.p2align	2
_qib_sd7220_clr_ibpar:                  ; @qib_sd7220_clr_ibpar
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _IB_7220_SERDES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IB_7220_SERDES@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _IB_MPREG6@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IB_MPREG6@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh4:
	adrp	x8, _UC_PAR_CLR_D@GOTPAGE
Lloh5:
	ldr	x8, [x8, _UC_PAR_CLR_D@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x22, _UC_PAR_CLR_M@GOTPAGE
Lloh8:
	ldr	x22, [x22, _UC_PAR_CLR_M@GOTPAGEOFF]
	ldr	w4, [x22]
	bl	_qib_sd7220_reg_mod
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w1, [x20]
	ldr	w2, [x21]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w3, #0
	bl	_qib_sd7220_reg_mod
Lloh9:
	adrp	x20, _kr_scratch@GOTPAGE
Lloh10:
	ldr	x20, [x20, _kr_scratch@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_qib_read_kreg32
	mov	w0, #4
	bl	_udelay
Lloh11:
	adrp	x8, _kr_hwerrclear@GOTPAGE
Lloh12:
	ldr	x8, [x8, _kr_hwerrclear@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _QLOGIC_IB_HWE_IB_UC_MEMORYPARITYERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QLOGIC_IB_HWE_IB_UC_MEMORYPARITYERR@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
	ldr	w1, [x20]
	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_read_kreg32
LBB0_2:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	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_dev_err
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_7220_SERDES,4,2             ; @IB_7220_SERDES
	.comm	_IB_MPREG6,4,2                  ; @IB_MPREG6
	.comm	_UC_PAR_CLR_D,4,2               ; @UC_PAR_CLR_D
	.comm	_UC_PAR_CLR_M,4,2               ; @UC_PAR_CLR_M
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed clearing IBSerDes Parity err\n"

	.comm	_kr_scratch,4,2                 ; @kr_scratch
	.comm	_kr_hwerrclear,4,2              ; @kr_hwerrclear
	.comm	_QLOGIC_IB_HWE_IB_UC_MEMORYPARITYERR,4,2 ; @QLOGIC_IB_HWE_IB_UC_MEMORYPARITYERR
.subsections_via_symbols
