	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WDTExec                        ## -- Begin function WDTExec
	.p2align	4, 0x90
_WDTExec:                               ## @WDTExec
	.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
	movl	%edi, %eax
	movq	_CurrentSH2@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	cmpl	$0, 40(%rdi)
	je	LBB0_8
## %bb.1:
	movl	(%rdi), %edx
	testb	$-128, %dl
	jne	LBB0_8
## %bb.2:
	testb	$-128, 4(%rdi)
	jne	LBB0_8
## %bb.3:
	movb	24(%rdi), %cl
	movl	$-1, %esi
	shll	%cl, %esi
	addl	28(%rdi), %eax
	movl	%eax, %ebx
	sarl	%cl, %ebx
	addl	16(%rdi), %ebx
	notl	%esi
	andl	%esi, %eax
	movl	%eax, 28(%rdi)
	cmpl	$256, %ebx                      ## imm = 0x100
	jl	LBB0_7
## %bb.4:
	cmpq	$0, 32(%rdi)
	je	LBB0_6
## %bb.5:
	orl	$128, %edx
	movl	%edx, (%rdi)
	movl	8(%rdi), %esi
	movl	12(%rdi), %edx
	shrl	$8, %esi
	andl	$127, %esi
	shrl	$4, %edx
	andl	$15, %edx
	callq	_SH2SendInterrupt
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_LOG
LBB0_7:
	movslq	%ebx, %rax
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentSH2,8,3                 ## @CurrentSH2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Watchdog timer(WDT mode) overflow not implemented\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WDTExec                        ; -- Begin function WDTExec
	.p2align	2
_WDTExec:                               ; @WDTExec
	.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
	mov	x8, x0
Lloh0:
	adrp	x19, _CurrentSH2@GOTPAGE
Lloh1:
	ldr	x19, [x19, _CurrentSH2@GOTPAGEOFF]
	ldr	x0, [x19]
	ldr	w9, [x0, #40]
	cbz	w9, LBB0_8
; %bb.1:
	ldr	w9, [x0]
	tbnz	w9, #7, LBB0_8
; %bb.2:
	ldrb	w10, [x0, #4]
	tbnz	w10, #7, LBB0_8
; %bb.3:
	ldr	w10, [x0, #16]
	mov	w11, #-1
	ldp	w12, w13, [x0, #24]
	lsl	w11, w11, w12
	add	w8, w13, w8
	bic	w11, w8, w11
	asr	w8, w8, w12
	add	w20, w8, w10
	str	w11, [x0, #28]
	cmp	w20, #256
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_6
; %bb.5:
	orr	w8, w9, #0x80
	str	w8, [x0]
	ldp	w8, w9, [x0, #8]
	ubfx	w1, w8, #8, #7
	ubfx	w2, w9, #4, #4
	bl	_SH2SendInterrupt
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG
LBB0_7:
	sxtw	x8, w20
	ldr	x9, [x19]
	str	x8, [x9, #16]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentSH2,8,3                 ; @CurrentSH2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Watchdog timer(WDT mode) overflow not implemented\n"

.subsections_via_symbols
