	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_destroy_io_sq
_ena_com_destroy_io_sq:                 ## @ena_com_destroy_io_sq
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	(%rbx), %rax
	movq	_ENA_COM_IO_QUEUE_DIRECTION_TX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_ENA_ADMIN_SQ_DIRECTION_TX@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ENA_ADMIN_SQ_DIRECTION_RX@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_ENA_ADMIN_SQ_SQ_DIRECTION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_ENA_ADMIN_SQ_SQ_DIRECTION_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, -36(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	_ENA_ADMIN_DESTROY_SQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$12, %edx
	movl	$4, %r8d
	callq	_ena_com_execute_admin_command
	movl	%eax, %ebx
	testl	%eax, %eax
	setne	%al
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	%ebx, %edx
	addl	(%rcx), %edx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_COM_IO_QUEUE_DIRECTION_TX,8,3 ## @ENA_COM_IO_QUEUE_DIRECTION_TX
	.comm	_ENA_ADMIN_SQ_DIRECTION_TX,4,2  ## @ENA_ADMIN_SQ_DIRECTION_TX
	.comm	_ENA_ADMIN_SQ_DIRECTION_RX,4,2  ## @ENA_ADMIN_SQ_DIRECTION_RX
	.comm	_ENA_ADMIN_SQ_SQ_DIRECTION_SHIFT,4,2 ## @ENA_ADMIN_SQ_SQ_DIRECTION_SHIFT
	.comm	_ENA_ADMIN_SQ_SQ_DIRECTION_MASK,4,2 ## @ENA_ADMIN_SQ_SQ_DIRECTION_MASK
	.comm	_ENA_ADMIN_DESTROY_SQ,4,2       ## @ENA_ADMIN_DESTROY_SQ
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to destroy io sq error: %d\n"

	.no_dead_strip	_ena_com_destroy_io_sq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_destroy_io_sq
_ena_com_destroy_io_sq:                 ; @ena_com_destroy_io_sq
	.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, x1
	mov	x20, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _ENA_COM_IO_QUEUE_DIRECTION_TX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENA_COM_IO_QUEUE_DIRECTION_TX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ENA_ADMIN_SQ_DIRECTION_TX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ENA_ADMIN_SQ_DIRECTION_TX@GOTPAGEOFF]
Lloh5:
	adrp	x11, _ENA_ADMIN_SQ_DIRECTION_RX@GOTPAGE
Lloh6:
	ldr	x11, [x11, _ENA_ADMIN_SQ_DIRECTION_RX@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _ENA_ADMIN_SQ_SQ_DIRECTION_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ENA_ADMIN_SQ_SQ_DIRECTION_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _ENA_ADMIN_SQ_SQ_DIRECTION_MASK@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ENA_ADMIN_SQ_SQ_DIRECTION_MASK@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh12:
	ldr	w9, [x10]
	and	w8, w8, w9
	ldr	w9, [sp, #20]
	orr	w8, w9, w8
	ldr	w9, [x19, #8]
	str	w9, [sp, #24]
Lloh13:
	adrp	x9, _ENA_ADMIN_DESTROY_SQ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ENA_ADMIN_DESTROY_SQ@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	add	x1, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #12
	mov	w4, #4
	bl	_ena_com_execute_admin_command
	mov	x19, x0
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmn	w0, w8
	ccmp	w0, #0, #4, ne
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_COM_IO_QUEUE_DIRECTION_TX,8,3 ; @ENA_COM_IO_QUEUE_DIRECTION_TX
	.comm	_ENA_ADMIN_SQ_DIRECTION_TX,4,2  ; @ENA_ADMIN_SQ_DIRECTION_TX
	.comm	_ENA_ADMIN_SQ_DIRECTION_RX,4,2  ; @ENA_ADMIN_SQ_DIRECTION_RX
	.comm	_ENA_ADMIN_SQ_SQ_DIRECTION_SHIFT,4,2 ; @ENA_ADMIN_SQ_SQ_DIRECTION_SHIFT
	.comm	_ENA_ADMIN_SQ_SQ_DIRECTION_MASK,4,2 ; @ENA_ADMIN_SQ_SQ_DIRECTION_MASK
	.comm	_ENA_ADMIN_DESTROY_SQ,4,2       ; @ENA_ADMIN_DESTROY_SQ
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to destroy io sq error: %d\n"

	.no_dead_strip	_ena_com_destroy_io_sq
.subsections_via_symbols
