	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoSVPStartup                 ## -- Begin function PicoSVPStartup
	.p2align	4, 0x90
_PicoSVPStartup:                        ## @PicoSVPStartup
	.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	_EL_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elprintf
	movq	_Pico@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	$24, %edi
	callq	_PicoCartResize
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_EL_SVP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_elprintf                       ## TAILCALL
LBB0_1:
	movslq	(%rbx), %rdi
	addq	8(%rbx), %rdi
	movq	_svp@GOTPCREL(%rip), %rbx
	movq	%rdi, (%rbx)
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_svp_dyn_ready@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_PicoSVPMemSetup@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PicoCartMemSetup@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_PicoSVPDma@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PicoDmaHook@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_PicoSVPReset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PicoResetHook@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_PicoSVPLine@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PicoLineHook@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_PicoSVPExit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PicoCartUnloadHook@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx), %rax
	movq	16(%rax), %rax
	movq	_svp_states@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rax, (%rdx)
	movq	(%rbx), %rax
	movq	8(%rax), %rdx
	movq	(%rcx), %rcx
	movq	%rdx, 8(%rcx)
	movq	%rax, 16(%rcx)
	movq	_carthw_chunks@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movq	_PAHW_SVP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PicoAHW@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EL_STATUS,4,2                  ## @EL_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SVP startup"

	.comm	_Pico,16,3                      ## @Pico
	.comm	_EL_SVP,4,2                     ## @EL_SVP
L_.str.1:                               ## @.str.1
	.asciz	"OOM for SVP data"

	.comm	_svp,8,3                        ## @svp
	.comm	_svp_dyn_ready,4,2              ## @svp_dyn_ready
	.comm	_PicoSVPMemSetup,4,2            ## @PicoSVPMemSetup
	.comm	_PicoCartMemSetup,4,2           ## @PicoCartMemSetup
	.comm	_PicoSVPDma,4,2                 ## @PicoSVPDma
	.comm	_PicoDmaHook,4,2                ## @PicoDmaHook
	.comm	_PicoSVPReset,4,2               ## @PicoSVPReset
	.comm	_PicoResetHook,4,2              ## @PicoResetHook
	.comm	_PicoSVPLine,4,2                ## @PicoSVPLine
	.comm	_PicoLineHook,4,2               ## @PicoLineHook
	.comm	_PicoSVPExit,4,2                ## @PicoSVPExit
	.comm	_PicoCartUnloadHook,4,2         ## @PicoCartUnloadHook
	.comm	_svp_states,8,3                 ## @svp_states
	.comm	_carthw_chunks,8,3              ## @carthw_chunks
	.comm	_PAHW_SVP,4,2                   ## @PAHW_SVP
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_POPT_EN_DRC,4,2                ## @POPT_EN_DRC
	.comm	_PicoOpt,4,2                    ## @PicoOpt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoSVPStartup                 ; -- Begin function PicoSVPStartup
	.p2align	2
_PicoSVPStartup:                        ; @PicoSVPStartup
	.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, _EL_STATUS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _EL_STATUS@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
Lloh4:
	adrp	x20, _Pico@GOTPAGE
Lloh5:
	ldr	x20, [x20, _Pico@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w0, w8, #24
	bl	_PicoCartResize
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _EL_SVP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EL_SVP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_elprintf
LBB0_2:
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	add	x0, x8, x9
Lloh11:
	adrp	x19, _svp@GOTPAGE
Lloh12:
	ldr	x19, [x19, _svp@GOTPAGEOFF]
	str	x0, [x19]
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh13:
	adrp	x8, _svp_dyn_ready@GOTPAGE
Lloh14:
	ldr	x8, [x8, _svp_dyn_ready@GOTPAGEOFF]
Lloh15:
	str	wzr, [x8]
Lloh16:
	adrp	x8, _PicoSVPMemSetup@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PicoSVPMemSetup@GOTPAGEOFF]
Lloh18:
	adrp	x9, _PicoCartMemSetup@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PicoCartMemSetup@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	str	w8, [x9]
Lloh22:
	adrp	x8, _PicoSVPDma@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PicoSVPDma@GOTPAGEOFF]
Lloh24:
	adrp	x9, _PicoDmaHook@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PicoDmaHook@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	str	w8, [x9]
Lloh28:
	adrp	x8, _PicoSVPReset@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PicoSVPReset@GOTPAGEOFF]
Lloh30:
	adrp	x9, _PicoResetHook@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PicoResetHook@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	str	w8, [x9]
Lloh34:
	adrp	x8, _PicoSVPLine@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PicoSVPLine@GOTPAGEOFF]
Lloh36:
	adrp	x9, _PicoLineHook@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PicoLineHook@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	str	w8, [x9]
Lloh40:
	adrp	x8, _PicoSVPExit@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PicoSVPExit@GOTPAGEOFF]
Lloh42:
	adrp	x9, _PicoCartUnloadHook@GOTPAGE
Lloh43:
	ldr	x9, [x9, _PicoCartUnloadHook@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	str	w8, [x9]
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
Lloh46:
	adrp	x9, _svp_states@GOTPAGE
Lloh47:
	ldr	x9, [x9, _svp_states@GOTPAGEOFF]
	ldr	x10, [x9]
	str	x8, [x10]
	ldr	x8, [x19]
	ldr	x10, [x8, #8]
	ldr	x9, [x9]
	stp	x10, x8, [x9, #8]
Lloh48:
	adrp	x8, _carthw_chunks@GOTPAGE
Lloh49:
	ldr	x8, [x8, _carthw_chunks@GOTPAGEOFF]
Lloh50:
	str	x9, [x8]
Lloh51:
	adrp	x8, _PAHW_SVP@GOTPAGE
Lloh52:
	ldr	x8, [x8, _PAHW_SVP@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _PicoAHW@GOTPAGE
Lloh55:
	ldr	x9, [x9, _PicoAHW@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotStr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh44
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EL_STATUS,4,2                  ; @EL_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SVP startup"

	.comm	_Pico,16,3                      ; @Pico
	.comm	_EL_SVP,4,2                     ; @EL_SVP
l_.str.1:                               ; @.str.1
	.asciz	"OOM for SVP data"

	.comm	_svp,8,3                        ; @svp
	.comm	_svp_dyn_ready,4,2              ; @svp_dyn_ready
	.comm	_PicoSVPMemSetup,4,2            ; @PicoSVPMemSetup
	.comm	_PicoCartMemSetup,4,2           ; @PicoCartMemSetup
	.comm	_PicoSVPDma,4,2                 ; @PicoSVPDma
	.comm	_PicoDmaHook,4,2                ; @PicoDmaHook
	.comm	_PicoSVPReset,4,2               ; @PicoSVPReset
	.comm	_PicoResetHook,4,2              ; @PicoResetHook
	.comm	_PicoSVPLine,4,2                ; @PicoSVPLine
	.comm	_PicoLineHook,4,2               ; @PicoLineHook
	.comm	_PicoSVPExit,4,2                ; @PicoSVPExit
	.comm	_PicoCartUnloadHook,4,2         ; @PicoCartUnloadHook
	.comm	_svp_states,8,3                 ; @svp_states
	.comm	_carthw_chunks,8,3              ; @carthw_chunks
	.comm	_PAHW_SVP,4,2                   ; @PAHW_SVP
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_POPT_EN_DRC,4,2                ; @POPT_EN_DRC
	.comm	_PicoOpt,4,2                    ; @PicoOpt
.subsections_via_symbols
