	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function ctr_lcd_aptHook
LCPI0_0:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ctr_lcd_aptHook:                       ## @ctr_lcd_aptHook
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_APTHOOK_ONRESTORE@GOTPCREL(%rip), %r13
	cmpq	%rdi, (%r13)
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	callq	_GPUCMD_SetBufferOffset
	leaq	40(%r15), %rdi
	callq	_shaderProgramUse
	movl	36(%r15), %edi
	callq	_VIRT_TO_PHYS
	movq	_CTR_TOP_FRAMEBUFFER_HEIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_CTR_TOP_FRAMEBUFFER_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	xorl	%edi, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_GPU_SetViewport
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	callq	_GPU_DepthMap
	movq	_GPU_CULL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GPU_SetFaceCulling
	movq	_GPU_ALWAYS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_GPU_SetStencilTest
	movq	_GPU_STENCIL_KEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movl	%edi, %edx
	callq	_GPU_SetStencilOp
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_GPU_SetBlendingColor
	movl	(%rbx), %esi
	movq	_GPU_WRITE_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_GPU_SetDepthTestAndWriteMask
	movq	_GPUREG_EARLYDEPTH_TEST1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_GPUCMD_AddMaskedWrite
	movq	_GPUREG_EARLYDEPTH_TEST2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_GPUCMD_AddWrite
	movq	_GPU_BLEND_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GPU_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GPU_ONE_MINUS_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edi, %esi
	movl	%edx, %r8d
	movl	%ecx, %r9d
	callq	_GPU_SetAlphaBlending
	movl	(%rbx), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_GPU_SetAlphaTest
	movq	_GPU_TEXUNIT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GPU_SetTextureEnable
	movq	_GPU_TEXTURE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GPU_REPLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%edi, %edi
	movl	%edx, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%r9
	callq	_GPU_SetTexEnv
	addq	$16, %rsp
	movq	_GPU_PREVIOUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$1, %edi
	movl	%edx, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_GPU_SetTexEnv
	addq	$16, %rsp
	movl	(%rbx), %edx
	movl	$2, %edi
	movl	%edx, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_GPU_SetTexEnv
	addq	$16, %rsp
	movl	(%rbx), %edx
	movl	$3, %edi
	movl	%edx, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_GPU_SetTexEnv
	addq	$16, %rsp
	movl	(%rbx), %edx
	movl	$4, %edi
	movl	%edx, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_GPU_SetTexEnv
	addq	$16, %rsp
	movl	(%rbx), %edx
	movl	$5, %edi
	movl	%edx, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_GPU_SetTexEnv
	addq	$16, %rsp
	movl	32(%r15), %edi
	callq	_VIRT_TO_PHYS
	movl	%eax, %r12d
	movq	_GPU_SHORT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	$4, %esi
	callq	_CTRGU_ATTRIBFMT
	movl	%eax, %ebx
	movl	(%r13), %edi
	movq	_APTHOOK_ONRESTORE@GOTPCREL(%rip), %r13
	movl	$4, %esi
	callq	_CTRGU_ATTRIBFMT
	shll	$4, %eax
	orl	%eax, %ebx
	movl	$2, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	$4, %ecx
	callq	_ctrGuSetAttributeBuffers
	xorl	%eax, %eax
	callq	_GPU_Finalize
	movl	$1, %edi
	callq	_ctrGuFlushAndRun
	movq	_GSPGPU_EVENT_P3D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gspWaitForEvent
	movl	$0, (%r15)
LBB0_3:
	movq	_APTHOOK_ONSUSPEND@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	%r14, %rax
	jne	LBB0_6
## %bb.4:
	movq	8(%r15), %rax
	movq	_CTR_VIDEO_MODE_2D_400x240@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	_gfxTopRightFramebuffers@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	16(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_gfxTopLeftFramebuffers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %esi
	movl	$288000, %edx                   ## imm = 0x46500
	callq	_memcpy
	movq	(%r12), %rax
	movq	16(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$288000, %esi                   ## imm = 0x46500
	callq	_GSPGPU_FlushDataCache
	movq	(%rbx), %rax
LBB0_6:
	cmpq	%r14, %rax
	jne	LBB0_9
LBB0_7:
	cmpq	$0, 24(%r15)
	je	LBB0_11
## %bb.8:
	xorps	%xmm0, %xmm0
	cmpneqss	536350848, %xmm0
	movd	%xmm0, %edi
	andl	$1, %edi
	callq	_ctr_set_parallax_layer
	movq	(%rbx), %rax
LBB0_9:
	cmpq	%r14, %rax
	je	LBB0_11
## %bb.10:
	cmpq	%r14, (%r13)
	jne	LBB0_14
LBB0_11:
	leaq	-56(%rbp), %rdi
	callq	_CFGU_GetModelNintendo2DS
	cmpq	$0, -56(%rbp)
	je	LBB0_14
## %bb.12:
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdi
	callq	_srvGetServiceHandle
	testq	%rax, %rax
	js	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_getThreadCommandBuffer
	cmpq	%r14, (%rbx)
	setne	%cl
	movq	_ctr_bottom_screen_enabled@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	sete	%dl
	andb	%cl, %dl
	movzbl	%dl, %ecx
	shll	$16, %ecx
	addl	$1114176, %ecx                  ## imm = 0x110040
	movl	%ecx, (%rax)
	movl	$2, 4(%rax)
	movl	-44(%rbp), %edi
	callq	_svcSendSyncRequest
	movl	-44(%rbp), %edi
	callq	_svcCloseHandle
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APTHOOK_ONRESTORE,8,3          ## @APTHOOK_ONRESTORE
	.comm	_CTR_TOP_FRAMEBUFFER_HEIGHT,4,2 ## @CTR_TOP_FRAMEBUFFER_HEIGHT
	.comm	_CTR_TOP_FRAMEBUFFER_WIDTH,4,2  ## @CTR_TOP_FRAMEBUFFER_WIDTH
	.comm	_GPU_CULL_NONE,4,2              ## @GPU_CULL_NONE
	.comm	_GPU_ALWAYS,4,2                 ## @GPU_ALWAYS
	.comm	_GPU_STENCIL_KEEP,4,2           ## @GPU_STENCIL_KEEP
	.comm	_GPU_WRITE_COLOR,4,2            ## @GPU_WRITE_COLOR
	.comm	_GPUREG_EARLYDEPTH_TEST1,4,2    ## @GPUREG_EARLYDEPTH_TEST1
	.comm	_GPUREG_EARLYDEPTH_TEST2,4,2    ## @GPUREG_EARLYDEPTH_TEST2
	.comm	_GPU_BLEND_ADD,4,2              ## @GPU_BLEND_ADD
	.comm	_GPU_SRC_ALPHA,4,2              ## @GPU_SRC_ALPHA
	.comm	_GPU_ONE_MINUS_SRC_ALPHA,4,2    ## @GPU_ONE_MINUS_SRC_ALPHA
	.comm	_GPU_TEXUNIT0,4,2               ## @GPU_TEXUNIT0
	.comm	_GPU_TEXTURE0,4,2               ## @GPU_TEXTURE0
	.comm	_GPU_REPLACE,4,2                ## @GPU_REPLACE
	.comm	_GPU_PREVIOUS,4,2               ## @GPU_PREVIOUS
	.comm	_GPU_SHORT,4,2                  ## @GPU_SHORT
	.comm	_GSPGPU_EVENT_P3D,4,2           ## @GSPGPU_EVENT_P3D
	.comm	_APTHOOK_ONSUSPEND,8,3          ## @APTHOOK_ONSUSPEND
	.comm	_CTR_VIDEO_MODE_2D_400x240,8,3  ## @CTR_VIDEO_MODE_2D_400x240
	.comm	_gfxTopRightFramebuffers,8,3    ## @gfxTopRightFramebuffers
	.comm	_gfxTopLeftFramebuffers,8,3     ## @gfxTopLeftFramebuffers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gsp::Lcd"

	.comm	_ctr_bottom_screen_enabled,8,3  ## @ctr_bottom_screen_enabled
	.no_dead_strip	_ctr_lcd_aptHook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctr_lcd_aptHook
_ctr_lcd_aptHook:                       ; @ctr_lcd_aptHook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x1, LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _APTHOOK_ONRESTORE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _APTHOOK_ONRESTORE@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, x0
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	bl	_GPUCMD_SetBufferOffset
	add	x0, x20, #40
	bl	_shaderProgramUse
	ldr	w0, [x20, #36]
	bl	_VIRT_TO_PHYS
	mov	x1, x0
Lloh2:
	adrp	x8, _CTR_TOP_FRAMEBUFFER_HEIGHT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CTR_TOP_FRAMEBUFFER_HEIGHT@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
Lloh5:
	adrp	x8, _CTR_TOP_FRAMEBUFFER_WIDTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CTR_TOP_FRAMEBUFFER_WIDTH@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	mov	x0, #0
	mov	w2, #0
	mov	w3, #0
	bl	_GPU_SetViewport
	fmov	s0, #-1.00000000
	movi	d1, #0000000000000000
	bl	_GPU_DepthMap
Lloh8:
	adrp	x8, _GPU_CULL_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPU_CULL_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_GPU_SetFaceCulling
Lloh11:
	adrp	x21, _GPU_ALWAYS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _GPU_ALWAYS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #0
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_GPU_SetStencilTest
Lloh13:
	adrp	x8, _GPU_STENCIL_KEEP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GPU_STENCIL_KEEP@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x0
	bl	_GPU_SetStencilOp
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_GPU_SetBlendingColor
	ldr	w1, [x21]
Lloh16:
	adrp	x8, _GPU_WRITE_COLOR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GPU_WRITE_COLOR@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w0, #0
	bl	_GPU_SetDepthTestAndWriteMask
Lloh19:
	adrp	x8, _GPUREG_EARLYDEPTH_TEST1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GPUREG_EARLYDEPTH_TEST1@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	w1, #1
	mov	w2, #0
	bl	_GPUCMD_AddMaskedWrite
Lloh22:
	adrp	x8, _GPUREG_EARLYDEPTH_TEST2@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GPUREG_EARLYDEPTH_TEST2@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_GPUCMD_AddWrite
Lloh25:
	adrp	x8, _GPU_BLEND_ADD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GPU_BLEND_ADD@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _GPU_SRC_ALPHA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GPU_SRC_ALPHA@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x8, _GPU_ONE_MINUS_SRC_ALPHA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GPU_ONE_MINUS_SRC_ALPHA@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	mov	x1, x0
	mov	x4, x2
	mov	x5, x3
	bl	_GPU_SetAlphaBlending
	ldr	w1, [x21]
	mov	w0, #0
	mov	w2, #0
	bl	_GPU_SetAlphaTest
Lloh34:
	adrp	x8, _GPU_TEXUNIT0@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GPU_TEXUNIT0@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_GPU_SetTextureEnable
Lloh37:
	adrp	x8, _GPU_TEXTURE0@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GPU_TEXTURE0@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _GPU_REPLACE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GPU_REPLACE@GOTPAGEOFF]
Lloh42:
	ldr	w5, [x8]
	mov	w0, #0
	mov	x2, x1
	mov	w3, #0
	mov	w4, #0
	mov	x6, x5
	mov	w7, #0
	bl	_GPU_SetTexEnv
Lloh43:
	adrp	x21, _GPU_PREVIOUS@GOTPAGE
Lloh44:
	ldr	x21, [x21, _GPU_PREVIOUS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #1
	mov	x2, x1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_GPU_SetTexEnv
	ldr	w1, [x21]
	mov	w0, #2
	mov	x2, x1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_GPU_SetTexEnv
	ldr	w1, [x21]
	mov	w0, #3
	mov	x2, x1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_GPU_SetTexEnv
	ldr	w1, [x21]
	mov	w0, #4
	mov	x2, x1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_GPU_SetTexEnv
	ldr	w1, [x21]
	mov	w0, #5
	mov	x2, x1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_GPU_SetTexEnv
	ldr	w0, [x20, #32]
	bl	_VIRT_TO_PHYS
	mov	x21, x0
Lloh45:
	adrp	x24, _GPU_SHORT@GOTPAGE
Lloh46:
	ldr	x24, [x24, _GPU_SHORT@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	w1, #4
	bl	_CTRGU_ATTRIBFMT
	mov	x22, x0
	ldr	w0, [x24]
	mov	w1, #4
	bl	_CTRGU_ATTRIBFMT
	orr	w2, w22, w0, lsl #4
	mov	w0, #2
	mov	x1, x21
	mov	w3, #4
	bl	_ctrGuSetAttributeBuffers
	bl	_GPU_Finalize
	mov	w0, #1
	bl	_ctrGuFlushAndRun
Lloh47:
	adrp	x8, _GSPGPU_EVENT_P3D@GOTPAGE
Lloh48:
	ldr	x8, [x8, _GSPGPU_EVENT_P3D@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gspWaitForEvent
	str	wzr, [x20]
LBB0_3:
Lloh50:
	adrp	x21, _APTHOOK_ONSUSPEND@GOTPAGE
Lloh51:
	ldr	x21, [x21, _APTHOOK_ONSUSPEND@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x20, #8]
Lloh52:
	adrp	x9, _CTR_VIDEO_MODE_2D_400x240@GOTPAGE
Lloh53:
	ldr	x9, [x9, _CTR_VIDEO_MODE_2D_400x240@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
Lloh55:
	adrp	x22, _gfxTopRightFramebuffers@GOTPAGE
Lloh56:
	ldr	x22, [x22, _gfxTopRightFramebuffers@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x20, #16]
	lsl	x9, x9, #2
	ldr	w0, [x8, x9]
Lloh57:
	adrp	x8, _gfxTopLeftFramebuffers@GOTPAGE
Lloh58:
	ldr	x8, [x8, _gfxTopLeftFramebuffers@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	ldr	w1, [x8, x9]
	mov	w2, #25856
	movk	w2, #4, lsl #16
	bl	_memcpy
	ldr	x8, [x22]
	ldr	x9, [x20, #16]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #25856
	movk	w1, #4, lsl #16
	bl	_GSPGPU_FlushDataCache
	ldr	x8, [x21]
LBB0_6:
	cmp	x8, x19
	b.ne	LBB0_9
LBB0_7:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_10
; %bb.8:
	mov	w8, #4224
	movk	w8, #8184, lsl #16
	ldr	s0, [x8]
	fcmp	s0, #0.0
	cset	w0, ne
	bl	_ctr_set_parallax_layer
	ldr	x8, [x21]
LBB0_9:
	ldr	x9, [x23]
	cmp	x8, x19
	ccmp	x9, x19, #4, ne
	b.ne	LBB0_13
LBB0_10:
	mov	x0, sp
	bl	_CFGU_GetModelNintendo2DS
	ldr	x8, [sp]
	cbz	x8, LBB0_13
; %bb.11:
Lloh60:
	adrp	x1, l_.str@PAGE
Lloh61:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #12
	bl	_srvGetServiceHandle
	tbnz	x0, #63, LBB0_13
; %bb.12:
	bl	_getThreadCommandBuffer
	ldr	x8, [x21]
Lloh62:
	adrp	x9, _ctr_bottom_screen_enabled@GOTPAGE
Lloh63:
	ldr	x9, [x9, _ctr_bottom_screen_enabled@GOTPAGEOFF]
Lloh64:
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	x8, x19, #4, eq
	mov	w8, #64
	movk	w8, #17, lsl #16
	add	w9, w8, #16, lsl #12            ; =65536
	csel	w8, w8, w9, eq
	mov	w9, #2
	stp	w8, w9, [x0]
	ldr	w0, [sp, #12]
	bl	_svcSendSyncRequest
	ldr	w0, [sp, #12]
	bl	_svcCloseHandle
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	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
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_APTHOOK_ONRESTORE,8,3          ; @APTHOOK_ONRESTORE
	.comm	_CTR_TOP_FRAMEBUFFER_HEIGHT,4,2 ; @CTR_TOP_FRAMEBUFFER_HEIGHT
	.comm	_CTR_TOP_FRAMEBUFFER_WIDTH,4,2  ; @CTR_TOP_FRAMEBUFFER_WIDTH
	.comm	_GPU_CULL_NONE,4,2              ; @GPU_CULL_NONE
	.comm	_GPU_ALWAYS,4,2                 ; @GPU_ALWAYS
	.comm	_GPU_STENCIL_KEEP,4,2           ; @GPU_STENCIL_KEEP
	.comm	_GPU_WRITE_COLOR,4,2            ; @GPU_WRITE_COLOR
	.comm	_GPUREG_EARLYDEPTH_TEST1,4,2    ; @GPUREG_EARLYDEPTH_TEST1
	.comm	_GPUREG_EARLYDEPTH_TEST2,4,2    ; @GPUREG_EARLYDEPTH_TEST2
	.comm	_GPU_BLEND_ADD,4,2              ; @GPU_BLEND_ADD
	.comm	_GPU_SRC_ALPHA,4,2              ; @GPU_SRC_ALPHA
	.comm	_GPU_ONE_MINUS_SRC_ALPHA,4,2    ; @GPU_ONE_MINUS_SRC_ALPHA
	.comm	_GPU_TEXUNIT0,4,2               ; @GPU_TEXUNIT0
	.comm	_GPU_TEXTURE0,4,2               ; @GPU_TEXTURE0
	.comm	_GPU_REPLACE,4,2                ; @GPU_REPLACE
	.comm	_GPU_PREVIOUS,4,2               ; @GPU_PREVIOUS
	.comm	_GPU_SHORT,4,2                  ; @GPU_SHORT
	.comm	_GSPGPU_EVENT_P3D,4,2           ; @GSPGPU_EVENT_P3D
	.comm	_APTHOOK_ONSUSPEND,8,3          ; @APTHOOK_ONSUSPEND
	.comm	_CTR_VIDEO_MODE_2D_400x240,8,3  ; @CTR_VIDEO_MODE_2D_400x240
	.comm	_gfxTopRightFramebuffers,8,3    ; @gfxTopRightFramebuffers
	.comm	_gfxTopLeftFramebuffers,8,3     ; @gfxTopLeftFramebuffers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gsp::Lcd"

	.comm	_ctr_bottom_screen_enabled,8,3  ; @ctr_bottom_screen_enabled
	.no_dead_strip	_ctr_lcd_aptHook
.subsections_via_symbols
