	.file	"extr_gx2_gfx.c_wiiu_init_frame_textures.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to allocate Render target memory from MEM1. trying MEM2.\n"
	.align 8
.LC1:
	.string	"failed to allocate Render target memory from MEM2. falling back to stock.\n"
	.text
	.p2align 4
	.type	wiiu_init_frame_textures, @function
wiiu_init_frame_textures:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rdi, QWORD PTR 64[rdi]
	call	MEM2_free@PLT
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L5
	mov	ecx, DWORD PTR [rax]
	test	ecx, ecx
	je	.L5
	mov	rax, QWORD PTR 0[rbp]
	xor	r12d, r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L37:
	call	MEM1_free@PLT
.L7:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	add	r12d, 1
	mov	QWORD PTR 120[rax+rbx], 0
	cmp	DWORD PTR [rdx], r12d
	jbe	.L5
.L8:
	mov	edx, r12d
	lea	rcx, [rdx+rdx*4]
	lea	rbx, [rdx+rcx*4]
	sal	rbx, 3
	add	rax, rbx
	mov	edx, DWORD PTR [rax]
	mov	rdi, QWORD PTR 120[rax]
	test	edx, edx
	jne	.L37
	call	MEM2_free@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	lea	r12, 32[rbp]
	xor	esi, esi
	mov	edx, 4
	mov	rdi, r12
	call	memset@PLT
	mov	rax, QWORD PTR GX2_SURFACE_DIM_TEXTURE_2D[rip]
	cmp	QWORD PTR 112[rbp], 0
	mov	DWORD PTR 40[rbp], r13d
	mov	DWORD PTR 44[rbp], r14d
	mov	QWORD PTR 88[rbp], rax
	mov	eax, DWORD PTR GX2_TILE_MODE_LINEAR_ALIGNED[rip]
	mov	DWORD PTR 48[rbp], 1
	mov	DWORD PTR 96[rbp], eax
	mov	DWORD PTR 32[rbp], 1
	je	.L38
	mov	rax, QWORD PTR GX2_SURFACE_FORMAT_UNORM_R8_G8_B8_A8[rip]
	mov	ecx, DWORD PTR _1[rip]
	mov	edx, DWORD PTR _A[rip]
	mov	esi, DWORD PTR _B[rip]
	mov	QWORD PTR 80[rbp], rax
	mov	edi, DWORD PTR _G[rip]
	call	GX2_COMP_SEL@PLT
	mov	QWORD PTR 104[rbp], rax
.L9:
	lea	rdi, 40[rbp]
	call	GX2CalcSurfaceSizeAndAlignment@PLT
	mov	rdi, r12
	call	GX2InitTextureRegs@PLT
	mov	esi, DWORD PTR 72[rbp]
	mov	edi, DWORD PTR 52[rbp]
	call	MEM2_alloc@PLT
	mov	edx, DWORD PTR 52[rbp]
	xor	esi, esi
	mov	QWORD PTR 64[rbp], rax
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR 52[rbp]
	mov	rsi, QWORD PTR 64[rbp]
	mov	edi, DWORD PTR GX2_INVALIDATE_MODE_CPU_TEXTURE[rip]
	call	GX2Invalidate@PLT
	mov	rdx, QWORD PTR 16[rbp]
	test	rdx, rdx
	je	.L12
	mov	eax, DWORD PTR [rdx]
	test	eax, eax
	je	.L12
	xor	r12d, r12d
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L43:
	cmp	edx, 128
	je	.L39
.L16:
	mov	edx, DWORD PTR 12[rcx]
	cmp	edx, 129
	je	.L35
.L44:
	cmp	edx, 130
	je	.L18
	cmp	edx, 128
	je	.L40
.L20:
	test	r13d, r13d
	jne	.L21
	mov	r13d, DWORD PTR 24[rbp]
.L21:
	test	r14d, r14d
	jne	.L22
	mov	r14d, DWORD PTR 28[rbp]
.L22:
	lea	rdx, [rax+rax*4]
	mov	rdi, QWORD PTR 0[rbp]
	xor	esi, esi
	mov	QWORD PTR 8[rsp], rcx
	lea	rbx, [rax+rdx*4]
	mov	edx, 80
	sal	rbx, 3
	add	rdi, rbx
	add	rdi, 88
	call	memset@PLT
	mov	r15, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR GX2_SURFACE_DIM_TEXTURE_2D[rip]
	add	r15, rbx
	cmp	QWORD PTR 32[rcx], 0
	mov	QWORD PTR 144[r15], rax
	mov	rax, QWORD PTR GX2_SURFACE_FORMAT_FLOAT_R32_G32_B32_A32[rip]
	mov	DWORD PTR 96[r15], r13d
	mov	DWORD PTR 100[r15], r14d
	mov	DWORD PTR 104[r15], 1
	jne	.L25
	cmp	QWORD PTR 24[rcx], 0
	mov	rax, QWORD PTR GX2_SURFACE_FORMAT_UNORM_R8_G8_B8_A8[rip]
	je	.L25
	mov	rax, QWORD PTR GX2_SURFACE_FORMAT_SRGB_R8_G8_B8_A8[rip]
.L25:
	mov	QWORD PTR 136[r15], rax
	mov	eax, DWORD PTR GX2_SURFACE_USE_TEXTURE[rip]
	or	eax, DWORD PTR GX2_SURFACE_USE_COLOR_BUFFER[rip]
	mov	DWORD PTR 88[r15], 1
	mov	ecx, DWORD PTR _A[rip]
	mov	edx, DWORD PTR _B[rip]
	mov	DWORD PTR 116[r15], eax
	mov	esi, DWORD PTR _G[rip]
	mov	edi, DWORD PTR _R[rip]
	call	GX2_COMP_SEL@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	QWORD PTR 160[r15], rax
	add	rdi, rbx
	add	rdi, 96
	call	GX2CalcSurfaceSizeAndAlignment@PLT
	mov	rdi, QWORD PTR 0[rbp]
	add	rdi, rbx
	add	rdi, 88
	call	GX2InitTextureRegs@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	cmp	eax, r12d
	jne	.L26
	cmp	DWORD PTR 8[rbp], r13d
	je	.L41
.L26:
	mov	r15, QWORD PTR 0[rbp]
	add	r15, rbx
	mov	DWORD PTR [r15], 1
	mov	edi, DWORD PTR 108[r15]
	mov	esi, DWORD PTR 128[r15]
	call	MEM1_alloc@PLT
	mov	QWORD PTR 120[r15], rax
	mov	rax, QWORD PTR 0[rbp]
	add	rax, rbx
	mov	rdi, QWORD PTR 120[rax]
	test	rdi, rdi
	je	.L42
.L28:
	mov	edx, DWORD PTR 108[rax]
	xor	esi, esi
	call	memset@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR GX2_INVALIDATE_MODE_CPU_TEXTURE[rip]
	add	rax, rbx
	mov	edx, DWORD PTR 108[rax]
	mov	rsi, QWORD PTR 120[rax]
	call	GX2Invalidate@PLT
.L27:
	mov	rdi, QWORD PTR 0[rbp]
	mov	edx, 80
	xor	esi, esi
	add	r12d, 1
	add	rdi, rbx
	add	rdi, 8
	call	memset@PLT
	add	rbx, QWORD PTR 0[rbp]
	movdqu	xmm0, XMMWORD PTR 96[rbx]
	movdqu	xmm1, XMMWORD PTR 112[rbx]
	lea	rdi, 8[rbx]
	movdqu	xmm2, XMMWORD PTR 128[rbx]
	movdqu	xmm3, XMMWORD PTR 144[rbx]
	movups	XMMWORD PTR 16[rbx], xmm0
	movups	XMMWORD PTR 32[rbx], xmm1
	movups	XMMWORD PTR 48[rbx], xmm2
	movups	XMMWORD PTR 64[rbx], xmm3
	call	GX2InitColorBufferRegs@PLT
	mov	rdx, QWORD PTR 16[rbp]
	cmp	DWORD PTR [rdx], r12d
	jbe	.L12
.L29:
	mov	rdx, QWORD PTR 8[rdx]
	mov	eax, r12d
	lea	rcx, [rax+rax*4]
	lea	rcx, [rdx+rcx*8]
	mov	edx, DWORD PTR [rcx]
	cmp	edx, 129
	je	.L34
	cmp	edx, 130
	jne	.L43
	mov	edx, DWORD PTR 12[rcx]
	mov	r13d, DWORD PTR 8[rcx]
	cmp	edx, 129
	jne	.L44
.L35:
	imul	r14d, DWORD PTR 16[rcx]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L39:
	mov	r13d, DWORD PTR 8[rbp]
.L34:
	imul	r13d, DWORD PTR 4[rcx]
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L42:
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	r15, QWORD PTR 0[rbp]
	add	r15, rbx
	mov	DWORD PTR [r15], 0
	mov	edi, DWORD PTR 108[r15]
	mov	esi, DWORD PTR 128[r15]
	call	MEM2_alloc@PLT
	mov	QWORD PTR 120[r15], rax
	mov	rax, QWORD PTR 0[rbp]
	add	rax, rbx
	mov	rdi, QWORD PTR 120[rax]
	test	rdi, rdi
	jne	.L28
	lea	rdi, .LC1[rip]
	call	printf@PLT
	mov	rdi, rbp
	call	wiiu_free_shader_preset@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	mov	r14d, DWORD PTR 12[rbp]
	imul	r14d, DWORD PTR 16[rcx]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r14d, DWORD PTR 20[rcx]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L41:
	cmp	DWORD PTR 12[rbp], r14d
	jne	.L26
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L12:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	mov	rax, QWORD PTR GX2_SURFACE_FORMAT_UNORM_R5_G6_B5[rip]
	mov	ecx, DWORD PTR _1[rip]
	mov	edx, DWORD PTR _R[rip]
	mov	esi, DWORD PTR _G[rip]
	mov	QWORD PTR 80[rbp], rax
	mov	edi, DWORD PTR _B[rip]
	call	GX2_COMP_SEL@PLT
	mov	QWORD PTR 104[rbp], rax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	wiiu_init_frame_textures, .-wiiu_init_frame_textures
	.comm	_R,4,4
	.comm	_G,4,4
	.comm	_B,4,4
	.comm	_A,4,4
	.comm	_1,4,4
	.comm	GX2_TILE_MODE_LINEAR_ALIGNED,4,4
	.comm	GX2_SURFACE_USE_TEXTURE,4,4
	.comm	GX2_SURFACE_USE_COLOR_BUFFER,4,4
	.comm	GX2_SURFACE_FORMAT_UNORM_R8_G8_B8_A8,8,8
	.comm	GX2_SURFACE_FORMAT_UNORM_R5_G6_B5,8,8
	.comm	GX2_SURFACE_FORMAT_SRGB_R8_G8_B8_A8,8,8
	.comm	GX2_SURFACE_FORMAT_FLOAT_R32_G32_B32_A32,8,8
	.comm	GX2_SURFACE_DIM_TEXTURE_2D,8,8
	.comm	GX2_INVALIDATE_MODE_CPU_TEXTURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gx2_gfx.c_wiiu_init_frame_textures.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to allocate Render target memory from MEM1. "
	.ascii	"trying MEM2.\012\000"
	.align	2
.LC1:
	.ascii	"failed to allocate Render target memory from MEM2. "
	.ascii	"falling back to stock.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wiiu_init_frame_textures, %function
wiiu_init_frame_textures:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #20
	ldr	r0, [r0, #52]
	mov	r9, r1
	mov	r10, r2
	bl	MEM2_free
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	mov	r7, #0
	ldr	r2, [r4]
	mov	r6, r7
	b	.L8
.L43:
	bl	MEM1_free
.L7:
	ldr	r3, [r4, #12]
	ldr	r2, [r4]
	ldr	r3, [r3]
	add	r7, r7, #1
	cmp	r3, r7
	add	r3, r2, r5
	str	r6, [r3, #84]
	bls	.L5
.L8:
	add	r3, r7, r7, lsl #1
	add	r3, r3, r3, lsl #3
	ldr	r1, [r2, r3, lsl #2]
	add	r2, r2, r3, lsl #2
	cmp	r1, #0
	ldr	r0, [r2, #84]
	lsl	r5, r3, #2
	bne	.L43
	bl	MEM2_free
	b	.L7
.L5:
	mov	r3, #1
	ldr	r1, .L50
	ldr	r2, .L50+4
	ldr	r0, [r1]
	str	r3, [r4, #36]
	str	r3, [r4, #24]
	ldr	r3, .L50+8
	ldr	ip, [r4, #76]
	ldr	r1, [r2]
	str	r0, [r4, #64]
	ldr	r2, .L50+12
	ldr	r0, [r3]
	ldr	r3, .L50+16
	cmp	ip, #0
	str	r9, [r4, #28]
	ldr	ip, [r3]
	str	r10, [r4, #32]
	ldr	r3, [r2]
	str	r1, [r4, #68]
	add	r5, r4, #24
	beq	.L44
	ldr	r2, .L50+20
	ldr	lr, .L50+24
	ldr	r2, [r2]
	mov	r1, r0
	str	r2, [r4, #60]
	mov	r0, ip
	ldr	r2, [lr]
	bl	GX2_COMP_SEL
	str	r0, [r4, #72]
.L9:
	add	r0, r4, #28
	bl	GX2CalcSurfaceSizeAndAlignment
	mov	r0, r5
	bl	GX2InitTextureRegs
	ldr	r1, [r4, #56]
	ldr	r0, [r4, #40]
	bl	MEM2_alloc
	mov	r1, #0
	ldr	r2, [r4, #40]
	str	r0, [r4, #52]
	bl	memset
	ldr	r3, .L50+28
	ldr	r2, [r4, #40]
	ldr	r0, [r3]
	ldr	r1, [r4, #52]
	bl	GX2Invalidate
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L12
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L12
	ldr	r2, .L50+24
	mov	r8, #0
	str	r2, [sp, #8]
	ldr	r2, .L50+32
	mov	fp, #1
	str	r2, [sp, #12]
	b	.L29
.L49:
	ldr	r3, [r3, #24]
	cmp	r3, #0
	ldrne	r3, .L50+36
	ldreq	r3, .L50+20
	ldr	r1, [r3]
.L25:
	ldr	r3, .L50+40
	ldr	r2, .L50+44
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, [sp, #12]
	orr	r3, r3, r2
	str	r1, [r5, #92]
	str	r3, [r5, #80]
	ldr	r2, .L50+8
	ldr	r3, [sp, #8]
	ldr	r1, .L50+16
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r0, [r0]
	str	fp, [r5, #56]
	bl	GX2_COMP_SEL
	ldr	r3, [r4]
	str	r0, [r5, #104]
	add	r0, r3, r6
	add	r0, r0, #60
	bl	GX2CalcSurfaceSizeAndAlignment
	ldr	r0, [r4]
	add	r0, r0, r6
	add	r0, r0, #56
	bl	GX2InitTextureRegs
	ldr	r3, [r4, #12]
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r3, r8
	bne	.L26
	ldr	r3, [r4, #4]
	cmp	r3, r9
	beq	.L45
.L26:
	ldr	r3, [r4]
	add	r5, r3, r6
	ldr	r1, [r5, #88]
	ldr	r0, [r5, #72]
	str	fp, [r3, r7, lsl #2]
	bl	MEM1_alloc
	ldr	r3, [r4]
	str	r0, [r5, #84]
	add	r3, r3, r6
	ldr	r5, [r3, #84]
	cmp	r5, #0
	beq	.L46
.L28:
	ldr	r2, [r3, #72]
	mov	r1, #0
	mov	r0, r5
	bl	memset
	ldr	r3, [r4]
	ldr	r2, .L50+28
	add	r3, r3, r6
	ldr	r0, [r2]
	ldr	r1, [r3, #84]
	ldr	r2, [r3, #72]
	bl	GX2Invalidate
.L27:
	ldr	r0, [r4]
	mov	r2, #52
	add	r0, r0, r6
	mov	r1, #0
	add	r0, r0, #4
	bl	memset
	ldr	r3, [r4]
	add	r8, r8, #1
	add	r6, r3, r6
	add	lr, r6, #60
	add	ip, r6, #8
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	add	r0, r6, #4
	bl	GX2InitColorBufferRegs
	ldr	r3, [r4, #12]
	ldr	r2, [r3]
	cmp	r2, r8
	bls	.L12
.L29:
	ldr	r3, [r3, #4]
	ldr	r2, [r3, r8, lsl #5]
	add	r3, r3, r8, lsl #5
	cmp	r2, #129
	beq	.L40
	cmp	r2, #130
	beq	.L14
	cmp	r2, #128
	beq	.L47
.L16:
	ldr	r2, [r3, #12]
	cmp	r2, #129
	beq	.L41
	cmp	r2, #130
	beq	.L18
	cmp	r2, #128
	beq	.L48
.L20:
	ldr	r0, [r4]
	add	r7, r8, r8, lsl #1
	add	r7, r7, r7, lsl #3
	cmp	r9, #0
	add	r0, r0, r7, lsl #2
	ldreq	r9, [r4, #16]
	mov	r2, #52
	cmp	r10, #0
	mov	r1, #0
	add	r0, r0, #56
	ldreq	r10, [r4, #20]
	str	r3, [sp, #4]
	bl	memset
	ldr	r3, [sp, #4]
	ldr	r2, .L50
	ldr	r5, [r4]
	ldr	r1, [r3, #28]
	ldr	r2, [r2]
	lsl	r6, r7, #2
	add	r5, r5, r6
	cmp	r1, #0
	str	r9, [r5, #60]
	str	r10, [r5, #64]
	str	fp, [r5, #68]
	str	r2, [r5, #96]
	beq	.L49
	ldr	r3, .L50+48
	ldr	r1, [r3]
	b	.L25
.L48:
	ldr	r10, [r4, #8]
.L41:
	ldr	r2, [r3, #16]
	mul	r10, r2, r10
	b	.L20
.L47:
	ldr	r9, [r4, #4]
.L40:
	ldr	r2, [r3, #4]
	mul	r9, r2, r9
	b	.L16
.L46:
	ldr	r0, .L50+52
	bl	printf
	ldr	r3, [r4]
	add	r2, r3, r6
	str	r5, [r3, r7, lsl #2]
	ldr	r1, [r2, #88]
	ldr	r0, [r2, #72]
	str	r2, [sp, #4]
	bl	MEM2_alloc
	ldr	r3, [r4]
	ldr	r2, [sp, #4]
	add	r3, r3, r6
	str	r0, [r2, #84]
	ldr	r5, [r3, #84]
	cmp	r5, #0
	bne	.L28
	ldr	r0, .L50+56
	bl	printf
	mov	r0, r4
	bl	wiiu_free_shader_preset
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r9, [r3, #8]
	b	.L16
.L18:
	ldr	r10, [r3, #20]
	b	.L20
.L45:
	ldr	r3, [r4, #8]
	cmp	r3, r10
	bne	.L26
	b	.L27
.L12:
	mov	r0, #1
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L44:
	ldr	r2, .L50+60
	ldr	lr, .L50+32
	ldr	r2, [r2]
	mov	r1, ip
	str	r2, [r4, #60]
	ldr	r2, [lr]
	bl	GX2_COMP_SEL
	str	r0, [r4, #72]
	b	.L9
.L51:
	.align	2
.L50:
	.word	GX2_SURFACE_DIM_TEXTURE_2D
	.word	GX2_TILE_MODE_LINEAR_ALIGNED
	.word	_B
	.word	_1
	.word	_G
	.word	GX2_SURFACE_FORMAT_UNORM_R8_G8_B8_A8
	.word	_A
	.word	GX2_INVALIDATE_MODE_CPU_TEXTURE
	.word	_R
	.word	GX2_SURFACE_FORMAT_SRGB_R8_G8_B8_A8
	.word	GX2_SURFACE_USE_TEXTURE
	.word	GX2_SURFACE_USE_COLOR_BUFFER
	.word	GX2_SURFACE_FORMAT_FLOAT_R32_G32_B32_A32
	.word	.LC0
	.word	.LC1
	.word	GX2_SURFACE_FORMAT_UNORM_R5_G6_B5
	.size	wiiu_init_frame_textures, .-wiiu_init_frame_textures
	.comm	_R,4,4
	.comm	_G,4,4
	.comm	_B,4,4
	.comm	_A,4,4
	.comm	_1,4,4
	.comm	GX2_TILE_MODE_LINEAR_ALIGNED,4,4
	.comm	GX2_SURFACE_USE_TEXTURE,4,4
	.comm	GX2_SURFACE_USE_COLOR_BUFFER,4,4
	.comm	GX2_SURFACE_FORMAT_UNORM_R8_G8_B8_A8,4,4
	.comm	GX2_SURFACE_FORMAT_UNORM_R5_G6_B5,4,4
	.comm	GX2_SURFACE_FORMAT_SRGB_R8_G8_B8_A8,4,4
	.comm	GX2_SURFACE_FORMAT_FLOAT_R32_G32_B32_A32,4,4
	.comm	GX2_SURFACE_DIM_TEXTURE_2D,4,4
	.comm	GX2_INVALIDATE_MODE_CPU_TEXTURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
