	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frontend_ctr_init
_frontend_ctr_init:                     ## @frontend_ctr_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_verbosity_enable
	movq	_GSP_BGR8_OES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GSP_RGB565_OES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_gfxInit
	movq	_gfxTopLeftFramebuffers@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_linearFree
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	callq	_linearFree
	movq	_gfxBottomFramebuffers@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_linearFree
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	callq	_linearFree
	movq	_gfxTopRightFramebuffers@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_linearFree
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_linearFree
	movl	$576000, %edi                   ## imm = 0x8CA00
	callq	_linearAlloc
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	addq	$288000, %rax                   ## imm = 0x46500
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	$576000, %edi                   ## imm = 0x8CA00
	callq	_linearAlloc
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	addq	$288000, %rax                   ## imm = 0x46500
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	$153600, %edi                   ## imm = 0x25800
	callq	_linearAlloc
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movl	$153600, %edi                   ## imm = 0x25800
	callq	_linearAlloc
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	_GFX_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gfxSetFramebufferInfo
	movq	_GFX_BOTTOM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_gfxSetFramebufferInfo
	movl	$1, %edi
	callq	_gfxSet3D
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_consoleInit
	xorl	%edi, %edi
	callq	_osSetSpeedupEnable
	movq	___ctr_patch_services@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_svchax_init
	movl	$1, %edi
	callq	_osSetSpeedupEnable
	xorl	%eax, %eax
	callq	_csndInit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_audio_null@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_audio_ctr_csnd@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_2:
	xorl	%eax, %eax
	callq	_ctr_check_dspfirm
	xorl	%eax, %eax
	callq	_ndspInit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_audio_null@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_audio_ctr_dsp@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_4:
	xorl	%eax, %eax
	callq	_cfguInit
	xorl	%eax, %eax
	callq	_ptmuInit
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mcuHwcInit                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GSP_BGR8_OES,4,2               ## @GSP_BGR8_OES
	.comm	_GSP_RGB565_OES,4,2             ## @GSP_RGB565_OES
	.comm	_gfxTopLeftFramebuffers,8,3     ## @gfxTopLeftFramebuffers
	.comm	_gfxBottomFramebuffers,8,3      ## @gfxBottomFramebuffers
	.comm	_gfxTopRightFramebuffers,8,3    ## @gfxTopRightFramebuffers
	.comm	_GFX_TOP,4,2                    ## @GFX_TOP
	.comm	_GFX_BOTTOM,4,2                 ## @GFX_BOTTOM
	.comm	___ctr_patch_services,4,2       ## @__ctr_patch_services
	.comm	_audio_null,8,3                 ## @audio_null
	.comm	_audio_ctr_csnd,8,3             ## @audio_ctr_csnd
	.comm	_audio_ctr_dsp,8,3              ## @audio_ctr_dsp
	.no_dead_strip	_frontend_ctr_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frontend_ctr_init
_frontend_ctr_init:                     ; @frontend_ctr_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_verbosity_enable
Lloh0:
	adrp	x8, _GSP_BGR8_OES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSP_BGR8_OES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GSP_RGB565_OES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSP_RGB565_OES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_gfxInit
Lloh6:
	adrp	x20, _gfxTopLeftFramebuffers@GOTPAGE
Lloh7:
	ldr	x20, [x20, _gfxTopLeftFramebuffers@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_linearFree
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	bl	_linearFree
Lloh8:
	adrp	x19, _gfxBottomFramebuffers@GOTPAGE
Lloh9:
	ldr	x19, [x19, _gfxBottomFramebuffers@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_linearFree
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_linearFree
Lloh10:
	adrp	x21, _gfxTopRightFramebuffers@GOTPAGE
Lloh11:
	ldr	x21, [x21, _gfxTopRightFramebuffers@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_linearFree
	ldr	x8, [x21]
	ldr	x0, [x8, #8]
	bl	_linearFree
	mov	w0, #51712
	movk	w0, #8, lsl #16
	bl	_linearAlloc
	ldr	x8, [x20]
	str	x0, [x8]
	mov	w22, #25856
	movk	w22, #4, lsl #16
	add	x8, x0, x22
	ldr	x9, [x21]
	str	x8, [x9]
	mov	w0, #51712
	movk	w0, #8, lsl #16
	bl	_linearAlloc
	ldr	x8, [x20]
	str	x0, [x8, #8]
	add	x8, x0, x22
	ldr	x9, [x21]
	str	x8, [x9, #8]
	mov	w0, #22528
	movk	w0, #2, lsl #16
	bl	_linearAlloc
	ldr	x8, [x19]
	str	x0, [x8]
	mov	w0, #22528
	movk	w0, #2, lsl #16
	bl	_linearAlloc
	ldr	x8, [x19]
	str	x0, [x8, #8]
Lloh12:
	adrp	x8, _GFX_TOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFX_TOP@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gfxSetFramebufferInfo
Lloh15:
	adrp	x19, _GFX_BOTTOM@GOTPAGE
Lloh16:
	ldr	x19, [x19, _GFX_BOTTOM@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #0
	bl	_gfxSetFramebufferInfo
	mov	w0, #1
	bl	_gfxSet3D
	ldr	w0, [x19]
	mov	x1, #0
	bl	_consoleInit
	mov	w0, #0
	bl	_osSetSpeedupEnable
Lloh17:
	adrp	x8, ___ctr_patch_services@GOTPAGE
Lloh18:
	ldr	x8, [x8, ___ctr_patch_services@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_svchax_init
	mov	w0, #1
	bl	_osSetSpeedupEnable
	bl	_csndInit
Lloh20:
	adrp	x19, _audio_null@GOTPAGE
Lloh21:
	ldr	x19, [x19, _audio_null@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _audio_ctr_csnd@GOTPAGE
Lloh23:
	ldr	x9, [x9, _audio_ctr_csnd@GOTPAGEOFF]
Lloh24:
	str	x8, [x9]
LBB0_2:
	bl	_ctr_check_dspfirm
	bl	_ndspInit
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
Lloh25:
	adrp	x9, _audio_ctr_dsp@GOTPAGE
Lloh26:
	ldr	x9, [x9, _audio_ctr_dsp@GOTPAGEOFF]
Lloh27:
	str	x8, [x9]
LBB0_4:
	bl	_cfguInit
	bl	_ptmuInit
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mcuHwcInit
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GSP_BGR8_OES,4,2               ; @GSP_BGR8_OES
	.comm	_GSP_RGB565_OES,4,2             ; @GSP_RGB565_OES
	.comm	_gfxTopLeftFramebuffers,8,3     ; @gfxTopLeftFramebuffers
	.comm	_gfxBottomFramebuffers,8,3      ; @gfxBottomFramebuffers
	.comm	_gfxTopRightFramebuffers,8,3    ; @gfxTopRightFramebuffers
	.comm	_GFX_TOP,4,2                    ; @GFX_TOP
	.comm	_GFX_BOTTOM,4,2                 ; @GFX_BOTTOM
	.comm	___ctr_patch_services,4,2       ; @__ctr_patch_services
	.comm	_audio_null,8,3                 ; @audio_null
	.comm	_audio_ctr_csnd,8,3             ; @audio_ctr_csnd
	.comm	_audio_ctr_dsp,8,3              ; @audio_ctr_dsp
	.no_dead_strip	_frontend_ctr_init
.subsections_via_symbols
