	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function liquidio_watchdog
_liquidio_watchdog:                     ## @liquidio_watchdog
	.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	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LIO_MAX_CORES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leal	(,%rbx,4), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movb	$1, %al
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %r15
	movq	_CN23XX_SLI_SCRATCH2@GOTPCREL(%rip), %r13
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	(%r15), %edi
	callq	_set_current_state
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_msecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_octeon_read_csr64
	movq	%rax, %rbx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r12), %edi
	movl	$1, %esi
	callq	_WRITE_ONCE
	movq	%r12, %rdi
	callq	_get_other_octeon_device
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r15), %edi
	movl	$1, %esi
	callq	_WRITE_ONCE
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_LIO_MAX_CORES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_12
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	btl	%r15d, %ebx
	jae	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$0, (%r14,%r15,4)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	movl	$1, (%r14,%r15,4)
	movq	_LIO_MAX_CORES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, -52(%rbp)                   ## 1-byte Folded Reload
	movl	$0, %eax
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %r15
	je	LBB0_1
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_disable_all_vf_links
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_disable_all_vf_links
	xorl	%eax, %eax
	jmp	LBB0_1
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LIO_MAX_CORES,4,2              ## @LIO_MAX_CORES
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_CN23XX_SLI_SCRATCH2,4,2        ## @CN23XX_SLI_SCRATCH2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: Octeon core %d crashed or got stuck!  See oct-fwdump for details.\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.no_dead_strip	_liquidio_watchdog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function liquidio_watchdog
_liquidio_watchdog:                     ; @liquidio_watchdog
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _LIO_MAX_CORES@GOTPAGE
Lloh4:
	ldr	x25, [x25, _LIO_MAX_CORES@GOTPAGEOFF]
	ldr	w12, [x25]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	lsl	w2, w12, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh7:
	adrp	x26, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh9:
	adrp	x28, _CN23XX_SLI_SCRATCH2@GOTPAGE
Lloh10:
	ldr	x28, [x28, _CN23XX_SLI_SCRATCH2@GOTPAGEOFF]
	mov	w8, #1
Lloh11:
	adrp	x21, l_.str@PAGE
Lloh12:
	add	x21, x21, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	mov	x27, x8
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_kthread_should_stop
	cbnz	w0, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	w0, [x26]
	bl	_set_current_state
	mov	w0, #2000
	bl	_msecs_to_jiffies
	bl	_schedule_timeout
	ldr	w1, [x28]
	mov	x0, x19
	bl	_octeon_read_csr64
	mov	x22, x0
	cbz	w22, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x19, #16]
	mov	w1, #1
	bl	_WRITE_ONCE
	mov	x0, x19
	bl	_get_other_octeon_device
	mov	x23, x0
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x23, #16]
	mov	w1, #1
	bl	_WRITE_ONCE
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_12
LBB0_9:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	w9, w22, w24
	tbz	w9, #0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w9, [x20, x24, lsl #2]
	cbnz	w9, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x0, [x19, #8]
	mov	x1, x21
	mov	x2, x24
	bl	_dev_err
	mov	w8, #1
	str	w8, [x20, x24, lsl #2]
	ldr	w8, [x25]
	b	LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, #0
	tbz	w27, #0, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_disable_all_vf_links
	mov	x0, x23
	bl	_disable_all_vf_links
	mov	w8, #0
	b	LBB0_1
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	w0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LIO_MAX_CORES,4,2              ; @LIO_MAX_CORES
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_CN23XX_SLI_SCRATCH2,4,2        ; @CN23XX_SLI_SCRATCH2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: Octeon core %d crashed or got stuck!  See oct-fwdump for details.\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.no_dead_strip	_liquidio_watchdog
.subsections_via_symbols
