	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YabauseInit                    ## -- Begin function YabauseInit
	.p2align	4, 0x90
_YabauseInit:                           ## @YabauseInit
	.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
	movq	%rdi, %rbx
	movq	128(%rdi), %rax
	movq	_yabsys@GOTPCREL(%rip), %r15
	movq	%rax, 16(%r15)
	movl	(%rdi), %eax
	movl	%eax, (%r15)
	movl	120(%rdi), %edi
	callq	_SH2Init
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_YabSetError
	movl	$-1, %r14d
LBB0_50:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$524288, %edi                   ## imm = 0x80000
	callq	_T2MemoryInit
	movq	_BiosRom@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_50
## %bb.3:
	movl	$1048576, %edi                  ## imm = 0x100000
	callq	_T2MemoryInit
	movq	_HighWram@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_50
## %bb.4:
	movl	$1048576, %edi                  ## imm = 0x100000
	callq	_T2MemoryInit
	movq	_LowWram@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_50
## %bb.5:
	movl	$65536, %edi                    ## imm = 0x10000
	callq	_T1MemoryInit
	movq	_BupRam@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_50
## %bb.6:
	movl	116(%rbx), %edi
	callq	_LoadBackupRam
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%r12), %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	_FormatBackupRam
LBB0_8:
	movq	_BupRamWritten@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	116(%rbx), %eax
	movq	_bupfilename@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	100(%rbx), %esi
	movl	112(%rbx), %edi
	callq	_CartInit
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	callq	_MappedMemoryInit
	movl	108(%rbx), %edi
	callq	_VideoInit
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_13:
	movl	104(%rbx), %edi
	callq	_PerInit
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_10
LBB0_15:
	movl	100(%rbx), %edi
	movl	96(%rbx), %esi
	movl	92(%rbx), %edx
	movl	88(%rbx), %ecx
	movl	80(%rbx), %r9d
	movl	84(%rbx), %r8d
	callq	_Cs2Init
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_10
LBB0_17:
	xorl	%eax, %eax
	callq	_ScuInit
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_10
LBB0_19:
	movl	28(%rbx), %edi
	callq	_M68KInit
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_10
LBB0_21:
	movl	24(%rbx), %edi
	callq	_ScspInit
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_10
LBB0_23:
	xorl	%eax, %eax
	callq	_Vdp1Init
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_10
LBB0_25:
	xorl	%eax, %eax
	callq	_Vdp2Init
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_10
LBB0_27:
	movl	76(%rbx), %edi
	movl	68(%rbx), %edx
	movl	72(%rbx), %esi
	callq	_SmpcInit
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.10(%rip), %rdi
	jmp	LBB0_10
LBB0_29:
	xorl	%eax, %eax
	callq	_CheatInit
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.11(%rip), %rdi
LBB0_10:
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_YabSetError
	jmp	LBB0_50
LBB0_31:
	movl	64(%rbx), %edi
	callq	_YabauseSetVideoFormat
	movq	_CLKTYPE_26MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_YabauseChangeTiming
	movl	$1, 4(%r15)
	cmpq	$0, 56(%rbx)
	je	LBB0_33
## %bb.32:
	xorl	%eax, %eax
	callq	_EnableAutoFrameSkip
LBB0_33:
	movq	_OSDCORE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OSDChangeCore
	movq	40(%rbx), %rdi
	movl	$1, %eax
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.34:
	cmpb	$0, (%rdi)
	je	LBB0_37
## %bb.35:
	callq	_LoadBios
	testq	%rax, %rax
	je	LBB0_36
## %bb.43:
	movq	_YAB_ERR_FILENOTFOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	40(%rbx), %rsi
LBB0_44:
	callq	_YabSetError
	movl	$-2, %r14d
	jmp	LBB0_50
LBB0_36:
	xorl	%eax, %eax
LBB0_37:
	movl	%eax, 8(%r15)
	movq	$0, 24(%r15)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_YabauseResetNoLoad
	cmpq	$0, 8(%rbx)
	jne	LBB0_50
## %bb.38:
	cmpq	$0, 24(%r15)
	jne	LBB0_40
## %bb.39:
	cmpl	$0, 8(%r15)
	je	LBB0_46
LBB0_40:
	xorl	%eax, %eax
	callq	_YabauseQuickLoadGame
	testq	%rax, %rax
	je	LBB0_46
## %bb.41:
	cmpl	$0, 8(%r15)
	je	LBB0_45
## %bb.42:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.12(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	jmp	LBB0_44
LBB0_45:
	xorl	%eax, %eax
	callq	_YabauseResetNoLoad
LBB0_46:
	cmpq	$0, 16(%r15)
	je	LBB0_48
## %bb.47:
	movl	(%r15), %eax
	xorl	%edi, %edi
	cmpl	$2, %eax
	movl	$1, %ebx
	cmovgel	%eax, %ebx
	setge	%dil
	callq	_VIDSoftSetVdp1ThreadEnable
	movl	%ebx, %edi
	callq	_VIDSoftSetNumLayerThreads
	movl	%ebx, %edi
	jmp	LBB0_49
LBB0_48:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_VIDSoftSetVdp1ThreadEnable
	xorl	%edi, %edi
	callq	_VIDSoftSetNumLayerThreads
	xorl	%edi, %edi
LBB0_49:
	callq	_VIDSoftSetNumPriorityThreads
	jmp	LBB0_50
	.cfi_endproc
                                        ## -- End function
	.comm	_yabsys,32,3                    ## @yabsys
	.comm	_YAB_ERR_CANNOTINIT,4,2         ## @YAB_ERR_CANNOTINIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SH2"

	.comm	_BiosRom,8,3                    ## @BiosRom
	.comm	_HighWram,8,3                   ## @HighWram
	.comm	_LowWram,8,3                    ## @LowWram
	.comm	_BupRam,8,3                     ## @BupRam
	.comm	_BupRamWritten,8,3              ## @BupRamWritten
	.comm	_bupfilename,4,2                ## @bupfilename
L_.str.1:                               ## @.str.1
	.asciz	"Cartridge"

L_.str.2:                               ## @.str.2
	.asciz	"Video"

L_.str.3:                               ## @.str.3
	.asciz	"Peripheral"

L_.str.4:                               ## @.str.4
	.asciz	"CS2"

L_.str.5:                               ## @.str.5
	.asciz	"SCU"

L_.str.6:                               ## @.str.6
	.asciz	"M68K"

L_.str.7:                               ## @.str.7
	.asciz	"SCSP/M68K"

L_.str.8:                               ## @.str.8
	.asciz	"VDP1"

L_.str.9:                               ## @.str.9
	.asciz	"VDP2"

L_.str.10:                              ## @.str.10
	.asciz	"SMPC"

L_.str.11:                              ## @.str.11
	.asciz	"Cheat System"

	.comm	_CLKTYPE_26MHZ,4,2              ## @CLKTYPE_26MHZ
	.comm	_OSDCORE_DEFAULT,4,2            ## @OSDCORE_DEFAULT
	.comm	_YAB_ERR_FILENOTFOUND,4,2       ## @YAB_ERR_FILENOTFOUND
L_.str.12:                              ## @.str.12
	.asciz	"Game"

	.comm	_MSH2,4,2                       ## @MSH2
	.comm	_SH2Core,8,3                    ## @SH2Core
	.comm	_ssf_artist,4,2                 ## @ssf_artist
	.comm	_ssf_track_name,4,2             ## @ssf_track_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YabauseInit                    ; -- Begin function YabauseInit
	.p2align	2
_YabauseInit:                           ; @YabauseInit
	.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
	ldr	x8, [x0, #128]
Lloh0:
	adrp	x20, _yabsys@GOTPAGE
Lloh1:
	ldr	x20, [x20, _yabsys@GOTPAGEOFF]
	str	x8, [x20, #16]
	ldr	w8, [x0]
	str	w8, [x20]
	ldr	w0, [x0, #120]
	bl	_SH2Init
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_YabSetError
LBB0_3:
	mov	w0, #-1
LBB0_4:
	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_5:
	mov	w0, #524288
	bl	_T2MemoryInit
Lloh7:
	adrp	x8, _BiosRom@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BiosRom@GOTPAGEOFF]
Lloh9:
	str	x0, [x8]
	cbz	x0, LBB0_3
; %bb.6:
	mov	w0, #1048576
	bl	_T2MemoryInit
Lloh10:
	adrp	x8, _HighWram@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HighWram@GOTPAGEOFF]
Lloh12:
	str	x0, [x8]
	cbz	x0, LBB0_3
; %bb.7:
	mov	w0, #1048576
	bl	_T2MemoryInit
Lloh13:
	adrp	x8, _LowWram@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LowWram@GOTPAGEOFF]
Lloh15:
	str	x0, [x8]
	cbz	x0, LBB0_3
; %bb.8:
	mov	w0, #65536
	bl	_T1MemoryInit
Lloh16:
	adrp	x21, _BupRam@GOTPAGE
Lloh17:
	ldr	x21, [x21, _BupRam@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x0, LBB0_3
; %bb.9:
	ldr	w0, [x19, #116]
	bl	_LoadBackupRam
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x0, [x21]
	mov	w1, #65536
	bl	_FormatBackupRam
LBB0_11:
Lloh18:
	adrp	x8, _BupRamWritten@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BupRamWritten@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
Lloh21:
	adrp	x8, _bupfilename@GOTPAGE
Lloh22:
	ldr	x8, [x8, _bupfilename@GOTPAGEOFF]
	ldp	w0, w9, [x19, #112]
Lloh23:
	str	w9, [x8]
	ldr	w1, [x19, #100]
	bl	_CartInit
	cbz	x0, LBB0_13
; %bb.12:
Lloh24:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh26:
	ldr	w19, [x8]
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_13:
	bl	_MappedMemoryInit
	ldr	w0, [x19, #108]
	bl	_VideoInit
	cbz	x0, LBB0_15
; %bb.14:
Lloh29:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_15:
	ldr	w0, [x19, #104]
	bl	_PerInit
	cbz	x0, LBB0_17
; %bb.16:
Lloh34:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh36:
	ldr	w19, [x8]
Lloh37:
	adrp	x0, l_.str.3@PAGE
Lloh38:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_17:
	ldp	w1, w0, [x19, #96]
	ldp	w3, w2, [x19, #88]
	ldp	w5, w4, [x19, #80]
	bl	_Cs2Init
	cbz	x0, LBB0_19
; %bb.18:
Lloh39:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh41:
	ldr	w19, [x8]
Lloh42:
	adrp	x0, l_.str.4@PAGE
Lloh43:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_19:
	bl	_ScuInit
	cbz	x0, LBB0_21
; %bb.20:
Lloh44:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh46:
	ldr	w19, [x8]
Lloh47:
	adrp	x0, l_.str.5@PAGE
Lloh48:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_2
LBB0_21:
	ldr	w0, [x19, #28]
	bl	_M68KInit
	cbz	x0, LBB0_23
; %bb.22:
Lloh49:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh51:
	ldr	w19, [x8]
Lloh52:
	adrp	x0, l_.str.6@PAGE
Lloh53:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_2
LBB0_23:
	ldr	w0, [x19, #24]
	bl	_ScspInit
	cbz	x0, LBB0_25
; %bb.24:
Lloh54:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh56:
	ldr	w19, [x8]
Lloh57:
	adrp	x0, l_.str.7@PAGE
Lloh58:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_2
LBB0_25:
	bl	_Vdp1Init
	cbz	x0, LBB0_27
; %bb.26:
Lloh59:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh60:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh61:
	ldr	w19, [x8]
Lloh62:
	adrp	x0, l_.str.8@PAGE
Lloh63:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_2
LBB0_27:
	bl	_Vdp2Init
	cbz	x0, LBB0_29
; %bb.28:
Lloh64:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh65:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh66:
	ldr	w19, [x8]
Lloh67:
	adrp	x0, l_.str.9@PAGE
Lloh68:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_2
LBB0_29:
	ldp	w1, w0, [x19, #72]
	ldr	w2, [x19, #68]
	bl	_SmpcInit
	cbz	x0, LBB0_31
; %bb.30:
Lloh69:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh70:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh71:
	ldr	w19, [x8]
Lloh72:
	adrp	x0, l_.str.10@PAGE
Lloh73:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_2
LBB0_31:
	bl	_CheatInit
	cbz	x0, LBB0_33
; %bb.32:
Lloh74:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh75:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh76:
	ldr	w19, [x8]
Lloh77:
	adrp	x0, l_.str.11@PAGE
Lloh78:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_2
LBB0_33:
	ldr	w0, [x19, #64]
	bl	_YabauseSetVideoFormat
Lloh79:
	adrp	x8, _CLKTYPE_26MHZ@GOTPAGE
Lloh80:
	ldr	x8, [x8, _CLKTYPE_26MHZ@GOTPAGEOFF]
Lloh81:
	ldr	w0, [x8]
	bl	_YabauseChangeTiming
	mov	w8, #1
	str	w8, [x20, #4]
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_35
; %bb.34:
	bl	_EnableAutoFrameSkip
LBB0_35:
Lloh82:
	adrp	x8, _OSDCORE_DEFAULT@GOTPAGE
Lloh83:
	ldr	x8, [x8, _OSDCORE_DEFAULT@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
	bl	_OSDChangeCore
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_40
; %bb.36:
	ldrb	w8, [x0]
	cbz	w8, LBB0_40
; %bb.37:
	bl	_LoadBios
	cbz	x0, LBB0_47
; %bb.38:
Lloh85:
	adrp	x8, _YAB_ERR_FILENOTFOUND@GOTPAGE
Lloh86:
	ldr	x8, [x8, _YAB_ERR_FILENOTFOUND@GOTPAGEOFF]
Lloh87:
	ldr	w0, [x8]
	ldr	x1, [x19, #40]
LBB0_39:
	bl	_YabSetError
	mov	w0, #-2
	b	LBB0_4
LBB0_40:
	mov	w8, #1
LBB0_41:
	str	w8, [x20, #8]
	str	xzr, [x20, #24]
	bl	_YabauseResetNoLoad
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_53
; %bb.42:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_44
; %bb.43:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_49
LBB0_44:
	bl	_YabauseQuickLoadGame
	cbz	x0, LBB0_49
; %bb.45:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_48
; %bb.46:
Lloh88:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh89:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh90:
	ldr	w19, [x8]
Lloh91:
	adrp	x0, l_.str.12@PAGE
Lloh92:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	b	LBB0_39
LBB0_47:
	mov	w8, #0
	b	LBB0_41
LBB0_48:
	bl	_YabauseResetNoLoad
LBB0_49:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_51
; %bb.50:
	ldr	w8, [x20]
	cmp	w8, #1
	csinc	w19, w8, wzr, gt
	cset	w0, gt
	bl	_VIDSoftSetVdp1ThreadEnable
	mov	x0, x19
	bl	_VIDSoftSetNumLayerThreads
	mov	x0, x19
	b	LBB0_52
LBB0_51:
	mov	w0, #0
	bl	_VIDSoftSetVdp1ThreadEnable
	mov	w0, #0
	bl	_VIDSoftSetNumLayerThreads
	mov	w0, #0
LBB0_52:
	bl	_VIDSoftSetNumPriorityThreads
LBB0_53:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.cfi_endproc
                                        ; -- End function
	.comm	_yabsys,32,3                    ; @yabsys
	.comm	_YAB_ERR_CANNOTINIT,4,2         ; @YAB_ERR_CANNOTINIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SH2"

	.comm	_BiosRom,8,3                    ; @BiosRom
	.comm	_HighWram,8,3                   ; @HighWram
	.comm	_LowWram,8,3                    ; @LowWram
	.comm	_BupRam,8,3                     ; @BupRam
	.comm	_BupRamWritten,8,3              ; @BupRamWritten
	.comm	_bupfilename,4,2                ; @bupfilename
l_.str.1:                               ; @.str.1
	.asciz	"Cartridge"

l_.str.2:                               ; @.str.2
	.asciz	"Video"

l_.str.3:                               ; @.str.3
	.asciz	"Peripheral"

l_.str.4:                               ; @.str.4
	.asciz	"CS2"

l_.str.5:                               ; @.str.5
	.asciz	"SCU"

l_.str.6:                               ; @.str.6
	.asciz	"M68K"

l_.str.7:                               ; @.str.7
	.asciz	"SCSP/M68K"

l_.str.8:                               ; @.str.8
	.asciz	"VDP1"

l_.str.9:                               ; @.str.9
	.asciz	"VDP2"

l_.str.10:                              ; @.str.10
	.asciz	"SMPC"

l_.str.11:                              ; @.str.11
	.asciz	"Cheat System"

	.comm	_CLKTYPE_26MHZ,4,2              ; @CLKTYPE_26MHZ
	.comm	_OSDCORE_DEFAULT,4,2            ; @OSDCORE_DEFAULT
	.comm	_YAB_ERR_FILENOTFOUND,4,2       ; @YAB_ERR_FILENOTFOUND
l_.str.12:                              ; @.str.12
	.asciz	"Game"

	.comm	_MSH2,4,2                       ; @MSH2
	.comm	_SH2Core,8,3                    ; @SH2Core
	.comm	_ssf_artist,4,2                 ; @ssf_artist
	.comm	_ssf_track_name,4,2             ; @ssf_track_name
.subsections_via_symbols
