	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function vidResetMode
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vidResetMode:                          ## @vidResetMode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_sceGuSync
	movq	_GU_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_guCmdList@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sceGuStart
	movq	_GU_PSM_5650@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$255, %edx
	xorl	%ecx, %ecx
	callq	_sceGuClutMode
	movq	_GU_PSM_T8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sceGuTexMode
	movq	_GU_TFX_REPLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GU_TCC_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sceGuTexFunc
	movq	_currentConfig@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_GU_LINEAR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_GU_NEAREST@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	movl	%edi, %esi
	callq	_sceGuTexFilter
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	callq	_sceGuTexScale
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	callq	_sceGuTexOffset
	movq	_VRAM_STUFF@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	addq	$16, %r8
	xorl	%edi, %edi
	movl	$512, %esi                      ## imm = 0x200
	movl	$512, %edx                      ## imm = 0x200
	movl	$512, %ecx                      ## imm = 0x200
	callq	_sceGuTexImage
	movq	_PDF_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_PicoDrawSetOutFormat
	movq	_EmuScanSlowBegin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EmuScanSlowEnd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PicoDrawSetCallbacks
	movq	_localPal@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, 896(%rax)
	movl	$31, 960(%rax)
	movq	_Pico@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_dynamic_palette@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_blit_16bit_mode@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_sceGuFinish
	xorl	%eax, %eax
	callq	_set_scaling_params
	xorl	%edi, %edi
	xorl	%esi, %esi
	popq	%rbp
	jmp	_sceGuSync                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GU_DIRECT,4,2                  ## @GU_DIRECT
	.comm	_guCmdList,4,2                  ## @guCmdList
	.comm	_GU_PSM_5650,4,2                ## @GU_PSM_5650
	.comm	_GU_PSM_T8,4,2                  ## @GU_PSM_T8
	.comm	_GU_TFX_REPLACE,4,2             ## @GU_TFX_REPLACE
	.comm	_GU_TCC_RGB,4,2                 ## @GU_TCC_RGB
	.comm	_currentConfig,8,3              ## @currentConfig
	.comm	_GU_LINEAR,4,2                  ## @GU_LINEAR
	.comm	_GU_NEAREST,4,2                 ## @GU_NEAREST
	.comm	_VRAM_STUFF,8,3                 ## @VRAM_STUFF
	.comm	_PDF_NONE,4,2                   ## @PDF_NONE
	.comm	_EmuScanSlowBegin,4,2           ## @EmuScanSlowBegin
	.comm	_EmuScanSlowEnd,4,2             ## @EmuScanSlowEnd
	.comm	_localPal,8,3                   ## @localPal
	.comm	_Pico,4,2                       ## @Pico
	.comm	_dynamic_palette,8,3            ## @dynamic_palette
	.comm	_blit_16bit_mode,8,3            ## @blit_16bit_mode
	.no_dead_strip	_vidResetMode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidResetMode
_vidResetMode:                          ; @vidResetMode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w0, #0
	mov	w1, #0
	bl	_sceGuSync
Lloh0:
	adrp	x8, _GU_DIRECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GU_DIRECT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _guCmdList@GOTPAGE
Lloh4:
	ldr	x8, [x8, _guCmdList@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_sceGuStart
Lloh6:
	adrp	x8, _GU_PSM_5650@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GU_PSM_5650@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #255
	mov	w3, #0
	bl	_sceGuClutMode
Lloh9:
	adrp	x8, _GU_PSM_T8@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GU_PSM_T8@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_sceGuTexMode
Lloh12:
	adrp	x8, _GU_TFX_REPLACE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GU_TFX_REPLACE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _GU_TCC_RGB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GU_TCC_RGB@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_sceGuTexFunc
Lloh18:
	adrp	x8, _currentConfig@GOTPAGE
Lloh19:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh21:
	adrp	x8, _GU_LINEAR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GU_LINEAR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh23:
	adrp	x8, _GU_NEAREST@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GU_NEAREST@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	mov	x1, x0
	bl	_sceGuTexFilter
	fmov	s0, #1.00000000
	fmov	s1, #1.00000000
	bl	_sceGuTexScale
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	bl	_sceGuTexOffset
Lloh25:
	adrp	x8, _VRAM_STUFF@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VRAM_STUFF@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	add	x4, x8, #16
	mov	w0, #0
	mov	w1, #512
	mov	w2, #512
	mov	w3, #512
	bl	_sceGuTexImage
Lloh28:
	adrp	x8, _PDF_NONE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PDF_NONE@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_PicoDrawSetOutFormat
Lloh31:
	adrp	x8, _EmuScanSlowBegin@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EmuScanSlowBegin@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x8, _EmuScanSlowEnd@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EmuScanSlowEnd@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	bl	_PicoDrawSetCallbacks
Lloh37:
	adrp	x8, _localPal@GOTPAGE
Lloh38:
	ldr	x8, [x8, _localPal@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	str	wzr, [x8, #896]
	mov	w9, #31
	str	w9, [x8, #960]
Lloh40:
	adrp	x8, _Pico@GOTPAGE
Lloh41:
	ldr	x8, [x8, _Pico@GOTPAGEOFF]
	mov	w9, #1
Lloh42:
	str	w9, [x8]
Lloh43:
	adrp	x8, _dynamic_palette@GOTPAGE
Lloh44:
	ldr	x8, [x8, _dynamic_palette@GOTPAGEOFF]
Lloh45:
	str	xzr, [x8]
Lloh46:
	adrp	x8, _blit_16bit_mode@GOTPAGE
Lloh47:
	ldr	x8, [x8, _blit_16bit_mode@GOTPAGEOFF]
Lloh48:
	str	xzr, [x8]
	bl	_sceGuFinish
	bl	_set_scaling_params
	mov	w0, #0
	mov	w1, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_sceGuSync
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GU_DIRECT,4,2                  ; @GU_DIRECT
	.comm	_guCmdList,4,2                  ; @guCmdList
	.comm	_GU_PSM_5650,4,2                ; @GU_PSM_5650
	.comm	_GU_PSM_T8,4,2                  ; @GU_PSM_T8
	.comm	_GU_TFX_REPLACE,4,2             ; @GU_TFX_REPLACE
	.comm	_GU_TCC_RGB,4,2                 ; @GU_TCC_RGB
	.comm	_currentConfig,8,3              ; @currentConfig
	.comm	_GU_LINEAR,4,2                  ; @GU_LINEAR
	.comm	_GU_NEAREST,4,2                 ; @GU_NEAREST
	.comm	_VRAM_STUFF,8,3                 ; @VRAM_STUFF
	.comm	_PDF_NONE,4,2                   ; @PDF_NONE
	.comm	_EmuScanSlowBegin,4,2           ; @EmuScanSlowBegin
	.comm	_EmuScanSlowEnd,4,2             ; @EmuScanSlowEnd
	.comm	_localPal,8,3                   ; @localPal
	.comm	_Pico,4,2                       ; @Pico
	.comm	_dynamic_palette,8,3            ; @dynamic_palette
	.comm	_blit_16bit_mode,8,3            ; @blit_16bit_mode
	.no_dead_strip	_vidResetMode
.subsections_via_symbols
