	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lio_cn6xxx_process_droq_intr_regs
_lio_cn6xxx_process_droq_intr_regs:     ## @lio_cn6xxx_process_droq_intr_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	%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, %r13
	movq	_CN6XXX_SLI_PKT_CNT_INT_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_octeon_read_csr
	movl	%eax, %r14d
	movq	_CN6XXX_SLI_PKT_CNT_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_octeon_read_csr
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	andl	%eax, %r14d
	movq	_CN6XXX_SLI_PKT_TIME_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_octeon_read_csr
	movl	%eax, %ebx
	movq	_CN6XXX_SLI_PKT_TIME_INT_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_octeon_read_csr
	movl	%eax, %r12d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	andl	%ebx, %r12d
	orl	%r14d, %r12d
	andl	4(%r13), %r12d
	movl	$0, (%r13)
	movq	%r13, %rdi
	callq	_MAX_OCTEON_OUTPUT_QUEUES
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	%r13, %rdi
	callq	_MAX_OCTEON_OUTPUT_QUEUES
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT_ULL
	testl	%eax, %r12d
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %r15
	movq	%r15, %rdi
	callq	_octeon_droq_check_hw_for_pkts
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_BIT_ULL
	orl	%eax, (%r13)
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	_CN6XXX_SLI_PKT_TIME_INT_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_octeon_read_csr
	btrl	%ebx, %eax
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_octeon_write_csr
	movq	_CN6XXX_SLI_PKT_CNT_INT_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_octeon_read_csr
	btrl	%ebx, %eax
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_octeon_write_csr
	movq	%r15, %rdi
	callq	_spin_unlock
	jmp	LBB0_6
LBB0_7:
	movl	4(%r13), %eax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	andl	%eax, %ebx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	andl	%eax, %edx
	je	LBB0_9
## %bb.8:
	movq	_CN6XXX_SLI_PKT_TIME_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_octeon_write_csr
LBB0_9:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movq	_CN6XXX_SLI_PKT_CNT_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_octeon_write_csr
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CN6XXX_SLI_PKT_CNT_INT_ENB,4,2 ## @CN6XXX_SLI_PKT_CNT_INT_ENB
	.comm	_CN6XXX_SLI_PKT_CNT_INT,4,2     ## @CN6XXX_SLI_PKT_CNT_INT
	.comm	_CN6XXX_SLI_PKT_TIME_INT,4,2    ## @CN6XXX_SLI_PKT_TIME_INT
	.comm	_CN6XXX_SLI_PKT_TIME_INT_ENB,4,2 ## @CN6XXX_SLI_PKT_TIME_INT_ENB
	.no_dead_strip	_lio_cn6xxx_process_droq_intr_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lio_cn6xxx_process_droq_intr_regs
_lio_cn6xxx_process_droq_intr_regs:     ; @lio_cn6xxx_process_droq_intr_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x26, _CN6XXX_SLI_PKT_CNT_INT_ENB@GOTPAGE
Lloh1:
	ldr	x26, [x26, _CN6XXX_SLI_PKT_CNT_INT_ENB@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_octeon_read_csr
	mov	x23, x0
Lloh2:
	adrp	x8, _CN6XXX_SLI_PKT_CNT_INT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_CNT_INT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_octeon_read_csr
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
Lloh5:
	adrp	x8, _CN6XXX_SLI_PKT_TIME_INT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_TIME_INT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_octeon_read_csr
	mov	x21, x0
Lloh8:
	adrp	x28, _CN6XXX_SLI_PKT_TIME_INT_ENB@GOTPAGE
Lloh9:
	ldr	x28, [x28, _CN6XXX_SLI_PKT_TIME_INT_ENB@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_octeon_read_csr
	mov	x24, x0
	ldr	w25, [x19, #4]
	str	wzr, [x19]
	mov	x0, x19
	bl	_MAX_OCTEON_OUTPUT_QUEUES
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, #0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	and	w8, w8, w23
	and	w9, w24, w21
	orr	w8, w9, w8
	and	w25, w8, w25
	mov	w27, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	mov	x0, x19
	bl	_MAX_OCTEON_OUTPUT_QUEUES
	cmp	x22, w0, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_BIT_ULL
	tst	w25, w0
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	ldr	x23, [x8, x22, lsl #3]
	mov	x0, x23
	bl	_octeon_droq_check_hw_for_pkts
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_BIT_ULL
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x19, #8]
	mov	x0, x23
	bl	_spin_lock
	ldr	w24, [x28]
	mov	x0, x19
	mov	x1, x24
	bl	_octeon_read_csr
	lsl	w20, w27, w22
	bic	w2, w0, w20
	mov	x0, x19
	mov	x1, x24
	bl	_octeon_write_csr
	ldr	w24, [x26]
	mov	x0, x19
	mov	x1, x24
	bl	_octeon_read_csr
	bic	w2, w0, w20
	mov	x0, x19
	mov	x1, x24
	bl	_octeon_write_csr
	mov	x0, x23
	bl	_spin_unlock
	b	LBB0_2
LBB0_7:
	ldr	w8, [x19, #4]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	and	w20, w8, w9
	ands	w2, w8, w21
	b.eq	LBB0_9
; %bb.8:
Lloh10:
	adrp	x8, _CN6XXX_SLI_PKT_TIME_INT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_TIME_INT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_octeon_write_csr
LBB0_9:
	cbz	w20, LBB0_11
; %bb.10:
Lloh13:
	adrp	x8, _CN6XXX_SLI_PKT_CNT_INT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_CNT_INT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_octeon_write_csr
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CN6XXX_SLI_PKT_CNT_INT_ENB,4,2 ; @CN6XXX_SLI_PKT_CNT_INT_ENB
	.comm	_CN6XXX_SLI_PKT_CNT_INT,4,2     ; @CN6XXX_SLI_PKT_CNT_INT
	.comm	_CN6XXX_SLI_PKT_TIME_INT,4,2    ; @CN6XXX_SLI_PKT_TIME_INT
	.comm	_CN6XXX_SLI_PKT_TIME_INT_ENB,4,2 ; @CN6XXX_SLI_PKT_TIME_INT_ENB
	.no_dead_strip	_lio_cn6xxx_process_droq_intr_regs
.subsections_via_symbols
