	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_octeon_setup_iq                ## -- Begin function octeon_setup_iq
	.p2align	4, 0x90
_octeon_setup_iq:                       ## @octeon_setup_iq
	.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	%r9, %r13
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movslq	%ecx, %r14
	movq	24(%rdi), %rdi
	callq	_dev_to_node
	movq	16(%rbx), %rcx
	cmpq	$0, (%rcx,%r14,8)
	je	LBB0_2
## %bb.1:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_dbg
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movl	%r14d, 16(%rax)
	movq	%r13, 8(%rax)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	movl	$4, %edi
	movl	%eax, %esi
	callq	_vzalloc_node
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.3:
	movl	$4, %edi
	callq	_vzalloc
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
LBB0_4:
	movl	%r15d, (%rcx)
	movq	%r13, 8(%rcx)
	movq	(%rax,%r14,8), %rax
	movl	%r12d, 4(%rax)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_octeon_init_instr_queue
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_vfree
	movq	16(%rbx), %rax
	movq	$0, (%rax,%r14,8)
	jmp	LBB0_9
LBB0_6:
	incl	8(%rbx)
	movq	%rbx, %rdi
	callq	*(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_octeon_delete_instr_queue
LBB0_9:
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IQ is in use. Cannot create the IQ: %d again\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_octeon_setup_iq                ; -- Begin function octeon_setup_iq
	.p2align	2
_octeon_setup_iq:                       ; @octeon_setup_iq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x5
	mov	x23, x4
	mov	x21, x3
	mov	x25, x2
	mov	x24, x1
	mov	x19, x0
	sxtw	x20, w3
	ldr	x0, [x0, #24]
	bl	_dev_to_node
	ldr	x8, [x19, #16]
	sbfiz	x9, x21, #3, #32
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	mov	w0, #0
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x20, lsl #3]
	str	w21, [x8, #16]
	str	x22, [x8, #8]
	b	LBB0_9
LBB0_2:
	mov	x1, x0
	mov	w0, #4
	bl	_vzalloc_node
	ldr	x8, [x19, #16]
	lsl	x26, x20, #3
	str	x0, [x8, x26]
	ldr	x8, [x19, #16]
	ldr	x9, [x8, x26]
	cbnz	x9, LBB0_4
; %bb.3:
	mov	w0, #4
	bl	_vzalloc
	ldr	x8, [x19, #16]
	str	x0, [x8, x26]
	ldr	x8, [x19, #16]
	ldr	x9, [x8, x26]
	cbz	x9, LBB0_8
LBB0_4:
	str	w25, [x9]
	str	x22, [x9, #8]
	ldr	x8, [x8, x20, lsl #3]
	str	w24, [x8, #4]
	and	x1, x21, #0xffffffff
	mov	x0, x19
	mov	x2, x23
	bl	_octeon_init_instr_queue
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x26]
	bl	_vfree
	ldr	x8, [x19, #16]
	str	xzr, [x8, x26]
	b	LBB0_8
LBB0_6:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_octeon_delete_instr_queue
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IQ is in use. Cannot create the IQ: %d again\n"

.subsections_via_symbols
