	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Java_org_yabause_android_YabauseRunnable_init ## -- Begin function Java_org_yabause_android_YabauseRunnable_init
	.p2align	4, 0x90
_Java_org_yabause_android_YabauseRunnable_init: ## @Java_org_yabause_android_YabauseRunnable_init
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_initEGLFunc
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	movq	_yabause@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	_M68KCORE_C68K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_PERCORE_DUMMY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_SH2CORE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	_VIDCORE_SOFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_SNDCORE_AUDIOTRACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_CDCORE_ISO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	xorl	%eax, %eax
	callq	_GetCartridgeType
	movl	%eax, -40(%rbp)
	movq	$0, -48(%rbp)
	xorl	%eax, %eax
	callq	_GetBiosPath
	movl	%eax, -52(%rbp)
	xorl	%eax, %eax
	callq	_GetGamePath
	movl	%eax, -56(%rbp)
	xorl	%eax, %eax
	callq	_GetMemoryPath
	movl	%eax, -60(%rbp)
	movq	_mpegpath@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	xorl	%eax, %eax
	callq	_GetCartridgePath
	movl	%eax, -68(%rbp)
	movq	_VIDEOFORMATTYPE_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -88(%rbp)
	movq	%rbx, %rdi
	callq	_YabauseInit
	movl	%eax, %r14d
	movq	_OSDCORE_SOFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OSDChangeCore
	xorl	%eax, %eax
	callq	_PerPortReset
	movq	_PORTDATA1@GOTPCREL(%rip), %rdi
	callq	_PerPadAdd
	movq	%rax, %rbx
	movq	_PERPAD_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movq	%rbx, %rdx
	callq	_PerSetKey
	movq	_PERPAD_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movq	%rbx, %rdx
	callq	_PerSetKey
	movq	_PERPAD_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movq	%rbx, %rdx
	callq	_PerSetKey
	movq	_PERPAD_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movq	%rbx, %rdx
	callq	_PerSetKey
	movq	_PERPAD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movq	%rbx, %rdx
	callq	_PerSetKey
	movq	_PERPAD_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movq	%rbx, %rdx
	callq	_PerSetKey
	movq	_PERPAD_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movq	%rbx, %rdx
	callq	_PerSetKey
	movq	_PERPAD_C@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movq	%rbx, %rdx
	callq	_PerSetKey
	movq	_PERPAD_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movq	%rbx, %rdx
	callq	_PerSetKey
	movq	_PERPAD_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movq	%rbx, %rdx
	callq	_PerSetKey
	movq	_PERPAD_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movq	%rbx, %rdx
	callq	_PerSetKey
	movl	$1, %edi
	callq	_ScspSetFrameAccurate
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_yabause,4,2                    ## @yabause
	.comm	_M68KCORE_C68K,4,2              ## @M68KCORE_C68K
	.comm	_PERCORE_DUMMY,4,2              ## @PERCORE_DUMMY
	.comm	_SH2CORE_DEFAULT,4,2            ## @SH2CORE_DEFAULT
	.comm	_VIDCORE_SOFT,4,2               ## @VIDCORE_SOFT
	.comm	_SNDCORE_AUDIOTRACK,4,2         ## @SNDCORE_AUDIOTRACK
	.comm	_CDCORE_ISO,4,2                 ## @CDCORE_ISO
	.comm	_mpegpath,4,2                   ## @mpegpath
	.comm	_VIDEOFORMATTYPE_NTSC,4,2       ## @VIDEOFORMATTYPE_NTSC
	.comm	_OSDCORE_SOFT,4,2               ## @OSDCORE_SOFT
	.comm	_PORTDATA1,4,2                  ## @PORTDATA1
	.comm	_PERPAD_UP,4,2                  ## @PERPAD_UP
	.comm	_PERPAD_RIGHT,4,2               ## @PERPAD_RIGHT
	.comm	_PERPAD_DOWN,4,2                ## @PERPAD_DOWN
	.comm	_PERPAD_LEFT,4,2                ## @PERPAD_LEFT
	.comm	_PERPAD_START,4,2               ## @PERPAD_START
	.comm	_PERPAD_A,4,2                   ## @PERPAD_A
	.comm	_PERPAD_B,4,2                   ## @PERPAD_B
	.comm	_PERPAD_C,4,2                   ## @PERPAD_C
	.comm	_PERPAD_X,4,2                   ## @PERPAD_X
	.comm	_PERPAD_Y,4,2                   ## @PERPAD_Y
	.comm	_PERPAD_Z,4,2                   ## @PERPAD_Z
	.comm	_SNDCORE_OPENSL,4,2             ## @SNDCORE_OPENSL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Java_org_yabause_android_YabauseRunnable_init ; -- Begin function Java_org_yabause_android_YabauseRunnable_init
	.p2align	2
_Java_org_yabause_android_YabauseRunnable_init: ; @Java_org_yabause_android_YabauseRunnable_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
	bl	_initEGLFunc
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
Lloh0:
	adrp	x8, _yabause@GOTPAGE
Lloh1:
	ldr	x8, [x8, _yabause@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh3:
	adrp	x8, _M68KCORE_C68K@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M68KCORE_C68K@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PERCORE_DUMMY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PERCORE_DUMMY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #72]
Lloh9:
	adrp	x8, _SH2CORE_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SH2CORE_DEFAULT@GOTPAGEOFF]
Lloh11:
	adrp	x9, _VIDCORE_SOFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VIDCORE_SOFT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _SNDCORE_AUDIOTRACK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SNDCORE_AUDIOTRACK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	stp	w10, w9, [sp, #64]
Lloh18:
	adrp	x9, _CDCORE_ISO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CDCORE_ISO@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	str	w8, [sp]
	str	w9, [sp, #60]
	bl	_GetCartridgeType
	str	w0, [sp, #56]
	str	xzr, [sp, #48]
	bl	_GetBiosPath
	str	w0, [sp, #44]
	bl	_GetGamePath
	str	w0, [sp, #40]
	bl	_GetMemoryPath
Lloh21:
	adrp	x8, _mpegpath@GOTPAGE
Lloh22:
	ldr	x8, [x8, _mpegpath@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #32]
	bl	_GetCartridgePath
Lloh24:
	adrp	x8, _VIDEOFORMATTYPE_NTSC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VIDEOFORMATTYPE_NTSC@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	mov	x0, sp
	bl	_YabauseInit
	mov	x19, x0
Lloh27:
	adrp	x8, _OSDCORE_SOFT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _OSDCORE_SOFT@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_OSDChangeCore
	bl	_PerPortReset
Lloh30:
	adrp	x0, _PORTDATA1@GOTPAGE
Lloh31:
	ldr	x0, [x0, _PORTDATA1@GOTPAGEOFF]
	bl	_PerPadAdd
	mov	x20, x0
Lloh32:
	adrp	x8, _PERPAD_UP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PERPAD_UP@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x20
	bl	_PerSetKey
Lloh35:
	adrp	x8, _PERPAD_RIGHT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PERPAD_RIGHT@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x20
	bl	_PerSetKey
Lloh38:
	adrp	x8, _PERPAD_DOWN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PERPAD_DOWN@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x20
	bl	_PerSetKey
Lloh41:
	adrp	x8, _PERPAD_LEFT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PERPAD_LEFT@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x20
	bl	_PerSetKey
Lloh44:
	adrp	x8, _PERPAD_START@GOTPAGE
Lloh45:
	ldr	x8, [x8, _PERPAD_START@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x20
	bl	_PerSetKey
Lloh47:
	adrp	x8, _PERPAD_A@GOTPAGE
Lloh48:
	ldr	x8, [x8, _PERPAD_A@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x20
	bl	_PerSetKey
Lloh50:
	adrp	x8, _PERPAD_B@GOTPAGE
Lloh51:
	ldr	x8, [x8, _PERPAD_B@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x20
	bl	_PerSetKey
Lloh53:
	adrp	x8, _PERPAD_C@GOTPAGE
Lloh54:
	ldr	x8, [x8, _PERPAD_C@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x20
	bl	_PerSetKey
Lloh56:
	adrp	x8, _PERPAD_X@GOTPAGE
Lloh57:
	ldr	x8, [x8, _PERPAD_X@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x20
	bl	_PerSetKey
Lloh59:
	adrp	x8, _PERPAD_Y@GOTPAGE
Lloh60:
	ldr	x8, [x8, _PERPAD_Y@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x20
	bl	_PerSetKey
Lloh62:
	adrp	x8, _PERPAD_Z@GOTPAGE
Lloh63:
	ldr	x8, [x8, _PERPAD_Z@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x20
	bl	_PerSetKey
	mov	w0, #1
	bl	_ScspSetFrameAccurate
	b	LBB0_3
LBB0_2:
	mov	w19, #-1
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_yabause,4,2                    ; @yabause
	.comm	_M68KCORE_C68K,4,2              ; @M68KCORE_C68K
	.comm	_PERCORE_DUMMY,4,2              ; @PERCORE_DUMMY
	.comm	_SH2CORE_DEFAULT,4,2            ; @SH2CORE_DEFAULT
	.comm	_VIDCORE_SOFT,4,2               ; @VIDCORE_SOFT
	.comm	_SNDCORE_AUDIOTRACK,4,2         ; @SNDCORE_AUDIOTRACK
	.comm	_CDCORE_ISO,4,2                 ; @CDCORE_ISO
	.comm	_mpegpath,4,2                   ; @mpegpath
	.comm	_VIDEOFORMATTYPE_NTSC,4,2       ; @VIDEOFORMATTYPE_NTSC
	.comm	_OSDCORE_SOFT,4,2               ; @OSDCORE_SOFT
	.comm	_PORTDATA1,4,2                  ; @PORTDATA1
	.comm	_PERPAD_UP,4,2                  ; @PERPAD_UP
	.comm	_PERPAD_RIGHT,4,2               ; @PERPAD_RIGHT
	.comm	_PERPAD_DOWN,4,2                ; @PERPAD_DOWN
	.comm	_PERPAD_LEFT,4,2                ; @PERPAD_LEFT
	.comm	_PERPAD_START,4,2               ; @PERPAD_START
	.comm	_PERPAD_A,4,2                   ; @PERPAD_A
	.comm	_PERPAD_B,4,2                   ; @PERPAD_B
	.comm	_PERPAD_C,4,2                   ; @PERPAD_C
	.comm	_PERPAD_X,4,2                   ; @PERPAD_X
	.comm	_PERPAD_Y,4,2                   ; @PERPAD_Y
	.comm	_PERPAD_Z,4,2                   ; @PERPAD_Z
	.comm	_SNDCORE_OPENSL,4,2             ; @SNDCORE_OPENSL
.subsections_via_symbols
