	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aml8726_wdt_intr
_aml8726_wdt_intr:                      ## @aml8726_wdt_intr
	.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
	movq	%rdi, %rbx
	callq	_AML_WDT_LOCK
	movq	_AML_WDT_CTRL_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_CSR_READ_4
	movq	_AML_WDT_CTRL_IRQ_EN@GOTPCREL(%rip), %rcx
	movq	_AML_WDT_CTRL_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_CSR_WRITE_4
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_CSR_BARRIER
	movq	%rbx, %rdi
	callq	_AML_WDT_UNLOCK
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_printf
	movq	_FILTER_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AML_WDT_CTRL_REG,4,2           ## @AML_WDT_CTRL_REG
	.comm	_AML_WDT_CTRL_IRQ_EN,4,2        ## @AML_WDT_CTRL_IRQ_EN
	.comm	_AML_WDT_CTRL_EN,4,2            ## @AML_WDT_CTRL_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout expired\n"

	.comm	_FILTER_HANDLED,4,2             ## @FILTER_HANDLED
	.no_dead_strip	_aml8726_wdt_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aml8726_wdt_intr
_aml8726_wdt_intr:                      ; @aml8726_wdt_intr
	.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, x0
	bl	_AML_WDT_LOCK
Lloh0:
	adrp	x21, _AML_WDT_CTRL_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AML_WDT_CTRL_REG@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_CSR_READ_4
Lloh2:
	adrp	x8, _AML_WDT_CTRL_IRQ_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AML_WDT_CTRL_IRQ_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AML_WDT_CTRL_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AML_WDT_CTRL_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_CSR_WRITE_4
	ldr	w1, [x21]
	mov	x0, x19
	bl	_CSR_BARRIER
	mov	x0, x19
	bl	_AML_WDT_UNLOCK
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
Lloh10:
	adrp	x8, _FILTER_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FILTER_HANDLED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AML_WDT_CTRL_REG,4,2           ; @AML_WDT_CTRL_REG
	.comm	_AML_WDT_CTRL_IRQ_EN,4,2        ; @AML_WDT_CTRL_IRQ_EN
	.comm	_AML_WDT_CTRL_EN,4,2            ; @AML_WDT_CTRL_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout expired\n"

	.comm	_FILTER_HANDLED,4,2             ; @FILTER_HANDLED
	.no_dead_strip	_aml8726_wdt_intr
.subsections_via_symbols
