	.file	"extr_menu_display_d3d12.c_menu_display_d3d12_draw_pipeline.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	menu_display_d3d12_draw_pipeline, @function
menu_display_d3d12_draw_pipeline:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rbx, rbx
	je	.L1
	mov	rbp, rdi
	test	rdi, rdi
	je	.L1
	mov	eax, DWORD PTR 8[rdi]
	cmp	eax, 131
	jle	.L11
	sub	eax, 132
	cmp	eax, 1
	ja	.L1
	xor	eax, eax
	lea	r14, 8[rsp]
	lea	r13, 16[rsp]
	call	menu_display_get_coords_array@PLT
	mov	r12, rax
	mov	eax, DWORD PTR 40[rbx]
	test	eax, eax
	je	.L12
.L5:
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, 1
	lea	rcx, 28[rbx]
	xor	esi, esi
	call	D3D12IASetVertexBuffers@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR [r12]
	mov	DWORD PTR [rax], edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	eax, 127
	jg	.L13
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	lea	rcx, 16[rbx]
	mov	edx, 1
	xor	esi, esi
	lea	r14, 8[rsp]
	lea	r13, 16[rsp]
	call	D3D12IASetVertexBuffers@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	DWORD PTR [rax], 4
.L6:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP[rip]
	call	D3D12IASetPrimitiveTopology@PLT
	mov	rcx, r14
	mov	rdx, r13
	xor	esi, esi
	movss	xmm0, DWORD PTR .LC0[rip]
	addss	xmm0, DWORD PTR 12[rbx]
	movss	DWORD PTR 12[rbx], xmm0
	mov	QWORD PTR 16[rsp], 0
	mov	edi, DWORD PTR 8[rbx]
	call	D3D12Map@PLT
	movss	xmm0, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR 8[rbx]
	xor	edx, edx
	mov	rax, QWORD PTR 8[rsp]
	xor	esi, esi
	movss	DWORD PTR [rax], xmm0
	call	D3D12Unmap@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	esi, DWORD PTR ROOT_ID_UBO[rip]
	call	D3D12SetGraphicsRootConstantBufferView@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	QWORD PTR 16[rsp], 0
	mov	edi, DWORD PTR 44[rbx]
	lea	rdx, 40[rbx]
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 28[rbx], 8
	lea	esi, 0[0+rax*8]
	mov	DWORD PTR 32[rbx], esi
	call	d3d12_create_buffer@PLT
	mov	edi, DWORD PTR 40[rbx]
	mov	rcx, r14
	mov	rdx, r13
	mov	DWORD PTR 36[rbx], eax
	xor	esi, esi
	call	D3D12Map@PLT
	mov	edx, DWORD PTR 32[rbx]
	mov	esi, DWORD PTR 4[r12]
	mov	rdi, QWORD PTR 8[rsp]
	call	memcpy@PLT
	mov	edi, DWORD PTR 40[rbx]
	xor	edx, edx
	xor	esi, esi
	call	D3D12Unmap@PLT
	jmp	.L5
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	menu_display_d3d12_draw_pipeline, .-menu_display_d3d12_draw_pipeline
	.comm	ROOT_ID_UBO,4,4
	.comm	D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1008981770
	.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_menu_display_d3d12.c_menu_display_d3d12_draw_pipeline.c"
	.text
	.global	__aeabi_fadd
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu_display_d3d12_draw_pipeline, %function
menu_display_d3d12_draw_pipeline:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r4, [r1]
	lsr	r3, r3, #5
	cmp	r4, #0
	movne	r1, r3
	moveq	r1, #1
	ldr	r3, .L15
	sub	sp, sp, #20
	cmp	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bne	.L1
	ldr	r3, [r0, #4]
	mov	r5, r0
	cmp	r3, #131
	ble	.L12
	sub	r3, r3, #132
	cmp	r3, #1
	bhi	.L1
	bl	menu_display_get_coords_array
	ldr	r9, [r4, #40]
	mov	r6, r0
	cmp	r9, #0
	beq	.L9
	mov	r8, sp
	add	r7, sp, #4
.L5:
	mov	r2, #1
	add	r3, r4, #28
	mov	r1, #0
	ldr	r0, [r4, #4]
	bl	D3D12IASetVertexBuffers
	ldr	r3, [r5]
	ldr	r2, [r6]
	str	r2, [r3]
	b	.L6
.L12:
	cmp	r3, #127
	bgt	.L13
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	mov	r2, #1
	add	r3, r4, #16
	ldr	r0, [r4, #4]
	bl	D3D12IASetVertexBuffers
	mov	r2, #4
	mov	r8, sp
	ldr	r3, [r5]
	add	r7, sp, r2
	str	r2, [r3]
.L6:
	ldr	r3, .L15+4
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	D3D12IASetPrimitiveTopology
	ldr	r0, [r4, #12]	@ float
	ldr	r1, .L15+8
	bl	__aeabi_fadd
	mov	r5, #0
	str	r0, [r4, #12]	@ float
	mov	r3, r8
	ldr	r0, [r4, #8]
	mov	r2, r7
	mov	r1, r5
	str	r5, [sp, #4]
	str	r5, [sp, #8]
	bl	D3D12Map
	ldr	r3, [sp]
	ldr	r0, [r4, #12]	@ float
	mov	r2, r5
	mov	r1, r5
	str	r0, [r3]	@ float
	ldr	r0, [r4, #8]
	bl	D3D12Unmap
	ldr	r3, .L15+12
	ldr	r2, [r4]
	ldr	r1, [r3]
	ldr	r0, [r4, #4]
	bl	D3D12SetGraphicsRootConstantBufferView
	b	.L1
.L9:
	mov	r3, #8
	ldr	r1, [r0]
	add	r2, r4, #40
	lsl	r1, r1, #3
	str	r9, [sp, #4]
	str	r9, [sp, #8]
	ldr	r0, [r4, #44]
	str	r1, [r4, #32]
	str	r3, [r4, #28]
	bl	d3d12_create_buffer
	mov	r8, sp
	add	r7, sp, #4
	mov	r3, r8
	mov	r2, r7
	mov	r1, r9
	str	r0, [r4, #36]
	ldr	r0, [r4, #40]
	bl	D3D12Map
	ldr	r2, [r4, #32]
	ldr	r1, [r6, #4]
	ldr	r0, [sp]
	bl	memcpy
	mov	r2, r9
	mov	r1, r9
	ldr	r0, [r4, #40]
	bl	D3D12Unmap
	b	.L5
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP
	.word	1008981770
	.word	ROOT_ID_UBO
	.size	menu_display_d3d12_draw_pipeline, .-menu_display_d3d12_draw_pipeline
	.comm	ROOT_ID_UBO,4,4
	.comm	D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
