	.file	"extr_win32_monitor.c__glfwPlatformSetGammaRamp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Win32: Gamma ramp size must be 256"
	.section	.rodata.str4.8,"aMS",@progbits,4
	.align 8
.LC1:
	.string	"D"
	.string	""
	.string	""
	.string	"I"
	.string	""
	.string	""
	.string	"S"
	.string	""
	.string	""
	.string	"P"
	.string	""
	.string	""
	.string	"L"
	.string	""
	.string	""
	.string	"A"
	.string	""
	.string	""
	.string	"Y"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.text
	.p2align 4
	.globl	_glfwPlatformSetGammaRamp
	.type	_glfwPlatformSetGammaRamp, @function
_glfwPlatformSetGammaRamp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 3088
	.cfi_def_cfa_offset 3120
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 3080[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR [rsi], 256
	je	.L2
	mov	edi, DWORD PTR GLFW_PLATFORM_ERROR[rip]
	lea	rsi, .LC0[rip]
	call	_glfwInputError@PLT
.L1:
	mov	rax, QWORD PTR 3080[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 3088
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbx, rsi
	mov	r12, rsp
	mov	esi, DWORD PTR 12[rsi]
	mov	rbp, rdi
	mov	edx, 512
	mov	rdi, r12
	call	memcpy@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, 512
	lea	rdi, 1024[rsp]
	call	memcpy@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, 512
	lea	rdi, 2048[rsp]
	call	memcpy@PLT
	mov	esi, DWORD PTR 0[rbp]
	xor	ecx, ecx
	xor	edx, edx
	lea	rdi, .LC1[rip]
	call	CreateDCW@PLT
	mov	rsi, r12
	mov	ebp, eax
	mov	edi, eax
	call	SetDeviceGammaRamp@PLT
	mov	edi, ebp
	call	DeleteDC@PLT
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_glfwPlatformSetGammaRamp, .-_glfwPlatformSetGammaRamp
	.comm	GLFW_PLATFORM_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_win32_monitor.c__glfwPlatformSetGammaRamp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Win32: Gamma ramp size must be 256\000"
	.section	.rodata.str4.4,"aMS",%progbits,4
	.align	2
.LC1:
	.ascii	"D\000\000\000I\000\000\000S\000\000\000P\000\000\000"
	.ascii	"L\000\000\000A\000\000\000Y\000\000\000\000\000\000"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_glfwPlatformSetGammaRamp
	.syntax unified
	.arm
	.fpu softvfp
	.type	_glfwPlatformSetGammaRamp, %function
_glfwPlatformSetGammaRamp:
	@ args = 0, pretend = 0, frame = 3080
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, [r1]
	sub	sp, sp, #3072
	cmp	r3, #256
	ldr	r3, .L8
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #3076]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L8+4
	ldr	r1, .L8+8
	ldr	r0, [r3]
	bl	_glfwInputError
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #3076]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #3072
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	mov	r4, r1
	mov	r5, r0
	mov	r2, #512
	ldr	r1, [r1, #12]
	add	r0, sp, #4
	bl	memcpy
	add	r3, sp, #8
	ldr	r1, [r4, #8]
	mov	r2, #512
	add	r0, r3, #1020
	bl	memcpy
	add	r3, sp, #4
	ldr	r1, [r4, #4]
	mov	r2, #512
	add	r0, r3, #2048
	bl	memcpy
	mov	r3, #0
	ldr	r1, [r5]
	mov	r2, r3
	ldr	r0, .L8+12
	bl	CreateDCW
	mov	r4, r0
	add	r1, sp, #4
	bl	SetDeviceGammaRamp
	mov	r0, r4
	bl	DeleteDC
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	GLFW_PLATFORM_ERROR
	.word	.LC0
	.word	.LC1
	.size	_glfwPlatformSetGammaRamp, .-_glfwPlatformSetGammaRamp
	.comm	GLFW_PLATFORM_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
