	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function init_ogl
LCPI0_0:
	.long	0x3ef919ce                      ## float 0.486524999
LCPI0_1:
	.long	0x3ee786c2                      ## float 0.452199996
LCPI0_2:
	.long	0x3f02d289                      ## float 0.511025012
LCPI0_3:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_4:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_init_ogl:                              ## @init_ogl
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_EGL_DEFAULT_DISPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_eglGetDisplay
	movq	%rax, (%rbx)
	movq	_EGL_NO_DISPLAY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_assert
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_eglInitialize
	movq	_EGL_FALSE@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	%rax, (%r12)
	setne	%dil
	callq	_assert
	movq	(%rbx), %rdi
	leaq	_init_ogl.attribute_list(%rip), %rsi
	leaq	-68(%rbp), %rdx
	leaq	-72(%rbp), %r8
	movl	$1, %ecx
	callq	_eglSaneChooseConfigBRCM
	xorl	%edi, %edi
	cmpq	%rax, (%r12)
	setne	%dil
	callq	_assert
	movq	(%rbx), %rdi
	movl	-68(%rbp), %esi
	movq	_EGL_NO_CONTEXT@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	xorl	%ecx, %ecx
	callq	_eglCreateContext
	movq	%rax, 8(%rbx)
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setne	%dil
	callq	_assert
	leaq	16(%rbx), %rsi
	leaq	20(%rbx), %rdx
	xorl	%edi, %edi
	callq	_graphics_get_display_size
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	xorps	%xmm0, %xmm0
	movups	%xmm0, -112(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -120(%rbp)
	movl	20(%rbx), %ecx
	movl	%ecx, -116(%rbp)
	shll	$16, %eax
	movups	%xmm0, -88(%rbp)
	movl	%eax, -96(%rbp)
	shll	$16, %ecx
	movl	%ecx, -92(%rbp)
	xorl	%edi, %edi
	callq	_vc_dispmanx_display_open
	movl	%eax, %r14d
	xorl	%edi, %edi
	callq	_vc_dispmanx_update_start
	movl	%eax, %r15d
	movq	_DISPMANX_PROTECTION_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-120(%rbp), %rcx
	leaq	-96(%rbp), %r9
	movl	%r15d, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	%rax
	callq	_vc_dispmanx_element_add
	addq	$32, %rsp
	movl	%eax, _init_ogl.nativewindow+8(%rip)
	leaq	_init_ogl.nativewindow(%rip), %r14
	movl	16(%rbx), %eax
	movl	%eax, _init_ogl.nativewindow(%rip)
	movl	20(%rbx), %eax
	movl	%eax, _init_ogl.nativewindow+4(%rip)
	movl	%r15d, %edi
	callq	_vc_dispmanx_update_submit_sync
	movq	(%rbx), %rdi
	movl	-68(%rbp), %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_eglCreateWindowSurface
	movl	%eax, 24(%rbx)
	movq	_EGL_NO_SURFACE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_assert
	movl	24(%rbx), %edx
	movq	(%rbx), %rdi
	movq	8(%rbx), %rcx
	movl	%edx, %esi
	callq	_eglMakeCurrent
	xorl	%edi, %edi
	cmpq	%rax, (%r12)
	setne	%dil
	callq	_assert
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	LCPI0_3(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	callq	_glClearColor
	movq	_GL_CULL_FACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glEnable
	movq	_GL_DEPTH_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glEnable
	movsd	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_glClearDepthf
	movq	_GL_LEQUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glDepthFunc
	movaps	L___const.init_ogl.noAmbient(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_GL_LIGHT0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GL_AMBIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_glLightfv
	movl	(%rbx), %edi
	callq	_glEnable
	movq	_GL_LIGHTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glEnable
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_init_ogl.nativewindow,12,2 ## @init_ogl.nativewindow
	.section	__TEXT,__const
	.p2align	4                               ## @init_ogl.attribute_list
_init_ogl.attribute_list:
	.long	131                             ## 0x83
	.long	8                               ## 0x8
	.long	133                             ## 0x85
	.long	8                               ## 0x8
	.long	135                             ## 0x87
	.long	8                               ## 0x8
	.long	136                             ## 0x88
	.long	8                               ## 0x8
	.long	134                             ## 0x86
	.long	16                              ## 0x10
	.long	130                             ## 0x82
	.long	4                               ## 0x4
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	132                             ## 0x84

	.comm	_EGL_DEFAULT_DISPLAY,4,2        ## @EGL_DEFAULT_DISPLAY
	.comm	_EGL_NO_DISPLAY,8,3             ## @EGL_NO_DISPLAY
	.comm	_EGL_FALSE,8,3                  ## @EGL_FALSE
	.comm	_EGL_NO_CONTEXT,8,3             ## @EGL_NO_CONTEXT
	.comm	_DISPMANX_PROTECTION_NONE,4,2   ## @DISPMANX_PROTECTION_NONE
	.comm	_EGL_NO_SURFACE,4,2             ## @EGL_NO_SURFACE
	.comm	_GL_CULL_FACE,4,2               ## @GL_CULL_FACE
	.comm	_GL_DEPTH_TEST,4,2              ## @GL_DEPTH_TEST
	.comm	_GL_LEQUAL,4,2                  ## @GL_LEQUAL
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.init_ogl.noAmbient
L___const.init_ogl.noAmbient:
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1

	.comm	_GL_LIGHT0,4,2                  ## @GL_LIGHT0
	.comm	_GL_AMBIENT,4,2                 ## @GL_AMBIENT
	.comm	_GL_LIGHTING,4,2                ## @GL_LIGHTING
	.no_dead_strip	_init_ogl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_ogl
_init_ogl:                              ; @init_ogl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _EGL_DEFAULT_DISPLAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EGL_DEFAULT_DISPLAY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_eglGetDisplay
	str	x0, [x19]
Lloh6:
	adrp	x8, _EGL_NO_DISPLAY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EGL_NO_DISPLAY@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19]
	mov	x1, #0
	mov	x2, #0
	bl	_eglInitialize
Lloh9:
	adrp	x22, _EGL_FALSE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _EGL_FALSE@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19]
Lloh11:
	adrp	x1, _init_ogl.attribute_list@PAGE
Lloh12:
	add	x1, x1, _init_ogl.attribute_list@PAGEOFF
	add	x2, sp, #20
	sub	x4, x29, #68
	mov	w3, #1
	bl	_eglSaneChooseConfigBRCM
	ldr	x8, [x22]
	cmp	x8, x0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19]
	ldr	w1, [sp, #20]
Lloh13:
	adrp	x20, _EGL_NO_CONTEXT@GOTPAGE
Lloh14:
	ldr	x20, [x20, _EGL_NO_CONTEXT@GOTPAGEOFF]
	ldr	x2, [x20]
	mov	x3, #0
	bl	_eglCreateContext
	str	x0, [x19, #8]
	ldr	x8, [x20]
	cmp	x0, x8
	cset	w0, ne
	bl	_assert
	add	x1, x19, #16
	add	x2, x19, #20
	mov	w0, #0
	bl	_graphics_get_display_size
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	stp	xzr, xzr, [sp, #56]
	ldp	w8, w9, [x19, #16]
	stp	w8, w9, [sp, #48]
	lsl	w8, w8, #16
	stp	xzr, xzr, [sp, #32]
	lsl	w9, w9, #16
	stp	w8, w9, [sp, #24]
	mov	w0, #0
	bl	_vc_dispmanx_display_open
	mov	x20, x0
	mov	w0, #0
	bl	_vc_dispmanx_update_start
	mov	x21, x0
Lloh15:
	adrp	x8, _DISPMANX_PROTECTION_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DISPMANX_PROTECTION_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w6, [x8]
	str	xzr, [sp]
	add	x3, sp, #48
	add	x5, sp, #24
	mov	x1, x20
	mov	w2, #0
	mov	w4, #0
	mov	w7, #0
	bl	_vc_dispmanx_element_add
Lloh18:
	adrp	x20, _init_ogl.nativewindow@PAGE
Lloh19:
	add	x20, x20, _init_ogl.nativewindow@PAGEOFF
	str	w0, [x20, #8]
	ldr	d0, [x19, #16]
	str	d0, [x20]
	mov	x0, x21
	bl	_vc_dispmanx_update_submit_sync
	ldr	x0, [x19]
	ldr	w1, [sp, #20]
	mov	x2, x20
	mov	x3, #0
	bl	_eglCreateWindowSurface
	str	w0, [x19, #24]
Lloh20:
	adrp	x8, _EGL_NO_SURFACE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EGL_NO_SURFACE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, ne
	bl	_assert
	ldr	w1, [x19, #24]
	ldp	x0, x3, [x19]
	mov	x2, x1
	bl	_eglMakeCurrent
	ldr	x8, [x22]
	cmp	x8, x0
	cset	w0, ne
	bl	_assert
	mov	w8, #6606
	movk	w8, #16121, lsl #16
	fmov	s0, w8
	mov	w8, #34498
	movk	w8, #16103, lsl #16
	fmov	s1, w8
	mov	w8, #53897
	movk	w8, #16130, lsl #16
	fmov	s2, w8
	fmov	s3, #1.00000000
	bl	_glClearColor
Lloh23:
	adrp	x8, _GL_CULL_FACE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GL_CULL_FACE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_glEnable
Lloh26:
	adrp	x8, _GL_DEPTH_TEST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GL_DEPTH_TEST@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_glEnable
	fmov	d0, #1.00000000
	bl	_glClearDepthf
Lloh29:
	adrp	x8, _GL_LEQUAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GL_LEQUAL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_glDepthFunc
Lloh32:
	adrp	x8, l___const.init_ogl.noAmbient@PAGE
Lloh33:
	add	x8, x8, l___const.init_ogl.noAmbient@PAGEOFF
Lloh34:
	ldr	q0, [x8]
	stur	q0, [x29, #-64]
Lloh35:
	adrp	x19, _GL_LIGHT0@GOTPAGE
Lloh36:
	ldr	x19, [x19, _GL_LIGHT0@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh37:
	adrp	x8, _GL_AMBIENT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GL_AMBIENT@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	sub	x2, x29, #64
	bl	_glLightfv
	ldr	w0, [x19]
	bl	_glEnable
Lloh40:
	adrp	x8, _GL_LIGHTING@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GL_LIGHTING@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_glEnable
	ldur	x8, [x29, #-40]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAddLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_init_ogl.nativewindow,12,3 ; @init_ogl.nativewindow
	.section	__TEXT,__const
	.p2align	2                               ; @init_ogl.attribute_list
_init_ogl.attribute_list:
	.long	131                             ; 0x83
	.long	8                               ; 0x8
	.long	133                             ; 0x85
	.long	8                               ; 0x8
	.long	135                             ; 0x87
	.long	8                               ; 0x8
	.long	136                             ; 0x88
	.long	8                               ; 0x8
	.long	134                             ; 0x86
	.long	16                              ; 0x10
	.long	130                             ; 0x82
	.long	4                               ; 0x4
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	132                             ; 0x84

	.comm	_EGL_DEFAULT_DISPLAY,4,2        ; @EGL_DEFAULT_DISPLAY
	.comm	_EGL_NO_DISPLAY,8,3             ; @EGL_NO_DISPLAY
	.comm	_EGL_FALSE,8,3                  ; @EGL_FALSE
	.comm	_EGL_NO_CONTEXT,8,3             ; @EGL_NO_CONTEXT
	.comm	_DISPMANX_PROTECTION_NONE,4,2   ; @DISPMANX_PROTECTION_NONE
	.comm	_EGL_NO_SURFACE,4,2             ; @EGL_NO_SURFACE
	.comm	_GL_CULL_FACE,4,2               ; @GL_CULL_FACE
	.comm	_GL_DEPTH_TEST,4,2              ; @GL_DEPTH_TEST
	.comm	_GL_LEQUAL,4,2                  ; @GL_LEQUAL
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.init_ogl.noAmbient
l___const.init_ogl.noAmbient:
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1

	.comm	_GL_LIGHT0,4,2                  ; @GL_LIGHT0
	.comm	_GL_AMBIENT,4,2                 ; @GL_AMBIENT
	.comm	_GL_LIGHTING,4,2                ; @GL_LIGHTING
	.no_dead_strip	_init_ogl
.subsections_via_symbols
