	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YabauseQuickLoadGame           ## -- Begin function YabauseQuickLoadGame
	.p2align	4, 0x90
_YabauseQuickLoadGame:                  ## @YabauseQuickLoadGame
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_Cs2Area@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 16(%rax)
	movq	$0, (%rax)
	movl	$150, %edi
	callq	_Cs2ReadUnFilteredSector
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movslq	(%rbx), %rcx
	movq	-8(%rax,%rcx,8), %rax
	movq	(%rax), %r14
	xorl	%eax, %eax
	callq	_YabauseSpeedySetup
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$15, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_Cs2FreeBlock
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movl	$255, -4(%rax,%rcx,4)
	movl	$0, (%rbx)
LBB0_3:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	896(%r14), %eax
	movl	900(%r14), %ecx
	shll	$24, %eax
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	904(%r14), %r13d
	shll	$8, %r13d
	orl	%ecx, %r13d
	orl	908(%r14), %r13d
	movl	%r13d, %r15d
	sarl	$11, %r15d
	xorl	%r12d, %r12d
	testl	$2047, %r13d                    ## imm = 0x7FF
	setne	%r12b
	movl	960(%r14), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	964(%r14), %eax
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	968(%r14), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	972(%r14), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_Cs2FreeBlock
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movl	$255, -4(%rax,%rcx,4)
	movl	$0, (%rbx)
	addl	%r15d, %r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_14
## %bb.5:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$100671488, %r15d               ## imm = 0x6002000
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	addl	$-2048, %r13d                   ## imm = 0xF800
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_Cs2FreeBlock
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movl	$255, -4(%rax,%rcx,4)
	movl	$0, (%rbx)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	addq	$2048, %r15                     ## imm = 0x800
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	leal	150(%rbx), %edi
	callq	_Cs2ReadUnFilteredSector
	testq	%rax, %rax
	je	LBB0_26
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r13d
	movq	16(%rax), %rdx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movslq	(%rax), %rcx
	movq	-8(%rdx,%rcx,8), %rax
	movq	(%rax), %r14
	cmpl	$2047, %r13d                    ## imm = 0x7FF
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14,%rbx,4), %esi
	leal	(%r15,%rbx), %edi
	callq	_MappedMemoryWriteByte
	incq	%rbx
	cmpq	$2048, %rbx                     ## imm = 0x800
	jne	LBB0_10
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	testq	%r13, %r13
	je	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r15,%r12), %edi
	movl	(%r14,%r12,4), %esi
	callq	_MappedMemoryWriteByte
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_13
	jmp	LBB0_6
LBB0_14:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	shll	$11, %esi
	movl	$100671488, %edi                ## imm = 0x6002000
	callq	_SH2WriteNotify
	movl	$166, %edi
	callq	_Cs2ReadUnFilteredSector
	testq	%rax, %rax
	movl	$-1, %r15d
	je	LBB0_3
## %bb.15:
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movslq	(%rbx), %rcx
	movq	-8(%rax,%rcx,8), %rax
	movl	$624, %edi                      ## imm = 0x270
	addq	(%rax), %rdi
	leaq	-72(%rbp), %rsi
	callq	_Cs2CopyDirRecord
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_Cs2FreeBlock
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movl	$255, -4(%rax,%rcx,4)
	movl	$0, (%rbx)
	movl	$150, %edi
	addl	-72(%rbp), %edi
	callq	_Cs2ReadUnFilteredSector
	testq	%rax, %rax
	je	LBB0_3
## %bb.16:
	movq	%rax, %r14
	movl	-100(%rbp), %eax                ## 4-byte Reload
	shll	$24, %eax
	movl	-104(%rbp), %ecx                ## 4-byte Reload
	shll	$16, %ecx
	orl	%eax, %ecx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	shll	$8, %eax
	orl	%ecx, %eax
	orq	%rax, -80(%rbp)                 ## 8-byte Folded Spill
	movq	16(%r14), %rax
	movslq	(%r14), %rcx
	movq	-8(%rax,%rcx,8), %rax
	movq	(%rax), %r12
	leaq	-72(%rbp), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_Cs2CopyDirRecord
	movslq	-64(%rbp), %rax
	leaq	(%r12,%rax,4), %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_Cs2CopyDirRecord
	movslq	-64(%rbp), %rax
	leaq	(%r12,%rax,4), %rdi
	movq	%r13, %rsi
	callq	_Cs2CopyDirRecord
	movl	-68(%rbp), %r15d
	movl	%r15d, %r12d
	sarl	$11, %r12d
	xorl	%ebx, %ebx
	testl	$2047, %r15d                    ## imm = 0x7FF
	setne	%bl
	movq	$0, 24(%r14)
	movq	16(%r14), %rax
	movslq	(%r14), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_Cs2FreeBlock
	movq	8(%r14), %rax
	movslq	(%r14), %rcx
	movl	$255, -4(%rax,%rcx,4)
	movl	$0, (%r14)
	addl	%r12d, %ebx
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	je	LBB0_27
## %bb.17:
	xorl	%ebx, %ebx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	addl	$-2048, %r15d                   ## imm = 0xF800
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_Cs2FreeBlock
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movl	$255, -4(%rax,%rcx,4)
	movl	$0, (%rbx)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	incl	%ebx
	addq	$2048, %r13                     ## imm = 0x800
	cmpl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_27
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	movl	-72(%rbp), %eax
	leal	(%rbx,%rax), %edi
	addl	$150, %edi
	callq	_Cs2ReadUnFilteredSector
	testq	%rax, %rax
	je	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r15d
	movq	16(%rax), %rdx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movslq	(%rax), %rcx
	movq	-8(%rdx,%rcx,8), %rax
	movq	(%rax), %r12
	cmpl	$2047, %r15d                    ## imm = 0x7FF
	jle	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rbx,%r13), %edi
	movl	(%r12,%rbx,4), %esi
	callq	_MappedMemoryWriteByte
	incq	%rbx
	cmpq	$2048, %rbx                     ## imm = 0x800
	jne	LBB0_22
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	testq	%r15, %r15
	je	LBB0_18
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r14,%r13), %edi
	movl	(%r12,%r14,4), %esi
	callq	_MappedMemoryWriteByte
	incq	%r14
	cmpq	%r14, %r15
	jne	LBB0_25
	jmp	LBB0_18
LBB0_26:
	movl	$-1, %r15d
	jmp	LBB0_3
LBB0_27:
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	shll	$11, %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_SH2WriteNotify
	movq	_MSH2@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	%rdi, %rsi
	callq	_SH2GetRegisters
	movq	(%rbx), %rax
	movl	$100675072, (%rax)              ## imm = 0x6002E00
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_Cs2GetMasterStackAdress
	movq	(%rbx), %rdi
	movq	8(%rdi), %rcx
	movl	%eax, 60(%rcx)
	movq	%rdi, %rsi
	callq	_SH2SetRegisters
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SEGA SEGASATURN"

	.comm	_MSH2,8,3                       ## @MSH2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YabauseQuickLoadGame           ; -- Begin function YabauseQuickLoadGame
	.p2align	2
_YabauseQuickLoadGame:                  ; @YabauseQuickLoadGame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Cs2Area@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	str	x9, [x8, #16]
	str	xzr, [x8]
	mov	w0, #150
	bl	_Cs2ReadUnFilteredSector
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldrsw	x9, [x0]
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
	ldr	x20, [x8]
	bl	_YabauseSpeedySetup
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #15
	bl	_memcmp
	cbz	x0, LBB0_5
; %bb.2:
	str	xzr, [x19, #24]
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_Cs2FreeBlock
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	mov	w9, #255
	stur	w9, [x8, #-4]
	str	wzr, [x19]
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	ldr	w8, [x20, #896]
	ldr	w9, [x20, #900]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldr	w9, [x20, #904]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x20, #908]
	orr	w21, w8, w9
	asr	w8, w21, #11
	tst	w21, #0x7ff
	cinc	w26, w8, ne
	ldr	w9, [x20, #960]
	ldr	w25, [x20, #964]
	ldr	w8, [x20, #968]
	stp	w8, w9, [sp]                    ; 8-byte Folded Spill
	ldr	w8, [x20, #972]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	str	xzr, [x19, #24]
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_Cs2FreeBlock
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	mov	w22, #255
	stur	w22, [x8, #-4]
	str	wzr, [x19]
	cbz	w26, LBB0_14
; %bb.6:
	mov	x27, #0
	mov	w28, #8192
	movk	w28, #1536, lsl #16
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	sub	w21, w24, #2048
	str	xzr, [x19, #24]
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_Cs2FreeBlock
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	stur	w22, [x8, #-4]
	str	wzr, [x19]
	add	x27, x27, #1
	add	x28, x28, #2048
	cmp	x27, x26
	b.eq	LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	add	w0, w27, #150
	bl	_Cs2ReadUnFilteredSector
	cbz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x19, x0
	mov	w24, w21
	ldr	x8, [x0, #16]
	ldrsw	x9, [x0]
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
	ldr	x23, [x8]
	cmp	w24, #2047
	b.le	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x20, #0
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x23, x20, lsl #2]
	add	w0, w28, w20
	bl	_MappedMemoryWriteByte
	add	x20, x20, #1
	cmp	x20, #2048
	b.ne	LBB0_11
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x24
	mov	x20, x28
	cbz	w24, LBB0_7
LBB0_13:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x23], #4
	mov	x0, x20
	bl	_MappedMemoryWriteByte
	add	w20, w20, #1
	subs	x21, x21, #1
	b.ne	LBB0_13
	b	LBB0_7
LBB0_14:
	lsl	w1, w26, #11
	mov	w0, #8192
	movk	w0, #1536, lsl #16
	bl	_SH2WriteNotify
	mov	w0, #166
	bl	_Cs2ReadUnFilteredSector
	cbz	x0, LBB0_3
; %bb.15:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldrsw	x9, [x0]
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
	ldr	x8, [x8]
	add	x0, x8, #624
	add	x1, sp, #16
	bl	_Cs2CopyDirRecord
	str	xzr, [x19, #24]
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_Cs2FreeBlock
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	mov	w26, #255
	stur	w26, [x8, #-4]
	str	wzr, [x19]
	ldr	w8, [sp, #16]
	add	w0, w8, #150
	bl	_Cs2ReadUnFilteredSector
	cbz	x0, LBB0_3
; %bb.16:
	mov	x20, x0
	lsl	w8, w25, #16
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	orr	w8, w8, w9, lsl #24
	ldr	w9, [sp]                        ; 4-byte Folded Reload
	orr	w8, w8, w9, lsl #8
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	orr	x19, x8, x9
	ldr	x8, [x0, #16]
	ldrsw	x9, [x0]
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
	ldr	x21, [x8]
	add	x1, sp, #16
	mov	x0, x21
	bl	_Cs2CopyDirRecord
	ldrsw	x8, [sp, #24]
	add	x21, x21, x8, lsl #2
	add	x1, sp, #16
	mov	x0, x21
	bl	_Cs2CopyDirRecord
	ldrsw	x8, [sp, #24]
	add	x0, x21, x8, lsl #2
	add	x1, sp, #16
	bl	_Cs2CopyDirRecord
	ldr	w21, [sp, #20]
	asr	w8, w21, #11
	tst	w21, #0x7ff
	cinc	w23, w8, ne
	str	xzr, [x20, #24]
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_Cs2FreeBlock
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #2
	stur	w26, [x8, #-4]
	str	wzr, [x20]
	cbz	w23, LBB0_25
; %bb.17:
	mov	w24, #0
	mov	w25, #255
	mov	x26, x19
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	sub	w21, w22, #2048
	str	xzr, [x20, #24]
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_Cs2FreeBlock
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #2
	stur	w25, [x8, #-4]
	str	wzr, [x20]
	add	w24, w24, #1
	add	x26, x26, #2048
	cmp	w24, w23
	b.eq	LBB0_25
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	ldr	w8, [sp, #16]
	add	w8, w24, w8
	add	w0, w8, #150
	bl	_Cs2ReadUnFilteredSector
	cbz	x0, LBB0_3
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x20, x0
	mov	w22, w21
	ldr	x8, [x0, #16]
	ldrsw	x9, [x0]
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
	ldr	x28, [x8]
	cmp	w22, #2047
	b.le	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x21, #0
LBB0_22:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w0, w26, w21
	ldr	w1, [x28, x21, lsl #2]
	bl	_MappedMemoryWriteByte
	add	x21, x21, #1
	cmp	x21, #2048
	b.ne	LBB0_22
	b	LBB0_18
LBB0_23:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x27, x22
	mov	x21, x26
	cbz	w22, LBB0_18
LBB0_24:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x28], #4
	mov	x0, x21
	bl	_MappedMemoryWriteByte
	add	w21, w21, #1
	subs	x27, x27, #1
	b.ne	LBB0_24
	b	LBB0_18
LBB0_25:
	lsl	w1, w23, #11
	mov	x0, x19
	bl	_SH2WriteNotify
Lloh5:
	adrp	x19, _MSH2@GOTPAGE
Lloh6:
	ldr	x19, [x19, _MSH2@GOTPAGEOFF]
	ldr	x0, [x19]
	mov	x1, x0
	bl	_SH2GetRegisters
	ldr	x8, [x19]
	mov	w9, #8192
	movk	w9, #1536, lsl #16
	add	w9, w9, #3584
	str	w9, [x8]
	bl	_Cs2GetMasterStackAdress
	ldr	x1, [x19]
	ldr	x8, [x1, #8]
	str	w0, [x8, #60]
	mov	x0, x1
	bl	_SH2SetRegisters
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SEGA SEGASATURN"

	.comm	_MSH2,8,3                       ; @MSH2
.subsections_via_symbols
