	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function menu_display_wiiu_draw_pipeline
LCPI0_0:
	.long	0x3c23d70a                      ## float 0.00999999977
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_menu_display_wiiu_draw_pipeline:       ## @menu_display_wiiu_draw_pipeline
	.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
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	(%rsi), %r15
	testq	%r15, %r15
	je	LBB0_12
## %bb.2:
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_3
## %bb.7:
	movq	16(%r15), %rcx
	xorl	%edi, %edi
	movl	$64, %esi
	movl	$16, %edx
	callq	_GX2SetAttribBuffer
	jmp	LBB0_8
LBB0_3:
	addl	$-132, %eax
	cmpl	$1, %eax
	ja	LBB0_12
## %bb.4:
	xorl	%eax, %eax
	callq	_menu_display_get_coords_array
	movq	%rax, %r14
	movq	24(%r15), %rcx
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	shll	$3, %edi
	movq	_GX2_VERTEX_BUFFER_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MEM2_alloc
	movq	%rax, 24(%r15)
	movl	(%r14), %edx
	movl	4(%r14), %esi
	shll	$3, %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	_GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r15), %rsi
	movl	(%r14), %edx
	shll	$3, %edx
	callq	_GX2Invalidate
	movq	24(%r15), %rcx
LBB0_6:
	movq	(%rbx), %rax
	movq	%rcx, 8(%rax)
	movl	(%r14), %esi
	movl	%esi, (%rax)
	shll	$3, %esi
	xorl	%edi, %edi
	movl	$8, %edx
	callq	_GX2SetAttribBuffer
	movq	_GX2_RENDER_TARGET_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GX2_BLEND_MODE_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GX2_BLEND_MODE_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GX2_BLEND_COMBINE_MODE_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GX2_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_GX2SetBlendControl
	addq	$16, %rsp
LBB0_8:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.10:
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_0(%rip), %xmm0
	movss	%xmm0, (%rsi)
	jmp	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_GX2_UNIFORM_BLOCK_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_MEM2_alloc
	movq	%rax, (%r15)
	movl	12(%rax), %edi
	subq	$8, %rsp
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$-1, %r9d
	pushq	$1
	callq	_matrix_4x4_ortho
	addq	$16, %rsp
	movl	12(%r15), %eax
	movq	(%r15), %rsi
	movl	%eax, 8(%rsi)
	movl	8(%r15), %eax
	movl	%eax, 4(%rsi)
	movl	$0, (%rsi)
LBB0_11:
	movq	_GX2_INVALIDATE_MODE_CPU_UNIFORM_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$16, %edx
	callq	_GX2Invalidate
	movq	(%r15), %rdx
	movl	$1, %edi
	movl	$16, %esi
	callq	_GX2SetVertexUniformBlock
	movq	(%r15), %rdx
	movl	$1, %edi
	movl	$16, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GX2SetPixelUniformBlock        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GX2_VERTEX_BUFFER_ALIGNMENT,4,2 ## @GX2_VERTEX_BUFFER_ALIGNMENT
	.comm	_GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER,4,2 ## @GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER
	.comm	_GX2_RENDER_TARGET_0,4,2        ## @GX2_RENDER_TARGET_0
	.comm	_GX2_BLEND_MODE_SRC_ALPHA,4,2   ## @GX2_BLEND_MODE_SRC_ALPHA
	.comm	_GX2_BLEND_MODE_ONE,4,2         ## @GX2_BLEND_MODE_ONE
	.comm	_GX2_BLEND_COMBINE_MODE_ADD,4,2 ## @GX2_BLEND_COMBINE_MODE_ADD
	.comm	_GX2_DISABLE,4,2                ## @GX2_DISABLE
	.comm	_GX2_UNIFORM_BLOCK_ALIGNMENT,4,2 ## @GX2_UNIFORM_BLOCK_ALIGNMENT
	.comm	_GX2_INVALIDATE_MODE_CPU_UNIFORM_BLOCK,4,2 ## @GX2_INVALIDATE_MODE_CPU_UNIFORM_BLOCK
	.no_dead_strip	_menu_display_wiiu_draw_pipeline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_display_wiiu_draw_pipeline
_menu_display_wiiu_draw_pipeline:       ; @menu_display_wiiu_draw_pipeline
	.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
	cbz	x0, LBB0_11
; %bb.1:
	ldr	x21, [x1]
	cbz	x21, LBB0_11
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0, #8]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hs	LBB0_5
; %bb.3:
	ldr	x3, [x21, #16]
	mov	w0, #0
	mov	w1, #64
	mov	w2, #16
	bl	_GX2SetAttribBuffer
	ldr	x1, [x21]
	cbz	x1, LBB0_9
LBB0_4:
	ldr	s0, [x1]
	mov	w8, #55050
	movk	w8, #15395, lsl #16
	fmov	s1, w8
	fadd	s0, s0, s1
	str	s0, [x1]
	b	LBB0_10
LBB0_5:
	sub	w8, w8, #132
	cmp	w8, #1
	b.hi	LBB0_11
; %bb.6:
	bl	_menu_display_get_coords_array
	mov	x20, x0
	ldr	x3, [x21, #24]
	cbnz	x3, LBB0_8
; %bb.7:
	ldr	w8, [x20]
	lsl	w0, w8, #3
Lloh0:
	adrp	x8, _GX2_VERTEX_BUFFER_ALIGNMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GX2_VERTEX_BUFFER_ALIGNMENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MEM2_alloc
	str	x0, [x21, #24]
	ldp	w8, w1, [x20]
	lsl	w2, w8, #3
	bl	_memcpy
Lloh3:
	adrp	x8, _GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x1, [x21, #24]
	ldr	w8, [x20]
	lsl	w2, w8, #3
	bl	_GX2Invalidate
	ldr	x3, [x21, #24]
LBB0_8:
	ldr	x8, [x19]
	str	x3, [x8, #8]
	ldr	w9, [x20]
	str	w9, [x8]
	lsl	w1, w9, #3
	mov	w0, #0
	mov	w2, #8
	bl	_GX2SetAttribBuffer
Lloh6:
	adrp	x8, _GX2_RENDER_TARGET_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GX2_RENDER_TARGET_0@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _GX2_BLEND_MODE_SRC_ALPHA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GX2_BLEND_MODE_SRC_ALPHA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _GX2_BLEND_MODE_ONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GX2_BLEND_MODE_ONE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _GX2_BLEND_COMBINE_MODE_ADD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GX2_BLEND_COMBINE_MODE_ADD@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x8, _GX2_DISABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GX2_DISABLE@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_GX2SetBlendControl
	ldr	x1, [x21]
	cbnz	x1, LBB0_4
LBB0_9:
Lloh21:
	adrp	x8, _GX2_UNIFORM_BLOCK_ALIGNMENT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GX2_UNIFORM_BLOCK_ALIGNMENT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_MEM2_alloc
	str	x0, [x21]
	ldr	w0, [x0, #12]
	mov	w1, #0
	mov	w2, #1
	mov	w3, #1
	mov	w4, #0
	mov	w5, #-1
	mov	w6, #1
	bl	_matrix_4x4_ortho
	ldr	x1, [x21]
	ldr	d0, [x21, #8]
	stur	d0, [x1, #4]
	str	wzr, [x1]
LBB0_10:
Lloh24:
	adrp	x8, _GX2_INVALIDATE_MODE_CPU_UNIFORM_BLOCK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GX2_INVALIDATE_MODE_CPU_UNIFORM_BLOCK@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	w2, #16
	bl	_GX2Invalidate
	ldr	x2, [x21]
	mov	w0, #1
	mov	w1, #16
	bl	_GX2SetVertexUniformBlock
	ldr	x2, [x21]
	mov	w0, #1
	mov	w1, #16
	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	_GX2SetPixelUniformBlock
LBB0_11:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GX2_VERTEX_BUFFER_ALIGNMENT,4,2 ; @GX2_VERTEX_BUFFER_ALIGNMENT
	.comm	_GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER,4,2 ; @GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER
	.comm	_GX2_RENDER_TARGET_0,4,2        ; @GX2_RENDER_TARGET_0
	.comm	_GX2_BLEND_MODE_SRC_ALPHA,4,2   ; @GX2_BLEND_MODE_SRC_ALPHA
	.comm	_GX2_BLEND_MODE_ONE,4,2         ; @GX2_BLEND_MODE_ONE
	.comm	_GX2_BLEND_COMBINE_MODE_ADD,4,2 ; @GX2_BLEND_COMBINE_MODE_ADD
	.comm	_GX2_DISABLE,4,2                ; @GX2_DISABLE
	.comm	_GX2_UNIFORM_BLOCK_ALIGNMENT,4,2 ; @GX2_UNIFORM_BLOCK_ALIGNMENT
	.comm	_GX2_INVALIDATE_MODE_CPU_UNIFORM_BLOCK,4,2 ; @GX2_INVALIDATE_MODE_CPU_UNIFORM_BLOCK
	.no_dead_strip	_menu_display_wiiu_draw_pipeline
.subsections_via_symbols
