	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_drain_txq
_qede_drain_txq:                        ## @qede_drain_txq
	.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), %rax
	cmpq	8(%rsi), %rax
	jne	LBB0_1
LBB0_12:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	xorl	%r15d, %r15d
LBB0_13:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$-1000, %ebx                    ## imm = 0xFC18
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	xorl	%eax, %eax
	callq	_barrier
	movq	(%r12), %r8
	movq	8(%r12), %rcx
	cmpq	%rcx, %r8
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	jne	LBB0_2
## %bb.4:
	movl	16(%r12), %edx
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_NOTICE
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%r14), %edi
	callq	*(%rax)
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	(%r12), %rax
	cmpq	8(%r12), %rax
	je	LBB0_12
## %bb.7:
	movl	$-1000, %r15d                   ## imm = 0xFC18
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	xorl	%eax, %eax
	callq	_barrier
	movq	(%r12), %r8
	movq	8(%r12), %rcx
	cmpq	%rcx, %r8
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%r15d
	jne	LBB0_8
## %bb.10:
	movl	16(%r12), %edx
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_NOTICE
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx queue[%d] is stuck, requesting MCP to drain\n"

L_.str.1:                               ## @.str.1
	.asciz	"Timeout waiting for tx queue[%d]: PROD=%d, CONS=%d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_qede_drain_txq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_drain_txq
_qede_drain_txq:                        ; @qede_drain_txq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldp	x8, x9, [x1]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_1:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	w0, #0
LBB0_2:
	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
	add	sp, sp, #64
	ret
LBB0_3:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w22, #-1000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	bl	_barrier
	ldp	x8, x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adds	w22, w22, #1
	b.lo	LBB0_4
; %bb.6:
	ldr	w2, [x20, #16]
	cbz	w21, LBB0_13
; %bb.7:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x19]
	blr	x8
	cbnz	w0, LBB0_2
; %bb.8:
	ldp	x8, x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.9:
	mov	w21, #-1000
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	bl	_barrier
	ldp	x8, x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	adds	w21, w21, #1
	b.lo	LBB0_10
; %bb.12:
	ldr	w2, [x20, #16]
LBB0_13:
	stp	x9, x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx queue[%d] is stuck, requesting MCP to drain\n"

l_.str.1:                               ; @.str.1
	.asciz	"Timeout waiting for tx queue[%d]: PROD=%d, CONS=%d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_qede_drain_txq
.subsections_via_symbols
