	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_7322_initregs
_write_7322_initregs:                   ## @write_7322_initregs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_RcvQPMulticastContext_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_KREG_IDX
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_qib_write_kreg
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r8d, %edx
	callq	_qib_write_kreg_port
	movl	(%r13), %eax
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	movslq	%eax, %rcx
	movq	%rsi, %rdx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rsi
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	cmpl	$2, 4(%r13)
	jl	LBB0_30
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %r15
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rcx,2), %rbx
	cmpl	$0, 8(%r15,%rbx,4)
	je	LBB0_30
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r13), %rdi
	addq	$8, %rdi
	callq	_spin_lock_irqsave
	movq	_RcvCtrl_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RcvQPMapEnable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	orl	%eax, 4(%r15,%rbx,4)
	movq	24(%r13), %rdi
	addq	$8, %rdi
	callq	_spin_unlock_irqrestore
	movq	_krp_rcvqpmaptable@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r13), %r10d
	movl	8(%r13), %r9d
	cmpl	$2, %r10d
	jl	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	%r10d
	movl	%eax, %r9d
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	decl	%r9d
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%rbx,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movb	$1, %r14b
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	%r14b, %eax
	imull	$171, %eax, %eax
	shrl	$9, %eax
	andl	$-2, %eax
	leal	(%rax,%rax,2), %eax
	addb	$-2, %al
	movzbl	%al, %edi
	orl	$1, %edi
	movzbl	%bl, %eax
	imull	$171, %eax, %eax
	shrl	$10, %eax
	movl	%eax, %edx
	shll	$5, %edx
	subl	%eax, %edx
	subl	%eax, %edx
	movl	%r15d, %ecx
	subb	%dl, %cl
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r9d
	cmpl	$2, %r10d
	jl	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	imull	%r10d, %edx
	addl	-56(%rbp), %edx                 ## 4-byte Folded Reload
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=2
	testl	%edx, %edx
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=2
	incl	%edx
	jmp	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=2
	shll	%cl, %edx
	orl	%edx, %r8d
	cmpb	%bl, %dil
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r8d, %edx
	movb	%r14b, -41(%rbp)                ## 1-byte Spill
	movq	%r13, %r14
	movl	%r9d, %r13d
	callq	_qib_write_kreg_port
	movl	%r13d, %r9d
	movq	%r14, %r13
	movzbl	-41(%rbp), %r14d                ## 1-byte Folded Reload
	incl	%r12d
	xorl	%r8d, %r8d
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=2
	cmpl	$31, %ebx
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_20 Depth=2
	movl	(%r13), %r10d
	incb	%r14b
	addb	$5, %r15b
	incl	%ebx
	jmp	LBB0_20
LBB0_6:
	cmpl	$0, 8(%r13)
	je	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	movq	_rcv_int_timeout@GOTPCREL(%rip), %r14
	movq	_kr_rcvavailtimeout@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	movq	24(%r13), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_qib_write_kreg
	incq	%rbx
	movl	8(%r13), %eax
	cmpq	%rax, %rbx
	jb	LBB0_8
LBB0_9:
	movl	12(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.10:
	movq	_TIDFLOW_ERRBITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_NUM_TIDFLOWS_CTXT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorl	%r15d, %r15d
	movq	_ur_rcvflowtable@GOTPCREL(%rip), %r14
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r15d
	cmpl	%eax, %r15d
	jge	LBB0_16
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	testl	%edi, %edi
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rsi
	addq	%r13, %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_qib_write_ureg
	incq	%r13
	movslq	(%r12), %rdi
	cmpq	%rdi, %r13
	jl	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	12(%r13), %eax
	jmp	LBB0_15
LBB0_16:
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_31
## %bb.17:
	movq	16(%r13), %rdi
	xorl	%esi, %esi
	cmpl	$2, %eax
	setge	%sil
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_setup_7322_link_recovery       ## TAILCALL
LBB0_31:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RcvQPMulticastContext_1,4,2    ## @RcvQPMulticastContext_1
	.comm	_RcvCtrl_0,4,2                  ## @RcvCtrl_0
	.comm	_RcvQPMapEnable,4,2             ## @RcvQPMapEnable
	.comm	_krp_rcvqpmaptable,4,2          ## @krp_rcvqpmaptable
	.comm	_rcv_int_timeout,4,2            ## @rcv_int_timeout
	.comm	_kr_rcvavailtimeout,8,3         ## @kr_rcvavailtimeout
	.comm	_TIDFLOW_ERRBITS,4,2            ## @TIDFLOW_ERRBITS
	.comm	_NUM_TIDFLOWS_CTXT,4,2          ## @NUM_TIDFLOWS_CTXT
	.comm	_ur_rcvflowtable,8,3            ## @ur_rcvflowtable
	.no_dead_strip	_write_7322_initregs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_7322_initregs
_write_7322_initregs:                   ; @write_7322_initregs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _RcvQPMulticastContext_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RcvQPMulticastContext_1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_KREG_IDX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_qib_write_kreg
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x22, #0
	mov	w23, #12
	mov	w27, #171
	mov	w28, #6
	mov	w24, #43691
	movk	w24, #43690, lsl #16
	mov	w25, #43690
	movk	w25, #10922, lsl #16
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_qib_write_kreg_port
	ldr	w8, [x19]
	mov	w23, #12
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w9, [x19, #4]
	cmp	w9, #2
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x19, #16]
	madd	x20, x22, x23, x21
	ldr	w9, [x20, #8]
	cbz	w9, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, #8
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _RcvCtrl_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RcvCtrl_0@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _RcvQPMapEnable@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RcvQPMapEnable@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_SYM_MASK
	madd	x8, x22, x23, x21
	ldr	w9, [x8, #4]
	orr	w9, w9, w0
	str	w9, [x8, #4]
	ldr	x8, [x19, #24]
	add	x0, x8, #8
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	udiv	w26, w9, w8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w26, w9, #1
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w2, #0
Lloh9:
	adrp	x9, _krp_rcvqpmaptable@GOTPAGE
Lloh10:
	ldr	x9, [x9, _krp_rcvqpmaptable@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x9]
	mov	w23, #1
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w9, w23, #1
	udiv	w10, w9, w26
	msub	w10, w10, w26, w9
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	madd	w8, w10, w8, w22
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=2
	cbz	w10, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w8, w10, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x20]
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=2
	and	w10, w9, #0xff
	mul	w10, w10, w27
	lsr	w10, w10, #10
	msub	w9, w10, w28, w9
	add	w9, w9, w9, lsl #2
	lsl	w8, w8, w9
	orr	w2, w8, w2
	and	w8, w23, #0xff
	mul	w8, w8, w24
	ror	w8, w8, #1
	cmp	w8, w25
	b.hi	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x20
	mov	x1, x21
	bl	_qib_write_kreg_port
	mov	w2, #0
	add	w21, w21, #1
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=2
	cmp	w23, #32
	b.eq	LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x19]
	add	w23, w23, #1
	b	LBB0_10
LBB0_19:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_22
; %bb.20:
	mov	x20, #0
Lloh12:
	adrp	x21, _rcv_int_timeout@GOTPAGE
Lloh13:
	ldr	x21, [x21, _rcv_int_timeout@GOTPAGEOFF]
Lloh14:
	adrp	x22, _kr_rcvavailtimeout@GOTPAGE
Lloh15:
	ldr	x22, [x22, _kr_rcvavailtimeout@GOTPAGEOFF]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	x9, [x19, #24]
	ldr	x9, [x9]
	str	w8, [x9, x20, lsl #2]
	ldr	x8, [x22]
	add	x1, x20, x8
	ldr	w2, [x21]
	mov	x0, x19
	bl	_qib_write_kreg
	add	x20, x20, #1
	ldr	w8, [x19, #8]
	cmp	x20, x8
	b.lo	LBB0_21
LBB0_22:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.23:
	mov	w20, #0
Lloh16:
	adrp	x9, _TIDFLOW_ERRBITS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TIDFLOW_ERRBITS@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x9]
Lloh19:
	adrp	x22, _NUM_TIDFLOWS_CTXT@GOTPAGE
Lloh20:
	ldr	x22, [x22, _NUM_TIDFLOWS_CTXT@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh21:
	adrp	x23, _ur_rcvflowtable@GOTPAGE
Lloh22:
	ldr	x23, [x23, _ur_rcvflowtable@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	w20, w20, #1
	cmp	w20, w8
	b.ge	LBB0_29
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	cmp	w9, #1
	b.lt	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x24, #0
LBB0_27:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23]
	add	x1, x24, x8
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_qib_write_ureg
	add	x24, x24, #1
	ldrsw	x9, [x22]
	cmp	x24, x9
	b.lt	LBB0_27
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [x19, #12]
	b	LBB0_24
LBB0_29:
	ldr	w8, [x19]
	cbz	w8, LBB0_31
; %bb.30:
	ldr	x0, [x19, #16]
	cmp	w8, #1
	cset	w1, gt
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_setup_7322_link_recovery
LBB0_31:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_RcvQPMulticastContext_1,4,2    ; @RcvQPMulticastContext_1
	.comm	_RcvCtrl_0,4,2                  ; @RcvCtrl_0
	.comm	_RcvQPMapEnable,4,2             ; @RcvQPMapEnable
	.comm	_krp_rcvqpmaptable,4,2          ; @krp_rcvqpmaptable
	.comm	_rcv_int_timeout,4,2            ; @rcv_int_timeout
	.comm	_kr_rcvavailtimeout,8,3         ; @kr_rcvavailtimeout
	.comm	_TIDFLOW_ERRBITS,4,2            ; @TIDFLOW_ERRBITS
	.comm	_NUM_TIDFLOWS_CTXT,4,2          ; @NUM_TIDFLOWS_CTXT
	.comm	_ur_rcvflowtable,8,3            ; @ur_rcvflowtable
	.no_dead_strip	_write_7322_initregs
.subsections_via_symbols
