	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_missing_comp_in_tx_queue
_check_missing_comp_in_tx_queue:        ## @check_missing_comp_in_tx_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rsi)
	jle	LBB0_1
## %bb.2:
	movl	$8, %r12d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, (%r15,%r12)
	incq	-56(%rbp)                       ## 8-byte Folded Spill
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	addq	$16, %r12
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %r15
	movq	-8(%r15,%r12), %r14
	testq	%r14, %r14
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 20(%r13)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	leaq	(%r14,%rax,2), %rdi
	callq	_time_is_before_jiffies
	testl	%eax, %eax
	setne	%al
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_time_is_before_jiffies
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%r15,%r12)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	24(%rdi), %edx
	movl	16(%r13), %r8d
	leaq	L_.str.1(%rip), %rcx
	movl	%ebx, %r9d
	callq	_netif_notice
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_14:
	xorl	%edi, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	16(%rbx), %r15
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	movl	$0, %r14d
	je	LBB0_16
## %bb.15:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	movq	16(%rbx), %r9
	leaq	L_.str.2(%rip), %rcx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_netif_err
	movq	_ENA_REGS_RESET_MISS_TX_CMPL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_ENA_FLAG_TRIGGER_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_16:
	leaq	4(%r13), %rbx
	movq	%rbx, %rdi
	callq	_u64_stats_update_begin
	movq	%r15, 8(%r13)
	movq	%rbx, %rdi
	callq	_u64_stats_update_end
	jmp	LBB0_17
LBB0_8:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	24(%rbx), %edx
	movslq	16(%r13), %r8
	leaq	L_.str(%rip), %rcx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	movq	_ENA_REGS_RESET_MISS_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	callq	_smp_mb__before_atomic
	movq	_ENA_FLAG_TRIGGER_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tx_err,4,2                     ## @tx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Potential MSIX issue on Tx side Queue = %d. Reset the device\n"

	.comm	_ENA_REGS_RESET_MISS_INTERRUPT,4,2 ## @ENA_REGS_RESET_MISS_INTERRUPT
	.comm	_ENA_FLAG_TRIGGER_RESET,4,2     ## @ENA_FLAG_TRIGGER_RESET
	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"Found a Tx that wasn't completed on time, qid %d, index %d.\n"

L_.str.2:                               ## @.str.2
	.asciz	"The number of lost tx completions is above the threshold (%d > %d). Reset the device\n"

	.comm	_ENA_REGS_RESET_MISS_TX_CMPL,4,2 ## @ENA_REGS_RESET_MISS_TX_CMPL
	.no_dead_strip	_check_missing_comp_in_tx_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_missing_comp_in_tx_queue
_check_missing_comp_in_tx_queue:        ; @check_missing_comp_in_tx_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x24, _tx_err@GOTPAGE
Lloh1:
	ldr	x24, [x24, _tx_err@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x25, #0
	mov	x22, #0
	mov	x21, #0
	mov	w26, #1
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w26, [x27, #8]
	add	x21, x21, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x25, x25, #16
	cmp	x22, x8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #24]
	ldr	x28, [x27, x25]
	cbz	x28, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_8
	b	LBB0_16
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x20]
	add	x0, x28, x8, lsl #1
	bl	_time_is_before_jiffies
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_16
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x20]
	add	x0, x28, x8
	bl	_time_is_before_jiffies
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, x25
	ldr	w8, [x27, #8]
	cbnz	w8, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x24]
	ldr	w2, [x20, #24]
	ldr	w4, [x19, #16]
	mov	x0, x20
	mov	x3, x23
	mov	x5, x22
	bl	_netif_notice
	b	LBB0_2
LBB0_11:
	mov	x21, #0
LBB0_12:
	ldr	x8, [x20, #16]
	cmp	x21, x8
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w1, [x24]
	ldr	w2, [x20, #24]
	ldr	x8, [x20, #16]
Lloh4:
	adrp	x3, l_.str.2@PAGE
Lloh5:
	add	x3, x3, l_.str.2@PAGEOFF
	str	x8, [sp]
	mov	x0, x20
	mov	x4, x21
	bl	_netif_err
Lloh6:
	adrp	x8, _ENA_REGS_RESET_MISS_TX_CMPL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENA_REGS_RESET_MISS_TX_CMPL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh9:
	adrp	x8, _ENA_FLAG_TRIGGER_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENA_FLAG_TRIGGER_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_set_bit
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_14:
	mov	w20, #0
LBB0_15:
	add	x22, x19, #4
	mov	x0, x22
	bl	_u64_stats_update_begin
	str	x21, [x19, #8]
	mov	x0, x22
	bl	_u64_stats_update_end
	b	LBB0_17
LBB0_16:
	ldr	w1, [x24]
	ldr	w2, [x20, #24]
	ldrsw	x4, [x19, #16]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_err
Lloh17:
	adrp	x8, _ENA_REGS_RESET_MISS_INTERRUPT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENA_REGS_RESET_MISS_INTERRUPT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	bl	_smp_mb__before_atomic
Lloh20:
	adrp	x8, _ENA_FLAG_TRIGGER_RESET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENA_FLAG_TRIGGER_RESET@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_set_bit
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_tx_err,4,2                     ; @tx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Potential MSIX issue on Tx side Queue = %d. Reset the device\n"

	.comm	_ENA_REGS_RESET_MISS_INTERRUPT,4,2 ; @ENA_REGS_RESET_MISS_INTERRUPT
	.comm	_ENA_FLAG_TRIGGER_RESET,4,2     ; @ENA_FLAG_TRIGGER_RESET
	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"Found a Tx that wasn't completed on time, qid %d, index %d.\n"

l_.str.2:                               ; @.str.2
	.asciz	"The number of lost tx completions is above the threshold (%d > %d). Reset the device\n"

	.comm	_ENA_REGS_RESET_MISS_TX_CMPL,4,2 ; @ENA_REGS_RESET_MISS_TX_CMPL
	.no_dead_strip	_check_missing_comp_in_tx_queue
.subsections_via_symbols
