	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function access_D5
_access_D5:                             ## @access_D5
	.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	%rdx, %r14
                                        ## kill: def $esi killed $esi def $rsi
	movl	4(%rdi), %edx
	movq	_FALSE@GOTPCREL(%rip), %rcx
	addl	$-128, %edx
	cmpl	$22, %edx
	ja	LBB0_42
## %bb.1:
	movl	(%rdi), %eax
	movl	$1, %r15d
	leaq	LJTI0_0(%rip), %rbx
	movslq	(%rbx,%rdx,4), %rdx
	addq	%rbx, %rdx
	jmpq	*%rdx
LBB0_2:
	movl	%esi, %edx
	andl	$240, %edx
	cmpl	$224, %edx
	jne	LBB0_42
## %bb.3:
	movl	%esi, %ecx
	andl	$12, %ecx
	movl	%esi, %r15d
	andl	$15, %r15d
	xorl	$7, %r15d
	testb	$8, %sil
	cmovnel	%ecx, %r15d
	cmpq	_CARTRIDGE_main@GOTPCREL(%rip), %rdi
	jne	LBB0_41
## %bb.4:
	andl	$12, %eax
	movl	%r15d, %ecx
	andl	$-4, %ecx
	jmp	LBB0_8
LBB0_5:
	movl	%esi, %edx
	notl	%edx
	testb	$-32, %dl
	jne	LBB0_42
## %bb.6:
	movl	%esi, %ecx
	andl	$12, %ecx
	movl	%esi, %r15d
	andl	$31, %r15d
	xorl	$23, %r15d
	testb	$8, %sil
	cmovnel	%ecx, %r15d
	cmpq	_CARTRIDGE_main@GOTPCREL(%rip), %rdi
	jne	LBB0_41
## %bb.7:
	andl	$12, %eax
	movl	%r15d, %ecx
	andl	$12, %ecx
LBB0_8:
	cmpl	$8, %eax
	jne	LBB0_35
## %bb.9:
	cmpl	$8, %ecx
	je	LBB0_41
## %bb.10:
	movq	_CARTRIDGE_main@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_11:
	andl	$15, %esi
	movl	%esi, %r15d
	jmp	LBB0_41
LBB0_12:
	andl	$11, %esi
	movl	%esi, %r15d
	jmp	LBB0_41
LBB0_13:
	incl	%eax
	movslq	%eax, %r15
	imulq	$1717986919, %r15, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$33, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r15d
	jmp	LBB0_41
LBB0_14:
	andl	$23, %esi
LBB0_15:
	movl	%esi, %r15d
	jmp	LBB0_41
LBB0_16:
	andl	$9, %esi
	je	LBB0_41
## %bb.17:
	cmpl	$8, %esi
	je	LBB0_38
## %bb.18:
	cmpl	$1, %esi
	jne	LBB0_39
## %bb.19:
	movl	$3, %r15d
	jmp	LBB0_41
LBB0_20:
	andl	$9, %esi
	cmpl	$2, %esi
	jb	LBB0_41
## %bb.21:
	cmpl	$8, %esi
	jne	LBB0_40
LBB0_38:
	movl	$-1, %r15d
	jmp	LBB0_41
LBB0_23:
	movl	$-1, %r15d
	testb	$8, %sil
	jne	LBB0_41
## %bb.24:
	andl	$7, %esi
	leaq	l_switch.table.access_D5.1(%rip), %rax
	jmp	LBB0_27
LBB0_25:
	movl	$-1, %r15d
	testb	$8, %sil
	jne	LBB0_41
## %bb.26:
	andl	$7, %esi
	leaq	l_switch.table.access_D5(%rip), %rax
LBB0_27:
	movl	(%rax,%rsi,4), %r15d
	jmp	LBB0_41
LBB0_28:
	movl	%esi, %eax
	andl	$240, %eax
	cmpl	$112, %eax
	je	LBB0_30
	jmp	LBB0_42
LBB0_29:
	movl	%esi, %eax
	andl	$240, %eax
	cmpl	$208, %eax
	jne	LBB0_42
LBB0_30:
	andl	$15, %esi
	xorl	$7, %esi
	movl	%esi, %r15d
	jmp	LBB0_41
LBB0_31:
	andl	$3, %esi
	movl	%esi, %r15d
	jmp	LBB0_41
LBB0_32:
	incl	%eax
	movl	%eax, %r15d
	jmp	LBB0_41
LBB0_33:
	testb	$-32, %sil
	jne	LBB0_42
LBB0_34:
	andl	$31, %esi
	movl	%esi, %r15d
	jmp	LBB0_41
LBB0_35:
	cmpl	$8, %ecx
	jne	LBB0_41
## %bb.36:
	movq	_CARTRIDGE_piggyback@GOTPCREL(%rip), %rax
LBB0_37:
	movq	_active_cart@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_MapActiveCart
	jmp	LBB0_41
LBB0_39:
	movl	$2, %r15d
	jmp	LBB0_41
LBB0_40:
	xorl	%r15d, %r15d
LBB0_41:
	movl	%r15d, (%r14)
	movq	_TRUE@GOTPCREL(%rip), %rcx
LBB0_42:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_34
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_41
	.long	L0_0_set_16
	.long	L0_0_set_20
	.long	L0_0_set_23
	.long	L0_0_set_25
	.long	L0_0_set_15
	.long	L0_0_set_28
	.long	L0_0_set_29
	.long	L0_0_set_31
	.long	L0_0_set_41
	.long	L0_0_set_32
	.long	L0_0_set_41
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_33
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CARTRIDGE_main,8,2             ## @CARTRIDGE_main
	.comm	_active_cart,8,3                ## @active_cart
	.comm	_CARTRIDGE_piggyback,8,2        ## @CARTRIDGE_piggyback
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_access_D5
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.access_D5
l_switch.table.access_D5:
	.long	0                               ## 0x0
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	1                               ## 0x1

	.p2align	2                               ## @switch.table.access_D5.1
l_switch.table.access_D5.1:
	.long	0                               ## 0x0
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function access_D5
_access_D5:                             ; @access_D5
	.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
	ldr	w8, [x0, #4]
	sub	w9, w8, #128
	cmp	w9, #22
	b.hi	LBB0_29
; %bb.1:
	mov	x19, x2
	ldr	w8, [x0]
	mov	w20, #1
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	and	w9, w1, #0xf0
	cmp	w9, #224
	b.ne	LBB0_29
; %bb.3:
	and	w9, w1, #0xc
	and	w10, w1, #0xf
	eor	w10, w10, #0x7
	b	LBB0_6
LBB0_4:
	mvn	w9, w1
	tst	w9, #0xe0
	b.ne	LBB0_29
; %bb.5:
	and	w9, w1, #0xc
	and	w10, w1, #0x1f
	mov	w11, #23
	eor	w10, w10, w11
LBB0_6:
	tst	w1, #0x8
	csel	w20, w10, w9, eq
Lloh2:
	adrp	x9, _CARTRIDGE_main@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CARTRIDGE_main@GOTPAGEOFF]
	cmp	x0, x9
	b.ne	LBB0_36
; %bb.7:
	and	w10, w8, #0xc
	and	w8, w20, #0xc
	cmp	w10, #8
	b.ne	LBB0_32
; %bb.8:
	cmp	w8, #8
	b.eq	LBB0_36
; %bb.9:
Lloh4:
	adrp	x8, _active_cart@GOTPAGE
Lloh5:
	ldr	x8, [x8, _active_cart@GOTPAGEOFF]
	b	LBB0_34
LBB0_10:
	mov	x20, x1
	b	LBB0_36
LBB0_11:
	and	w20, w1, #0xf
	b	LBB0_36
LBB0_12:
	mov	w8, #11
	and	w20, w1, w8
	b	LBB0_36
LBB0_13:
	add	w8, w8, #1
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #33
	add	w9, w9, w10
	add	w9, w9, w9, lsl #2
	sub	w20, w8, w9
	b	LBB0_36
LBB0_14:
	mov	w8, #23
	and	w20, w1, w8
	b	LBB0_36
LBB0_15:
	mov	w8, #9
	ands	w8, w1, w8
	b.eq	LBB0_35
; %bb.16:
	mov	w9, #-1
	mov	w10, #2
	mov	w11, #3
	cmp	w8, #1
	csel	w10, w10, w11, ne
	cmp	w8, #8
	csel	w20, w9, w10, eq
	b	LBB0_36
LBB0_17:
	mov	w8, #9
	and	w8, w1, w8
	mov	w9, #1
	mov	w10, #-1
	cmp	w8, #8
	csel	w10, wzr, w10, ne
	cmp	w8, #2
	csel	w20, w9, w10, lo
	b	LBB0_36
LBB0_18:
	tbnz	w1, #3, LBB0_31
; %bb.19:
	and	w8, w1, #0x7
Lloh6:
	adrp	x9, l_switch.table.access_D5.1@PAGE
Lloh7:
	add	x9, x9, l_switch.table.access_D5.1@PAGEOFF
	b	LBB0_22
LBB0_20:
	tbnz	w1, #3, LBB0_31
; %bb.21:
	and	w8, w1, #0x7
Lloh8:
	adrp	x9, l_switch.table.access_D5@PAGE
Lloh9:
	add	x9, x9, l_switch.table.access_D5@PAGEOFF
LBB0_22:
	ldr	w20, [x9, w8, uxtw #2]
	b	LBB0_36
LBB0_23:
	and	w8, w1, #0xf0
	cmp	w8, #112
	b.eq	LBB0_25
	b	LBB0_29
LBB0_24:
	and	w8, w1, #0xf0
	cmp	w8, #208
	b.ne	LBB0_29
LBB0_25:
	and	w8, w1, #0xf
	eor	w20, w8, #0x7
	b	LBB0_36
LBB0_26:
	and	w20, w1, #0x3
	b	LBB0_36
LBB0_27:
	add	w20, w8, #1
	b	LBB0_36
LBB0_28:
	tst	w1, #0xe0
	b.eq	LBB0_30
LBB0_29:
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_37
LBB0_30:
	and	w20, w1, #0x1f
	b	LBB0_36
LBB0_31:
	mov	w20, #-1
	b	LBB0_36
LBB0_32:
	cmp	w8, #8
	b.ne	LBB0_36
; %bb.33:
Lloh12:
	adrp	x8, _active_cart@GOTPAGE
Lloh13:
	ldr	x8, [x8, _active_cart@GOTPAGEOFF]
Lloh14:
	adrp	x9, _CARTRIDGE_piggyback@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CARTRIDGE_piggyback@GOTPAGEOFF]
LBB0_34:
	str	x9, [x8]
	bl	_MapActiveCart
	b	LBB0_36
LBB0_35:
	mov	w20, #1
LBB0_36:
	str	w20, [x19]
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_37:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_30-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_36-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
	.byte	(LBB0_36-LBB0_2)>>2
	.byte	(LBB0_27-LBB0_2)>>2
	.byte	(LBB0_36-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_28-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CARTRIDGE_main,8,2             ; @CARTRIDGE_main
	.comm	_active_cart,8,3                ; @active_cart
	.comm	_CARTRIDGE_piggyback,8,2        ; @CARTRIDGE_piggyback
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_access_D5
	.p2align	2                               ; @switch.table.access_D5
l_switch.table.access_D5:
	.long	0                               ; 0x0
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	1                               ; 0x1

	.p2align	2                               ; @switch.table.access_D5.1
l_switch.table.access_D5.1:
	.long	0                               ; 0x0
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	2                               ; 0x2

.subsections_via_symbols
