	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6390_watchdog_action
_mv88e6390_watchdog_action:             ## @mv88e6390_watchdog_action
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_MV88E6390_G2_WDOG_CTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MV88E6390_G2_WDOG_CTL_PTR_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mv88e6xxx_g2_write
	movl	(%r15), %esi
	leaq	-36(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_mv88e6xxx_g2_read
	movl	8(%rbx), %edi
	movq	_MV88E6390_G2_WDOG_CTL_DATA_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	andl	-36(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movl	(%r15), %esi
	movq	_MV88E6390_G2_WDOG_CTL_PTR_HISTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mv88e6xxx_g2_write
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_mv88e6xxx_g2_read
	movl	8(%rbx), %edi
	movl	(%r12), %edx
	andl	-36(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_2:
	movq	%rbx, %rdi
	callq	_mv88e6390_watchdog_setup
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6390_G2_WDOG_CTL,4,2      ## @MV88E6390_G2_WDOG_CTL
	.comm	_MV88E6390_G2_WDOG_CTL_PTR_EVENT,4,2 ## @MV88E6390_G2_WDOG_CTL_PTR_EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Watchdog event: 0x%04x"

	.comm	_MV88E6390_G2_WDOG_CTL_DATA_MASK,4,2 ## @MV88E6390_G2_WDOG_CTL_DATA_MASK
	.comm	_MV88E6390_G2_WDOG_CTL_PTR_HISTORY,4,2 ## @MV88E6390_G2_WDOG_CTL_PTR_HISTORY
L_.str.1:                               ## @.str.1
	.asciz	"Watchdog history: 0x%04x"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mv88e6390_watchdog_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6390_watchdog_action
_mv88e6390_watchdog_action:             ; @mv88e6390_watchdog_action
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _MV88E6390_G2_WDOG_CTL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MV88E6390_G2_WDOG_CTL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _MV88E6390_G2_WDOG_CTL_PTR_EVENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MV88E6390_G2_WDOG_CTL_PTR_EVENT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_mv88e6xxx_g2_write
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mv88e6xxx_g2_read
	ldr	w0, [x19, #8]
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x21, _MV88E6390_G2_WDOG_CTL_DATA_MASK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MV88E6390_G2_WDOG_CTL_DATA_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w2, w9, w8
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	w1, [x20]
Lloh9:
	adrp	x8, _MV88E6390_G2_WDOG_CTL_PTR_HISTORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MV88E6390_G2_WDOG_CTL_PTR_HISTORY@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mv88e6xxx_g2_write
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mv88e6xxx_g2_read
	ldr	w0, [x19, #8]
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	and	w2, w9, w8
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	blr	x8
LBB0_2:
	mov	x0, x19
	bl	_mv88e6390_watchdog_setup
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6390_G2_WDOG_CTL,4,2      ; @MV88E6390_G2_WDOG_CTL
	.comm	_MV88E6390_G2_WDOG_CTL_PTR_EVENT,4,2 ; @MV88E6390_G2_WDOG_CTL_PTR_EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Watchdog event: 0x%04x"

	.comm	_MV88E6390_G2_WDOG_CTL_DATA_MASK,4,2 ; @MV88E6390_G2_WDOG_CTL_DATA_MASK
	.comm	_MV88E6390_G2_WDOG_CTL_PTR_HISTORY,4,2 ; @MV88E6390_G2_WDOG_CTL_PTR_HISTORY
l_.str.1:                               ; @.str.1
	.asciz	"Watchdog history: 0x%04x"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mv88e6390_watchdog_action
.subsections_via_symbols
