	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2GetIP                       ## -- Begin function Cs2GetIP
	.p2align	4, 0x90
_Cs2GetIP:                              ## @Cs2GetIP
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_Cs2Area@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 16(%rax)
	movq	$0, (%rax)
	movl	$150, %edi
	callq	_Cs2ReadUnFilteredSector
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	16(%rax), %rax
	movslq	(%r12), %rcx
	movq	-8(%rax,%rcx,8), %rax
	movq	8(%rax), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$15, %edx
	callq	_memcmp
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_3
LBB0_18:
	movq	16(%r12), %rax
	movslq	(%r12), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	movl	(%rdi), %eax
	subl	%eax, 24(%r12)
	callq	_Cs2FreeBlock
	movq	8(%r12), %rax
	movslq	(%r12), %rcx
	movl	$255, -4(%rax,%rcx,4)
	movq	%r12, %rdi
	callq	_Cs2SortBlocks
	decl	(%r12)
	jmp	LBB0_19
LBB0_1:
	xorl	%r14d, %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_cdip@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movq	(%rax), %rcx
	movb	$0, 16(%rcx)
	movq	8(%rax), %rdi
	leaq	16(%rbx), %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movq	8(%rax), %rcx
	movb	$0, 16(%rcx)
	leaq	32(%rbx), %rdi
	movq	16(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_sscanf
	movq	(%r13), %rax
	movq	24(%rax), %rdi
	leaq	42(%rbx), %rsi
	movl	$6, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movq	24(%rax), %rax
	movb	$0, 6(%rax)
	movq	(%r13), %rax
	movl	72(%rax), %edi
	movsbl	52(%rbx), %edx
	movsbl	53(%rbx), %ecx
	movsbl	54(%rbx), %r8d
	movsbl	55(%rbx), %r9d
	movsbl	48(%rbx), %r10d
	movsbl	49(%rbx), %r11d
	movsbl	50(%rbx), %eax
	movsbl	51(%rbx), %r15d
	leaq	L_.str.2(%rip), %rsi
	pushq	%r15
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_sprintf
	addq	$32, %rsp
	leaq	56(%rbx), %rdi
	movq	(%r13), %rax
	movq	32(%rax), %rdx
	leaq	L_.str.1(%rip), %r15
	movq	%r15, %rsi
	callq	_sscanf
	leaq	64(%rbx), %rdi
	movq	(%r13), %rax
	movq	40(%rax), %rdx
	movq	%r15, %rsi
	callq	_sscanf
	leaq	80(%rbx), %rdi
	movq	(%r13), %rax
	movq	48(%rax), %rdx
	movq	%r15, %rsi
	callq	_sscanf
	movq	(%r13), %rax
	movq	56(%rax), %rdi
	leaq	96(%rbx), %rsi
	movl	$112, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movq	56(%rax), %rcx
	movb	$0, 112(%rcx)
	movb	227(%rbx), %cl
	movb	%cl, 64(%rax)
	movb	235(%rbx), %dl
	movb	%dl, 65(%rax)
	movb	239(%rbx), %sil
	movb	%sil, 66(%rax)
	movb	243(%rbx), %cl
	movb	%cl, 67(%rax)
	movb	247(%rbx), %cl
	movb	%cl, 68(%rax)
	testb	%dl, %dl
	jne	LBB0_5
## %bb.4:
	movb	$0, 65(%rax)
LBB0_5:
	testb	%sil, %sil
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_7
## %bb.6:
	movb	$0, 66(%rax)
LBB0_7:
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.8:
	movq	40(%rax), %rax
	movl	(%rax), %eax
	addl	$-65, %eax
	cmpl	$20, %eax
	ja	LBB0_18
## %bb.9:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	movl	$10, %r14d
	jmp	LBB0_18
LBB0_13:
	movl	$5, %r14d
	jmp	LBB0_18
LBB0_16:
	movl	$12, %r14d
	jmp	LBB0_18
LBB0_10:
	movl	$1, %r14d
	jmp	LBB0_18
LBB0_14:
	movl	$6, %r14d
	jmp	LBB0_18
LBB0_17:
	movl	$13, %r14d
	jmp	LBB0_18
LBB0_11:
	movl	$2, %r14d
	jmp	LBB0_18
LBB0_12:
	movl	$4, %r14d
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_10
	.long	L0_0_set_14
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SEGA SEGASATURN"

	.comm	_cdip,8,3                       ## @cdip
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"%c%c/%c%c/%c%c%c%c"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2GetIP                       ; -- Begin function Cs2GetIP
	.p2align	2
_Cs2GetIP:                              ; @Cs2GetIP
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
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_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldrsw	x9, [x0]
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
	ldr	x21, [x8, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #15
	bl	_memcmp
	cbz	x0, LBB0_6
; %bb.2:
	mov	w20, #0
LBB0_3:
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	ldr	w8, [x0]
	ldr	w9, [x19, #24]
	sub	w8, w9, w8
	str	w8, [x19, #24]
	bl	_Cs2FreeBlock
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	mov	w9, #255
	stur	w9, [x8, #-4]
	mov	x0, x19
	bl	_Cs2SortBlocks
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh5:
	adrp	x23, _cdip@GOTPAGE
Lloh6:
	ldr	x23, [x23, _cdip@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x8]
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x23]
	ldr	x9, [x8]
	strb	wzr, [x9, #16]
	ldr	x0, [x8, #8]
	add	x1, x21, #16
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x23]
	ldr	x9, [x8, #8]
	strb	wzr, [x9, #16]
	add	x0, x21, #32
	ldr	x2, [x8, #16]
Lloh7:
	adrp	x22, l_.str.1@PAGE
Lloh8:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_sscanf
	ldr	x8, [x23]
	ldr	x0, [x8, #24]
	add	x1, x21, #42
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x23]
	ldr	x8, [x8, #24]
	strb	wzr, [x8, #6]
	ldr	x8, [x23]
	ldr	w0, [x8, #72]
	ldrsb	w2, [x21, #52]
	ldrsb	w3, [x21, #53]
	ldrsb	w4, [x21, #54]
	ldrsb	w5, [x21, #55]
	ldrsb	w6, [x21, #48]
	ldrsb	w7, [x21, #49]
	ldrh	w8, [x21, #50]
	strh	w8, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sprintf
	add	x0, x21, #56
	ldr	x8, [x23]
	ldr	x2, [x8, #32]
	mov	x1, x22
	bl	_sscanf
	add	x0, x21, #64
	ldr	x8, [x23]
	ldr	x2, [x8, #40]
	mov	x1, x22
	bl	_sscanf
	add	x0, x21, #80
	ldr	x8, [x23]
	ldr	x2, [x8, #48]
	mov	x1, x22
	bl	_sscanf
	ldr	x8, [x23]
	ldr	x0, [x8, #56]
	add	x1, x21, #96
	mov	w2, #112
	bl	_memcpy
	ldr	x8, [x23]
	ldr	x9, [x8, #56]
	strb	wzr, [x9, #112]
	ldrb	w9, [x21, #227]
	strb	w9, [x8, #64]
	ldrb	w10, [x21, #235]
	strb	w10, [x8, #65]
	ldrb	w9, [x21, #239]
	strb	w9, [x8, #66]
	ldrb	w11, [x21, #243]
	strb	w11, [x8, #67]
	ldrb	w11, [x21, #247]
	strb	w11, [x8, #68]
	cbz	w10, LBB0_9
; %bb.7:
	cbz	w9, LBB0_10
LBB0_8:
	cbnz	w20, LBB0_11
	b	LBB0_3
LBB0_9:
	strb	wzr, [x8, #65]
	cbnz	w9, LBB0_8
LBB0_10:
	strb	wzr, [x8, #66]
	cbz	w20, LBB0_3
LBB0_11:
	mov	w20, #0
	ldr	x8, [x8, #40]
	ldr	w8, [x8]
	sub	w8, w8, #65
	cmp	w8, #20
	b.hi	LBB0_3
; %bb.12:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_13:
	mov	w20, #10
	b	LBB0_3
LBB0_14:
	mov	w20, #5
	b	LBB0_3
LBB0_15:
	mov	w20, #12
	b	LBB0_3
LBB0_16:
	mov	w20, #1
	b	LBB0_3
LBB0_17:
	mov	w20, #6
	b	LBB0_3
LBB0_18:
	mov	w20, #13
	b	LBB0_3
LBB0_19:
	mov	w20, #2
	b	LBB0_3
LBB0_20:
	mov	w20, #4
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_18-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_19-LBB0_3)>>2
	.byte	(LBB0_20-LBB0_3)>>2
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SEGA SEGASATURN"

	.comm	_cdip,8,3                       ; @cdip
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"%c%c/%c%c/%c%c%c%c"

.subsections_via_symbols
