	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iavf_enable_queues             ## -- Begin function iavf_enable_queues
	.p2align	4, 0x90
_iavf_enable_queues:                    ## @iavf_enable_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	movq	_VIRTCHNL_OP_UNKNOWN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.1:
	movq	_VIRTCHNL_OP_ENABLE_QUEUES@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	12(%rbx), %edi
	callq	_BIT
	decq	%rax
	movq	%rax, -40(%rbp)
	movq	%rax, -32(%rbp)
	movq	_IAVF_FLAG_AQ_ENABLE_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movq	(%r14), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$24, %ecx
	callq	_iavf_send_pf_msg
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIRTCHNL_OP_UNKNOWN,8,3        ## @VIRTCHNL_OP_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot enable queues, command %d pending\n"

	.comm	_VIRTCHNL_OP_ENABLE_QUEUES,8,3  ## @VIRTCHNL_OP_ENABLE_QUEUES
	.comm	_IAVF_FLAG_AQ_ENABLE_QUEUES,4,2 ## @IAVF_FLAG_AQ_ENABLE_QUEUES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iavf_enable_queues             ; -- Begin function iavf_enable_queues
	.p2align	2
_iavf_enable_queues:                    ; @iavf_enable_queues
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x2, [x0]
Lloh0:
	adrp	x8, _VIRTCHNL_OP_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIRTCHNL_OP_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _VIRTCHNL_OP_ENABLE_QUEUES@GOTPAGE
Lloh4:
	ldr	x20, [x20, _VIRTCHNL_OP_ENABLE_QUEUES@GOTPAGEOFF]
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w0, [x19, #12]
	bl	_BIT
	sub	x8, x0, #1
Lloh5:
	adrp	x9, _IAVF_FLAG_AQ_ENABLE_QUEUES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IAVF_FLAG_AQ_ENABLE_QUEUES@GOTPAGEOFF]
	stp	x8, x8, [sp, #8]
Lloh7:
	ldr	w8, [x9]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #24
	bl	_iavf_send_pf_msg
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	ldr	x0, [x19, #24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_VIRTCHNL_OP_UNKNOWN,8,3        ; @VIRTCHNL_OP_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot enable queues, command %d pending\n"

	.comm	_VIRTCHNL_OP_ENABLE_QUEUES,8,3  ; @VIRTCHNL_OP_ENABLE_QUEUES
	.comm	_IAVF_FLAG_AQ_ENABLE_QUEUES,4,2 ; @IAVF_FLAG_AQ_ENABLE_QUEUES
.subsections_via_symbols
