	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SH2Init                        ## -- Begin function SH2Init
	.p2align	4, 0x90
_SH2Init:                               ## @SH2Init
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	_MSH2@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rdi
	callq	_SH2TrackInfLoopInit
	testq	%rax, %rax
	je	LBB0_2
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r15), %rax
	movq	$0, (%rax)
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	_SSH2@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %rdi
	callq	_SH2TrackInfLoopInit
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:
	movq	(%r12), %rax
	movabsq	$140737488355329, %rcx          ## imm = 0x800000000001
	movq	%rcx, (%rax)
	movq	_SH2CORE_DEFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%r14d, (%rcx)
	cmovnel	%r14d, %eax
	movq	_SH2CoreList@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.5:
	addq	$8, %rdx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rcx)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rdx), %rcx
	addq	$8, %rdx
	testq	%rcx, %rcx
	jne	LBB0_7
LBB0_9:
	movq	_SH2Core@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_10
	jmp	LBB0_11
LBB0_8:
	movq	_SH2Core@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
LBB0_10:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	*8(%rcx)
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	(%r15), %rdi
	callq	_free
	movq	(%r12), %rdi
	callq	_free
	movq	$0, (%r12)
	movq	$0, (%r15)
	movl	$-1, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MSH2,8,3                       ## @MSH2
	.comm	_SSH2,8,3                       ## @SSH2
	.comm	_SH2CORE_DEFAULT,4,2            ## @SH2CORE_DEFAULT
	.comm	_SH2CoreList,8,3                ## @SH2CoreList
	.comm	_SH2Core,8,3                    ## @SH2Core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function SH2Init
lCPI0_0:
	.long	1                               ; 0x1
	.long	32768                           ; 0x8000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SH2Init
	.p2align	2
_SH2Init:                               ; @SH2Init
	.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
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
Lloh0:
	adrp	x20, _MSH2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MSH2@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_SH2TrackInfLoopInit
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
LBB0_4:
	ldr	x8, [x20]
	str	xzr, [x8]
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
Lloh2:
	adrp	x21, _SSH2@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SSH2@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x0, LBB0_2
; %bb.5:
	bl	_SH2TrackInfLoopInit
	cbnz	x0, LBB0_2
; %bb.6:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, lCPI0_0@PAGE
Lloh5:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
Lloh6:
	adrp	x8, _SH2CORE_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SH2CORE_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w19
	csel	w9, wzr, w19, eq
Lloh9:
	adrp	x8, _SH2CoreList@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SH2CoreList@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x8]
	ldr	x8, [x10]
	cbz	x8, LBB0_10
; %bb.7:
	add	x10, x10, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	cmp	w11, w9
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x10], #8
	cbnz	x8, LBB0_8
LBB0_10:
Lloh12:
	adrp	x8, _SH2Core@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SH2Core@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbnz	x8, LBB0_12
	b	LBB0_13
LBB0_11:
Lloh15:
	adrp	x9, _SH2Core@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SH2Core@GOTPAGEOFF]
Lloh17:
	str	x8, [x9]
LBB0_12:
	ldr	x8, [x8, #8]
	blr	x8
	cbz	x0, LBB0_3
LBB0_13:
	ldr	x0, [x20]
	bl	_free
	ldr	x0, [x21]
	bl	_free
	str	xzr, [x21]
	str	xzr, [x20]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSH2,8,3                       ; @MSH2
	.comm	_SSH2,8,3                       ; @SSH2
	.comm	_SH2CORE_DEFAULT,4,2            ; @SH2CORE_DEFAULT
	.comm	_SH2CoreList,8,3                ; @SH2CoreList
	.comm	_SH2Core,8,3                    ; @SH2Core
.subsections_via_symbols
