	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cn23xx_enable_io_queues
_cn23xx_enable_io_queues:               ## @cn23xx_enable_io_queues
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	jle	LBB0_22
## %bb.1:
	movq	%rdi, %r15
	movq	32(%rdi), %rcx
	addq	%rcx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1000, %r14d                    ## imm = 0x3E8
	movq	%rcx, %r12
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	movl	%eax, %ebx
	movq	_CN23XX_PKT_INPUT_CTL_RING_ENB@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_octeon_write_csr64
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jge	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	8(%r15), %r13d
	movq	%r12, %rbx
	subq	%rcx, %rbx
	movq	%rbx, %rdi
	callq	_BIT_ULL
	testl	%r13d, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	movl	%eax, %r13d
	movq	_CN23XX_PKT_INPUT_CTL_IS_64B@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_octeon_write_csr64
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r15), %r13d
	movq	%rbx, %rdi
	callq	_BIT_ULL
	testl	%r13d, %eax
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	movl	%eax, %r13d
	movq	_CN23XX_PKT_INPUT_CTL_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r13d, %eax
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CN23XX_PKT_INPUT_CTL_QUIET@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_7
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	notl	%eax
	andl	%eax, %r13d
	movq	%r12, %rdi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_octeon_write_csr64
	movq	%r12, %rdi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	movq	_CN23XX_PKT_INPUT_CTL_RST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
	jmp	LBB0_15
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%r14
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %r14
	subq	$1, %rbx
	jb	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r12, %rdi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	movl	%eax, %r13d
	movq	_CN23XX_PKT_INPUT_CTL_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r13d, %eax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=2
	movq	_CN23XX_PKT_INPUT_CTL_QUIET@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_9
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str(%rip), %rsi
LBB0_11:
	movq	24(%r15), %rdi
	movq	%r12, %rdx
	callq	_dev_err
	movl	$-1, %eax
	jmp	LBB0_23
LBB0_18:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	leaq	(%rbx,%r13), %rax
	incq	%rax
	incq	%rbx
	cmpq	%r12, %rax
	movq	%r13, %rcx
	jge	LBB0_22
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %r14d
	movq	%rbx, %rdi
	movq	%rcx, %r13
	callq	_BIT_ULL
	testl	%r14d, %eax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	(%rbx,%r13), %r14
	movq	%r14, %rdi
	callq	_CN23XX_SLI_OQ_PKT_CONTROL
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr
	movq	%rax, %r12
	movq	_CN23XX_PKT_OUTPUT_CTL_RING_ENB@GOTPCREL(%rip), %rax
	orq	(%rax), %r12
	movq	%r14, %rdi
	callq	_CN23XX_SLI_OQ_PKT_CONTROL
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	callq	_octeon_write_csr
	jmp	LBB0_21
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_CN23XX_PKT_INPUT_CTL_IS_64B,4,2 ## @CN23XX_PKT_INPUT_CTL_IS_64B
	.comm	_CN23XX_PKT_INPUT_CTL_RST,4,2   ## @CN23XX_PKT_INPUT_CTL_RST
	.comm	_CN23XX_PKT_INPUT_CTL_QUIET,4,2 ## @CN23XX_PKT_INPUT_CTL_QUIET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clearing the reset reg failed or setting the quiet reg failed for qno: %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"clearing the reset failed for qno: %u\n"

	.comm	_CN23XX_PKT_INPUT_CTL_RING_ENB,4,2 ## @CN23XX_PKT_INPUT_CTL_RING_ENB
	.comm	_CN23XX_PKT_OUTPUT_CTL_RING_ENB,8,3 ## @CN23XX_PKT_OUTPUT_CTL_RING_ENB
	.no_dead_strip	_cn23xx_enable_io_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cn23xx_enable_io_queues
_cn23xx_enable_io_queues:               ; @cn23xx_enable_io_queues
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_21
; %bb.1:
	mov	x19, x0
	ldr	x24, [x0, #32]
	add	x25, x8, x24
Lloh0:
	adrp	x26, _CN23XX_PKT_INPUT_CTL_RST@GOTPAGE
Lloh1:
	ldr	x26, [x26, _CN23XX_PKT_INPUT_CTL_RST@GOTPAGEOFF]
Lloh2:
	adrp	x28, _CN23XX_PKT_INPUT_CTL_QUIET@GOTPAGE
Lloh3:
	ldr	x28, [x28, _CN23XX_PKT_INPUT_CTL_QUIET@GOTPAGEOFF]
	mov	w27, #1000
Lloh4:
	adrp	x20, _CN23XX_PKT_INPUT_CTL_IS_64B@GOTPAGE
Lloh5:
	ldr	x20, [x20, _CN23XX_PKT_INPUT_CTL_IS_64B@GOTPAGEOFF]
	mov	x21, x24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
Lloh6:
	adrp	x8, _CN23XX_PKT_INPUT_CTL_RING_ENB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CN23XX_PKT_INPUT_CTL_RING_ENB@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w22, w8, w0
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_octeon_write_csr64
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	cmp	x21, x25
	b.ge	LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w23, [x19, #8]
	sub	x22, x21, x24
	mov	x0, x22
	bl	_BIT_ULL
	tst	w0, w23
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	ldr	w8, [x20]
	orr	w23, w8, w0
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_octeon_write_csr64
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x19, #12]
	mov	x0, x22
	bl	_BIT_ULL
	tst	w0, w23
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x28]
	tst	w9, w0
	b.eq	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x27, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	bic	w22, w0, w8
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_octeon_write_csr64
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_2
	b	LBB0_23
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x9, x27, #1
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x9, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x27, x9
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w10, [x28]
	sub	x9, x27, #1
	and	w10, w10, w0
	cbz	w10, LBB0_12
	b	LBB0_9
LBB0_15:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_16:
	ldr	x0, [x19, #24]
	mov	x2, x21
	bl	_dev_err
	mov	w0, #-1
	b	LBB0_22
LBB0_17:
	mov	x20, #0
Lloh11:
	adrp	x23, _CN23XX_PKT_OUTPUT_CTL_RING_ENB@GOTPAGE
Lloh12:
	ldr	x23, [x23, _CN23XX_PKT_OUTPUT_CTL_RING_ENB@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x20, x20, #1
	add	x8, x24, x20
	cmp	x8, x25
	b.ge	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19, #16]
	mov	x0, x20
	bl	_BIT_ULL
	tst	w0, w21
	b.eq	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x21, x24, x20
	mov	x0, x21
	bl	_CN23XX_SLI_OQ_PKT_CONTROL
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr
	ldr	x8, [x23]
	orr	x22, x8, x0
	mov	x0, x21
	bl	_CN23XX_SLI_OQ_PKT_CONTROL
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_octeon_write_csr
	b	LBB0_18
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CN23XX_PKT_INPUT_CTL_IS_64B,4,2 ; @CN23XX_PKT_INPUT_CTL_IS_64B
	.comm	_CN23XX_PKT_INPUT_CTL_RST,4,2   ; @CN23XX_PKT_INPUT_CTL_RST
	.comm	_CN23XX_PKT_INPUT_CTL_QUIET,4,2 ; @CN23XX_PKT_INPUT_CTL_QUIET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clearing the reset reg failed or setting the quiet reg failed for qno: %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"clearing the reset failed for qno: %u\n"

	.comm	_CN23XX_PKT_INPUT_CTL_RING_ENB,4,2 ; @CN23XX_PKT_INPUT_CTL_RING_ENB
	.comm	_CN23XX_PKT_OUTPUT_CTL_RING_ENB,8,3 ; @CN23XX_PKT_OUTPUT_CTL_RING_ENB
	.no_dead_strip	_cn23xx_enable_io_queues
.subsections_via_symbols
