	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_cn6xxx_setup_oq_regs       ## -- Begin function lio_cn6xxx_setup_oq_regs
	.p2align	4, 0x90
_lio_cn6xxx_setup_oq_regs:              ## @lio_cn6xxx_setup_oq_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax,%rsi,8), %rbx
	movq	%rsi, %rdi
	callq	_CN6XXX_SLI_OQ_BASE_ADDR64
	movl	32(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_write_csr64
	movq	%r14, %rdi
	callq	_CN6XXX_SLI_OQ_SIZE
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_write_csr
	movq	%r14, %rdi
	callq	_CN6XXX_SLI_OQ_BUFF_INFO_SIZE
	movq	8(%rbx), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_write_csr
	movq	(%r15), %rax
	movq	(%rax), %r12
	movq	%r14, %rdi
	callq	_CN6XXX_SLI_OQ_PKTS_SENT
	addq	%r12, %rax
	movq	%rax, 24(%rbx)
	movq	(%r15), %rax
	movq	(%rax), %r12
	movq	%r14, %rdi
	callq	_CN6XXX_SLI_OQ_PKTS_CREDIT
	addq	%r12, %rax
	movq	%rax, 16(%rbx)
	movq	_CN6XXX_SLI_PKT_TIME_INT_ENB@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_octeon_read_csr
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movslq	%edx, %rbx
	orq	%rbx, %rax
	movl	(%r12), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_octeon_write_csr
	movq	_CN6XXX_SLI_PKT_CNT_INT_ENB@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_octeon_read_csr
	orq	%rax, %rbx
	movl	(%r14), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_octeon_write_csr               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CN6XXX_SLI_PKT_TIME_INT_ENB,4,2 ## @CN6XXX_SLI_PKT_TIME_INT_ENB
	.comm	_CN6XXX_SLI_PKT_CNT_INT_ENB,4,2 ## @CN6XXX_SLI_PKT_CNT_INT_ENB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_cn6xxx_setup_oq_regs       ; -- Begin function lio_cn6xxx_setup_oq_regs
	.p2align	2
_lio_cn6xxx_setup_oq_regs:              ; @lio_cn6xxx_setup_oq_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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8, x1, lsl #3]
	mov	x0, x1
	bl	_CN6XXX_SLI_OQ_BASE_ADDR64
	mov	x1, x0
	ldr	w2, [x21, #32]
	mov	x0, x19
	bl	_octeon_write_csr64
	mov	x0, x20
	bl	_CN6XXX_SLI_OQ_SIZE
	mov	x1, x0
	ldr	x2, [x21]
	mov	x0, x19
	bl	_octeon_write_csr
	mov	x0, x20
	bl	_CN6XXX_SLI_OQ_BUFF_INFO_SIZE
	mov	x1, x0
	ldr	x2, [x21, #8]
	mov	x0, x19
	bl	_octeon_write_csr
	ldr	x8, [x19]
	ldr	x22, [x8]
	mov	x0, x20
	bl	_CN6XXX_SLI_OQ_PKTS_SENT
	add	x8, x0, x22
	str	x8, [x21, #24]
	ldr	x8, [x19]
	ldr	x22, [x8]
	mov	x0, x20
	bl	_CN6XXX_SLI_OQ_PKTS_CREDIT
	add	x8, x0, x22
	str	x8, [x21, #16]
Lloh0:
	adrp	x21, _CN6XXX_SLI_PKT_TIME_INT_ENB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CN6XXX_SLI_PKT_TIME_INT_ENB@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_octeon_read_csr
	mov	w8, #1
	lsl	w8, w8, w20
	sxtw	x20, w8
	orr	x2, x0, x20
	ldr	w1, [x21]
	mov	x0, x19
	bl	_octeon_write_csr
Lloh2:
	adrp	x21, _CN6XXX_SLI_PKT_CNT_INT_ENB@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CN6XXX_SLI_PKT_CNT_INT_ENB@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_octeon_read_csr
	orr	x2, x0, x20
	ldr	w1, [x21]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CN6XXX_SLI_PKT_TIME_INT_ENB,4,2 ; @CN6XXX_SLI_PKT_TIME_INT_ENB
	.comm	_CN6XXX_SLI_PKT_CNT_INT_ENB,4,2 ; @CN6XXX_SLI_PKT_CNT_INT_ENB
.subsections_via_symbols
