	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_octeon_set_io_queues_off       ## -- Begin function octeon_set_io_queues_off
	.p2align	4, 0x90
_octeon_set_io_queues_off:              ## @octeon_set_io_queues_off
	.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, %r14
	movq	_BUSY_READING_REG_VF_LOOP_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_OCTEON_CN6XXX
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_CN6XXX_SLI_PKT_INSTR_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_octeon_write_csr
	movq	_CN6XXX_SLI_PKT_OUT_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_octeon_write_csr
	jmp	LBB0_19
LBB0_2:
	movq	(%r14), %rax
	movq	_OCTEON_CN23XX_VF_VID@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.3:
	cmpq	$0, 16(%r14)
	jle	LBB0_19
## %bb.4:
	xorl	%r15d, %r15d
	movq	_CN23XX_PKT_INPUT_CTL_RST@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%r15, %rdi
	callq	_CN23XX_VF_SLI_IQ_PKT_CONTROL64
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	movl	%eax, %ebx
	movl	(%r13), %eax
	testl	%ebx, %eax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_CN23XX_PKT_INPUT_CTL_QUIET@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	decl	%r12d
	movl	%r12d, %ecx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %r12d
	movq	%r15, %rdi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	movl	%eax, %ebx
	movl	(%r13), %eax
	testl	%ebx, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_11 Depth=2
	movl	%r12d, %ecx
	addl	$-1, %ecx
	setb	%dl
	movq	_CN23XX_PKT_INPUT_CTL_QUIET@GOTPCREL(%rip), %rsi
	testl	%ebx, (%rsi)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=2
	testb	%dl, %dl
	jne	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	notl	%eax
	andl	%eax, %ebx
	movq	%r15, %rdi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_octeon_write_csr64
	movq	%r15, %rdi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	testl	%eax, (%r13)
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	cmpq	16(%r14), %r15
	jl	LBB0_5
## %bb.18:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_13:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_16:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_14:
	movq	%r15, %rdx
	callq	_dev_err
	movl	$-1, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUSY_READING_REG_VF_LOOP_COUNT,4,2 ## @BUSY_READING_REG_VF_LOOP_COUNT
	.comm	_CN6XXX_SLI_PKT_INSTR_ENB,4,2   ## @CN6XXX_SLI_PKT_INSTR_ENB
	.comm	_CN6XXX_SLI_PKT_OUT_ENB,4,2     ## @CN6XXX_SLI_PKT_OUT_ENB
	.comm	_OCTEON_CN23XX_VF_VID,8,3       ## @OCTEON_CN23XX_VF_VID
	.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	"unable to reset qno %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_octeon_set_io_queues_off       ; -- Begin function octeon_set_io_queues_off
	.p2align	2
_octeon_set_io_queues_off:              ; @octeon_set_io_queues_off
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _BUSY_READING_REG_VF_LOOP_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUSY_READING_REG_VF_LOOP_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_OCTEON_CN6XXX
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CN6XXX_SLI_PKT_INSTR_ENB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_INSTR_ENB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_octeon_write_csr
Lloh6:
	adrp	x8, _CN6XXX_SLI_PKT_OUT_ENB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CN6XXX_SLI_PKT_OUT_ENB@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_octeon_write_csr
	b	LBB0_13
LBB0_2:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _OCTEON_CN23XX_VF_VID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OCTEON_CN23XX_VF_VID@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.3:
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.4:
	mov	x20, #0
Lloh12:
	adrp	x23, _CN23XX_PKT_INPUT_CTL_RST@GOTPAGE
Lloh13:
	ldr	x23, [x23, _CN23XX_PKT_INPUT_CTL_RST@GOTPAGEOFF]
Lloh14:
	adrp	x24, _CN23XX_PKT_INPUT_CTL_QUIET@GOTPAGE
Lloh15:
	ldr	x24, [x24, _CN23XX_PKT_INPUT_CTL_QUIET@GOTPAGEOFF]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x20
	bl	_CN23XX_VF_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x24]
	and	w9, w9, w0
	cmp	w9, #0
	ccmp	w22, #0, #4, eq
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w9, w22, #1
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x9
	mov	x0, x20
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w9, [x24]
	and	w10, w9, w0
	subs	w9, w22, #1
	cset	w11, hs
	cmp	w10, #0
	ccmp	w11, #0, #4, eq
	b.ne	LBB0_8
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w22, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	bic	w21, w0, w8
	mov	x0, x20
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_octeon_write_csr64
	mov	x0, x20
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19, #16]
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	x0, [x19, #8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_17
LBB0_16:
	ldr	x0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_17:
	mov	x2, x20
	bl	_dev_err
	mov	w0, #-1
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BUSY_READING_REG_VF_LOOP_COUNT,4,2 ; @BUSY_READING_REG_VF_LOOP_COUNT
	.comm	_CN6XXX_SLI_PKT_INSTR_ENB,4,2   ; @CN6XXX_SLI_PKT_INSTR_ENB
	.comm	_CN6XXX_SLI_PKT_OUT_ENB,4,2     ; @CN6XXX_SLI_PKT_OUT_ENB
	.comm	_OCTEON_CN23XX_VF_VID,8,3       ; @OCTEON_CN23XX_VF_VID
	.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	"unable to reset qno %u\n"

.subsections_via_symbols
