	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_detect_recover_hung       ## -- Begin function i40e_detect_recover_hung
	.p2align	4, 0x90
_i40e_detect_recover_hung:              ## @i40e_detect_recover_hung
	.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
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r14
	movq	___I40E_VSI_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.3:
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	cmpl	$0, (%r14)
	je	LBB0_12
## %bb.5:
	movq	_INT_MAX@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_smp_rmb
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_i40e_get_tx_pending
	cmpq	$1, %rax
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	%r13d, %eax
	movl	%eax, (%r12)
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jae	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %r12
	testq	%r12, %r12
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 16(%r12)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %r13d
	andl	8(%r12), %r13d
	cmpl	%r13d, (%r12)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r12), %esi
	movq	%r14, %rdi
	callq	_i40e_force_wb
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	___I40E_VSI_DOWN,4,2            ## @__I40E_VSI_DOWN
	.comm	_INT_MAX,4,2                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_detect_recover_hung       ; -- Begin function i40e_detect_recover_hung
	.p2align	2
_i40e_detect_recover_hung:              ; @i40e_detect_recover_hung
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, ___I40E_VSI_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___I40E_VSI_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_test_bit
	cbz	x0, LBB0_3
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_2
; %bb.4:
	bl	_netif_carrier_ok
	cbz	w0, LBB0_2
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.6:
	mov	x21, #0
Lloh3:
	adrp	x22, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _INT_MAX@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_smp_rmb
	mov	x0, x20
	mov	w1, #1
	bl	_i40e_get_tx_pending
	cmp	x0, #0
	csinv	w8, w23, wzr, ne
	str	w8, [x20]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
	ldr	w8, [x19]
	cmp	x21, x8
	b.hs	LBB0_2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x21, lsl #3]
	cbz	x20, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x20, #8]
	ldr	w9, [x22]
	and	w23, w9, w8
	ldr	w8, [x20]
	cmp	w8, w23
	b.ne	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_i40e_force_wb
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	___I40E_VSI_DOWN,4,2            ; @__I40E_VSI_DOWN
	.comm	_INT_MAX,4,2                    ; @INT_MAX
.subsections_via_symbols
