	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_uninitialized_csrs_and_memories
_write_uninitialized_csrs_and_memories: ## @write_uninitialized_csrs_and_memories
	.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, %r14
	movq	_CCE_NUM_INT_MAP_CSRS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	movq	_CCE_INT_MAP@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_csr
	incq	%rbx
	movslq	(%r15), %rax
	addq	$8, %r13
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_chip_send_contexts
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_SEND_CTXT_CREDIT_RETURN_ADDR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_write_kctxt_csr
	incl	%ebx
	movq	%r14, %rdi
	callq	_chip_send_contexts
	cmpl	%eax, %ebx
	jl	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_chip_rcv_contexts
	testl	%eax, %eax
	jle	LBB0_12
## %bb.7:
	xorl	%ebx, %ebx
	movq	_RXE_NUM_TID_FLOWS@GOTPCREL(%rip), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	movq	%r14, %rdi
	callq	_chip_rcv_contexts
	cmpl	%eax, %ebx
	movq	_RXE_NUM_TID_FLOWS@GOTPCREL(%rip), %r12
	jge	LBB0_12
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	_RCV_HDR_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_write_kctxt_csr
	movq	_RCV_HDR_TAIL_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_write_kctxt_csr
	cmpl	$0, (%r12)
	movq	_RCV_TID_FLOW_TABLE@GOTPCREL(%rip), %rax
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax), %rdx
	addq	%r12, %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	movq	%rbx, %r13
	movq	%rax, %rbx
	callq	_write_uctxt_csr
	incq	%r15
	movq	_RXE_NUM_TID_FLOWS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$8, %r12
	cmpq	%rax, %r15
	movq	%rbx, %rax
	movq	%r13, %rbx
	jl	LBB0_10
	jmp	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_chip_rcv_array_count
	testl	%eax, %eax
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	movq	_PT_INVALID_FLUSH@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_hfi1_put_tid
	incl	%ebx
	movq	%r14, %rdi
	callq	_chip_rcv_array_count
	cmpl	%eax, %ebx
	jl	LBB0_14
LBB0_15:
	xorl	%ebx, %ebx
	movq	_RCV_QP_MAP_TABLE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_csr
	addq	$8, %rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_16
## %bb.17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCE_NUM_INT_MAP_CSRS,4,2       ## @CCE_NUM_INT_MAP_CSRS
	.comm	_CCE_INT_MAP,8,3                ## @CCE_INT_MAP
	.comm	_SEND_CTXT_CREDIT_RETURN_ADDR,4,2 ## @SEND_CTXT_CREDIT_RETURN_ADDR
	.comm	_RCV_HDR_ADDR,4,2               ## @RCV_HDR_ADDR
	.comm	_RCV_HDR_TAIL_ADDR,4,2          ## @RCV_HDR_TAIL_ADDR
	.comm	_RXE_NUM_TID_FLOWS,4,2          ## @RXE_NUM_TID_FLOWS
	.comm	_RCV_TID_FLOW_TABLE,8,3         ## @RCV_TID_FLOW_TABLE
	.comm	_PT_INVALID_FLUSH,4,2           ## @PT_INVALID_FLUSH
	.comm	_RCV_QP_MAP_TABLE,8,3           ## @RCV_QP_MAP_TABLE
	.no_dead_strip	_write_uninitialized_csrs_and_memories
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_uninitialized_csrs_and_memories
_write_uninitialized_csrs_and_memories: ; @write_uninitialized_csrs_and_memories
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _CCE_NUM_INT_MAP_CSRS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CCE_NUM_INT_MAP_CSRS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
Lloh2:
	adrp	x23, _CCE_INT_MAP@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CCE_INT_MAP@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x21, x8
	mov	x0, x19
	mov	w2, #0
	bl	_write_csr
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #8
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_chip_send_contexts
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w20, #0
Lloh4:
	adrp	x21, _SEND_CTXT_CREDIT_RETURN_ADDR@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SEND_CTXT_CREDIT_RETURN_ADDR@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_write_kctxt_csr
	add	w20, w20, #1
	mov	x0, x19
	bl	_chip_send_contexts
	cmp	w20, w0
	b.lt	LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_chip_rcv_contexts
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.7:
	mov	w20, #0
Lloh6:
	adrp	x21, _RCV_HDR_ADDR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _RCV_HDR_ADDR@GOTPAGEOFF]
Lloh8:
	adrp	x22, _RCV_HDR_TAIL_ADDR@GOTPAGE
Lloh9:
	ldr	x22, [x22, _RCV_HDR_TAIL_ADDR@GOTPAGEOFF]
Lloh10:
	adrp	x23, _RXE_NUM_TID_FLOWS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _RXE_NUM_TID_FLOWS@GOTPAGEOFF]
Lloh12:
	adrp	x24, _RCV_TID_FLOW_TABLE@GOTPAGE
Lloh13:
	ldr	x24, [x24, _RCV_TID_FLOW_TABLE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w20, w20, #1
	mov	x0, x19
	bl	_chip_rcv_contexts
	cmp	w20, w0
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_write_kctxt_csr
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_write_kctxt_csr
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x25, #0
	mov	x26, #0
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	add	x2, x25, x8
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_write_uctxt_csr
	add	x26, x26, #1
	ldrsw	x8, [x23]
	add	x25, x25, #8
	cmp	x26, x8
	b.lt	LBB0_11
	b	LBB0_8
LBB0_12:
	mov	x0, x19
	bl	_chip_rcv_array_count
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.13:
	mov	w20, #0
Lloh14:
	adrp	x21, _PT_INVALID_FLUSH@GOTPAGE
Lloh15:
	ldr	x21, [x21, _PT_INVALID_FLUSH@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	mov	w4, #0
	bl	_hfi1_put_tid
	add	w20, w20, #1
	mov	x0, x19
	bl	_chip_rcv_array_count
	cmp	w20, w0
	b.lt	LBB0_14
LBB0_15:
	mov	x20, #0
Lloh16:
	adrp	x21, _RCV_QP_MAP_TABLE@GOTPAGE
Lloh17:
	ldr	x21, [x21, _RCV_QP_MAP_TABLE@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x1, x20, x8
	mov	x0, x19
	mov	w2, #0
	bl	_write_csr
	add	x20, x20, #8
	cmp	x20, #256
	b.ne	LBB0_16
; %bb.17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CCE_NUM_INT_MAP_CSRS,4,2       ; @CCE_NUM_INT_MAP_CSRS
	.comm	_CCE_INT_MAP,8,3                ; @CCE_INT_MAP
	.comm	_SEND_CTXT_CREDIT_RETURN_ADDR,4,2 ; @SEND_CTXT_CREDIT_RETURN_ADDR
	.comm	_RCV_HDR_ADDR,4,2               ; @RCV_HDR_ADDR
	.comm	_RCV_HDR_TAIL_ADDR,4,2          ; @RCV_HDR_TAIL_ADDR
	.comm	_RXE_NUM_TID_FLOWS,4,2          ; @RXE_NUM_TID_FLOWS
	.comm	_RCV_TID_FLOW_TABLE,8,3         ; @RCV_TID_FLOW_TABLE
	.comm	_PT_INVALID_FLUSH,4,2           ; @PT_INVALID_FLUSH
	.comm	_RCV_QP_MAP_TABLE,8,3           ; @RCV_QP_MAP_TABLE
	.no_dead_strip	_write_uninitialized_csrs_and_memories
.subsections_via_symbols
