	.file	"extr_gl-subsystem.c_update_viewproj_matrix.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"glFrontFace"
	.text
	.p2align 4
	.type	update_viewproj_matrix, @function
update_viewproj_matrix:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r12, 4[rdi]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR 24[rdi]
	mov	rdi, r12
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	call	gs_matrix_get@PLT
	lea	rsi, 16[rbp]
	mov	rdi, r13
	call	matrix4_copy@PLT
	cmp	QWORD PTR 8[rbp], 0
	je	.L2
	mov	edi, DWORD PTR GL_CW[rip]
	neg	DWORD PTR 12[rsp]
	neg	DWORD PTR 8[rsp]
	neg	DWORD PTR 4[rsp]
	neg	DWORD PTR [rsp]
	call	glFrontFace@PLT
.L3:
	lea	rdi, .LC0[rip]
	call	gl_success@PLT
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbp
	call	matrix4_mul@PLT
	mov	rdi, rbp
	mov	rsi, rbp
	call	matrix4_transpose@PLT
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	jne	.L11
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR GL_CCW[rip]
	call	glFrontFace@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, rbp
	call	gs_shader_set_matrix4@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	update_viewproj_matrix, .-update_viewproj_matrix
	.comm	GL_CW,4,4
	.comm	GL_CCW,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_gl-subsystem.c_update_viewproj_matrix.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"glFrontFace\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_viewproj_matrix, %function
update_viewproj_matrix:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L13
	add	r5, r0, #4
	sub	sp, sp, #24
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r6, [r4, #16]
	bl	gs_matrix_get
	add	r1, r4, #12
	add	r0, sp, #4
	bl	matrix4_copy
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [sp, #16]
	ldr	r1, [sp, #12]
	rsb	r3, r3, #0
	rsb	r1, r1, #0
	ldr	r2, [sp, #8]
	str	r3, [sp, #16]
	str	r1, [sp, #12]
	ldr	r3, [sp, #4]
	ldr	r1, .L13+4
	rsb	r2, r2, #0
	rsb	r3, r3, #0
	ldr	r0, [r1]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	bl	glFrontFace
.L3:
	ldr	r0, .L13+8
	bl	gl_success
	mov	r1, r5
	add	r2, sp, #4
	mov	r0, r4
	bl	matrix4_mul
	mov	r1, r4
	mov	r0, r4
	bl	matrix4_transpose
	ldr	r0, [r6]
	cmp	r0, #0
	bne	.L11
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L13+12
	ldr	r0, [r3]
	bl	glFrontFace
	b	.L3
.L11:
	mov	r1, r4
	bl	gs_shader_set_matrix4
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	GL_CW
	.word	.LC0
	.word	GL_CCW
	.size	update_viewproj_matrix, .-update_viewproj_matrix
	.comm	GL_CW,4,4
	.comm	GL_CCW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
