	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu68k_map_all_ram             ## -- Begin function cpu68k_map_all_ram
	.p2align	4, 0x90
_cpu68k_map_all_ram:                    ## @cpu68k_map_all_ram
	.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	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	_M68K_MEM_SHIFT@GOTPCREL(%rip), %rbx
	testl	%ecx, %ecx
	movq	_s68k_read8_map@GOTPCREL(%rip), %r8
	cmoveq	_m68k_read8_map@GOTPCREL(%rip), %r8
	movq	_s68k_write16_map@GOTPCREL(%rip), %r9
	cmoveq	_m68k_write16_map@GOTPCREL(%rip), %r9
	movq	_s68k_write8_map@GOTPCREL(%rip), %r11
	cmoveq	_m68k_write8_map@GOTPCREL(%rip), %r11
	movq	_s68k_read16_map@GOTPCREL(%rip), %rax
	cmoveq	_m68k_read16_map@GOTPCREL(%rip), %rax
	movb	(%rbx), %cl
	movl	%edi, %ebx
	sarl	%cl, %ebx
	sarl	%cl, %esi
	movl	%esi, %r10d
	subl	%ebx, %r10d
	jl	LBB0_22
## %bb.1:
	movq	(%r8), %r8
	movq	(%r9), %r9
	movq	(%r11), %r12
	movq	(%rax), %r13
	subl	%edi, %edx
	sarl	%edx
	movslq	%ebx, %r15
	cmpl	$7, %r10d
	jae	LBB0_2
LBB0_16:
	leal	1(%rsi), %ecx
	movl	%ecx, %eax
	subl	%r15d, %eax
	testb	$1, %al
	jne	LBB0_18
## %bb.17:
	movq	%r15, %rax
	cmpl	%r15d, %esi
	jne	LBB0_20
	jmp	LBB0_22
LBB0_2:
	leaq	(%r12,%r15,4), %rax
	leaq	(%r9,%r15,4), %rbx
	movq	%rax, %rcx
	subq	%rbx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_16
## %bb.3:
	leaq	(,%r15,4), %r11
	addq	%r13, %r11
	movq	%r11, %rdi
	subq	%rbx, %rdi
	cmpq	$32, %rdi
	jb	LBB0_16
## %bb.4:
	leaq	(%r8,%r15,4), %rcx
	movq	%rcx, %rdi
	subq	%rbx, %rdi
	cmpq	$32, %rdi
	jb	LBB0_16
## %bb.5:
	movq	%r11, %rdi
	subq	%rax, %rdi
	cmpq	$32, %rdi
	jb	LBB0_16
## %bb.6:
	movq	%rcx, %rdi
	subq	%rax, %rdi
	cmpq	$32, %rdi
	jb	LBB0_16
## %bb.7:
	subq	%r11, %rcx
	cmpq	$32, %rcx
	jb	LBB0_16
## %bb.8:
	incq	%r10
	movq	%r10, %rax
	andq	$-8, %rax
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	testq	%rax, %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.10:
	movq	%rcx, %rdi
	andq	$-2, %rdi
	leaq	(%r8,%r15,4), %rax
	addq	$48, %rax
	leaq	48(,%r15,4), %rcx
	addq	%r13, %rcx
	leaq	(%r12,%r15,4), %r11
	addq	$48, %r11
	leaq	(%r9,%r15,4), %r14
	addq	$48, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -48(%r14,%rbx,4)
	movdqu	%xmm0, -32(%r14,%rbx,4)
	movdqu	%xmm0, -48(%r11,%rbx,4)
	movdqu	%xmm0, -32(%r11,%rbx,4)
	movdqu	%xmm0, -48(%rcx,%rbx,4)
	movdqu	%xmm0, -32(%rcx,%rbx,4)
	movdqu	%xmm0, -48(%rax,%rbx,4)
	movdqu	%xmm0, -32(%rax,%rbx,4)
	movdqu	%xmm0, -16(%r14,%rbx,4)
	movdqu	%xmm0, (%r14,%rbx,4)
	movdqu	%xmm0, -16(%r11,%rbx,4)
	movdqu	%xmm0, (%r11,%rbx,4)
	movdqu	%xmm0, -16(%rcx,%rbx,4)
	movdqu	%xmm0, (%rcx,%rbx,4)
	movdqu	%xmm0, -16(%rax,%rbx,4)
	movdqu	%xmm0, (%rax,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rdi
	jne	LBB0_11
## %bb.12:
	testb	$1, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
LBB0_13:
	addq	%r15, %rbx
	movdqu	%xmm0, (%r9,%rbx,4)
	movdqu	%xmm0, 16(%r9,%rbx,4)
	movdqu	%xmm0, (%r12,%rbx,4)
	movdqu	%xmm0, 16(%r12,%rbx,4)
	movdqu	%xmm0, (%r13,%rbx,4)
	movdqu	%xmm0, 16(%r13,%rbx,4)
	movdqu	%xmm0, (%r8,%rbx,4)
	movdqu	%xmm0, 16(%r8,%rbx,4)
LBB0_14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %r10
	je	LBB0_22
## %bb.15:
	addq	%rax, %r15
	jmp	LBB0_16
LBB0_18:
	movl	%edx, (%r9,%r15,4)
	movl	%edx, (%r12,%r15,4)
	movl	%edx, (%r13,%r15,4)
	movl	%edx, (%r8,%r15,4)
	movq	%r15, %rax
	incq	%rax
	cmpl	%r15d, %esi
	je	LBB0_22
LBB0_20:
	movl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%r9,%rax,4)
	movl	%edx, (%r12,%rax,4)
	movl	%edx, (%r13,%rax,4)
	movl	%edx, (%r8,%rax,4)
	movl	%edx, 4(%r9,%rax,4)
	movl	%edx, 4(%r12,%rax,4)
	movl	%edx, 4(%r13,%rax,4)
	movl	%edx, 4(%r8,%rax,4)
	addq	$2, %rax
	cmpl	%eax, %ecx
	jne	LBB0_21
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	testb	$1, -48(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_M68K_MEM_SHIFT,4,2             ## @M68K_MEM_SHIFT
	.comm	_m68k_read8_map,8,3             ## @m68k_read8_map
	.comm	_m68k_read16_map,8,3            ## @m68k_read16_map
	.comm	_m68k_write8_map,8,3            ## @m68k_write8_map
	.comm	_m68k_write16_map,8,3           ## @m68k_write16_map
	.comm	_s68k_read8_map,8,3             ## @s68k_read8_map
	.comm	_s68k_read16_map,8,3            ## @s68k_read16_map
	.comm	_s68k_write8_map,8,3            ## @s68k_write8_map
	.comm	_s68k_write16_map,8,3           ## @s68k_write16_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu68k_map_all_ram             ; -- Begin function cpu68k_map_all_ram
	.p2align	2
_cpu68k_map_all_ram:                    ; @cpu68k_map_all_ram
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _M68K_MEM_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M68K_MEM_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _m68k_read8_map@GOTPAGE
Lloh4:
	ldr	x8, [x8, _m68k_read8_map@GOTPAGEOFF]
Lloh5:
	adrp	x10, _s68k_read8_map@GOTPAGE
Lloh6:
	ldr	x10, [x10, _s68k_read8_map@GOTPAGEOFF]
	cmp	w3, #0
	csel	x8, x8, x10, eq
Lloh7:
	adrp	x10, _m68k_write16_map@GOTPAGE
Lloh8:
	ldr	x10, [x10, _m68k_write16_map@GOTPAGEOFF]
Lloh9:
	adrp	x11, _s68k_write16_map@GOTPAGE
Lloh10:
	ldr	x11, [x11, _s68k_write16_map@GOTPAGEOFF]
Lloh11:
	adrp	x12, _m68k_write8_map@GOTPAGE
Lloh12:
	ldr	x12, [x12, _m68k_write8_map@GOTPAGEOFF]
	csel	x11, x10, x11, eq
Lloh13:
	adrp	x10, _s68k_write8_map@GOTPAGE
Lloh14:
	ldr	x10, [x10, _s68k_write8_map@GOTPAGEOFF]
	csel	x12, x12, x10, eq
Lloh15:
	adrp	x10, _m68k_read16_map@GOTPAGE
Lloh16:
	ldr	x10, [x10, _m68k_read16_map@GOTPAGEOFF]
Lloh17:
	adrp	x13, _s68k_read16_map@GOTPAGE
Lloh18:
	ldr	x13, [x13, _s68k_read16_map@GOTPAGEOFF]
	csel	x17, x10, x13, eq
	asr	w16, w0, w9
	asr	w9, w1, w9
	subs	w15, w9, w16
	b.lt	LBB0_13
; %bb.1:
	ldr	x10, [x8]
	ldr	x14, [x11]
	ldr	x13, [x12]
	ldr	x12, [x17]
	sub	w8, w2, w0
	asr	w8, w8, #1
	sxtw	x11, w16
	cmp	w15, #15
	b.lo	LBB0_11
; %bb.2:
	lsl	x17, x11, #2
	add	x16, x17, x13
	add	x2, x17, x14
	sub	x0, x16, x2
	cmp	x0, #64
	b.lo	LBB0_11
; %bb.3:
	add	x0, x17, x12
	sub	x1, x0, x2
	cmp	x1, #64
	b.lo	LBB0_11
; %bb.4:
	add	x1, x17, x10
	sub	x2, x1, x2
	cmp	x2, #64
	b.lo	LBB0_11
; %bb.5:
	sub	x2, x0, x16
	cmp	x2, #64
	b.lo	LBB0_11
; %bb.6:
	sub	x16, x1, x16
	cmp	x16, #64
	b.lo	LBB0_11
; %bb.7:
	sub	x16, x1, x0
	cmp	x16, #64
	b.lo	LBB0_11
; %bb.8:
	add	x15, x15, #1
	and	x16, x15, #0x1fffffff0
	add	x11, x16, x11
	dup.4s	v0, w8
	add	x2, x17, #32
	add	x17, x10, x2
	add	x0, x12, x2
	add	x1, x14, x2
	add	x2, x13, x2
	mov	x3, x16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x1, #-32]
	stp	q0, q0, [x1], #64
	stp	q0, q0, [x2, #-32]
	stp	q0, q0, [x2], #64
	stp	q0, q0, [x0, #-32]
	stp	q0, q0, [x0], #64
	stp	q0, q0, [x17, #-32]
	stp	q0, q0, [x17], #64
	subs	x3, x3, #16
	b.ne	LBB0_9
; %bb.10:
	cmp	x15, x16
	b.eq	LBB0_13
LBB0_11:
	lsl	x15, x11, #2
	add	x14, x14, x15
	add	x13, x13, x15
	add	x12, x12, x15
	add	x10, x10, x15
	sub	w9, w9, w11
	add	w9, w9, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [x14], #4
	str	w8, [x13], #4
	str	w8, [x12], #4
	str	w8, [x10], #4
	subs	w9, w9, #1
	b.ne	LBB0_12
LBB0_13:
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M68K_MEM_SHIFT,4,2             ; @M68K_MEM_SHIFT
	.comm	_m68k_read8_map,8,3             ; @m68k_read8_map
	.comm	_m68k_read16_map,8,3            ; @m68k_read16_map
	.comm	_m68k_write8_map,8,3            ; @m68k_write8_map
	.comm	_m68k_write16_map,8,3           ; @m68k_write16_map
	.comm	_s68k_read8_map,8,3             ; @s68k_read8_map
	.comm	_s68k_read16_map,8,3            ; @s68k_read16_map
	.comm	_s68k_write8_map,8,3            ; @s68k_write8_map
	.comm	_s68k_write16_map,8,3           ; @s68k_write16_map
.subsections_via_symbols
