	.file	"extr_gl-windows.c_gl_init_context.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"wglCreateContextAttribsARB failed, %lu"
	.text
	.p2align 4
	.type	gl_init_context, @function
gl_init_context:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdx, attribs.1935[rip]
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	wglCreateContextAttribsARB@PLT
	mov	r12, rax
	test	rax, rax
	je	.L6
	mov	rsi, rax
	mov	edi, ebp
	call	wgl_make_current@PLT
	test	eax, eax
	je	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, r12
	xor	r12d, r12d
	call	wglDeleteContext@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
	call	GetLastError@PLT
	mov	edi, DWORD PTR LOG_ERROR[rip]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	blog@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	gl_init_context, .-gl_init_context
	.section	.rodata
	.align 32
	.type	attribs.1935, @object
	.size	attribs.1935, 32
attribs.1935:
	.long	128
	.long	133
	.long	130
	.long	3
	.long	129
	.long	3
	.long	0
	.long	0
	.comm	LOG_ERROR,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-windows.c_gl_init_context.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wglCreateContextAttribsARB failed, %lu\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gl_init_context, %function
gl_init_context:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r1, #0
	ldr	r2, .L8
	mov	r5, r0
	bl	wglCreateContextAttribsARB
	subs	r4, r0, #0
	beq	.L6
	mov	r0, r5
	mov	r1, r4
	bl	wgl_make_current
	subs	r5, r0, #0
	beq	.L7
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, r4
	bl	wglDeleteContext
	mov	r4, r5
	b	.L1
.L6:
	ldr	r3, .L8+4
	ldr	r5, [r3]
	bl	GetLastError
	ldr	r1, .L8+8
	mov	r2, r0
	mov	r0, r5
	bl	blog
	b	.L1
.L9:
	.align	2
.L8:
	.word	.LANCHOR0
	.word	LOG_ERROR
	.word	.LC0
	.size	gl_init_context, .-gl_init_context
	.comm	LOG_ERROR,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	attribs.4219, %object
	.size	attribs.4219, 32
attribs.4219:
	.word	128
	.word	133
	.word	130
	.word	3
	.word	129
	.word	3
	.word	0
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
