	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetGammaRamp      ## -- Begin function _glfwPlatformSetGammaRamp
	.p2align	4, 0x90
__glfwPlatformSetGammaRamp:             ## @_glfwPlatformSetGammaRamp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$3080, %rsp                     ## imm = 0xC08
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	cmpl	$256, (%rsi)                    ## imm = 0x100
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	12(%rsi), %esi
	leaq	-3104(%rbp), %r14
	movq	%r14, %rdi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memcpy
	leaq	-2080(%rbp), %rdi
	movl	8(%rbx), %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memcpy
	leaq	-1056(%rbp), %rdi
	movl	4(%rbx), %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memcpy
	movl	(%r15), %esi
	leaq	l_.str.1(%rip), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_CreateDCW
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_SetDeviceGammaRamp
	movl	%ebx, %edi
	callq	_DeleteDC
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$3080, %rsp                     ## imm = 0xC08
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rsi
	addq	$3080, %rsp                     ## imm = 0xC08
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__glfwInputError                ## TAILCALL
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Win32: Gamma ramp size must be 256"

	.section	__TEXT,__const
	.p2align	2                               ## @.str.1
l_.str.1:
	.long	68                              ## 0x44
	.long	73                              ## 0x49
	.long	83                              ## 0x53
	.long	80                              ## 0x50
	.long	76                              ## 0x4c
	.long	65                              ## 0x41
	.long	89                              ## 0x59
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetGammaRamp      ; -- Begin function _glfwPlatformSetGammaRamp
	.p2align	2
__glfwPlatformSetGammaRamp:             ; @_glfwPlatformSetGammaRamp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #3088
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w8, [x1]
	cmp	w8, #256
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x1, #12]
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w2, #512
	bl	_memcpy
	add	x0, x21, #1024
	ldr	w1, [x20, #8]
	mov	w2, #512
	bl	_memcpy
	add	x0, x21, #2048
	ldr	w1, [x20, #4]
	mov	w2, #512
	bl	_memcpy
	ldr	w1, [x19]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, #0
	mov	x3, #0
	bl	_CreateDCW
	mov	x19, x0
	add	x1, sp, #8
	bl	_SetDeviceGammaRamp
	mov	x0, x19
	bl	_DeleteDC
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
	add	sp, sp, #3088
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh8:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	add	sp, sp, #3088
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	__glfwInputError
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Win32: Gamma ramp size must be 256"

	.section	__TEXT,__const
	.p2align	2                               ; @.str.1
l_.str.1:
	.long	68                              ; 0x44
	.long	73                              ; 0x49
	.long	83                              ; 0x53
	.long	80                              ; 0x50
	.long	76                              ; 0x4c
	.long	65                              ; 0x41
	.long	89                              ; 0x59
	.long	0                               ; 0x0

.subsections_via_symbols
