	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetGammaRamp      ## -- Begin function _glfwPlatformGetGammaRamp
	.p2align	4, 0x90
__glfwPlatformGetGammaRamp:             ## @_glfwPlatformGetGammaRamp
	.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	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	(%rdi), %esi
	leaq	l_.str(%rip), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_CreateDCW
	movl	%eax, %ebx
	leaq	-3104(%rbp), %r15
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_GetDeviceGammaRamp
	movl	%ebx, %edi
	callq	_DeleteDC
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	__glfwAllocGammaArrays
	movl	8(%r14), %edi
	movq	%r15, %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memcpy
	movl	4(%r14), %edi
	leaq	-2080(%rbp), %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memcpy
	movl	(%r14), %edi
	leaq	-1056(%rbp), %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memcpy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$3080, %rsp                     ## imm = 0xC08
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.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	__glfwPlatformGetGammaRamp      ; -- Begin function _glfwPlatformGetGammaRamp
	.p2align	2
__glfwPlatformGetGammaRamp:             ; @_glfwPlatformGetGammaRamp
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w1, [x0]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, #0
	mov	x3, #0
	bl	_CreateDCW
	mov	x20, x0
	add	x21, sp, #8
	add	x1, sp, #8
	bl	_GetDeviceGammaRamp
	mov	x0, x20
	bl	_DeleteDC
	mov	x0, x19
	mov	w1, #256
	bl	__glfwAllocGammaArrays
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	mov	w2, #512
	bl	_memcpy
	ldr	w0, [x19, #4]
	add	x1, x21, #1024
	mov	w2, #512
	bl	_memcpy
	ldr	w0, [x19]
	add	x1, x21, #2048
	mov	w2, #512
	bl	_memcpy
	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_2
; %bb.1:
	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_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.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
