	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_octeon_delete_instr_queue      ## -- Begin function octeon_delete_instr_queue
	.p2align	4, 0x90
_octeon_delete_instr_queue:             ## @octeon_delete_instr_queue
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	24(%rdi), %rcx
	movq	(%rax,%rsi,8), %r12
	leaq	(%rcx,%rsi,8), %rdi
	addq	$4, %rdi
	callq	_cancel_delayed_work_sync
	movq	24(%rbx), %rax
	movl	(%rax,%r14,8), %edi
	callq	_destroy_workqueue
	movq	%rbx, %rdi
	callq	_OCTEON_CN6XXX
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_cn6xxx@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_OCTEON_CN23XX_PF
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_cn23xx_pf@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_OCTEON_CN23XX_VF
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	_cn23xx_vf@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_CHIP_CONF
	movl	%eax, %edi
	callq	_CFG_GET_IQ_INSTR_TYPE
	movl	%eax, %r15d
LBB0_7:
	movq	16(%r12), %rdi
	callq	_vfree
	movq	8(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.9:
	movslq	(%r12), %rax
	movslq	%r15d, %rsi
	imulq	%rax, %rsi
	movl	4(%r12), %ecx
	movq	%rbx, %rdi
	callq	_lio_dma_free
	movq	$-2, %rax
	movl	%r14d, %ecx
	rolq	%cl, %rax
	andq	%rax, 16(%rbx)
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_vfree
	movq	8(%rbx), %rax
	movq	$0, (%rax,%r14,8)
	decl	(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movl	$1, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_cn6xxx,4,2                     ## @cn6xxx
	.comm	_cn23xx_pf,4,2                  ## @cn23xx_pf
	.comm	_cn23xx_vf,4,2                  ## @cn23xx_vf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_octeon_delete_instr_queue      ; -- Begin function octeon_delete_instr_queue
	.p2align	2
_octeon_delete_instr_queue:             ; @octeon_delete_instr_queue
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	lsl	x22, x1, #3
	ldr	x23, [x8, x22]
	ldr	x8, [x0, #24]
	add	x8, x8, x22
	add	x0, x8, #4
	bl	_cancel_delayed_work_sync
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x22]
	bl	_destroy_workqueue
	mov	x0, x19
	bl	_OCTEON_CN6XXX
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _cn6xxx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cn6xxx@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_OCTEON_CN23XX_PF
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _cn23xx_pf@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cn23xx_pf@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_OCTEON_CN23XX_VF
	cbz	x0, LBB0_11
; %bb.5:
Lloh4:
	adrp	x8, _cn23xx_vf@GOTPAGE
Lloh5:
	ldr	x8, [x8, _cn23xx_vf@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CHIP_CONF
	bl	_CFG_GET_IQ_INSTR_TYPE
	mov	x21, x0
LBB0_7:
	ldr	x0, [x23, #16]
	bl	_vfree
	ldr	x2, [x23, #8]
	cbz	x2, LBB0_9
; %bb.8:
	sxtw	x8, w21
	ldp	w9, w3, [x23]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	mul	x1, x9, x8
	mov	x0, x19
	bl	_lio_dma_free
	mov	w8, #1
	lsl	x8, x8, x20
	ldp	x10, x9, [x19, #8]
	bic	x8, x9, x8
	str	x8, [x19, #16]
	ldr	x0, [x10, x22]
	bl	_vfree
	mov	w0, #0
	ldr	x8, [x19, #8]
	str	xzr, [x8, x22]
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
	mov	w0, #1
LBB0_10:
	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_11:
	mov	w21, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cn6xxx,4,2                     ; @cn6xxx
	.comm	_cn23xx_pf,4,2                  ; @cn23xx_pf
	.comm	_cn23xx_vf,4,2                  ; @cn23xx_vf
.subsections_via_symbols
