	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cn23xx_disable_io_queues
_cn23xx_disable_io_queues:              ## @cn23xx_disable_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
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.1:
	movq	%rdi, %r15
	movl	4(%rdi), %eax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	addl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	jge	LBB0_5
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	movl	%eax, %esi
	callq	_WRITE_ONCE
	callq	_READ_ONCE
	movq	_CN23XX_PKT_INPUT_CTL_RING_ENB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	callq	_WRITE_ONCE
	callq	_READ_ONCE
	movq	_CN23XX_PKT_INPUT_CTL_RST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %esi
	callq	_WRITE_ONCE
	movl	%r13d, %edi
	callq	_CN23XX_SLI_IQ_PKT_CONTROL64
	movl	%eax, %r12d
	callq	_READ_ONCE
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_octeon_write_csr64
	movq	_CN23XX_SLI_PKT_IOQ_RING_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_octeon_read_csr64
	movl	%eax, %esi
	callq	_WRITE_ONCE
	callq	_READ_ONCE
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_BIT_ULL
	testl	%r12d, %eax
	jne	LBB0_18
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	subl	$1, %r14d
	jb	LBB0_4
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	_CN23XX_SLI_PKT_IOQ_RING_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_octeon_read_csr64
	movl	%eax, %esi
	callq	_WRITE_ONCE
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
	callq	_READ_ONCE
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_BIT_ULL
	testl	%ebx, %eax
	je	LBB0_3
	jmp	LBB0_18
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, %r14d
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_CN23XX_SLI_IQ_DOORBELL
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$-1, %edx
	callq	_octeon_write_csr
	movl	%r13d, %edi
	callq	_CN23XX_SLI_IQ_DOORBELL
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	testl	%eax, %eax
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	decl	%r14d
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
	movl	%r13d, %edi
	callq	_CN23XX_SLI_IQ_DOORBELL
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	subl	$1, %r14d
	setb	%cl
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	testb	%cl, %cl
	je	LBB0_21
	jmp	LBB0_23
LBB0_5:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jg	LBB0_6
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %edi
	callq	_CN23XX_SLI_OQ_PKTS_SENT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr
	movl	%eax, %esi
	callq	_WRITE_ONCE
	movl	%r12d, %edi
	callq	_CN23XX_SLI_OQ_PKTS_SENT
	movl	%eax, %ebx
	callq	_READ_ONCE
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_octeon_write_csr
	incl	%r12d
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_16
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_CN23XX_SLI_PKT_IOQ_RING_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_octeon_read_csr64
	movl	%eax, %esi
	callq	_WRITE_ONCE
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_READ_ONCE
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_BIT_ULL
	testl	%r14d, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	subl	$1, %ebx
	jb	LBB0_9
## %bb.24:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_CN23XX_SLI_PKT_IOQ_RING_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_octeon_read_csr64
	movl	%eax, %esi
	callq	_WRITE_ONCE
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
	jmp	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %edi
	callq	_CN23XX_SLI_OQ_PKTS_CREDIT
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$-1, %edx
	callq	_octeon_write_csr
	movl	%r12d, %edi
	callq	_CN23XX_SLI_OQ_PKTS_CREDIT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	decl	%ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
	movl	%r12d, %edi
	callq	_CN23XX_SLI_OQ_PKTS_CREDIT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	subl	$1, %ebx
	setb	%cl
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	testb	%cl, %cl
	je	LBB0_13
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_CN23XX_PKT_INPUT_CTL_RING_ENB,4,2 ## @CN23XX_PKT_INPUT_CTL_RING_ENB
	.comm	_CN23XX_PKT_INPUT_CTL_RST,4,2   ## @CN23XX_PKT_INPUT_CTL_RST
	.comm	_CN23XX_SLI_PKT_IOQ_RING_RST,4,2 ## @CN23XX_SLI_PKT_IOQ_RING_RST
	.no_dead_strip	_cn23xx_disable_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_disable_io_queues
_cn23xx_disable_io_queues:              ; @cn23xx_disable_io_queues
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	w20, [x0, #4]
Lloh0:
	adrp	x23, _HZ@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HZ@GOTPAGEOFF]
Lloh2:
	adrp	x27, _CN23XX_PKT_INPUT_CTL_RING_ENB@GOTPAGE
Lloh3:
	ldr	x27, [x27, _CN23XX_PKT_INPUT_CTL_RING_ENB@GOTPAGEOFF]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	add	w24, w8, w20
Lloh4:
	adrp	x28, _CN23XX_PKT_INPUT_CTL_RST@GOTPAGE
Lloh5:
	ldr	x28, [x28, _CN23XX_PKT_INPUT_CTL_RST@GOTPAGEOFF]
Lloh6:
	adrp	x25, _CN23XX_SLI_PKT_IOQ_RING_RST@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CN23XX_SLI_PKT_IOQ_RING_RST@GOTPAGEOFF]
	mov	x21, x20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	cmp	w21, w24
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w26, [x23]
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	mov	x1, x0
	bl	_WRITE_ONCE
	bl	_READ_ONCE
	ldr	w8, [x27]
	bic	w1, w0, w8
	bl	_WRITE_ONCE
	bl	_READ_ONCE
	ldr	w8, [x28]
	orr	w1, w8, w0
	bl	_WRITE_ONCE
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_PKT_CONTROL64
	mov	x22, x0
	bl	_READ_ONCE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_octeon_write_csr64
	ldr	w1, [x25]
	mov	x0, x19
	bl	_octeon_read_csr64
	mov	x1, x0
	bl	_WRITE_ONCE
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_READ_ONCE
	mov	x22, x0
	mov	x0, x21
	bl	_BIT_ULL
	tst	w0, w22
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	cbz	w26, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	sub	w26, w26, #1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_octeon_read_csr64
	mov	x1, x0
	bl	_WRITE_ONCE
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #-1
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_DOORBELL
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1
	bl	_octeon_write_csr
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_DOORBELL
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	cbz	w0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w26, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w26, #1
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x8
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
	mov	x0, x21
	bl	_CN23XX_SLI_IQ_DOORBELL
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	cbz	w0, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	sub	w8, w22, #1
	cbnz	w22, LBB0_11
	b	LBB0_2
LBB0_13:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.ge	LBB0_16
LBB0_14:
	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
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x20
	bl	_CN23XX_SLI_OQ_PKTS_SENT
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr
	mov	x1, x0
	bl	_WRITE_ONCE
	mov	x0, x20
	bl	_CN23XX_SLI_OQ_PKTS_SENT
	mov	x21, x0
	bl	_READ_ONCE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_octeon_write_csr
	add	w20, w20, #1
	cmp	w20, w24
	b.ge	LBB0_14
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
	ldr	w22, [x23]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_octeon_read_csr64
	mov	x1, x0
	bl	_WRITE_ONCE
LBB0_17:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_READ_ONCE
	mov	x21, x0
	mov	x0, x20
	bl	_BIT_ULL
	tst	w0, w21
	b.ne	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	cbz	w22, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=2
	sub	w22, w22, #1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_octeon_read_csr64
	mov	x1, x0
	bl	_WRITE_ONCE
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
	b	LBB0_17
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w22, #-1
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x20
	bl	_CN23XX_SLI_OQ_PKTS_CREDIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1
	bl	_octeon_write_csr
	mov	x0, x20
	bl	_CN23XX_SLI_OQ_PKTS_CREDIT
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	cbz	w0, LBB0_15
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	cbz	w22, LBB0_15
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	w8, w22, #1
LBB0_24:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x21, x8
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
	mov	x0, x20
	bl	_CN23XX_SLI_OQ_PKTS_CREDIT
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	cbz	w0, LBB0_15
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	sub	w8, w21, #1
	cbnz	w21, LBB0_24
	b	LBB0_15
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_CN23XX_PKT_INPUT_CTL_RING_ENB,4,2 ; @CN23XX_PKT_INPUT_CTL_RING_ENB
	.comm	_CN23XX_PKT_INPUT_CTL_RST,4,2   ; @CN23XX_PKT_INPUT_CTL_RST
	.comm	_CN23XX_SLI_PKT_IOQ_RING_RST,4,2 ; @CN23XX_SLI_PKT_IOQ_RING_RST
	.no_dead_strip	_cn23xx_disable_io_queues
.subsections_via_symbols
