	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_mapper_multi
_write_mapper_multi:                    ## @write_mapper_multi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	cmpl	$49151, %edi                    ## imm = 0xBFFF
	je	LBB0_5
## %bb.1:
	cmpl	$32767, %edi                    ## imm = 0x7FFF
	je	LBB0_4
## %bb.2:
	cmpl	$16382, %edi                    ## imm = 0x3FFE
	jne	LBB0_6
## %bb.3:
	movzbl	%sil, %esi
	movl	$1, %edi
	popq	%rbp
	jmp	_mapper_16k_w                   ## TAILCALL
LBB0_5:
	movq	_slot@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %eax
	andl	$48, %eax
	movzbl	%sil, %esi
	addl	%eax, %esi
	movl	$3, %edi
	popq	%rbp
	jmp	_mapper_16k_w                   ## TAILCALL
LBB0_4:
	movzbl	%sil, %esi
	movl	$2, %edi
	popq	%rbp
	jmp	_mapper_16k_w                   ## TAILCALL
LBB0_6:
	movq	_z80_writemap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	shrl	$10, %ecx
	movq	(%rax,%rcx,8), %rax
	andl	$1023, %edi                     ## imm = 0x3FF
	movb	%sil, (%rax,%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_slot,8,3                       ## @slot
	.comm	_z80_writemap,8,3               ## @z80_writemap
	.no_dead_strip	_write_mapper_multi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_mapper_multi
_write_mapper_multi:                    ; @write_mapper_multi
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w8, #49151
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.1:
	mov	w8, #32767
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #16382
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
	mov	w0, #1
	b	_mapper_16k_w
LBB0_4:
Lloh0:
	adrp	x8, _slot@GOTPAGE
Lloh1:
	ldr	x8, [x8, _slot@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8, #4]
	and	w8, w8, #0x30
	add	w1, w8, w1
	mov	w0, #3
	b	_mapper_16k_w
LBB0_5:
	mov	w0, #2
	b	_mapper_16k_w
LBB0_6:
Lloh3:
	adrp	x8, _z80_writemap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _z80_writemap@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsr	w9, w0, #10
	ldr	x8, [x8, w9, uxtw #3]
	and	x9, x0, #0x3ff
	strb	w1, [x8, x9]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_slot,8,3                       ; @slot
	.comm	_z80_writemap,8,3               ; @z80_writemap
	.no_dead_strip	_write_mapper_multi
.subsections_via_symbols
