	.file	"extr_menu_display_d3d12.c_menu_display_d3d12_draw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	menu_display_d3d12_draw, @function
menu_display_d3d12_draw:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rbp, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	rbp, rbp
	je	.L1
	mov	rbx, rdi
	test	rdi, rdi
	je	.L1
	cmp	QWORD PTR 24[rdi], 0
	je	.L1
	movsx	rax, DWORD PTR 44[rdi]
	lea	edx, -128[rax]
	cmp	edx, 5
	jbe	.L24
	mov	rax, QWORD PTR 32[rdi]
	mov	r12, rsi
	mov	r13d, 1
	cmp	QWORD PTR 8[rax], 0
	je	.L7
	cmp	QWORD PTR 16[rax], 0
	je	.L7
	cmp	QWORD PTR 24[rax], 0
	je	.L7
	mov	r13d, DWORD PTR [rax]
.L7:
	mov	eax, DWORD PTR 20[rbp]
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR 4[rbp]
	cmp	eax, r13d
	jl	.L1
	mov	edx, DWORD PTR 8[rbp]
	add	edx, r13d
	cmp	eax, edx
	jge	.L8
	mov	DWORD PTR 8[rbp], 0
.L8:
	mov	edi, DWORD PTR 16[rbp]
	lea	r14, 16[rsp]
	pxor	xmm0, xmm0
	xor	esi, esi
	lea	rcx, 8[rsp]
	mov	rdx, r14
	movaps	XMMWORD PTR 16[rsp], xmm0
	call	D3D12Map@PLT
	movsx	rax, DWORD PTR 8[rbp]
	lea	r8, [rax+rax*2]
	sal	r8, 4
	add	r8, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[rsp], r8
	cmp	r13d, 1
	je	.L25
	mov	rax, QWORD PTR 32[rbx]
	mov	rdi, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 24[rax]
	test	r13d, r13d
	jle	.L12
	lea	r10d, -1[r13]
	mov	rcx, r8
	add	r10, 1
	lea	r9, [rdx+r10*8]
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, QWORD PTR 16[rcx]
	add	rdi, 8
	add	rdx, 8
	add	rax, 16
	cvttss2si	r11d, DWORD PTR -8[rdi]
	add	rcx, 48
	mov	DWORD PTR [rsi], r11d
	cvttss2si	r11d, DWORD PTR -4[rdi]
	mov	DWORD PTR 4[rsi], r11d
	cvttss2si	r11d, DWORD PTR -8[rdx]
	mov	rsi, QWORD PTR -40[rcx]
	mov	DWORD PTR [rsi], r11d
	cvttss2si	r11d, DWORD PTR -4[rdx]
	mov	DWORD PTR 4[rsi], r11d
	cvttss2si	r11d, DWORD PTR -16[rax]
	mov	rsi, QWORD PTR -48[rcx]
	mov	DWORD PTR [rsi], r11d
	cvttss2si	r11d, DWORD PTR -12[rax]
	mov	DWORD PTR 4[rsi], r11d
	cvttss2si	r11d, DWORD PTR -8[rax]
	mov	DWORD PTR 8[rsi], r11d
	cvttss2si	r11d, DWORD PTR -4[rax]
	mov	DWORD PTR 12[rsi], r11d
	cmp	rdx, r9
	jne	.L13
	lea	rax, [r10+r10*2]
	sal	rax, 4
	add	r8, rax
	mov	QWORD PTR 8[rsp], r8
.L12:
	mov	rax, QWORD PTR 32[rbp]
	mov	rdx, QWORD PTR VIDEO_SHADER_STOCK_BLEND[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR [rax+rdx*4]
	call	D3D12SetPipelineState@PLT
	mov	esi, DWORD PTR D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP[rip]
	mov	edi, DWORD PTR 0[rbp]
	call	D3D12IASetPrimitiveTopology@PLT
.L11:
	mov	eax, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 16[rbp]
	xor	esi, esi
	lea	edx, [rax+rax*2]
	add	eax, r13d
	sal	edx, 4
	lea	eax, [rax+rax*2]
	sal	eax, 4
	mov	DWORD PTR 16[rsp], edx
	mov	rdx, r14
	mov	DWORD PTR 20[rsp], eax
	call	D3D12Unmap@PLT
	mov	r14, QWORD PTR 24[rbx]
	cmp	QWORD PTR [r14], 0
	jne	.L26
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r14
	call	d3d12_set_texture_and_sampler@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 0[rbp]
	xor	r8d, r8d
	mov	edx, 1
	mov	esi, r13d
	call	D3D12DrawInstanced@PLT
	add	DWORD PTR 8[rbp], r13d
	cmp	r13d, 1
	jg	.L16
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L26:
	.cfi_restore_state
	mov	rdx, QWORD PTR [r12]
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r14
	call	d3d12_upload_texture@PLT
	cmp	r13d, 1
	jle	.L15
	mov	rdx, QWORD PTR VIDEO_SHADER_STOCK_BLEND[rip]
	mov	rax, QWORD PTR 32[rbp]
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR [rax+rdx*4]
	call	D3D12SetPipelineState@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r14
	call	d3d12_set_texture_and_sampler@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 0[rbp]
	xor	r8d, r8d
	mov	edx, 1
	mov	esi, r13d
	call	D3D12DrawInstanced@PLT
	add	DWORD PTR 8[rbp], r13d
.L16:
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR 0[rbp]
	call	D3D12SetPipelineState@PLT
	mov	esi, DWORD PTR D3D_PRIMITIVE_TOPOLOGY_POINTLIST[rip]
	mov	edi, DWORD PTR 0[rbp]
	call	D3D12IASetPrimitiveTopology@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdx, QWORD PTR 32[rbp]
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR [rdx+rax*4]
	call	D3D12SetPipelineState@PLT
	mov	rax, QWORD PTR 32[rbx]
	mov	edi, DWORD PTR 0[rbp]
	xor	ecx, ecx
	xor	r8d, r8d
	mov	edx, 1
	mov	esi, DWORD PTR [rax]
	call	D3D12DrawInstanced@PLT
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR 0[rbp]
	call	D3D12SetPipelineState@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR D3D_PRIMITIVE_TOPOLOGY_POINTLIST[rip]
	call	D3D12IASetPrimitiveTopology@PLT
	mov	edi, DWORD PTR 0[rbp]
	lea	rcx, 24[rbp]
	xor	esi, esi
	mov	edx, 1
	call	D3D12IASetVertexBuffers@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	pxor	xmm3, xmm3
	movss	xmm0, DWORD PTR [rbx]
	movss	xmm2, DWORD PTR 40[rbp]
	movabs	rax, 4575657222473777152
	cvtsi2ss	xmm3, QWORD PTR 48[rbp]
	movss	xmm1, DWORD PTR 8[rbx]
	divss	xmm0, xmm3
	movss	DWORD PTR 32[r8], xmm0
	movaps	xmm0, xmm2
	subss	xmm0, DWORD PTR 4[rbx]
	subss	xmm0, xmm1
	divss	xmm1, xmm2
	divss	xmm0, xmm2
	movss	DWORD PTR 36[r8], xmm0
	movss	xmm0, DWORD PTR 12[rbx]
	mov	QWORD PTR 16[r8], 0
	divss	xmm0, xmm3
	mov	QWORD PTR 24[r8], rax
	mov	eax, DWORD PTR 16[rbx]
	movss	DWORD PTR 44[r8], xmm1
	movd	xmm4, eax
	ucomiss	xmm4, DWORD PTR .LC1[rip]
	movss	DWORD PTR 40[r8], xmm0
	jp	.L10
	cmove	eax, DWORD PTR .LC0[rip]
.L10:
	mov	DWORD PTR 8[r8], eax
	mov	eax, DWORD PTR 40[rbx]
	mov	r15, QWORD PTR [r8]
	mov	DWORD PTR 12[r8], eax
	mov	rax, QWORD PTR 32[rbx]
	mov	rax, QWORD PTR 24[rax]
	mov	edx, DWORD PTR 12[rax]
	mov	esi, DWORD PTR 8[rax]
	mov	edi, DWORD PTR 4[rax]
	mov	eax, DWORD PTR [rax]
	mov	ecx, edx
	sal	ecx, 8
	sub	ecx, edx
	mov	edx, esi
	sal	edx, 8
	sub	edx, esi
	mov	esi, edi
	sal	esi, 8
	sub	esi, edi
	mov	edi, eax
	sal	edi, 8
	sub	edi, eax
	call	DXGI_COLOR_RGBA@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR 24[r15], rax
	mov	rax, QWORD PTR 32[rbx]
	mov	r15, QWORD PTR [rdx]
	mov	rax, QWORD PTR 24[rax]
	mov	edx, DWORD PTR 28[rax]
	mov	esi, DWORD PTR 24[rax]
	mov	edi, DWORD PTR 20[rax]
	mov	eax, DWORD PTR 16[rax]
	mov	ecx, edx
	sal	ecx, 8
	sub	ecx, edx
	mov	edx, esi
	sal	edx, 8
	sub	edx, esi
	mov	esi, edi
	sal	esi, 8
	sub	esi, edi
	mov	edi, eax
	sal	edi, 8
	sub	edi, eax
	call	DXGI_COLOR_RGBA@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[r15], rax
	mov	rax, QWORD PTR 32[rbx]
	mov	r15, QWORD PTR [rdx]
	mov	rax, QWORD PTR 24[rax]
	mov	edx, DWORD PTR 44[rax]
	mov	esi, DWORD PTR 40[rax]
	mov	edi, DWORD PTR 36[rax]
	mov	eax, DWORD PTR 32[rax]
	mov	ecx, edx
	sal	ecx, 8
	sub	ecx, edx
	mov	edx, esi
	sal	edx, 8
	sub	edx, esi
	mov	esi, edi
	sal	esi, 8
	sub	esi, edi
	mov	edi, eax
	sal	edi, 8
	sub	edi, eax
	call	DXGI_COLOR_RGBA@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[r15], rax
	mov	rax, QWORD PTR 32[rbx]
	mov	r15, QWORD PTR [rdx]
	mov	rax, QWORD PTR 24[rax]
	mov	edx, DWORD PTR 60[rax]
	mov	esi, DWORD PTR 56[rax]
	mov	edi, DWORD PTR 52[rax]
	mov	eax, DWORD PTR 48[rax]
	mov	ecx, edx
	sal	ecx, 8
	sub	ecx, edx
	mov	edx, esi
	sal	edx, 8
	sub	edx, esi
	mov	esi, edi
	sal	esi, 8
	sub	esi, edi
	mov	edi, eax
	sal	edi, 8
	sub	edi, eax
	call	DXGI_COLOR_RGBA@PLT
	mov	QWORD PTR [r15], rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR 0[rbp]
	call	D3D12SetPipelineState@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r14
	call	d3d12_set_texture_and_sampler@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 0[rbp]
	xor	r8d, r8d
	mov	edx, 1
	mov	esi, r13d
	call	D3D12DrawInstanced@PLT
	add	DWORD PTR 8[rbp], r13d
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	menu_display_d3d12_draw, .-menu_display_d3d12_draw
	.comm	VIDEO_SHADER_STOCK_BLEND,8,8
	.comm	D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,4,4
	.comm	D3D_PRIMITIVE_TOPOLOGY_POINTLIST,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1065353216
	.align 4
.LC1:
	.long	0
	.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.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fsub
	.global	__aeabi_fcmpeq
	.global	__aeabi_f2iz
	.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, %function
menu_display_d3d12_draw:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [r1]
	lsr	r3, r3, #5
	cmp	r5, #0
	movne	r6, r3
	moveq	r6, #1
	ldr	r3, .L36
	sub	sp, sp, #60
	cmp	r6, #0
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	bne	.L1
	ldr	r3, [r0, #20]
	mov	r4, r0
	cmp	r3, #0
	beq	.L1
	ldr	r3, [r0, #32]
	sub	r2, r3, #128
	cmp	r2, #5
	bls	.L32
	ldr	r3, [r0, #24]
	mov	r8, r1
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L19
	ldr	r2, [r3, #8]
	cmp	r2, #0
	beq	.L19
	ldr	r2, [r3, #12]
	cmp	r2, #0
	beq	.L19
	ldr	fp, [r3]
.L6:
	ldr	r3, [r5, #20]
	cmp	r3, #0
	beq	.L1
	ldr	r3, [r5, #4]
	cmp	r3, fp
	blt	.L1
	ldr	r2, [r5, #8]
	mov	r6, #0
	add	r2, fp, r2
	cmp	r3, r2
	movlt	r3, #0
	ldr	r0, [r5, #16]
	strlt	r3, [r5, #8]
	add	r2, sp, #36
	add	r3, sp, #32
	mov	r1, r6
	str	r6, [sp, #36]
	str	r6, [sp, #40]
	str	r6, [sp, #44]
	str	r6, [sp, #48]
	bl	D3D12Map
	ldr	r3, [r5, #8]
	ldr	r7, [sp, #32]
	add	r2, r3, r3, lsl #2
	add	r3, r3, r2, lsl #1
	add	r2, r7, r3, lsl #2
	cmp	fp, #1
	lsl	r3, r3, #2
	str	r2, [sp, #16]
	str	r2, [sp, #32]
	str	r3, [sp, #12]
	beq	.L33
	ldr	r3, [r4, #24]
	cmp	fp, #0
	ldr	r2, [r3, #4]
	ldr	r1, [r3, #8]
	ldr	r7, [r3, #12]
	str	r2, [sp, #12]
	ble	.L11
	ldr	r3, [sp, #16]
	str	r5, [sp, #20]
	add	r9, r3, #44
	add	r3, r2, #4
	str	r8, [sp, #28]
	mov	r5, r1
	mov	r8, r3
	add	r7, r7, #16
	add	r10, r1, #4
	str	r4, [sp, #24]
.L12:
	ldr	r3, [sp, #12]
	add	r9, r9, #44
	ldr	r0, [r3, r6, lsl #3]	@ float
	bl	__aeabi_f2iz
	mov	r3, r0
	ldr	r4, [r9, #-80]
	ldr	r0, [r8, r6, lsl #3]	@ float
	str	r3, [r4]
	bl	__aeabi_f2iz
	str	r0, [r4, #4]
	ldr	r0, [r5, r6, lsl #3]	@ float
	bl	__aeabi_f2iz
	mov	r3, r0
	ldr	r4, [r9, #-84]
	ldr	r0, [r10, r6, lsl #3]	@ float
	str	r3, [r4]
	bl	__aeabi_f2iz
	str	r0, [r4, #4]
	ldr	r0, [r7, #-16]	@ float
	bl	__aeabi_f2iz
	mov	r3, r0
	ldr	r4, [r9, #-88]
	ldr	r0, [r7, #-12]	@ float
	str	r3, [r4]
	bl	__aeabi_f2iz
	str	r0, [r4, #4]
	ldr	r0, [r7, #-8]	@ float
	bl	__aeabi_f2iz
	str	r0, [r4, #8]
	ldr	r0, [r7, #-4]	@ float
	bl	__aeabi_f2iz
	add	r6, r6, #1
	cmp	fp, r6
	str	r0, [r4, #12]
	add	r7, r7, #16
	bne	.L12
	ldr	r2, [sp, #16]
	add	r3, fp, fp, lsl #2
	add	r3, fp, r3, lsl #1
	add	r3, r2, r3, lsl #2
	ldr	r5, [sp, #20]
	ldr	r4, [sp, #24]
	ldr	r8, [sp, #28]
	str	r3, [sp, #32]
.L11:
	ldr	r2, .L36+4
	ldr	r3, [r5, #28]
	ldr	r2, [r2]
	ldr	r0, [r5]
	ldr	r1, [r3, r2, lsl #2]
	bl	D3D12SetPipelineState
	ldr	r3, .L36+8
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	D3D12IASetPrimitiveTopology
.L10:
	ldr	r3, [r5, #8]
	add	r2, sp, #36
	add	r1, r3, fp
	add	ip, r1, r1, lsl #2
	add	r0, r3, r3, lsl #2
	add	r1, r1, ip, lsl #1
	add	r3, r3, r0, lsl #1
	lsl	ip, r1, #2
	lsl	r3, r3, #2
	mov	r1, #0
	ldr	r0, [r5, #16]
	str	ip, [sp, #40]
	str	r3, [sp, #36]
	bl	D3D12Unmap
	ldr	r4, [r4, #20]
	ldr	r6, [r4]
	cmp	r6, #0
	bne	.L34
	mov	r1, r4
	ldr	r0, [r5]
	bl	d3d12_set_texture_and_sampler
	ldr	r3, [r5, #8]
	mov	r1, fp
	ldr	r0, [r5]
	mov	r2, #1
	str	r6, [sp]
	bl	D3D12DrawInstanced
	ldr	r3, [r5, #8]
	cmp	fp, #1
	add	fp, r3, fp
	str	fp, [r5, #8]
	bgt	.L15
.L1:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mov	fp, #1
	b	.L6
.L34:
	mov	r1, r4
	ldr	r2, [r8]
	ldr	r0, [r5]
	bl	d3d12_upload_texture
	cmp	fp, #1
	ble	.L14
	ldr	r2, .L36+4
	ldr	r3, [r5, #28]
	ldr	r2, [r2]
	ldr	r0, [r5]
	ldr	r1, [r3, r2, lsl #2]
	bl	D3D12SetPipelineState
	mov	r1, r4
	ldr	r0, [r5]
	bl	d3d12_set_texture_and_sampler
	mov	r2, #0
	ldr	r3, [r5, #8]
	mov	r1, fp
	ldr	r0, [r5]
	str	r2, [sp]
	mov	r2, #1
	bl	D3D12DrawInstanced
	ldr	r3, [r5, #8]
	add	fp, r3, fp
	str	fp, [r5, #8]
.L15:
	ldr	r1, [r5, #12]
	ldr	r0, [r5]
	bl	D3D12SetPipelineState
	ldr	r3, .L36+12
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	D3D12IASetPrimitiveTopology
	b	.L1
.L32:
	ldr	r2, [r5, #28]
	ldr	r0, [r5]
	ldr	r1, [r2, r3, lsl #2]
	bl	D3D12SetPipelineState
	ldr	r3, [r4, #24]
	mov	r2, #1
	ldr	r1, [r3]
	ldr	r0, [r5]
	mov	r3, r6
	str	r6, [sp]
	bl	D3D12DrawInstanced
	ldr	r1, [r5, #12]
	ldr	r0, [r5]
	bl	D3D12SetPipelineState
	ldr	r3, .L36+12
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	D3D12IASetPrimitiveTopology
	mov	r3, r5
	mov	r1, r6
	mov	r2, #1
	ldr	r0, [r3], #24
	bl	D3D12IASetVertexBuffers
	b	.L1
.L33:
	ldr	r0, [r5, #36]
	bl	__aeabi_i2f
	mov	r6, r0
	ldr	r0, [r4]	@ float
	mov	r1, r6
	bl	__aeabi_fdiv
	ldr	r10, [r5, #32]	@ float
	ldr	r3, [sp, #16]
	ldr	r9, [r4, #8]	@ float
	ldr	r1, [r4, #4]	@ float
	str	r0, [r3, #28]	@ float
	mov	r0, r10
	bl	__aeabi_fsub
	mov	r1, r9
	bl	__aeabi_fsub
	mov	r1, r10
	bl	__aeabi_fdiv
	mov	r1, r6
	ldr	r6, [sp, #16]
	str	r0, [r6, #32]	@ float
	ldr	r0, [r4, #12]	@ float
	bl	__aeabi_fdiv
	mov	r1, r10
	str	r0, [r6, #36]	@ float
	mov	r0, r9
	mov	r10, #1065353216
	str	r6, [sp, #16]
	bl	__aeabi_fdiv
	mov	r1, #0
	ldr	r6, [r4, #16]	@ float
	ldr	r3, [sp, #16]
	str	r0, [r3, #40]	@ float
	str	r1, [r3, #12]	@ float
	mov	r0, r6
	str	r1, [r3, #16]	@ float
	str	r10, [r3, #20]	@ float
	str	r10, [r3, #24]	@ float
	bl	__aeabi_fcmpeq
	cmp	r0, #0
	movne	r6, r10
	ldr	r2, [r4, #24]
	ldr	r3, [r4, #28]
	ldr	r0, [r2, #12]
	ldr	r2, [sp, #16]
	ldr	ip, [sp, #12]
	str	r3, [r2, #8]
	ldr	r3, [r0, #12]
	str	r6, [r2, #4]	@ float
	rsb	r3, r3, r3, lsl #8
	ldm	r0, {r0, r1, r2}
	rsb	r2, r2, r2, lsl #8
	rsb	r1, r1, r1, lsl #8
	rsb	r0, r0, r0, lsl #8
	ldr	r6, [r7, ip]
	bl	DXGI_COLOR_RGBA
	str	r0, [r6, #12]
	ldr	r2, [r4, #24]
	ldr	r3, [sp, #32]
	ldr	r0, [r2, #12]
	ldr	r6, [r3]
	add	r0, r0, #16
	ldm	r0, {r0, r1, r2, r3}
	rsb	r3, r3, r3, lsl #8
	rsb	r2, r2, r2, lsl #8
	rsb	r1, r1, r1, lsl #8
	rsb	r0, r0, r0, lsl #8
	bl	DXGI_COLOR_RGBA
	str	r0, [r6, #8]
	ldr	r2, [r4, #24]
	ldr	r3, [sp, #32]
	ldr	r0, [r2, #12]
	ldr	r6, [r3]
	add	r0, r0, #32
	ldm	r0, {r0, r1, r2, r3}
	rsb	r3, r3, r3, lsl #8
	rsb	r2, r2, r2, lsl #8
	rsb	r1, r1, r1, lsl #8
	rsb	r0, r0, r0, lsl #8
	bl	DXGI_COLOR_RGBA
	str	r0, [r6, #4]
	ldr	r2, [r4, #24]
	ldr	r3, [sp, #32]
	ldr	r0, [r2, #12]
	ldr	r6, [r3]
	add	r0, r0, #48
	ldm	r0, {r0, r1, r2, r3}
	rsb	r3, r3, r3, lsl #8
	rsb	r2, r2, r2, lsl #8
	rsb	r1, r1, r1, lsl #8
	rsb	r0, r0, r0, lsl #8
	bl	DXGI_COLOR_RGBA
	str	r0, [r6]
	b	.L10
.L14:
	ldr	r1, [r5, #12]
	ldr	r0, [r5]
	bl	D3D12SetPipelineState
	mov	r1, r4
	ldr	r0, [r5]
	bl	d3d12_set_texture_and_sampler
	mov	r2, #0
	ldr	r3, [r5, #8]
	mov	r1, fp
	ldr	r0, [r5]
	str	r2, [sp]
	mov	r2, #1
	bl	D3D12DrawInstanced
	ldr	r3, [r5, #8]
	add	fp, r3, fp
	str	fp, [r5, #8]
	b	.L1
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC0
	.word	VIDEO_SHADER_STOCK_BLEND
	.word	D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP
	.word	D3D_PRIMITIVE_TOPOLOGY_POINTLIST
	.size	menu_display_d3d12_draw, .-menu_display_d3d12_draw
	.comm	VIDEO_SHADER_STOCK_BLEND,4,4
	.comm	D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,4,4
	.comm	D3D_PRIMITIVE_TOPOLOGY_POINTLIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
