	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YuiInit                        ## -- Begin function YuiInit
	.p2align	4, 0x90
_YuiInit:                               ## @YuiInit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -24
	movq	_PERCORE_DC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movl	%edi, -128(%rbp)
	movq	_VIDCORE_DC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_M68KCORE_C68K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_SNDCORE_DUMMY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_CDCORE_ARCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_CART_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_REGION_AUTODETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_emulate_bios@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_bios@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -88(%rbp)
	movups	%xmm0, -72(%rbp)
	movq	$0, -56(%rbp)
	movq	_VIDEOFORMATTYPE_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movups	%xmm0, -120(%rbp)
	movq	$0, -104(%rbp)
	leaq	-128(%rbp), %rdi
	callq	_YabauseInit
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movl	$-1, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_PERCore@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PERCORE_DC,4,2                 ## @PERCORE_DC
	.comm	_VIDCORE_DC,4,2                 ## @VIDCORE_DC
	.comm	_M68KCORE_C68K,4,2              ## @M68KCORE_C68K
	.comm	_SNDCORE_DUMMY,4,2              ## @SNDCORE_DUMMY
	.comm	_CDCORE_ARCH,4,2                ## @CDCORE_ARCH
	.comm	_CART_NONE,4,2                  ## @CART_NONE
	.comm	_REGION_AUTODETECT,4,2          ## @REGION_AUTODETECT
	.comm	_emulate_bios,8,3               ## @emulate_bios
	.comm	_bios,8,3                       ## @bios
	.comm	_VIDEOFORMATTYPE_NTSC,4,2       ## @VIDEOFORMATTYPE_NTSC
	.comm	_PERCore,8,3                    ## @PERCore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YuiInit                        ; -- Begin function YuiInit
	.p2align	2
_YuiInit:                               ; @YuiInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _PERCORE_DC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERCORE_DC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #120]
	str	w0, [sp, #8]
Lloh3:
	adrp	x8, _VIDCORE_DC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDCORE_DC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _M68KCORE_C68K@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M68KCORE_C68K@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #112]
Lloh9:
	adrp	x8, _SNDCORE_DUMMY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SNDCORE_DUMMY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _CDCORE_ARCH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CDCORE_ARCH@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #104]
Lloh15:
	adrp	x8, _CART_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CART_NONE@GOTPAGEOFF]
Lloh17:
	adrp	x9, _REGION_AUTODETECT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _REGION_AUTODETECT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #96]
Lloh21:
	adrp	x8, _emulate_bios@GOTPAGE
Lloh22:
	ldr	x8, [x8, _emulate_bios@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _bios@GOTPAGE
Lloh25:
	ldr	x9, [x9, _bios@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, x9, xzr, eq
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
Lloh27:
	adrp	x9, _VIDEOFORMATTYPE_NTSC@GOTPAGE
Lloh28:
	ldr	x9, [x9, _VIDEOFORMATTYPE_NTSC@GOTPAGEOFF]
	stp	xzr, x8, [sp, #80]
Lloh29:
	ldr	w8, [x9]
	str	w8, [sp, #40]
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
	add	x0, sp, #8
	bl	_YabauseInit
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
Lloh30:
	adrp	x19, _PERCore@GOTPAGE
Lloh31:
	ldr	x19, [x19, _PERCore@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	blr	x8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PERCORE_DC,4,2                 ; @PERCORE_DC
	.comm	_VIDCORE_DC,4,2                 ; @VIDCORE_DC
	.comm	_M68KCORE_C68K,4,2              ; @M68KCORE_C68K
	.comm	_SNDCORE_DUMMY,4,2              ; @SNDCORE_DUMMY
	.comm	_CDCORE_ARCH,4,2                ; @CDCORE_ARCH
	.comm	_CART_NONE,4,2                  ; @CART_NONE
	.comm	_REGION_AUTODETECT,4,2          ; @REGION_AUTODETECT
	.comm	_emulate_bios,8,3               ; @emulate_bios
	.comm	_bios,8,3                       ; @bios
	.comm	_VIDEOFORMATTYPE_NTSC,4,2       ; @VIDEOFORMATTYPE_NTSC
	.comm	_PERCore,8,3                    ; @PERCore
.subsections_via_symbols
