	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_watchdog
_s5p_mfc_watchdog:                      ## @s5p_mfc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_watchdog_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	leaq	16(%rax), %rsi
	xorl	%edi, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	12(%rbx), %rdi
	callq	_atomic_inc
LBB0_2:
	leaq	12(%rbx), %rdi
	callq	_atomic_read
	movq	_MFC_WATCHDOG_CNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_mfc_err
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_schedule_work
LBB0_4:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_MFC_WATCHDOG_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%r14, %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_add_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_watchdog_timer,4,2             ## @watchdog_timer
	.comm	_MFC_WATCHDOG_CNT,8,3           ## @MFC_WATCHDOG_CNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Time out during waiting for HW\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MFC_WATCHDOG_INTERVAL,4,2      ## @MFC_WATCHDOG_INTERVAL
	.comm	_dev,8,3                        ## @dev
	.no_dead_strip	_s5p_mfc_watchdog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_watchdog
_s5p_mfc_watchdog:                      ; @s5p_mfc_watchdog
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _watchdog_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _watchdog_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	add	x1, x0, #16
	mov	w0, #0
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #12
	bl	_atomic_inc
LBB0_2:
	add	x0, x19, #12
	bl	_atomic_read
Lloh3:
	adrp	x8, _MFC_WATCHDOG_CNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MFC_WATCHDOG_CNT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mfc_err
	add	x0, x19, #8
	bl	_schedule_work
LBB0_4:
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
Lloh11:
	adrp	x8, _MFC_WATCHDOG_INTERVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MFC_WATCHDOG_INTERVAL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x8, x0, x20
	str	x8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_add_timer
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_watchdog_timer,4,2             ; @watchdog_timer
	.comm	_MFC_WATCHDOG_CNT,8,3           ; @MFC_WATCHDOG_CNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Time out during waiting for HW\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MFC_WATCHDOG_INTERVAL,4,2      ; @MFC_WATCHDOG_INTERVAL
	.comm	_dev,8,3                        ; @dev
	.no_dead_strip	_s5p_mfc_watchdog
.subsections_via_symbols
