	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoResetMCD                   ## -- Begin function PicoResetMCD
	.p2align	4, 0x90
_PicoResetMCD:                          ## @PicoResetMCD
	.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	_PicoOpt@GOTPCREL(%rip), %rax
	movq	_POPT_EN_MCD_RAMCART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_SRam@GOTPCREL(%rip), %rbx
	movq	24(%rbx), %rdi
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.1:
	testq	%rdi, %rdi
	jne	LBB0_5
## %bb.2:
	movl	$1, %edi
	movl	$73728, %esi                    ## imm = 0x12000
	callq	_calloc
	movq	%rax, 24(%rbx)
	jmp	LBB0_5
LBB0_3:
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_EN_MCD_RAMCART,4,2        ## @POPT_EN_MCD_RAMCART
	.comm	_SRam,32,3                      ## @SRam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoResetMCD                   ; -- Begin function PicoResetMCD
	.p2align	2
_PicoResetMCD:                          ; @PicoResetMCD
	.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	x8, _PicoOpt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
Lloh2:
	adrp	x9, _POPT_EN_MCD_RAMCART@GOTPAGE
Lloh3:
	ldr	x9, [x9, _POPT_EN_MCD_RAMCART@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x19, _SRam@GOTPAGE
Lloh7:
	ldr	x19, [x19, _SRam@GOTPAGEOFF]
	ldr	x0, [x19, #24]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	cbnz	x0, LBB0_5
; %bb.2:
	mov	w0, #1
	mov	w1, #8192
	movk	w1, #1, lsl #16
	bl	_calloc
	str	x0, [x19, #24]
	b	LBB0_5
LBB0_3:
	cbz	x0, LBB0_5
; %bb.4:
	bl	_free
	stp	xzr, xzr, [x19, #16]
LBB0_5:
	stp	xzr, xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_EN_MCD_RAMCART,4,2        ; @POPT_EN_MCD_RAMCART
	.comm	_SRam,32,3                      ; @SRam
.subsections_via_symbols
