	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_cn6xxx_setup_global_output_regs ## -- Begin function lio_cn6xxx_setup_global_output_regs
	.p2align	4, 0x90
_lio_cn6xxx_setup_global_output_regs:   ## @lio_cn6xxx_setup_global_output_regs
	.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, %rbx
	movq	8(%rdi), %r15
	movq	_CN6XXX_SLI_PKT_PCIE_PORT64@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	$1431655765, (%rdi), %edx       ## imm = 0x55555555
	callq	_octeon_write_csr64
	movl	(%r15), %edi
	callq	_CFG_GET_IS_SLI_BP_ON
	xorl	%edx, %edx
	testq	%rax, %rax
	setne	%dl
	movq	_CN6XXX_SLI_OQ_WMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$5, %edx
	movq	%rbx, %rdi
	callq	_octeon_write_csr64
	movq	_CN6XXX_SLI_PKT_OUT_BMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_octeon_write_csr
	movq	_CN6XXX_SLI_PKT_DPADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_octeon_write_csr
	movq	_CN6XXX_SLI_PKT_SLIST_ROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_octeon_write_csr
	movq	_CN6XXX_SLI_PKT_SLIST_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_octeon_write_csr
	movq	_CN6XXX_SLI_PKT_SLIST_ES64@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_octeon_write_csr64
	movq	_CN6XXX_SLI_PKT_DATA_OUT_ROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_octeon_write_csr
	movq	_CN6XXX_SLI_PKT_DATA_OUT_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_octeon_write_csr
	movq	_CN6XXX_SLI_PKT_DATA_OUT_ES64@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1431655765, %edx               ## imm = 0x55555555
	callq	_octeon_write_csr64
	movq	_CN6XXX_SLI_OQ_INT_LEVEL_PKTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r15), %edi
	callq	_CFG_GET_OQ_INTR_PKT
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_octeon_write_csr
	movl	(%r15), %edi
	callq	_CFG_GET_OQ_INTR_TIME
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lio_cn6xxx_get_oq_ticks
	movq	_CN6XXX_SLI_OQ_INT_LEVEL_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_octeon_write_csr               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CN6XXX_SLI_PKT_PCIE_PORT64,4,2 ## @CN6XXX_SLI_PKT_PCIE_PORT64
	.comm	_CN6XXX_SLI_OQ_WMARK,4,2        ## @CN6XXX_SLI_OQ_WMARK
	.comm	_CN6XXX_SLI_PKT_OUT_BMODE,4,2   ## @CN6XXX_SLI_PKT_OUT_BMODE
	.comm	_CN6XXX_SLI_PKT_DPADDR,4,2      ## @CN6XXX_SLI_PKT_DPADDR
	.comm	_CN6XXX_SLI_PKT_SLIST_ROR,4,2   ## @CN6XXX_SLI_PKT_SLIST_ROR
	.comm	_CN6XXX_SLI_PKT_SLIST_NS,4,2    ## @CN6XXX_SLI_PKT_SLIST_NS
	.comm	_CN6XXX_SLI_PKT_SLIST_ES64,4,2  ## @CN6XXX_SLI_PKT_SLIST_ES64
	.comm	_CN6XXX_SLI_PKT_DATA_OUT_ROR,4,2 ## @CN6XXX_SLI_PKT_DATA_OUT_ROR
	.comm	_CN6XXX_SLI_PKT_DATA_OUT_NS,4,2 ## @CN6XXX_SLI_PKT_DATA_OUT_NS
	.comm	_CN6XXX_SLI_PKT_DATA_OUT_ES64,4,2 ## @CN6XXX_SLI_PKT_DATA_OUT_ES64
	.comm	_CN6XXX_SLI_OQ_INT_LEVEL_PKTS,4,2 ## @CN6XXX_SLI_OQ_INT_LEVEL_PKTS
	.comm	_CN6XXX_SLI_OQ_INT_LEVEL_TIME,4,2 ## @CN6XXX_SLI_OQ_INT_LEVEL_TIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_cn6xxx_setup_global_output_regs ; -- Begin function lio_cn6xxx_setup_global_output_regs
	.p2align	2
_lio_cn6xxx_setup_global_output_regs:   ; @lio_cn6xxx_setup_global_output_regs
	.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
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _CN6XXX_SLI_PKT_PCIE_PORT64@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_PCIE_PORT64@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x0]
	mov	w9, #1431655765
	mul	w2, w8, w9
	bl	_octeon_write_csr64
	ldr	w0, [x21]
	bl	_CFG_GET_IS_SLI_BP_ON
	cmp	x0, #0
	cset	w8, ne
Lloh3:
	adrp	x9, _CN6XXX_SLI_OQ_WMARK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CN6XXX_SLI_OQ_WMARK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	lsl	w2, w8, #5
	mov	x0, x19
	bl	_octeon_write_csr64
Lloh6:
	adrp	x8, _CN6XXX_SLI_PKT_OUT_BMODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_OUT_BMODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_octeon_write_csr
Lloh9:
	adrp	x8, _CN6XXX_SLI_PKT_DPADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_DPADDR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_octeon_write_csr
Lloh12:
	adrp	x8, _CN6XXX_SLI_PKT_SLIST_ROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_SLIST_ROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_octeon_write_csr
Lloh15:
	adrp	x8, _CN6XXX_SLI_PKT_SLIST_NS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_SLIST_NS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_octeon_write_csr
Lloh18:
	adrp	x8, _CN6XXX_SLI_PKT_SLIST_ES64@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_SLIST_ES64@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_octeon_write_csr64
Lloh21:
	adrp	x8, _CN6XXX_SLI_PKT_DATA_OUT_ROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_DATA_OUT_ROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_octeon_write_csr
Lloh24:
	adrp	x8, _CN6XXX_SLI_PKT_DATA_OUT_NS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_DATA_OUT_NS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_octeon_write_csr
Lloh27:
	adrp	x8, _CN6XXX_SLI_PKT_DATA_OUT_ES64@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_DATA_OUT_ES64@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1431655765
	bl	_octeon_write_csr64
Lloh30:
	adrp	x8, _CN6XXX_SLI_OQ_INT_LEVEL_PKTS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CN6XXX_SLI_OQ_INT_LEVEL_PKTS@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x8]
	ldr	w0, [x21]
	bl	_CFG_GET_OQ_INTR_PKT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_octeon_write_csr
	ldr	w0, [x21]
	bl	_CFG_GET_OQ_INTR_TIME
	mov	x1, x0
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_lio_cn6xxx_get_oq_ticks
	mov	x2, x0
Lloh33:
	adrp	x8, _CN6XXX_SLI_OQ_INT_LEVEL_TIME@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CN6XXX_SLI_OQ_INT_LEVEL_TIME@GOTPAGEOFF]
Lloh35:
	ldr	w1, [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	_octeon_write_csr
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CN6XXX_SLI_PKT_PCIE_PORT64,4,2 ; @CN6XXX_SLI_PKT_PCIE_PORT64
	.comm	_CN6XXX_SLI_OQ_WMARK,4,2        ; @CN6XXX_SLI_OQ_WMARK
	.comm	_CN6XXX_SLI_PKT_OUT_BMODE,4,2   ; @CN6XXX_SLI_PKT_OUT_BMODE
	.comm	_CN6XXX_SLI_PKT_DPADDR,4,2      ; @CN6XXX_SLI_PKT_DPADDR
	.comm	_CN6XXX_SLI_PKT_SLIST_ROR,4,2   ; @CN6XXX_SLI_PKT_SLIST_ROR
	.comm	_CN6XXX_SLI_PKT_SLIST_NS,4,2    ; @CN6XXX_SLI_PKT_SLIST_NS
	.comm	_CN6XXX_SLI_PKT_SLIST_ES64,4,2  ; @CN6XXX_SLI_PKT_SLIST_ES64
	.comm	_CN6XXX_SLI_PKT_DATA_OUT_ROR,4,2 ; @CN6XXX_SLI_PKT_DATA_OUT_ROR
	.comm	_CN6XXX_SLI_PKT_DATA_OUT_NS,4,2 ; @CN6XXX_SLI_PKT_DATA_OUT_NS
	.comm	_CN6XXX_SLI_PKT_DATA_OUT_ES64,4,2 ; @CN6XXX_SLI_PKT_DATA_OUT_ES64
	.comm	_CN6XXX_SLI_OQ_INT_LEVEL_PKTS,4,2 ; @CN6XXX_SLI_OQ_INT_LEVEL_PKTS
	.comm	_CN6XXX_SLI_OQ_INT_LEVEL_TIME,4,2 ; @CN6XXX_SLI_OQ_INT_LEVEL_TIME
.subsections_via_symbols
