	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_7322_clear_freeze
_qib_7322_clear_freeze:                 ## @qib_7322_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	%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, %r15
	movq	_kr_errmask@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_qib_write_kreg
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_krp_errmask@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	cmpq	$0, (%rdi,%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %rdi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_qib_write_kreg_port
	movl	(%r15), %eax
	jmp	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_qib_7322_set_intr_state
	movq	_kr_control@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	movq	%r15, %rdi
	callq	_qib_write_kreg
	movq	_kr_scratch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_qib_read_kreg32
	movq	_kr_hwerrclear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %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	%r15, %rdi
	callq	_qib_write_kreg
	movl	(%r14), %esi
	movq	24(%r15), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	callq	_qib_write_kreg
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	movq	_krp_errclear@GOTPCREL(%rip), %r14
	movq	_krp_errmask@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	cmpq	$0, (%rdi,%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	%rbx, %rdi
	movl	(%r14), %esi
	movq	$-1, %rdx
	callq	_qib_write_kreg_port
	movq	16(%r15), %rdi
	addq	%rbx, %rdi
	movl	(%r12), %esi
	movq	$-1, %rdx
	callq	_qib_write_kreg_port
	movl	(%r15), %eax
	jmp	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qib_7322_set_intr_state        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kr_errmask,4,2                 ## @kr_errmask
	.comm	_krp_errmask,4,2                ## @krp_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
	.comm	_krp_errclear,4,2               ## @krp_errclear
	.no_dead_strip	_qib_7322_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_7322_clear_freeze
_qib_7322_clear_freeze:                 ; @qib_7322_clear_freeze
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _kr_errmask@GOTPAGE
Lloh1:
	ldr	x21, [x21, _kr_errmask@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, #0
	bl	_qib_write_kreg
	ldr	w8, [x19]
Lloh2:
	adrp	x20, _krp_errmask@GOTPAGE
Lloh3:
	ldr	x20, [x20, _krp_errmask@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	add	x22, x22, #8
	cmp	x23, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	add	x0, x9, x22
	ldr	x9, [x0]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20]
	mov	x2, #0
	bl	_qib_write_kreg_port
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_qib_7322_set_intr_state
Lloh4:
	adrp	x8, _kr_control@GOTPAGE
Lloh5:
	ldr	x8, [x8, _kr_control@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	mov	x0, x19
	bl	_qib_write_kreg
Lloh7:
	adrp	x8, _kr_scratch@GOTPAGE
Lloh8:
	ldr	x8, [x8, _kr_scratch@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_read_kreg32
Lloh10:
	adrp	x8, _kr_hwerrclear@GOTPAGE
Lloh11:
	ldr	x8, [x8, _kr_hwerrclear@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_qib_write_kreg
Lloh13:
	adrp	x8, _kr_errclear@GOTPAGE
Lloh14:
	ldr	x8, [x8, _kr_errclear@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _E_SPKT_ERRS_IGNORE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E_SPKT_ERRS_IGNORE@GOTPAGEOFF]
Lloh18:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
	ldr	w1, [x21]
	ldr	x8, [x19, #24]
	ldr	x2, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x21, #0
	mov	x22, #0
Lloh19:
	adrp	x23, _krp_errclear@GOTPAGE
Lloh20:
	ldr	x23, [x23, _krp_errclear@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	add	x21, x21, #8
	cmp	x22, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	add	x0, x9, x21
	ldr	x9, [x0]
	cbz	x9, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x23]
	mov	x2, #-1
	bl	_qib_write_kreg_port
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	ldr	w1, [x20]
	mov	x2, #-1
	bl	_qib_write_kreg_port
	ldr	w8, [x19]
	b	LBB0_7
LBB0_10:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_qib_7322_set_intr_state
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_kr_errmask,4,2                 ; @kr_errmask
	.comm	_krp_errmask,4,2                ; @krp_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
	.comm	_krp_errclear,4,2               ; @krp_errclear
	.no_dead_strip	_qib_7322_clear_freeze
.subsections_via_symbols
