	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MapActiveCart
_MapActiveCart:                         ## @MapActiveCart
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Atari800_MACHINE_5200@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	$20470, %edi                    ## imm = 0x4FF6
	movl	$20473, %esi                    ## imm = 0x4FF9
	callq	_MEMORY_SetROM
	movl	$24566, %edi                    ## imm = 0x5FF6
	movl	$24569, %esi                    ## imm = 0x5FF9
	callq	_MEMORY_SetROM
	movq	_active_cart@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	$-189, %ecx
	addl	(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_7
## %bb.2:
	leaq	LJTI0_1(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	8(%rax), %edx
	movl	$32768, %edi                    ## imm = 0x8000
	jmp	LBB0_15
LBB0_4:
	movq	_active_cart@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rcx), %edx
	addl	$-128, %edx
	cmpl	$60, %edx
	ja	LBB0_36
## %bb.5:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_6:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fDisable
	jmp	LBB0_47
LBB0_7:
	movl	$16384, %edi                    ## imm = 0x4000
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MEMORY_dFillMem                ## TAILCALL
LBB0_8:
	movl	8(%rax), %edx
	movl	$16384, %edi                    ## imm = 0x4000
	movl	$24575, %esi                    ## imm = 0x5FFF
	callq	_MEMORY_CopyROM
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	$24576, %edi                    ## imm = 0x6000
	movl	$40959, %esi                    ## imm = 0x9FFF
	callq	_MEMORY_CopyROM
	movq	(%r14), %rax
	movl	$8192, %edx                     ## imm = 0x2000
	addl	8(%rax), %edx
	jmp	LBB0_10
LBB0_9:
	movl	8(%rax), %edx
	movl	$32768, %edi                    ## imm = 0x8000
	movl	$40959, %esi                    ## imm = 0x9FFF
	callq	_MEMORY_CopyROM
	movq	(%r14), %rax
	movl	8(%rax), %edx
LBB0_10:
	movl	$40960, %edi                    ## imm = 0xA000
	jmp	LBB0_15
LBB0_11:
	movl	4(%rax), %edx
	andl	$3, %edx
	shll	$12, %edx
	addl	8(%rax), %edx
	movl	$16384, %edi                    ## imm = 0x4000
	movl	$20479, %esi                    ## imm = 0x4FFF
	callq	_MEMORY_CopyROM
	movq	(%r14), %rax
	movl	4(%rax), %ecx
	movl	8(%rax), %eax
	andl	$12, %ecx
	shll	$10, %ecx
	leal	(%rax,%rcx), %edx
	addl	$16384, %edx                    ## imm = 0x4000
	movl	$20480, %edi                    ## imm = 0x5000
	movl	$24575, %esi                    ## imm = 0x5FFF
	callq	_MEMORY_CopyROM
	movq	(%r14), %rax
	movl	$32768, %ebx                    ## imm = 0x8000
	movl	8(%rax), %edx
	addl	%ebx, %edx
	movl	$32768, %edi                    ## imm = 0x8000
	movl	$40959, %esi                    ## imm = 0x9FFF
	callq	_MEMORY_CopyROM
	movq	(%r14), %rax
	addl	8(%rax), %ebx
	movl	$40960, %edi                    ## imm = 0xA000
	movl	$49151, %esi                    ## imm = 0xBFFF
	movl	%ebx, %edx
	callq	_MEMORY_CopyROM
	movl	$20470, %edi                    ## imm = 0x4FF6
	movl	$20473, %esi                    ## imm = 0x4FF9
	callq	_MEMORY_SetHARDWARE
	movl	$24566, %edi                    ## imm = 0x5FF6
	movl	$24569, %esi                    ## imm = 0x5FF9
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MEMORY_SetHARDWARE             ## TAILCALL
LBB0_13:
	movl	8(%rax), %edx
	movl	$32768, %edi                    ## imm = 0x8000
	movl	$36863, %esi                    ## imm = 0x8FFF
	callq	_MEMORY_CopyROM
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	$36864, %edi                    ## imm = 0x9000
	movl	$40959, %esi                    ## imm = 0x9FFF
	callq	_MEMORY_CopyROM
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	$40960, %edi                    ## imm = 0xA000
	movl	$45055, %esi                    ## imm = 0xAFFF
	callq	_MEMORY_CopyROM
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	$45056, %edi                    ## imm = 0xB000
	jmp	LBB0_15
LBB0_14:
	movl	8(%rax), %edx
	movl	$16384, %edi                    ## imm = 0x4000
LBB0_15:
	movl	$49151, %esi                    ## imm = 0xBFFF
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MEMORY_CopyROM                 ## TAILCALL
LBB0_16:
	testb	$-128, 4(%rcx)
	jne	LBB0_47
## %bb.17:
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movq	(%r14), %rax
	movl	$57344, %edx                    ## imm = 0xE000
	jmp	LBB0_28
LBB0_18:
	testb	$-128, 4(%rcx)
	jne	LBB0_47
## %bb.19:
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movq	(%r14), %rax
	movl	$24576, %edx                    ## imm = 0x6000
	jmp	LBB0_28
LBB0_20:
	testb	$-128, 4(%rcx)
	jne	LBB0_47
## %bb.21:
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movq	(%r14), %rax
	movl	$516096, %edx                   ## imm = 0x7E000
	jmp	LBB0_28
LBB0_22:
	testb	$-128, 4(%rcx)
	jne	LBB0_47
## %bb.23:
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movq	(%r14), %rax
	movl	$253952, %edx                   ## imm = 0x3E000
	jmp	LBB0_28
LBB0_24:
	testb	$-128, 4(%rcx)
	jne	LBB0_47
## %bb.25:
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movq	(%r14), %rax
	movl	$122880, %edx                   ## imm = 0x1E000
	jmp	LBB0_28
LBB0_26:
	testb	$-128, 4(%rcx)
	jne	LBB0_47
## %bb.27:
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movq	(%r14), %rax
	movl	$1040384, %edx                  ## imm = 0xFE000
LBB0_28:
	addl	8(%rax), %edx
	jmp	LBB0_30
LBB0_29:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fDisable
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movq	(%r14), %rax
	movl	8(%rax), %edx
LBB0_30:
	movl	$40960, %edi                    ## imm = 0xA000
	jmp	LBB0_45
LBB0_31:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fEnable
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	$32768, %edi                    ## imm = 0x8000
	jmp	LBB0_45
LBB0_32:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fDisable
	movq	(%r14), %rax
	cmpl	$0, 4(%rax)
	js	LBB0_47
## %bb.33:
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	jmp	LBB0_43
LBB0_34:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fDisable
	movq	(%r14), %rax
	cmpl	$0, 4(%rax)
	js	LBB0_47
## %bb.35:
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movq	(%r14), %rax
	movl	$12288, %edx                    ## imm = 0x3000
	addl	8(%rax), %edx
	jmp	LBB0_44
LBB0_36:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fDisable
	jmp	LBB0_53
LBB0_37:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fDisable
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movl	$40960, %edi                    ## imm = 0xA000
	movl	$255, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_MEMORY_dFillMem
	jmp	LBB0_43
LBB0_38:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fDisable
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movl	$40960, %edi                    ## imm = 0xA000
	movl	$255, %esi
	movl	$6144, %edx                     ## imm = 0x1800
	callq	_MEMORY_dFillMem
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	$47104, %edi                    ## imm = 0xB800
	jmp	LBB0_45
LBB0_39:
	movq	_Atari800_MACHINE_800@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_57
## %bb.40:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fEnable
	movl	$32768, %edi                    ## imm = 0x8000
	movl	$255, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_MEMORY_dFillMem
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	$36864, %edi                    ## imm = 0x9000
	movl	$40959, %esi                    ## imm = 0x9FFF
	callq	_MEMORY_CopyROM
	jmp	LBB0_54
LBB0_41:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fEnable
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfDisable
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	$32768, %edi                    ## imm = 0x8000
	movl	$40959, %esi                    ## imm = 0x9FFF
	jmp	LBB0_46
LBB0_42:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fDisable
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	$40960, %edi                    ## imm = 0xA000
	movl	$45055, %esi                    ## imm = 0xAFFF
	callq	_MEMORY_CopyROM
LBB0_43:
	movq	(%r14), %rax
	movl	8(%rax), %edx
LBB0_44:
	movl	$45056, %edi                    ## imm = 0xB000
LBB0_45:
	movl	$49151, %esi                    ## imm = 0xBFFF
LBB0_46:
	callq	_MEMORY_CopyROM
LBB0_47:
	movq	(%r14), %rax
	movl	4(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SwitchBank                     ## TAILCALL
LBB0_48:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fEnable
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movq	(%r14), %rax
	movl	4(%rax), %edx
	andl	$3, %edx
	shll	$12, %edx
	addl	8(%rax), %edx
	movl	$32768, %ebx                    ## imm = 0x8000
	movl	$32768, %edi                    ## imm = 0x8000
	movl	$36863, %esi                    ## imm = 0x8FFF
	callq	_MEMORY_CopyROM
	movq	(%r14), %rax
	movl	4(%rax), %ecx
	movl	8(%rax), %eax
	andl	$12, %ecx
	shll	$10, %ecx
	leal	(%rax,%rcx), %edx
	addl	$16384, %edx                    ## imm = 0x4000
	movl	$36864, %edi                    ## imm = 0x9000
	movl	$40959, %esi                    ## imm = 0x9FFF
	callq	_MEMORY_CopyROM
	movq	(%r14), %rax
	addl	8(%rax), %ebx
	movl	$40960, %edi                    ## imm = 0xA000
	movl	$49151, %esi                    ## imm = 0xBFFF
	movl	%ebx, %edx
	callq	_MEMORY_CopyROM
	movl	$36854, %edi                    ## imm = 0x8FF6
	movl	$36857, %esi                    ## imm = 0x8FF9
	callq	_MEMORY_SetHARDWARE
	movl	$40950, %edi                    ## imm = 0x9FF6
	movl	$40953, %esi                    ## imm = 0x9FF9
	jmp	LBB0_12
LBB0_49:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fDisable
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movl	$40960, %ebx                    ## imm = 0xA000
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movzwl	4(%rax), %edx
	addl	8(%rax), %edx
	leal	255(%rbx), %esi
	movl	%ebx, %edi
	callq	_MEMORY_CopyROM
	leal	256(%rbx), %eax
	cmpl	$48896, %ebx                    ## imm = 0xBF00
	movl	%eax, %ebx
	jb	LBB0_50
	jmp	LBB0_47
LBB0_51:
	movq	_Atari800_MACHINE_800@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_57
## %bb.52:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fEnable
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	$32768, %edi                    ## imm = 0x8000
	movl	$40959, %esi                    ## imm = 0x9FFF
	callq	_MEMORY_CopyROM
LBB0_53:
	movq	_Atari800_builtin_basic@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_58
LBB0_54:
	movq	_Atari800_disable_basic@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	sete	%al
	movq	_BINLOAD_loading_basic@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	setne	%cl
	orb	%al, %cl
	cmpb	$1, %cl
	jne	LBB0_58
## %bb.55:
	movq	_MEMORY_have_basic@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_58
## %bb.56:
	xorl	%eax, %eax
	callq	_MEMORY_CartA0bfEnable
	movq	_MEMORY_basic@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_10
LBB0_57:
	xorl	%eax, %eax
	callq	_MEMORY_Cart809fDisable
LBB0_58:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MEMORY_CartA0bfDisable         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_47, LBB0_47-LJTI0_0
.set L0_0_set_51, LBB0_51-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_48, LBB0_48-LJTI0_0
.set L0_0_set_49, LBB0_49-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_20
	.long	L0_0_set_18
	.long	L0_0_set_22
	.long	L0_0_set_24
	.long	L0_0_set_26
	.long	L0_0_set_16
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_16
	.long	L0_0_set_20
	.long	L0_0_set_18
	.long	L0_0_set_22
	.long	L0_0_set_24
	.long	L0_0_set_26
	.long	L0_0_set_29
	.long	L0_0_set_37
	.long	L0_0_set_38
	.long	L0_0_set_31
	.long	L0_0_set_47
	.long	L0_0_set_47
	.long	L0_0_set_47
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_51
	.long	L0_0_set_39
	.long	L0_0_set_29
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_47
	.long	L0_0_set_47
	.long	L0_0_set_47
	.long	L0_0_set_47
	.long	L0_0_set_47
	.long	L0_0_set_47
	.long	L0_0_set_47
	.long	L0_0_set_47
	.long	L0_0_set_47
	.long	L0_0_set_47
	.long	L0_0_set_41
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_18
	.long	L0_0_set_42
	.long	L0_0_set_6
	.long	L0_0_set_31
	.long	L0_0_set_48
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_49
.set L0_1_set_3, LBB0_3-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
LJTI0_1:
	.long	L0_1_set_3
	.long	L0_1_set_8
	.long	L0_1_set_9
	.long	L0_1_set_11
	.long	L0_1_set_13
	.long	L0_1_set_14
	.end_data_region
                                        ## -- End function
	.comm	_Atari800_machine_type,8,3      ## @Atari800_machine_type
	.comm	_Atari800_MACHINE_5200,8,3      ## @Atari800_MACHINE_5200
	.comm	_active_cart,8,3                ## @active_cart
	.comm	_Atari800_MACHINE_800,8,3       ## @Atari800_MACHINE_800
	.comm	_Atari800_disable_basic,4,2     ## @Atari800_disable_basic
	.comm	_BINLOAD_loading_basic,4,2      ## @BINLOAD_loading_basic
	.comm	_MEMORY_have_basic,4,2          ## @MEMORY_have_basic
	.comm	_MEMORY_basic,4,2               ## @MEMORY_basic
	.comm	_Atari800_builtin_basic,4,2     ## @Atari800_builtin_basic
	.comm	_CARTRIDGE_BountyBob1GetByte,4,2 ## @CARTRIDGE_BountyBob1GetByte
	.comm	_CARTRIDGE_BountyBob1PutByte,4,2 ## @CARTRIDGE_BountyBob1PutByte
	.comm	_CARTRIDGE_BountyBob2GetByte,4,2 ## @CARTRIDGE_BountyBob2GetByte
	.comm	_CARTRIDGE_BountyBob2PutByte,4,2 ## @CARTRIDGE_BountyBob2PutByte
	.comm	_MEMORY_readmap,8,3             ## @MEMORY_readmap
	.comm	_MEMORY_writemap,8,3            ## @MEMORY_writemap
	.no_dead_strip	_MapActiveCart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MapActiveCart
_MapActiveCart:                         ; @MapActiveCart
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _Atari800_machine_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Atari800_machine_type@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _Atari800_MACHINE_5200@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Atari800_MACHINE_5200@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	w0, #20470
	mov	w1, #20473
	bl	_MEMORY_SetROM
	mov	w0, #24566
	mov	w1, #24569
	bl	_MEMORY_SetROM
Lloh6:
	adrp	x19, _active_cart@GOTPAGE
Lloh7:
	ldr	x19, [x19, _active_cart@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w9, [x8]
	sub	w9, w9, #189
	cmp	w9, #5
	b.hi	LBB0_7
; %bb.2:
Lloh8:
	adrp	x10, lJTI0_1@PAGE
Lloh9:
	add	x10, x10, lJTI0_1@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	ldr	w2, [x8, #8]
	mov	w0, #32768
	b	LBB0_15
LBB0_4:
Lloh10:
	adrp	x20, _active_cart@GOTPAGE
Lloh11:
	ldr	x20, [x20, _active_cart@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w10, [x9]
	sub	w10, w10, #128
	cmp	w10, #60
	b.hi	LBB0_35
; %bb.5:
Lloh12:
	adrp	x11, lJTI0_0@PAGE
Lloh13:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_6
	ldrh	w13, [x11, x10, lsl #1]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_6:
	bl	_MEMORY_Cart809fDisable
	b	LBB0_46
LBB0_7:
	mov	w0, #16384
	mov	w1, #0
	mov	w2, #32768
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MEMORY_dFillMem
LBB0_8:
	ldr	w2, [x8, #8]
	mov	w0, #16384
	mov	w1, #24575
	bl	_MEMORY_CopyROM
	ldr	x8, [x19]
	ldr	w2, [x8, #8]
	mov	w0, #24576
	mov	w1, #40959
	bl	_MEMORY_CopyROM
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	add	w2, w8, #2, lsl #12             ; =8192
	b	LBB0_10
LBB0_9:
	ldr	w2, [x8, #8]
	mov	w0, #32768
	mov	w1, #40959
	bl	_MEMORY_CopyROM
	ldr	x8, [x19]
	ldr	w2, [x8, #8]
LBB0_10:
	mov	w0, #40960
	b	LBB0_15
LBB0_11:
	ldp	w8, w9, [x8, #4]
	ubfiz	w8, w8, #12, #2
	add	w2, w8, w9
	mov	w0, #16384
	mov	w1, #20479
	bl	_MEMORY_CopyROM
	ldr	x8, [x19]
	ldp	w8, w9, [x8, #4]
	lsl	w8, w8, #10
	and	w8, w8, #0x3000
	add	w8, w9, w8
	add	w2, w8, #4, lsl #12             ; =16384
	mov	w0, #20480
	mov	w1, #24575
	bl	_MEMORY_CopyROM
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	add	w2, w8, #8, lsl #12             ; =32768
	mov	w0, #32768
	mov	w1, #40959
	bl	_MEMORY_CopyROM
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	add	w2, w8, #8, lsl #12             ; =32768
	mov	w0, #40960
	mov	w1, #49151
	bl	_MEMORY_CopyROM
	mov	w0, #20470
	mov	w1, #20473
	bl	_MEMORY_SetHARDWARE
	mov	w0, #24566
	mov	w1, #24569
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MEMORY_SetHARDWARE
LBB0_13:
	ldr	w2, [x8, #8]
	mov	w0, #32768
	mov	w1, #36863
	bl	_MEMORY_CopyROM
	ldr	x8, [x19]
	ldr	w2, [x8, #8]
	mov	w0, #36864
	mov	w1, #40959
	bl	_MEMORY_CopyROM
	ldr	x8, [x19]
	ldr	w2, [x8, #8]
	mov	w0, #40960
	mov	w1, #45055
	bl	_MEMORY_CopyROM
	ldr	x8, [x19]
	ldr	w2, [x8, #8]
	mov	w0, #45056
	b	LBB0_15
LBB0_14:
	ldr	w2, [x8, #8]
	mov	w0, #16384
LBB0_15:
	mov	w1, #49151
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MEMORY_CopyROM
LBB0_16:
	ldrb	w8, [x9, #4]
	tbnz	w8, #7, LBB0_46
; %bb.17:
	bl	_MEMORY_CartA0bfEnable
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	add	w2, w8, #14, lsl #12            ; =57344
	b	LBB0_29
LBB0_18:
	ldrb	w8, [x9, #4]
	tbnz	w8, #7, LBB0_46
; %bb.19:
	bl	_MEMORY_CartA0bfEnable
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	add	w2, w8, #6, lsl #12             ; =24576
	b	LBB0_29
LBB0_20:
	ldrb	w8, [x9, #4]
	tbnz	w8, #7, LBB0_46
; %bb.21:
	bl	_MEMORY_CartA0bfEnable
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	add	w2, w8, #126, lsl #12           ; =516096
	b	LBB0_29
LBB0_22:
	ldrb	w8, [x9, #4]
	tbnz	w8, #7, LBB0_46
; %bb.23:
	bl	_MEMORY_CartA0bfEnable
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	add	w2, w8, #62, lsl #12            ; =253952
	b	LBB0_29
LBB0_24:
	ldrb	w8, [x9, #4]
	tbnz	w8, #7, LBB0_46
; %bb.25:
	bl	_MEMORY_CartA0bfEnable
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	add	w2, w8, #30, lsl #12            ; =122880
	b	LBB0_29
LBB0_26:
	ldrb	w8, [x9, #4]
	tbnz	w8, #7, LBB0_46
; %bb.27:
	bl	_MEMORY_CartA0bfEnable
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	add	w2, w8, #254, lsl #12           ; =1040384
	b	LBB0_29
LBB0_28:
	bl	_MEMORY_Cart809fDisable
	bl	_MEMORY_CartA0bfEnable
	ldr	x8, [x20]
	ldr	w2, [x8, #8]
LBB0_29:
	mov	w0, #40960
	b	LBB0_44
LBB0_30:
	bl	_MEMORY_Cart809fEnable
	bl	_MEMORY_CartA0bfEnable
	ldr	x8, [x20]
	ldr	w2, [x8, #8]
	mov	w0, #32768
	b	LBB0_44
LBB0_31:
	bl	_MEMORY_Cart809fDisable
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	tbnz	w8, #31, LBB0_46
; %bb.32:
	bl	_MEMORY_CartA0bfEnable
	b	LBB0_42
LBB0_33:
	bl	_MEMORY_Cart809fDisable
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	tbnz	w8, #31, LBB0_46
; %bb.34:
	bl	_MEMORY_CartA0bfEnable
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	add	w2, w8, #3, lsl #12             ; =12288
	b	LBB0_43
LBB0_35:
	bl	_MEMORY_Cart809fDisable
	b	LBB0_52
LBB0_36:
	bl	_MEMORY_Cart809fDisable
	bl	_MEMORY_CartA0bfEnable
	mov	w0, #40960
	mov	w1, #255
	mov	w2, #4096
	bl	_MEMORY_dFillMem
	b	LBB0_42
LBB0_37:
	bl	_MEMORY_Cart809fDisable
	bl	_MEMORY_CartA0bfEnable
	mov	w0, #40960
	mov	w1, #255
	mov	w2, #6144
	bl	_MEMORY_dFillMem
	ldr	x8, [x20]
	ldr	w2, [x8, #8]
	mov	w0, #47104
	b	LBB0_44
LBB0_38:
Lloh14:
	adrp	x9, _Atari800_MACHINE_800@GOTPAGE
Lloh15:
	ldr	x9, [x9, _Atari800_MACHINE_800@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_55
; %bb.39:
	bl	_MEMORY_Cart809fEnable
	mov	w0, #32768
	mov	w1, #255
	mov	w2, #4096
	bl	_MEMORY_dFillMem
	ldr	x8, [x20]
	ldr	w2, [x8, #8]
	mov	w0, #36864
	mov	w1, #40959
	bl	_MEMORY_CopyROM
	b	LBB0_53
LBB0_40:
	bl	_MEMORY_Cart809fEnable
	bl	_MEMORY_CartA0bfDisable
	ldr	x8, [x20]
	ldr	w2, [x8, #8]
	mov	w0, #32768
	mov	w1, #40959
	b	LBB0_45
LBB0_41:
	bl	_MEMORY_Cart809fDisable
	bl	_MEMORY_CartA0bfEnable
	ldr	x8, [x20]
	ldr	w2, [x8, #8]
	mov	w0, #40960
	mov	w1, #45055
	bl	_MEMORY_CopyROM
LBB0_42:
	ldr	x8, [x20]
	ldr	w2, [x8, #8]
LBB0_43:
	mov	w0, #45056
LBB0_44:
	mov	w1, #49151
LBB0_45:
	bl	_MEMORY_CopyROM
LBB0_46:
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SwitchBank
LBB0_47:
	bl	_MEMORY_Cart809fEnable
	bl	_MEMORY_CartA0bfEnable
	ldr	x8, [x20]
	ldp	w8, w9, [x8, #4]
	ubfiz	w8, w8, #12, #2
	add	w2, w8, w9
	mov	w0, #32768
	mov	w1, #36863
	bl	_MEMORY_CopyROM
	ldr	x8, [x20]
	ldp	w8, w9, [x8, #4]
	lsl	w8, w8, #10
	and	w8, w8, #0x3000
	add	w8, w9, w8
	add	w2, w8, #4, lsl #12             ; =16384
	mov	w0, #36864
	mov	w1, #40959
	bl	_MEMORY_CopyROM
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	add	w2, w8, #8, lsl #12             ; =32768
	mov	w0, #40960
	mov	w1, #49151
	bl	_MEMORY_CopyROM
	mov	w0, #36854
	mov	w1, #36857
	bl	_MEMORY_SetHARDWARE
	mov	w0, #40950
	mov	w1, #40953
	b	LBB0_12
LBB0_48:
	bl	_MEMORY_Cart809fDisable
	bl	_MEMORY_CartA0bfEnable
	mov	w19, #40960
LBB0_49:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w9, [x8, #8]
	ldrh	w8, [x8, #4]
	add	w2, w8, w9
	add	w1, w19, #255
	mov	x0, x19
	bl	_MEMORY_CopyROM
	lsr	w8, w19, #8
	add	w19, w19, #256
	cmp	w8, #191
	b.lo	LBB0_49
	b	LBB0_46
LBB0_50:
Lloh17:
	adrp	x9, _Atari800_MACHINE_800@GOTPAGE
Lloh18:
	ldr	x9, [x9, _Atari800_MACHINE_800@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_55
; %bb.51:
	bl	_MEMORY_Cart809fEnable
	ldr	x8, [x20]
	ldr	w2, [x8, #8]
	mov	w0, #32768
	mov	w1, #40959
	bl	_MEMORY_CopyROM
LBB0_52:
Lloh20:
	adrp	x8, _Atari800_builtin_basic@GOTPAGE
Lloh21:
	ldr	x8, [x8, _Atari800_builtin_basic@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cbnz	w8, LBB0_56
LBB0_53:
Lloh23:
	adrp	x8, _Atari800_disable_basic@GOTPAGE
Lloh24:
	ldr	x8, [x8, _Atari800_disable_basic@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _BINLOAD_loading_basic@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BINLOAD_loading_basic@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w9, #0
	ccmp	w8, #0, #4, eq
Lloh29:
	adrp	x8, _MEMORY_have_basic@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MEMORY_have_basic@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_56
; %bb.54:
	bl	_MEMORY_CartA0bfEnable
Lloh32:
	adrp	x8, _MEMORY_basic@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MEMORY_basic@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	b	LBB0_10
LBB0_55:
	bl	_MEMORY_Cart809fDisable
LBB0_56:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MEMORY_CartA0bfDisable
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_16-LBB0_6)>>2
	.short	(LBB0_20-LBB0_6)>>2
	.short	(LBB0_18-LBB0_6)>>2
	.short	(LBB0_22-LBB0_6)>>2
	.short	(LBB0_24-LBB0_6)>>2
	.short	(LBB0_26-LBB0_6)>>2
	.short	(LBB0_16-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_16-LBB0_6)>>2
	.short	(LBB0_20-LBB0_6)>>2
	.short	(LBB0_18-LBB0_6)>>2
	.short	(LBB0_22-LBB0_6)>>2
	.short	(LBB0_24-LBB0_6)>>2
	.short	(LBB0_26-LBB0_6)>>2
	.short	(LBB0_28-LBB0_6)>>2
	.short	(LBB0_36-LBB0_6)>>2
	.short	(LBB0_37-LBB0_6)>>2
	.short	(LBB0_30-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_50-LBB0_6)>>2
	.short	(LBB0_38-LBB0_6)>>2
	.short	(LBB0_28-LBB0_6)>>2
	.short	(LBB0_31-LBB0_6)>>2
	.short	(LBB0_31-LBB0_6)>>2
	.short	(LBB0_33-LBB0_6)>>2
	.short	(LBB0_33-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_46-LBB0_6)>>2
	.short	(LBB0_40-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_18-LBB0_6)>>2
	.short	(LBB0_41-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_30-LBB0_6)>>2
	.short	(LBB0_47-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_48-LBB0_6)>>2
lJTI0_1:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
                                        ; -- End function
	.comm	_Atari800_machine_type,8,3      ; @Atari800_machine_type
	.comm	_Atari800_MACHINE_5200,8,3      ; @Atari800_MACHINE_5200
	.comm	_active_cart,8,3                ; @active_cart
	.comm	_Atari800_MACHINE_800,8,3       ; @Atari800_MACHINE_800
	.comm	_Atari800_disable_basic,4,2     ; @Atari800_disable_basic
	.comm	_BINLOAD_loading_basic,4,2      ; @BINLOAD_loading_basic
	.comm	_MEMORY_have_basic,4,2          ; @MEMORY_have_basic
	.comm	_MEMORY_basic,4,2               ; @MEMORY_basic
	.comm	_Atari800_builtin_basic,4,2     ; @Atari800_builtin_basic
	.comm	_CARTRIDGE_BountyBob1GetByte,4,2 ; @CARTRIDGE_BountyBob1GetByte
	.comm	_CARTRIDGE_BountyBob1PutByte,4,2 ; @CARTRIDGE_BountyBob1PutByte
	.comm	_CARTRIDGE_BountyBob2GetByte,4,2 ; @CARTRIDGE_BountyBob2GetByte
	.comm	_CARTRIDGE_BountyBob2PutByte,4,2 ; @CARTRIDGE_BountyBob2PutByte
	.comm	_MEMORY_readmap,8,3             ; @MEMORY_readmap
	.comm	_MEMORY_writemap,8,3            ; @MEMORY_writemap
	.no_dead_strip	_MapActiveCart
.subsections_via_symbols
