	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SwitchBank
_SwitchBank:                            ## @SwitchBank
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_active_cart@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$52, %ecx
	ja	LBB0_21
## %bb.1:
	movl	%edi, %esi
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_14:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_set_bank_80BF                  ## TAILCALL
LBB0_4:
	movl	$8, %edi
	movl	$7, %esi
	popq	%rbp
	jmp	_set_bank_A0BF                  ## TAILCALL
LBB0_5:
	movl	$24576, %edi                    ## imm = 0x6000
	popq	%rbp
	jmp	_set_bank_809F                  ## TAILCALL
LBB0_13:
	movl	$16, %edi
	movl	$15, %esi
	popq	%rbp
	jmp	_set_bank_A0BF                  ## TAILCALL
LBB0_10:
	movl	$516096, %edi                   ## imm = 0x7E000
	popq	%rbp
	jmp	_set_bank_809F                  ## TAILCALL
LBB0_9:
	movl	$253952, %edi                   ## imm = 0x3E000
	popq	%rbp
	jmp	_set_bank_809F                  ## TAILCALL
LBB0_8:
	movl	$122880, %edi                   ## imm = 0x1E000
	popq	%rbp
	jmp	_set_bank_809F                  ## TAILCALL
LBB0_11:
	movl	$1040384, %edi                  ## imm = 0xFE000
	popq	%rbp
	jmp	_set_bank_809F                  ## TAILCALL
LBB0_6:
	movl	$57344, %edi                    ## imm = 0xE000
	popq	%rbp
	jmp	_set_bank_809F                  ## TAILCALL
LBB0_22:
	movl	$4, %edi
	movl	$3, %esi
	popq	%rbp
	jmp	_set_bank_A0BF                  ## TAILCALL
LBB0_19:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_set_bank_SDX_128               ## TAILCALL
LBB0_15:
	cmpl	$0, 4(%rax)
	jne	LBB0_16
	jmp	LBB0_21
LBB0_3:
	xorl	%edi, %edi
	popq	%rbp
	jmp	_set_bank_A0AF                  ## TAILCALL
LBB0_2:
	movl	$12288, %edi                    ## imm = 0x3000
	popq	%rbp
	jmp	_set_bank_A0AF                  ## TAILCALL
LBB0_12:
	movl	$128, %edi
	movl	$127, %esi
	popq	%rbp
	jmp	_set_bank_A0BF                  ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_set_bank_XEGS_8F_64            ## TAILCALL
LBB0_29:
	movl	$16384, %edi                    ## imm = 0x4000
	movl	$8191, %esi                     ## imm = 0x1FFF
	popq	%rbp
	jmp	_set_bank_A0BF                  ## TAILCALL
LBB0_28:
	movl	$16384, %edi                    ## imm = 0x4000
	movl	$4095, %esi                     ## imm = 0xFFF
	popq	%rbp
	jmp	_set_bank_A0BF                  ## TAILCALL
LBB0_27:
	movl	$16384, %edi                    ## imm = 0x4000
	movl	$16383, %esi                    ## imm = 0x3FFF
	popq	%rbp
	jmp	_set_bank_A0BF                  ## TAILCALL
LBB0_25:
	movl	$31, %edi
	popq	%rbp
	jmp	_set_bank_SIC                   ## TAILCALL
LBB0_24:
	movl	$15, %edi
	popq	%rbp
	jmp	_set_bank_SIC                   ## TAILCALL
LBB0_23:
	movl	$7, %edi
	popq	%rbp
	jmp	_set_bank_SIC                   ## TAILCALL
LBB0_26:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_set_bank_MEGA_4096             ## TAILCALL
LBB0_17:
	cmpl	$0, 4(%rax)
	je	LBB0_21
## %bb.18:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fDisable
	jmp	LBB0_16
LBB0_20:
	cmpl	$65535, 4(%rax)                 ## imm = 0xFFFF
	jg	LBB0_21
LBB0_16:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_MEMORY_CartA0bfDisable         ## TAILCALL
LBB0_21:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_22
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_29
	.long	L0_0_set_28
	.long	L0_0_set_27
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_25
	.long	L0_0_set_24
	.long	L0_0_set_23
	.long	L0_0_set_4
	.long	L0_0_set_19
	.long	L0_0_set_15
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_26
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_15
	.long	L0_0_set_22
	.long	L0_0_set_17
	.long	L0_0_set_4
	.long	L0_0_set_19
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_active_cart,8,3                ## @active_cart
	.comm	_CARTRIDGE_piggyback,8,2        ## @CARTRIDGE_piggyback
	.no_dead_strip	_SwitchBank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SwitchBank
_SwitchBank:                            ; @SwitchBank
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _active_cart@GOTPAGE
Lloh1:
	ldr	x8, [x8, _active_cart@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	sub	w9, w9, #128
	cmp	w9, #52
	b.hi	LBB0_28
; %bb.1:
	mov	x1, x0
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_80BF
LBB0_3:
	mov	w0, #8
	mov	w1, #7
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_A0BF
LBB0_4:
	mov	w0, #24576
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_809F
LBB0_5:
	mov	w0, #16
	mov	w1, #15
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_A0BF
LBB0_6:
	mov	w0, #516096
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_809F
LBB0_7:
	mov	w0, #253952
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_809F
LBB0_8:
	mov	w0, #122880
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_809F
LBB0_9:
	mov	w0, #1040384
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_809F
LBB0_10:
	mov	w0, #57344
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_809F
LBB0_11:
	mov	w0, #4
	mov	w1, #3
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_A0BF
LBB0_12:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_SDX_128
LBB0_13:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_28
; %bb.14:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_MEMORY_CartA0bfDisable
LBB0_15:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_A0AF
LBB0_16:
	mov	w0, #12288
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_A0AF
LBB0_17:
	mov	w0, #128
	mov	w1, #127
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_A0BF
LBB0_18:
	mov	w0, #16384
	mov	w1, #4095
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_A0BF
LBB0_19:
	mov	w0, #16384
	mov	w1, #16383
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_A0BF
LBB0_20:
	mov	w0, #31
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_SIC
LBB0_21:
	mov	w0, #15
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_SIC
LBB0_22:
	mov	w0, #7
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_SIC
LBB0_23:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_MEGA_4096
LBB0_24:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_28
; %bb.25:
	bl	_MEMORY_Cart809fDisable
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_MEMORY_CartA0bfDisable
LBB0_26:
	ldr	w8, [x8, #4]
	cmp	w8, #16, lsl #12                ; =65536
	b.ge	LBB0_28
; %bb.27:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_MEMORY_CartA0bfDisable
LBB0_28:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_29:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_XEGS_8F_64
LBB0_30:
	mov	w0, #16384
	mov	w1, #8191
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_bank_A0BF
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_29-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_30-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
                                        ; -- End function
	.comm	_active_cart,8,3                ; @active_cart
	.comm	_CARTRIDGE_piggyback,8,2        ; @CARTRIDGE_piggyback
	.no_dead_strip	_SwitchBank
.subsections_via_symbols
