	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_7220_clear_freeze
_qib_7220_clear_freeze:                 ## @qib_7220_clear_freeze
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_kr_errmask@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_qib_write_kreg
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_qib_7220_set_intr_state
	movl	16(%rbx), %edi
	callq	_qib_cancel_sends
	movq	_kr_control@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_qib_write_kreg
	movq	_kr_scratch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qib_read_kreg32
	movq	%rbx, %rdi
	callq	_qib_force_pio_avail_update
	movq	_kr_hwerrclear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_qib_write_kreg
	movq	_kr_errclear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_E_SPKT_ERRS_IGNORE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_qib_write_kreg
	movl	(%r14), %esi
	movq	8(%rbx), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_qib_write_kreg
	movq	%rbx, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qib_7220_set_intr_state        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kr_errmask,4,2                 ## @kr_errmask
	.comm	_kr_control,4,2                 ## @kr_control
	.comm	_kr_scratch,4,2                 ## @kr_scratch
	.comm	_kr_hwerrclear,4,2              ## @kr_hwerrclear
	.comm	_kr_errclear,4,2                ## @kr_errclear
	.comm	_E_SPKT_ERRS_IGNORE,8,3         ## @E_SPKT_ERRS_IGNORE
	.no_dead_strip	_qib_7220_clear_freeze
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_7220_clear_freeze
_qib_7220_clear_freeze:                 ; @qib_7220_clear_freeze
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _kr_errmask@GOTPAGE
Lloh1:
	ldr	x20, [x20, _kr_errmask@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x2, #0
	bl	_qib_write_kreg
	mov	x0, x19
	mov	w1, #0
	bl	_qib_7220_set_intr_state
	ldr	w0, [x19, #16]
	bl	_qib_cancel_sends
Lloh2:
	adrp	x8, _kr_control@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kr_control@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_qib_write_kreg
Lloh5:
	adrp	x8, _kr_scratch@GOTPAGE
Lloh6:
	ldr	x8, [x8, _kr_scratch@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_read_kreg32
	mov	x0, x19
	bl	_qib_force_pio_avail_update
Lloh8:
	adrp	x8, _kr_hwerrclear@GOTPAGE
Lloh9:
	ldr	x8, [x8, _kr_hwerrclear@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_qib_write_kreg
Lloh11:
	adrp	x8, _kr_errclear@GOTPAGE
Lloh12:
	ldr	x8, [x8, _kr_errclear@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _E_SPKT_ERRS_IGNORE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E_SPKT_ERRS_IGNORE@GOTPAGEOFF]
Lloh16:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
	ldr	w1, [x20]
	ldr	x8, [x19, #8]
	ldr	x2, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qib_7220_set_intr_state
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_kr_errmask,4,2                 ; @kr_errmask
	.comm	_kr_control,4,2                 ; @kr_control
	.comm	_kr_scratch,4,2                 ; @kr_scratch
	.comm	_kr_hwerrclear,4,2              ; @kr_hwerrclear
	.comm	_kr_errclear,4,2                ; @kr_errclear
	.comm	_E_SPKT_ERRS_IGNORE,8,3         ; @E_SPKT_ERRS_IGNORE
	.no_dead_strip	_qib_7220_clear_freeze
.subsections_via_symbols
