	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpu_wdt_reg_handler            ## -- Begin function vpu_wdt_reg_handler
	.p2align	4, 0x90
_vpu_wdt_reg_handler:                   ## @vpu_wdt_reg_handler
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_platform_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	movq	_VPU_RST_MAX@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jbe	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	movq	16(%rbx), %r13
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_dbg
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	%r12d, %eax
	shlq	$4, %rax
	movq	%r15, (%r13,%rax)
	movq	%r14, 8(%r13,%rax)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpu device in not ready\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_VPU_RST_MAX,4,2                ## @VPU_RST_MAX
L_.str.1:                               ## @.str.1
	.asciz	"wdt register id %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"register vpu wdt handler failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpu_wdt_reg_handler            ; -- Begin function vpu_wdt_reg_handler
	.p2align	2
_vpu_wdt_reg_handler:                   ; @vpu_wdt_reg_handler
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	bl	_platform_get_drvdata
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	cbz	x21, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _VPU_RST_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPU_RST_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ls	LBB0_5
; %bb.3:
	ldr	x23, [x22, #16]
	ldr	x0, [x22], #8
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	mov	x0, x22
	bl	_mutex_lock
	add	x8, x23, w20, uxtw #4
	stp	x21, x19, [x8]
	mov	x0, x22
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_err
Lloh7:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	ldr	x0, [x22]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpu device in not ready\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_VPU_RST_MAX,4,2                ; @VPU_RST_MAX
l_.str.1:                               ; @.str.1
	.asciz	"wdt register id %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"register vpu wdt handler failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
