	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_cgl_init_create
_gfx_ctx_cgl_init_create:               ## @gfx_ctx_cgl_init_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$48, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	$1, -36(%rbp)
	movq	$0, -32(%rbp)
	movq	_kCGLPFAAccelerated@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_kCGLPFADoubleBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movl	$0, -12(%rbp)
	leaq	-20(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_CGLChoosePixelFormat
	movl	-24(%rbp), %edi
	leaq	-32(%rbp), %rdx
	xorl	%esi, %esi
	callq	_CGLCreateContext
	movl	-24(%rbp), %edi
	callq	_CGLDestroyPixelFormat
	movq	-32(%rbp), %rdi
	movq	_kCGLCPSwapInterval@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_CGLSetParameter
	movq	-32(%rbp), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$48, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_kCGLPFAAccelerated,4,2         ## @kCGLPFAAccelerated
	.comm	_kCGLPFADoubleBuffer,4,2        ## @kCGLPFADoubleBuffer
	.comm	_kCGLCPSwapInterval,4,2         ## @kCGLCPSwapInterval
	.no_dead_strip	_gfx_ctx_cgl_init_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_ctx_cgl_init_create
_gfx_ctx_cgl_init_create:               ; @gfx_ctx_cgl_init_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	mov	w8, #1
	str	w8, [sp, #20]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _kCGLPFAAccelerated@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kCGLPFAAccelerated@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _kCGLPFADoubleBuffer@GOTPAGE
Lloh7:
	ldr	x9, [x9, _kCGLPFADoubleBuffer@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [x29, #-20]
	stur	wzr, [x29, #-12]
	sub	x0, x29, #20
	add	x1, sp, #16
	add	x2, sp, #24
	bl	_CGLChoosePixelFormat
	ldr	w0, [sp, #16]
	add	x2, sp, #8
	mov	x1, #0
	bl	_CGLCreateContext
	ldr	w0, [sp, #16]
	bl	_CGLDestroyPixelFormat
	ldr	x0, [sp, #8]
Lloh9:
	adrp	x8, _kCGLCPSwapInterval@GOTPAGE
Lloh10:
	ldr	x8, [x8, _kCGLCPSwapInterval@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #20
	bl	_CGLSetParameter
	ldr	x0, [sp, #8]
	ldur	x8, [x29, #-8]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_kCGLPFAAccelerated,4,2         ; @kCGLPFAAccelerated
	.comm	_kCGLPFADoubleBuffer,4,2        ; @kCGLPFADoubleBuffer
	.comm	_kCGLCPSwapInterval,4,2         ; @kCGLCPSwapInterval
	.no_dead_strip	_gfx_ctx_cgl_init_create
.subsections_via_symbols
