	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mapper_8k_w
_mapper_8k_w:                           ## @mapper_8k_w
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_slot@GOTPCREL(%rip), %rcx
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movq	8(%rcx), %rax
	movslq	%edi, %rdi
	movl	%esi, (%rax,%rdi,4)
	andl	$3, %edi
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rsi
	addq	%rax, %rsi
	jmpq	*%rsi
LBB0_4:
	shll	$13, %edx
	movq	16(%rcx), %rax
	movslq	%edx, %rcx
	leaq	(%rax,%rcx,4), %rsi
	movq	_z80_readmap@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rsi, 256(%rdx)
	leal	1024(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 264(%rdx)
	leal	2048(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 272(%rdx)
	leal	3072(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 280(%rdx)
	leal	4096(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 288(%rdx)
	leal	5120(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 296(%rdx)
	leal	6144(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 304(%rdx)
	orl	$7168, %ecx                     ## imm = 0x1C00
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 312(%rdx)
	popq	%rbp
	retq
LBB0_2:
	shll	$13, %edx
	movq	16(%rcx), %rax
	movslq	%edx, %rcx
	leaq	(%rax,%rcx,4), %rsi
	movq	_z80_readmap@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rsi, 128(%rdx)
	leal	1024(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 136(%rdx)
	leal	2048(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 144(%rdx)
	leal	3072(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 152(%rdx)
	leal	4096(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 160(%rdx)
	leal	5120(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 168(%rdx)
	leal	6144(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 176(%rdx)
	orl	$7168, %ecx                     ## imm = 0x1C00
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 184(%rdx)
	popq	%rbp
	retq
LBB0_1:
	shll	$13, %edx
	movq	16(%rcx), %rax
	movslq	%edx, %rcx
	leaq	(%rax,%rcx,4), %rsi
	movq	_z80_readmap@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rsi, 192(%rdx)
	leal	1024(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 200(%rdx)
	leal	2048(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 208(%rdx)
	leal	3072(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 216(%rdx)
	leal	4096(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 224(%rdx)
	leal	5120(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 232(%rdx)
	leal	6144(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 240(%rdx)
	orl	$7168, %ecx                     ## imm = 0x1C00
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 248(%rdx)
	popq	%rbp
	retq
LBB0_3:
	shll	$13, %edx
	movq	16(%rcx), %rax
	movslq	%edx, %rcx
	leaq	(%rax,%rcx,4), %rsi
	movq	_z80_readmap@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rsi, 320(%rdx)
	leal	1024(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 328(%rdx)
	leal	2048(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 336(%rdx)
	leal	3072(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 344(%rdx)
	leal	4096(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 352(%rdx)
	leal	5120(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 360(%rdx)
	leal	6144(%rcx), %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	%rsi, 368(%rdx)
	orl	$7168, %ecx                     ## imm = 0x1C00
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 376(%rdx)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_1
	.end_data_region
                                        ## -- End function
	.comm	_slot,24,3                      ## @slot
	.comm	_z80_readmap,8,3                ## @z80_readmap
	.no_dead_strip	_mapper_8k_w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mapper_8k_w
_mapper_8k_w:                           ; @mapper_8k_w
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _slot@GOTPAGE
Lloh1:
	ldr	x8, [x8, _slot@GOTPAGEOFF]
	ldr	w9, [x8]
	udiv	w10, w1, w9
	msub	w9, w10, w9, w1
	ldr	x10, [x8, #8]
	str	w1, [x10, w0, sxtw #2]
	and	w10, w0, #0x3
Lloh2:
	adrp	x11, lJTI0_0@PAGE
Lloh3:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_1
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_1:
	lsl	w9, w9, #13
Lloh4:
	adrp	x10, _z80_readmap@GOTPAGE
Lloh5:
	ldr	x10, [x10, _z80_readmap@GOTPAGEOFF]
	ldr	x8, [x8, #16]
Lloh6:
	ldr	x10, [x10]
	add	x8, x8, w9, sxtw #2
	add	x9, x8, #1, lsl #12             ; =4096
	stp	x8, x9, [x10, #256]
	add	x9, x8, #2, lsl #12             ; =8192
	add	x11, x8, #3, lsl #12            ; =12288
	stp	x9, x11, [x10, #272]
	add	x9, x8, #4, lsl #12             ; =16384
	add	x11, x8, #5, lsl #12            ; =20480
	stp	x9, x11, [x10, #288]
	add	x9, x8, #6, lsl #12             ; =24576
	add	x8, x8, #7, lsl #12             ; =28672
	stp	x9, x8, [x10, #304]
	ret
LBB0_2:
	lsl	w9, w9, #13
Lloh7:
	adrp	x10, _z80_readmap@GOTPAGE
Lloh8:
	ldr	x10, [x10, _z80_readmap@GOTPAGEOFF]
	ldr	x8, [x8, #16]
Lloh9:
	ldr	x10, [x10]
	add	x8, x8, w9, sxtw #2
	add	x9, x8, #1, lsl #12             ; =4096
	stp	x8, x9, [x10, #128]
	add	x9, x8, #2, lsl #12             ; =8192
	add	x11, x8, #3, lsl #12            ; =12288
	stp	x9, x11, [x10, #144]
	add	x9, x8, #4, lsl #12             ; =16384
	add	x11, x8, #5, lsl #12            ; =20480
	stp	x9, x11, [x10, #160]
	add	x9, x8, #6, lsl #12             ; =24576
	add	x8, x8, #7, lsl #12             ; =28672
	stp	x9, x8, [x10, #176]
	ret
LBB0_3:
	lsl	w9, w9, #13
Lloh10:
	adrp	x10, _z80_readmap@GOTPAGE
Lloh11:
	ldr	x10, [x10, _z80_readmap@GOTPAGEOFF]
	ldr	x8, [x8, #16]
Lloh12:
	ldr	x10, [x10]
	add	x8, x8, w9, sxtw #2
	add	x9, x8, #1, lsl #12             ; =4096
	stp	x8, x9, [x10, #192]
	add	x9, x8, #2, lsl #12             ; =8192
	add	x11, x8, #3, lsl #12            ; =12288
	stp	x9, x11, [x10, #208]
	add	x9, x8, #4, lsl #12             ; =16384
	add	x11, x8, #5, lsl #12            ; =20480
	stp	x9, x11, [x10, #224]
	add	x9, x8, #6, lsl #12             ; =24576
	add	x8, x8, #7, lsl #12             ; =28672
	stp	x9, x8, [x10, #240]
	ret
LBB0_4:
	lsl	w9, w9, #13
Lloh13:
	adrp	x10, _z80_readmap@GOTPAGE
Lloh14:
	ldr	x10, [x10, _z80_readmap@GOTPAGEOFF]
	ldr	x8, [x8, #16]
Lloh15:
	ldr	x10, [x10]
	add	x8, x8, w9, sxtw #2
	add	x9, x8, #1, lsl #12             ; =4096
	stp	x8, x9, [x10, #320]
	add	x9, x8, #2, lsl #12             ; =8192
	add	x11, x8, #3, lsl #12            ; =12288
	stp	x9, x11, [x10, #336]
	add	x9, x8, #4, lsl #12             ; =16384
	add	x11, x8, #5, lsl #12            ; =20480
	stp	x9, x11, [x10, #352]
	add	x9, x8, #6, lsl #12             ; =24576
	add	x8, x8, #7, lsl #12             ; =28672
	stp	x9, x8, [x10, #368]
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_3-LBB0_1)>>2
                                        ; -- End function
	.comm	_slot,24,3                      ; @slot
	.comm	_z80_readmap,8,3                ; @z80_readmap
	.no_dead_strip	_mapper_8k_w
.subsections_via_symbols
