	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_cn6xxx_disable_io_queues   ## -- Begin function lio_cn6xxx_disable_io_queues
	.p2align	4, 0x90
_lio_cn6xxx_disable_io_queues:          ## @lio_cn6xxx_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
	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	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_CN6XXX_SLI_PKT_INSTR_ENB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_octeon_read_csr
	xorl	(%r14), %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_octeon_write_csr
	movl	(%r14), %r13d
	movq	_CN6XXX_SLI_PORT_IN_RST_IQ@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_octeon_read_csr
	notl	%eax
	testl	%eax, %r13d
	je	LBB0_4
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.2:
	decl	%r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_octeon_read_csr
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
	notl	%ebx
	subl	$1, %r12d
	setb	%al
	testl	%ebx, %r13d
	je	LBB0_4
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	%al, %al
	je	LBB0_3
LBB0_4:
	movq	%r14, %rdi
	callq	_MAX_OCTEON_INSTR_QUEUES
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	movq	%r14, %rdi
	callq	_MAX_OCTEON_INSTR_QUEUES
	cmpl	%eax, %ebx
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r15d
	movl	%ebx, %edi
	callq	_BIT_ULL
	testl	%r15d, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_CN6XXX_SLI_IQ_DOORBELL
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$-1, %edx
	callq	_octeon_write_csr
	movl	%ebx, %edi
	callq	_CN6XXX_SLI_IQ_DOORBELL
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr
	jmp	LBB0_8
LBB0_9:
	movq	_CN6XXX_SLI_PKT_OUT_ENB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_octeon_read_csr
	xorl	4(%r14), %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_octeon_write_csr
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	4(%r14), %r12d
	movq	_CN6XXX_SLI_PORT_IN_RST_OQ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_octeon_read_csr
	notl	%eax
	testl	%eax, %r12d
	je	LBB0_13
## %bb.10:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.11:
	decl	%r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_octeon_read_csr
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
	notl	%ebx
	subl	$1, %r15d
	setb	%al
	testl	%ebx, %r12d
	je	LBB0_13
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=1
	testb	%al, %al
	je	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	callq	_MAX_OCTEON_OUTPUT_QUEUES
	testl	%eax, %eax
	jle	LBB0_18
## %bb.14:
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	movq	%r14, %rdi
	callq	_MAX_OCTEON_OUTPUT_QUEUES
	cmpl	%eax, %ebx
	jge	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %r15d
	movl	%ebx, %edi
	callq	_BIT_ULL
	testl	%r15d, %eax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %edi
	callq	_CN6XXX_SLI_OQ_PKTS_CREDIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$-1, %edx
	callq	_octeon_write_csr
	movl	%ebx, %edi
	callq	_CN6XXX_SLI_OQ_PKTS_CREDIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr
	movl	%ebx, %edi
	callq	_CN6XXX_SLI_OQ_PKTS_SENT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_CN6XXX_SLI_OQ_PKTS_SENT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_octeon_write_csr
	jmp	LBB0_17
LBB0_18:
	movq	_CN6XXX_SLI_PKT_CNT_INT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_octeon_read_csr
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_octeon_write_csr
LBB0_20:
	movq	_CN6XXX_SLI_PKT_TIME_INT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_octeon_read_csr
	testl	%eax, %eax
	je	LBB0_21
## %bb.24:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_octeon_write_csr               ## TAILCALL
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_CN6XXX_SLI_PKT_INSTR_ENB,4,2   ## @CN6XXX_SLI_PKT_INSTR_ENB
	.comm	_CN6XXX_SLI_PORT_IN_RST_IQ,4,2  ## @CN6XXX_SLI_PORT_IN_RST_IQ
	.comm	_CN6XXX_SLI_PKT_OUT_ENB,4,2     ## @CN6XXX_SLI_PKT_OUT_ENB
	.comm	_CN6XXX_SLI_PORT_IN_RST_OQ,4,2  ## @CN6XXX_SLI_PORT_IN_RST_OQ
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_cn6xxx_disable_io_queues   ; -- Begin function lio_cn6xxx_disable_io_queues
	.p2align	2
_lio_cn6xxx_disable_io_queues:          ; @lio_cn6xxx_disable_io_queues
	.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	x21, _HZ@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HZ@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh2:
	adrp	x22, _CN6XXX_SLI_PKT_INSTR_ENB@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CN6XXX_SLI_PKT_INSTR_ENB@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_octeon_read_csr
	ldr	w8, [x19]
	eor	w2, w8, w0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_octeon_write_csr
	ldr	w22, [x19]
Lloh4:
	adrp	x23, _CN6XXX_SLI_PORT_IN_RST_IQ@GOTPAGE
Lloh5:
	ldr	x23, [x23, _CN6XXX_SLI_PORT_IN_RST_IQ@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_octeon_read_csr
	bic	w8, w22, w0
	cmp	w8, #0
	ccmp	w20, #0, #4, ne
	b.eq	LBB0_3
; %bb.1:
	sub	w24, w20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_octeon_read_csr
	mov	x20, x0
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
	bic	w8, w22, w20
	cmp	w8, #0
	ccmp	w24, #0, #4, ne
	sub	w24, w24, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_MAX_OCTEON_INSTR_QUEUES
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	mov	x0, x19
	bl	_MAX_OCTEON_INSTR_QUEUES
	cmp	w20, w0
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19]
	mov	x0, x20
	bl	_BIT_ULL
	tst	w0, w22
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_CN6XXX_SLI_IQ_DOORBELL
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1
	bl	_octeon_write_csr
	mov	x0, x20
	bl	_CN6XXX_SLI_IQ_DOORBELL
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr
	b	LBB0_5
LBB0_8:
Lloh6:
	adrp	x20, _CN6XXX_SLI_PKT_OUT_ENB@GOTPAGE
Lloh7:
	ldr	x20, [x20, _CN6XXX_SLI_PKT_OUT_ENB@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_octeon_read_csr
	ldr	w8, [x19, #4]
	eor	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_octeon_write_csr
	ldr	w20, [x21]
	ldr	w21, [x19, #4]
Lloh8:
	adrp	x22, _CN6XXX_SLI_PORT_IN_RST_OQ@GOTPAGE
Lloh9:
	ldr	x22, [x22, _CN6XXX_SLI_PORT_IN_RST_OQ@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_octeon_read_csr
	bic	w8, w21, w0
	cmp	w8, #0
	ccmp	w20, #0, #4, ne
	b.eq	LBB0_11
; %bb.9:
	sub	w23, w20, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_octeon_read_csr
	mov	x20, x0
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
	bic	w8, w21, w20
	cmp	w8, #0
	ccmp	w23, #0, #4, ne
	sub	w23, w23, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x19
	bl	_MAX_OCTEON_OUTPUT_QUEUES
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.12:
	mov	w20, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w20, w20, #1
	mov	x0, x19
	bl	_MAX_OCTEON_OUTPUT_QUEUES
	cmp	w20, w0
	b.ge	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19, #4]
	mov	x0, x20
	bl	_BIT_ULL
	tst	w0, w21
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	bl	_CN6XXX_SLI_OQ_PKTS_CREDIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1
	bl	_octeon_write_csr
	mov	x0, x20
	bl	_CN6XXX_SLI_OQ_PKTS_CREDIT
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr
	mov	x0, x20
	bl	_CN6XXX_SLI_OQ_PKTS_SENT
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr
	mov	x21, x0
	mov	x0, x20
	bl	_CN6XXX_SLI_OQ_PKTS_SENT
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_octeon_write_csr
	b	LBB0_13
LBB0_16:
Lloh10:
	adrp	x20, _CN6XXX_SLI_PKT_CNT_INT@GOTPAGE
Lloh11:
	ldr	x20, [x20, _CN6XXX_SLI_PKT_CNT_INT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_octeon_read_csr
	cbz	w0, LBB0_18
; %bb.17:
	mov	x2, x0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_octeon_write_csr
LBB0_18:
Lloh12:
	adrp	x20, _CN6XXX_SLI_PKT_TIME_INT@GOTPAGE
Lloh13:
	ldr	x20, [x20, _CN6XXX_SLI_PKT_TIME_INT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_octeon_read_csr
	cbz	w0, LBB0_20
; %bb.19:
	mov	x2, x0
	ldr	w1, [x20]
	mov	x0, x19
	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
	b	_octeon_write_csr
LBB0_20:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_CN6XXX_SLI_PKT_INSTR_ENB,4,2   ; @CN6XXX_SLI_PKT_INSTR_ENB
	.comm	_CN6XXX_SLI_PORT_IN_RST_IQ,4,2  ; @CN6XXX_SLI_PORT_IN_RST_IQ
	.comm	_CN6XXX_SLI_PKT_OUT_ENB,4,2     ; @CN6XXX_SLI_PKT_OUT_ENB
	.comm	_CN6XXX_SLI_PORT_IN_RST_OQ,4,2  ; @CN6XXX_SLI_PORT_IN_RST_OQ
	.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
.subsections_via_symbols
