	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7603_watchdog_check
_mt7603_watchdog_check:                 ## @mt7603_watchdog_check
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	leal	1(%r14), %eax
	cmpl	%eax, (%rdi)
	jne	LBB0_2
## %bb.1:
	movl	$0, (%rbx)
	jmp	LBB0_9
LBB0_2:
	movq	%rsi, %r15
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	*%rcx
	movq	(%r15), %rcx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	_MT7603_WATCHDOG_TIMEOUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_7
## %bb.6:
	movq	$0, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movq	(%r15), %rcx
	jmp	LBB0_8
LBB0_7:
	incq	%rcx
	movq	%rcx, (%r15)
LBB0_8:
	movq	_MT7603_WATCHDOG_TIMEOUT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jl	LBB0_10
LBB0_9:
	movl	%r14d, 4(%rbx)
	movq	8(%rbx), %rax
	movl	%r14d, %ecx
	incl	(%rax,%rcx,4)
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT7603_WATCHDOG_TIMEOUT,8,3    ## @MT7603_WATCHDOG_TIMEOUT
	.no_dead_strip	_mt7603_watchdog_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7603_watchdog_check
_mt7603_watchdog_check:                 ; @mt7603_watchdog_check
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	w8, [x0]
	add	w9, w2, #1
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	str	wzr, [x20]
	b	LBB0_10
LBB0_2:
	mov	x21, x1
Lloh0:
	adrp	x22, _MT7603_WATCHDOG_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MT7603_WATCHDOG_TIMEOUT@GOTPAGEOFF]
	cbz	x3, LBB0_6
; %bb.3:
	mov	x0, x20
	blr	x3
	ldr	x8, [x21]
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x9, [x22]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.5:
	mov	w0, #0
	str	xzr, [x21]
	b	LBB0_11
LBB0_6:
	ldr	x8, [x21]
	b	LBB0_8
LBB0_7:
	add	x8, x8, #1
	str	x8, [x21]
LBB0_8:
	ldr	x9, [x22]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	str	w19, [x20, #4]
	ldr	x8, [x20, #8]
	mov	w9, w19
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MT7603_WATCHDOG_TIMEOUT,8,3    ; @MT7603_WATCHDOG_TIMEOUT
	.no_dead_strip	_mt7603_watchdog_check
.subsections_via_symbols
