	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m68k_map_unmap                 ## -- Begin function m68k_map_unmap
	.p2align	4, 0x90
_m68k_map_unmap:                        ## @m68k_map_unmap
	.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 $esi killed $esi def $rsi
	movq	_M68K_MEM_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	_m68k_unmapped_read8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	sarl	%cl, %edi
	sarl	%cl, %esi
	cmpl	%edi, %esi
	jge	LBB0_2
## %bb.1:
	movq	_m68k_unmapped_read16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	_m68k_unmapped_write8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	_m68k_unmapped_write16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	popq	%rbp
	retq
LBB0_2:
	movq	_m68k_read8_map@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movslq	%edi, %rcx
	leal	1(%rsi), %r9d
	movl	%r9d, %r8d
	subl	%edi, %r8d
	movq	%rcx, %rax
	testb	$1, %r8b
	je	LBB0_4
## %bb.3:
	movl	-4(%rbp), %r10d
	sarl	%r10d
	movq	_MAP_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %r10d
	movl	%r10d, (%r11,%rcx,4)
	leaq	1(%rcx), %rax
LBB0_4:
	movl	%r9d, %r9d
	cmpl	%edi, %esi
	je	LBB0_7
## %bb.5:
	movq	_MAP_FLAG@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbp), %edx
	sarl	%edx
	orl	(%r10), %edx
	movl	%edx, (%r11,%rax,4)
	movl	-4(%rbp), %edx
	sarl	%edx
	orl	(%r10), %edx
	movl	%edx, 4(%r11,%rax,4)
	addq	$2, %rax
	cmpl	%eax, %r9d
	jne	LBB0_6
LBB0_7:
	movq	_m68k_unmapped_read16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	_m68k_read16_map@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	%rcx, %rax
	testb	$1, %r8b
	je	LBB0_9
## %bb.8:
	movl	-4(%rbp), %r10d
	sarl	%r10d
	movq	_MAP_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %r10d
	movl	%r10d, (%r11,%rcx,4)
	leaq	1(%rcx), %rax
LBB0_9:
	cmpl	%edi, %esi
	je	LBB0_12
## %bb.10:
	movq	_MAP_FLAG@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbp), %edx
	sarl	%edx
	orl	(%r10), %edx
	movl	%edx, (%r11,%rax,4)
	movl	-4(%rbp), %edx
	sarl	%edx
	orl	(%r10), %edx
	movl	%edx, 4(%r11,%rax,4)
	addq	$2, %rax
	cmpl	%eax, %r9d
	jne	LBB0_11
LBB0_12:
	movq	_m68k_unmapped_write8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	_m68k_write8_map@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	%rcx, %rax
	testb	$1, %r8b
	je	LBB0_14
## %bb.13:
	movl	-4(%rbp), %r10d
	sarl	%r10d
	movq	_MAP_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %r10d
	movl	%r10d, (%r11,%rcx,4)
	leaq	1(%rcx), %rax
LBB0_14:
	cmpl	%edi, %esi
	je	LBB0_17
## %bb.15:
	movq	_MAP_FLAG@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbp), %edx
	sarl	%edx
	orl	(%r10), %edx
	movl	%edx, (%r11,%rax,4)
	movl	-4(%rbp), %edx
	sarl	%edx
	orl	(%r10), %edx
	movl	%edx, 4(%r11,%rax,4)
	addq	$2, %rax
	cmpl	%eax, %r9d
	jne	LBB0_16
LBB0_17:
	movq	_m68k_unmapped_write16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	_m68k_write16_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testb	$1, %r8b
	je	LBB0_19
## %bb.18:
	movl	-4(%rbp), %r8d
	sarl	%r8d
	movq	_MAP_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movl	%r8d, (%rdx,%rcx,4)
	incq	%rcx
LBB0_19:
	cmpl	%edi, %esi
	je	LBB0_22
## %bb.20:
	movq	_MAP_FLAG@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbp), %esi
	sarl	%esi
	orl	(%rax), %esi
	movl	%esi, (%rdx,%rcx,4)
	movl	-4(%rbp), %esi
	sarl	%esi
	orl	(%rax), %esi
	movl	%esi, 4(%rdx,%rcx,4)
	addq	$2, %rcx
	cmpl	%ecx, %r9d
	jne	LBB0_21
LBB0_22:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M68K_MEM_SHIFT,4,2             ## @M68K_MEM_SHIFT
	.comm	_m68k_unmapped_read8,8,3        ## @m68k_unmapped_read8
	.comm	_MAP_FLAG,4,2                   ## @MAP_FLAG
	.comm	_m68k_read8_map,8,3             ## @m68k_read8_map
	.comm	_m68k_unmapped_read16,8,3       ## @m68k_unmapped_read16
	.comm	_m68k_read16_map,8,3            ## @m68k_read16_map
	.comm	_m68k_unmapped_write8,8,3       ## @m68k_unmapped_write8
	.comm	_m68k_write8_map,8,3            ## @m68k_write8_map
	.comm	_m68k_unmapped_write16,8,3      ## @m68k_unmapped_write16
	.comm	_m68k_write16_map,8,3           ## @m68k_write16_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m68k_map_unmap                 ; -- Begin function m68k_map_unmap
	.p2align	2
_m68k_map_unmap:                        ; @m68k_map_unmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
Lloh0:
	adrp	x8, _M68K_MEM_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M68K_MEM_SHIFT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _m68k_unmapped_read8@GOTPAGE
Lloh3:
	ldr	x9, [x9, _m68k_unmapped_read8@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
Lloh5:
	ldr	x8, [x9]
	str	w8, [sp, #12]
	asr	w8, w0, w10
	asr	w10, w1, w10
	cmp	w8, w10
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _m68k_unmapped_read16@GOTPAGE
Lloh7:
	ldr	x8, [x8, _m68k_unmapped_read16@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	w8, [sp, #12]
Lloh9:
	adrp	x8, _m68k_unmapped_write8@GOTPAGE
Lloh10:
	ldr	x8, [x8, _m68k_unmapped_write8@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	w8, [sp, #12]
Lloh12:
	adrp	x8, _m68k_unmapped_write16@GOTPAGE
Lloh13:
	ldr	x8, [x8, _m68k_unmapped_write16@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	w8, [sp, #12]
	add	sp, sp, #16
	ret
LBB0_2:
Lloh15:
	adrp	x9, _m68k_read8_map@GOTPAGE
Lloh16:
	ldr	x9, [x9, _m68k_read8_map@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x9]
	sxtw	x9, w8
	add	x11, x11, w8, sxtw #2
	sub	w10, w10, w8
	add	w12, w10, #1
Lloh18:
	adrp	x8, _MAP_FLAG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAP_FLAG@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [sp, #12]
	ldr	w14, [x8]
	orr	w13, w14, w13, asr #1
	str	w13, [x11], #4
	subs	w12, w12, #1
	b.ne	LBB0_3
; %bb.4:
Lloh20:
	adrp	x11, _m68k_unmapped_read16@GOTPAGE
Lloh21:
	ldr	x11, [x11, _m68k_unmapped_read16@GOTPAGEOFF]
Lloh22:
	ldr	x11, [x11]
	str	w11, [sp, #12]
Lloh23:
	adrp	x11, _m68k_read16_map@GOTPAGE
Lloh24:
	ldr	x11, [x11, _m68k_read16_map@GOTPAGEOFF]
Lloh25:
	ldr	x11, [x11]
	add	x11, x11, x9, lsl #2
	add	w12, w10, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [sp, #12]
	ldr	w14, [x8]
	orr	w13, w14, w13, asr #1
	str	w13, [x11], #4
	subs	w12, w12, #1
	b.ne	LBB0_5
; %bb.6:
Lloh26:
	adrp	x11, _m68k_unmapped_write8@GOTPAGE
Lloh27:
	ldr	x11, [x11, _m68k_unmapped_write8@GOTPAGEOFF]
Lloh28:
	ldr	x11, [x11]
	str	w11, [sp, #12]
Lloh29:
	adrp	x11, _m68k_write8_map@GOTPAGE
Lloh30:
	ldr	x11, [x11, _m68k_write8_map@GOTPAGEOFF]
Lloh31:
	ldr	x11, [x11]
	add	x11, x11, x9, lsl #2
	add	w12, w10, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [sp, #12]
	ldr	w14, [x8]
	orr	w13, w14, w13, asr #1
	str	w13, [x11], #4
	subs	w12, w12, #1
	b.ne	LBB0_7
; %bb.8:
Lloh32:
	adrp	x11, _m68k_unmapped_write16@GOTPAGE
Lloh33:
	ldr	x11, [x11, _m68k_unmapped_write16@GOTPAGEOFF]
Lloh34:
	ldr	x11, [x11]
	str	w11, [sp, #12]
Lloh35:
	adrp	x11, _m68k_write16_map@GOTPAGE
Lloh36:
	ldr	x11, [x11, _m68k_write16_map@GOTPAGEOFF]
Lloh37:
	ldr	x11, [x11]
	add	x9, x11, x9, lsl #2
	add	w10, w10, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [sp, #12]
	ldr	w12, [x8]
	orr	w11, w12, w11, asr #1
	str	w11, [x9], #4
	subs	w10, w10, #1
	b.ne	LBB0_9
; %bb.10:
	add	sp, sp, #16
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_M68K_MEM_SHIFT,4,2             ; @M68K_MEM_SHIFT
	.comm	_m68k_unmapped_read8,8,3        ; @m68k_unmapped_read8
	.comm	_MAP_FLAG,4,2                   ; @MAP_FLAG
	.comm	_m68k_read8_map,8,3             ; @m68k_read8_map
	.comm	_m68k_unmapped_read16,8,3       ; @m68k_unmapped_read16
	.comm	_m68k_read16_map,8,3            ; @m68k_read16_map
	.comm	_m68k_unmapped_write8,8,3       ; @m68k_unmapped_write8
	.comm	_m68k_write8_map,8,3            ; @m68k_write8_map
	.comm	_m68k_unmapped_write16,8,3      ; @m68k_unmapped_write16
	.comm	_m68k_write16_map,8,3           ; @m68k_write16_map
.subsections_via_symbols
