	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_txe
_init_txe:                              ## @init_txe
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_SEND_PIO_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	$-1, %rdx
	callq	_write_csr
	movq	_SEND_DMA_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	$-1, %rdx
	callq	_write_csr
	movq	_SEND_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	$-1, %rdx
	callq	_write_csr
	movq	_SEND_EGRESS_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	$-1, %rdx
	callq	_write_csr
	movq	%r14, %rdi
	callq	_chip_send_contexts
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_SEND_CTXT_ERR_MASK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	$-1, %rcx
	callq	_write_kctxt_csr
	incl	%ebx
	movq	%r14, %rdi
	callq	_chip_send_contexts
	cmpl	%eax, %ebx
	jl	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_chip_sdma_engines
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_SEND_DMA_ENG_ERR_MASK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	$-1, %rcx
	callq	_write_kctxt_csr
	incl	%ebx
	movq	%r14, %rdi
	callq	_chip_sdma_engines
	cmpl	%eax, %ebx
	jl	LBB0_5
LBB0_6:
	movl	8(%r14), %esi
	movq	%r14, %rdi
	callq	_assign_local_cm_au_table
	movq	(%r14), %rax
	movq	_ICODE_FUNCTIONAL_SIMULATOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_SEND_CM_TIMER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HFI1_CREDIT_RETURN_RATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_csr                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SEND_PIO_ERR_MASK,4,2          ## @SEND_PIO_ERR_MASK
	.comm	_SEND_DMA_ERR_MASK,4,2          ## @SEND_DMA_ERR_MASK
	.comm	_SEND_ERR_MASK,4,2              ## @SEND_ERR_MASK
	.comm	_SEND_EGRESS_ERR_MASK,4,2       ## @SEND_EGRESS_ERR_MASK
	.comm	_SEND_CTXT_ERR_MASK,4,2         ## @SEND_CTXT_ERR_MASK
	.comm	_SEND_DMA_ENG_ERR_MASK,4,2      ## @SEND_DMA_ENG_ERR_MASK
	.comm	_ICODE_FUNCTIONAL_SIMULATOR,8,3 ## @ICODE_FUNCTIONAL_SIMULATOR
	.comm	_SEND_CM_TIMER_CTRL,4,2         ## @SEND_CM_TIMER_CTRL
	.comm	_HFI1_CREDIT_RETURN_RATE,8,3    ## @HFI1_CREDIT_RETURN_RATE
	.no_dead_strip	_init_txe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_txe
_init_txe:                              ; @init_txe
	.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	x8, _SEND_PIO_ERR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEND_PIO_ERR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #-1
	bl	_write_csr
Lloh3:
	adrp	x8, _SEND_DMA_ERR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEND_DMA_ERR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #-1
	bl	_write_csr
Lloh6:
	adrp	x8, _SEND_ERR_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEND_ERR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #-1
	bl	_write_csr
Lloh9:
	adrp	x8, _SEND_EGRESS_ERR_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEND_EGRESS_ERR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #-1
	bl	_write_csr
	mov	x0, x19
	bl	_chip_send_contexts
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
Lloh12:
	adrp	x21, _SEND_CTXT_ERR_MASK@GOTPAGE
Lloh13:
	ldr	x21, [x21, _SEND_CTXT_ERR_MASK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	x3, #-1
	bl	_write_kctxt_csr
	add	w20, w20, #1
	mov	x0, x19
	bl	_chip_send_contexts
	cmp	w20, w0
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_chip_sdma_engines
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w20, #0
Lloh14:
	adrp	x21, _SEND_DMA_ENG_ERR_MASK@GOTPAGE
Lloh15:
	ldr	x21, [x21, _SEND_DMA_ENG_ERR_MASK@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	x3, #-1
	bl	_write_kctxt_csr
	add	w20, w20, #1
	mov	x0, x19
	bl	_chip_sdma_engines
	cmp	w20, w0
	b.lt	LBB0_5
LBB0_6:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_assign_local_cm_au_table
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _ICODE_FUNCTIONAL_SIMULATOR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ICODE_FUNCTIONAL_SIMULATOR@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	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
	ret
LBB0_8:
Lloh19:
	adrp	x8, _SEND_CM_TIMER_CTRL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SEND_CM_TIMER_CTRL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _HFI1_CREDIT_RETURN_RATE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HFI1_CREDIT_RETURN_RATE@GOTPAGEOFF]
Lloh24:
	ldr	x2, [x8]
	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	_write_csr
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SEND_PIO_ERR_MASK,4,2          ; @SEND_PIO_ERR_MASK
	.comm	_SEND_DMA_ERR_MASK,4,2          ; @SEND_DMA_ERR_MASK
	.comm	_SEND_ERR_MASK,4,2              ; @SEND_ERR_MASK
	.comm	_SEND_EGRESS_ERR_MASK,4,2       ; @SEND_EGRESS_ERR_MASK
	.comm	_SEND_CTXT_ERR_MASK,4,2         ; @SEND_CTXT_ERR_MASK
	.comm	_SEND_DMA_ENG_ERR_MASK,4,2      ; @SEND_DMA_ENG_ERR_MASK
	.comm	_ICODE_FUNCTIONAL_SIMULATOR,8,3 ; @ICODE_FUNCTIONAL_SIMULATOR
	.comm	_SEND_CM_TIMER_CTRL,4,2         ; @SEND_CM_TIMER_CTRL
	.comm	_HFI1_CREDIT_RETURN_RATE,8,3    ; @HFI1_CREDIT_RETURN_RATE
	.no_dead_strip	_init_txe
.subsections_via_symbols
