	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SH2Reset                       ## -- Begin function SH2Reset
	.p2align	4, 0x90
_SH2Reset:                              ## @SH2Reset
	.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	%rdi, %rbx
	movq	_SH2Core@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$5, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$6, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$9, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$10, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$11, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$12, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$13, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$14, %esi
	xorl	%edx, %edx
	callq	*64(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	movl	$240, %esi
	callq	*56(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*48(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*40(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*32(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*24(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*16(%rax)
	movl	$0, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movq	$0, 72(%rbx)
	movl	$3, 48(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 24(%rbx)
	movups	%xmm0, 32(%rbx)
	movq	16(%rbx), %rdi
	movq	_MAX_INTERRUPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r14), %rax
	movq	16(%rbx), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*8(%rax)
	movq	(%r14), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_OnchipReset
	movq	$0, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SH2Core,8,3                    ## @SH2Core
	.comm	_MAX_INTERRUPTS,4,2             ## @MAX_INTERRUPTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SH2Reset                       ; -- Begin function SH2Reset
	.p2align	2
_SH2Reset:                              ; @SH2Reset
	.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
Lloh0:
	adrp	x20, _SH2Core@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SH2Core@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	w1, #0
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	w21, #3
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #5
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #6
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #7
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #9
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #10
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #11
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #12
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #13
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	mov	x0, x19
	mov	w1, #14
	mov	w2, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #56]
	mov	x0, x19
	mov	w1, #240
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #48]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #40]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #32]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #24]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	str	wzr, [x19]
	stp	xzr, xzr, [x19, #64]
	str	xzr, [x19, #56]
	str	w21, [x19, #48]
	movi.2s	v0, #1
	str	d0, [x19, #24]
	stp	xzr, xzr, [x19, #32]
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x8, _MAX_INTERRUPTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_INTERRUPTS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x2, [x19, #16]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_OnchipReset
	str	xzr, [x19, #8]
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SH2Core,8,3                    ; @SH2Core
	.comm	_MAX_INTERRUPTS,4,2             ; @MAX_INTERRUPTS
.subsections_via_symbols
