	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MEMORY_Cart809fDisable         ## -- Begin function MEMORY_Cart809fDisable
	.p2align	4, 0x90
_MEMORY_Cart809fDisable:                ## @MEMORY_Cart809fDisable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_cart809F_enabled@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	_MEMORY_ram_size@GOTPCREL(%rip), %rax
	cmpl	$33, (%rax)
	jl	LBB0_3
## %bb.2:
	movq	_MEMORY_mem@GOTPCREL(%rip), %rax
	movl	$32768, %edi                    ## imm = 0x8000
	addq	(%rax), %rdi
	movq	_under_cart809F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_memcpy
	movl	$32768, %edi                    ## imm = 0x8000
	movl	$40959, %esi                    ## imm = 0x9FFF
	callq	_MEMORY_SetRAM
	jmp	LBB0_4
LBB0_3:
	movl	$32768, %edi                    ## imm = 0x8000
	movl	$255, %esi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_MEMORY_dFillMem
LBB0_4:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cart809F_enabled,8,3           ## @cart809F_enabled
	.comm	_MEMORY_ram_size,4,2            ## @MEMORY_ram_size
	.comm	_MEMORY_mem,8,3                 ## @MEMORY_mem
	.comm	_under_cart809F,4,2             ## @under_cart809F
	.comm	_FALSE,8,3                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MEMORY_Cart809fDisable         ; -- Begin function MEMORY_Cart809fDisable
	.p2align	2
_MEMORY_Cart809fDisable:                ; @MEMORY_Cart809fDisable
	.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	x19, _cart809F_enabled@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cart809F_enabled@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _MEMORY_ram_size@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEMORY_ram_size@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #33
	b.lt	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _MEMORY_mem@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MEMORY_mem@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x0, x8, #8, lsl #12             ; =32768
Lloh8:
	adrp	x8, _under_cart809F@GOTPAGE
Lloh9:
	ldr	x8, [x8, _under_cart809F@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #8192
	bl	_memcpy
	mov	w0, #32768
	mov	w1, #40959
	bl	_MEMORY_SetRAM
	b	LBB0_4
LBB0_3:
	mov	w0, #32768
	mov	w1, #255
	mov	w2, #8192
	bl	_MEMORY_dFillMem
LBB0_4:
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_cart809F_enabled,8,3           ; @cart809F_enabled
	.comm	_MEMORY_ram_size,4,2            ; @MEMORY_ram_size
	.comm	_MEMORY_mem,8,3                 ; @MEMORY_mem
	.comm	_under_cart809F,4,2             ; @under_cart809F
	.comm	_FALSE,8,3                      ; @FALSE
.subsections_via_symbols
