	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YabauseStartSlave              ## -- Begin function YabauseStartSlave
	.p2align	4, 0x90
_YabauseStartSlave:                     ## @YabauseStartSlave
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_yabsys@GOTPCREL(%rip), %r14
	cmpq	$0, 8(%r14)
	movq	_SSH2@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	je	LBB0_5
## %bb.1:
	movq	_CurrentSH2@GOTPCREL(%rip), %r15
	movq	%rdi, (%r15)
	movl	$-32, %edi
	movl	$-1520827407, %esi              ## imm = 0xA55A03F1
	callq	_MappedMemoryWriteLong
	movl	$-28, %edi
	movl	$-1520828164, %esi              ## imm = 0xA55A00FC
	callq	_MappedMemoryWriteLong
	movl	$-24, %edi
	movl	$-1520806571, %esi              ## imm = 0xA55A5555
	callq	_MappedMemoryWriteLong
	movl	$-20, %edi
	movl	$-1520828304, %esi              ## imm = 0xA55A0070
	callq	_MappedMemoryWriteLong
	movl	$-288, %edi                     ## imm = 0xFEE0
	xorl	%esi, %esi
	callq	_MappedMemoryWriteWord
	movl	$-286, %edi                     ## imm = 0xFEE2
	xorl	%esi, %esi
	callq	_MappedMemoryWriteWord
	movl	$-416, %edi                     ## imm = 0xFE60
	movl	$3840, %esi                     ## imm = 0xF00
	callq	_MappedMemoryWriteWord
	movl	$-414, %edi                     ## imm = 0xFE62
	movl	$24673, %esi                    ## imm = 0x6061
	callq	_MappedMemoryWriteWord
	movl	$-412, %edi                     ## imm = 0xFE64
	movl	$25187, %esi                    ## imm = 0x6263
	callq	_MappedMemoryWriteWord
	movl	$-410, %edi                     ## imm = 0xFE66
	movl	$25701, %esi                    ## imm = 0x6465
	callq	_MappedMemoryWriteWord
	movl	$-408, %edi                     ## imm = 0xFE68
	movl	$26112, %esi                    ## imm = 0x6600
	callq	_MappedMemoryWriteWord
	movl	$-284, %edi                     ## imm = 0xFEE4
	movl	$26729, %esi                    ## imm = 0x6869
	callq	_MappedMemoryWriteWord
	movl	$-88, %edi
	movl	$108, %esi
	callq	_MappedMemoryWriteLong
	movl	$-96, %edi
	movl	$109, %esi
	callq	_MappedMemoryWriteLong
	movl	$-244, %edi
	movl	$110, %esi
	callq	_MappedMemoryWriteLong
	movl	$-496, %edi                     ## imm = 0xFE10
	movl	$129, %esi
	callq	_MappedMemoryWriteLong
	movq	_MSH2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	(%rbx), %rdi
	movq	%rdi, %rsi
	callq	_SH2GetRegisters
	xorl	%eax, %eax
	callq	_Cs2GetSlaveStackAdress
	movq	(%rbx), %rcx
	movq	8(%rcx), %rdx
	movq	%rax, 120(%rdx)
	movl	$100664320, (%rcx)              ## imm = 0x6000400
	movl	$100663888, %edi                ## imm = 0x6000250
	callq	_MappedMemoryReadLong
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movl	$100663980, %edi                ## imm = 0x60002AC
	callq	_MappedMemoryReadLong
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	$100663980, %edi                ## imm = 0x60002AC
	callq	_MappedMemoryReadLong
	movq	(%rbx), %rdi
	movq	8(%rdi), %rcx
	movq	%rax, 120(%rcx)
	jmp	LBB0_4
LBB0_5:
	callq	_SH2PowerOn
	jmp	LBB0_6
LBB0_2:
	movq	(%rbx), %rdi
LBB0_4:
	movq	%rdi, %rsi
	callq	_SH2SetRegisters
LBB0_6:
	movl	$1, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_yabsys,16,3                    ## @yabsys
	.comm	_SSH2,8,3                       ## @SSH2
	.comm	_CurrentSH2,8,3                 ## @CurrentSH2
	.comm	_MSH2,8,3                       ## @MSH2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YabauseStartSlave              ; -- Begin function YabauseStartSlave
	.p2align	2
_YabauseStartSlave:                     ; @YabauseStartSlave
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x19, _yabsys@GOTPAGE
Lloh1:
	ldr	x19, [x19, _yabsys@GOTPAGEOFF]
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x20, _SSH2@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SSH2@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w21, #684
	movk	w21, #1536, lsl #16
Lloh4:
	adrp	x22, _CurrentSH2@GOTPAGE
Lloh5:
	ldr	x22, [x22, _CurrentSH2@GOTPAGEOFF]
	str	x0, [x22]
	mov	w8, #897
	mov	w23, #112
	movk	w23, #42330, lsl #16
	orr	w1, w23, w8
	mov	w0, #-32
	bl	_MappedMemoryWriteLong
	mov	w8, #140
	orr	w1, w23, w8
	mov	w0, #-28
	bl	_MappedMemoryWriteLong
	mov	w0, #-24
	mov	w1, #21845
	movk	w1, #42330, lsl #16
	bl	_MappedMemoryWriteLong
	mov	w0, #-20
	mov	w1, #112
	movk	w1, #42330, lsl #16
	bl	_MappedMemoryWriteLong
	mov	w0, #-288
	mov	w1, #0
	bl	_MappedMemoryWriteWord
	mov	w0, #-286
	mov	w1, #0
	bl	_MappedMemoryWriteWord
	mov	w0, #-416
	mov	w1, #3840
	bl	_MappedMemoryWriteWord
	mov	w0, #-414
	mov	w1, #24673
	bl	_MappedMemoryWriteWord
	mov	w0, #-412
	mov	w1, #25187
	bl	_MappedMemoryWriteWord
	mov	w0, #-410
	mov	w1, #25701
	bl	_MappedMemoryWriteWord
	mov	w0, #-408
	mov	w1, #26112
	bl	_MappedMemoryWriteWord
	mov	w0, #-284
	mov	w1, #26729
	bl	_MappedMemoryWriteWord
	mov	w0, #-88
	mov	w1, #108
	bl	_MappedMemoryWriteLong
	mov	w0, #-96
	mov	w1, #109
	bl	_MappedMemoryWriteLong
	mov	w0, #-244
	mov	w1, #110
	bl	_MappedMemoryWriteLong
	mov	w0, #-496
	mov	w1, #129
	bl	_MappedMemoryWriteLong
Lloh6:
	adrp	x8, _MSH2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSH2@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x22]
	ldr	x0, [x20]
	mov	x1, x0
	bl	_SH2GetRegisters
	bl	_Cs2GetSlaveStackAdress
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	str	x0, [x9, #120]
	add	w9, w21, #340
	str	w9, [x8]
	sub	w0, w21, #92
	bl	_MappedMemoryReadLong
	ldr	x8, [x20]
	str	x0, [x8, #16]
	mov	w0, #684
	movk	w0, #1536, lsl #16
	bl	_MappedMemoryReadLong
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #684
	movk	w0, #1536, lsl #16
	bl	_MappedMemoryReadLong
	mov	x8, x0
	ldr	x0, [x20]
	ldr	x9, [x0, #8]
	str	x8, [x9, #120]
	b	LBB0_5
LBB0_3:
	bl	_SH2PowerOn
	b	LBB0_6
LBB0_4:
	ldr	x0, [x20]
LBB0_5:
	mov	x1, x0
	bl	_SH2SetRegisters
LBB0_6:
	mov	w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_yabsys,16,3                    ; @yabsys
	.comm	_SSH2,8,3                       ; @SSH2
	.comm	_CurrentSH2,8,3                 ; @CurrentSH2
	.comm	_MSH2,8,3                       ; @MSH2
.subsections_via_symbols
