	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoWriteM68k8_ramc
_PicoWriteM68k8_ramc:                   ## @PicoWriteM68k8_ramc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %edx
	movl	%edi, %eax
	andl	$16646144, %eax                 ## imm = 0xFE0000
	cmpl	$6291456, %eax                  ## imm = 0x600000
	jne	LBB0_4
## %bb.1:
	movq	_SRam@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.2:
	movq	_Pico_mcd@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	testb	$1, (%rdi)
	je	LBB0_6
## %bb.3:
	shrl	%edx
	movzwl	%dx, %edx
	movl	%esi, 32768(%rcx,%rdx,4)
	movl	$1, 8(%rax)
	popq	%rbp
	retq
LBB0_4:
	cmpl	$8388607, %edx                  ## imm = 0x7FFFFF
	jne	LBB0_7
## %bb.5:
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, (%rax)
LBB0_6:
	popq	%rbp
	retq
LBB0_7:
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movzbl	%sil, %ecx
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_elprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SRam,16,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 w8  [%06x]   %02x @%06x"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoWriteM68k8_ramc
_PicoWriteM68k8_ramc:                   ; @PicoWriteM68k8_ramc
	.cfi_startproc
; %bb.0:
	mov	x2, x0
	and	w8, w0, #0xfe0000
	cmp	w8, #1536, lsl #12              ; =6291456
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _SRam@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SRam@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.2:
Lloh2:
	adrp	x10, _Pico_mcd@GOTPAGE
Lloh3:
	ldr	x10, [x10, _Pico_mcd@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	ldrb	w10, [x10]
	tbz	w10, #0, LBB0_6
; %bb.3:
	ubfx	w10, w2, #1, #16
	add	w10, w10, #2, lsl #12           ; =8192
	str	w1, [x9, w10, uxtw #2]
	mov	w9, #1
	str	w9, [x8, #8]
	ret
LBB0_4:
	mov	w8, #8388607
	cmp	w2, w8
	b.ne	LBB0_7
; %bb.5:
Lloh5:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	w1, [x8]
LBB0_6:
	ret
LBB0_7:
Lloh8:
	adrp	x8, _EL_UIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EL_UIO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	and	w3, w1, #0xff
Lloh11:
	adrp	x8, _SekPc@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
Lloh15:
	ldr	w4, [x8]
	b	_elprintf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SRam,16,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 w8  [%06x]   %02x @%06x"

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