	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcd_state_loaded_mem           ## -- Begin function pcd_state_loaded_mem
	.p2align	4, 0x90
_pcd_state_loaded_mem:                  ## @pcd_state_loaded_mem
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Pico_mcd@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movl	12(%rcx), %ebx
	testb	$4, %bl
	je	LBB0_2
## %bb.1:
	movl	32(%rax), %edi
	callq	_wram_2M_to_1M
LBB0_2:
	movl	%ebx, %edi
	callq	_remap_word_ram
	movq	(%r14), %rax
	movl	16(%rax), %edi
	movl	%ebx, %esi
	callq	_remap_prg_window
	movq	(%r14), %rax
	andl	$3, 8(%rax)
	movzwl	12(%rax), %ecx
	movq	24(%rax), %rax
	movw	%cx, 114(%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcd_state_loaded_mem           ; -- Begin function pcd_state_loaded_mem
	.p2align	2
_pcd_state_loaded_mem:                  ; @pcd_state_loaded_mem
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _Pico_mcd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Pico_mcd@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x8]
	ldr	w19, [x9, #12]
	tbz	w19, #2, LBB0_2
; %bb.1:
	ldr	w0, [x8, #32]
	bl	_wram_2M_to_1M
LBB0_2:
	mov	x0, x19
	bl	_remap_word_ram
	ldr	x8, [x20]
	ldr	w0, [x8, #16]
	mov	x1, x19
	bl	_remap_prg_window
	ldr	x8, [x20]
	ldr	w9, [x8, #8]
	and	w9, w9, #0x3
	str	w9, [x8, #8]
	ldrh	w9, [x8, #12]
	ldr	x8, [x8, #24]
	strh	w9, [x8, #114]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
.subsections_via_symbols
