	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoReadM68k8_ramc
_PicoReadM68k8_ramc:                    ## @PicoReadM68k8_ramc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$4194305, %edi                  ## imm = 0x400001
	jne	LBB0_2
## %bb.1:
	movq	_SRam@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	setne	%cl
	leal	(%rcx,%rcx,2), %eax
	popq	%rbp
	retq
LBB0_2:
	movl	%edi, %edx
	movl	%edi, %eax
	andl	$16646144, %eax                 ## imm = 0xFE0000
	cmpl	$6291456, %eax                  ## imm = 0x600000
	jne	LBB0_5
## %bb.3:
	movq	_SRam@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	shrl	%edx
	movzwl	%dx, %ecx
	movl	32768(%rax,%rcx,4), %eax
	popq	%rbp
	retq
LBB0_5:
	cmpl	$8388607, %edx                  ## imm = 0x7FFFFF
	jne	LBB0_7
## %bb.6:
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_elprintf
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRam,8,3                       ## @SRam
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_EL_UIO,4,2                     ## @EL_UIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m68k unmapped r8  [%06x] @%06x"

	.comm	_SekPc,4,2                      ## @SekPc
	.no_dead_strip	_PicoReadM68k8_ramc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoReadM68k8_ramc
_PicoReadM68k8_ramc:                    ; @PicoReadM68k8_ramc
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w0, #1024, lsl #12          ; =4194304
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SRam@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SRam@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #3
	csel	w0, wzr, w8, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x2, x0
	and	w8, w0, #0xfe0000
	cmp	w8, #1536, lsl #12              ; =6291456
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _SRam@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SRam@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.4:
	ubfx	w9, w2, #1, #16
	add	w9, w9, #2, lsl #12             ; =8192
	ldr	w0, [x8, w9, uxtw #2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w8, #8388607
	cmp	w2, w8
	b.ne	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh9:
	adrp	x8, _EL_UIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EL_UIO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _SekPc@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SRam,8,3                       ; @SRam
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_EL_UIO,4,2                     ; @EL_UIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m68k unmapped r8  [%06x] @%06x"

	.comm	_SekPc,4,2                      ; @SekPc
	.no_dead_strip	_PicoReadM68k8_ramc
.subsections_via_symbols
