	.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	0x3e19999a                      ## float 0.150000006
LCPI0_1:
	.long	0x3e800000                      ## float 0.25
LCPI0_2:
	.long	0x3eb33333                      ## float 0.349999994
LCPI0_3:
	.long	0x3f800000                      ## float 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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	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	-36(%rbp), %rdx
	leaq	-40(%rbp), %r8
	movl	$1, %ecx
	callq	_eglChooseConfig
	xorl	%edi, %edi
	cmpq	%rax, (%r12)
	setne	%dil
	callq	_assert
	movq	(%rbx), %rdi
	movl	-36(%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, -80(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -88(%rbp)
	movl	20(%rbx), %ecx
	movl	%ecx, -84(%rbp)
	shll	$16, %eax
	movups	%xmm0, -56(%rbp)
	movl	%eax, -64(%rbp)
	shll	$16, %ecx
	movl	%ecx, -60(%rbp)
	xorl	%edi, %edi
	callq	_vc_dispmanx_display_open
	movl	%eax, 32(%rbx)
	xorl	%edi, %edi
	callq	_vc_dispmanx_update_start
	movl	%eax, %r14d
	movl	32(%rbx), %esi
	movq	_DISPMANX_PROTECTION_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-88(%rbp), %rcx
	leaq	-64(%rbp), %r9
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	%rax
	callq	_vc_dispmanx_element_add
	addq	$32, %rsp
	movl	%eax, 28(%rbx)
	movl	%eax, _init_ogl.nativewindow+8(%rip)
	leaq	_init_ogl.nativewindow(%rip), %r15
	movl	16(%rbx), %eax
	movl	%eax, _init_ogl.nativewindow(%rip)
	movl	20(%rbx), %eax
	movl	%eax, _init_ogl.nativewindow+4(%rip)
	movl	%r14d, %edi
	callq	_vc_dispmanx_update_submit_sync
	movq	(%rbx), %rdi
	movl	-36(%rbp), %esi
	movq	%r15, %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_MODELVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glMatrixMode
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	130                             ## 0x82
	.long	8                               ## 0x8
	.long	132                             ## 0x84
	.long	8                               ## 0x8
	.long	133                             ## 0x85
	.long	8                               ## 0x8
	.long	134                             ## 0x86
	.long	8                               ## 0x8
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	131                             ## 0x83

	.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_MODELVIEW,4,2               ## @GL_MODELVIEW
	.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, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, _EGL_DEFAULT_DISPLAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EGL_DEFAULT_DISPLAY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_eglGetDisplay
	str	x0, [x19]
Lloh3:
	adrp	x8, _EGL_NO_DISPLAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EGL_NO_DISPLAY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19]
	mov	x1, #0
	mov	x2, #0
	bl	_eglInitialize
Lloh6:
	adrp	x22, _EGL_FALSE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EGL_FALSE@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19]
Lloh8:
	adrp	x1, _init_ogl.attribute_list@PAGE
Lloh9:
	add	x1, x1, _init_ogl.attribute_list@PAGEOFF
	add	x2, sp, #20
	sub	x4, x29, #36
	mov	w3, #1
	bl	_eglChooseConfig
	ldr	x8, [x22]
	cmp	x8, x0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19]
	ldr	w1, [sp, #20]
Lloh10:
	adrp	x20, _EGL_NO_CONTEXT@GOTPAGE
Lloh11:
	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
	str	w0, [x19, #32]
	mov	w0, #0
	bl	_vc_dispmanx_update_start
	mov	x20, x0
	ldr	w1, [x19, #32]
Lloh12:
	adrp	x8, _DISPMANX_PROTECTION_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DISPMANX_PROTECTION_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	str	xzr, [sp]
	add	x3, sp, #48
	add	x5, sp, #24
	mov	w2, #0
	mov	w4, #0
	mov	w7, #0
	bl	_vc_dispmanx_element_add
	str	w0, [x19, #28]
Lloh15:
	adrp	x21, _init_ogl.nativewindow@PAGE
Lloh16:
	add	x21, x21, _init_ogl.nativewindow@PAGEOFF
	str	w0, [x21, #8]
	ldr	d0, [x19, #16]
	str	d0, [x21]
	mov	x0, x20
	bl	_vc_dispmanx_update_submit_sync
	ldr	x0, [x19]
	ldr	w1, [sp, #20]
	mov	x2, x21
	mov	x3, #0
	bl	_eglCreateWindowSurface
	str	w0, [x19, #24]
Lloh17:
	adrp	x8, _EGL_NO_SURFACE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EGL_NO_SURFACE@GOTPAGEOFF]
Lloh19:
	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, #39322
	movk	w8, #15897, lsl #16
	fmov	s0, w8
	mov	w8, #13107
	movk	w8, #16051, lsl #16
	fmov	s2, w8
	fmov	s1, #0.25000000
	fmov	s3, #1.00000000
	bl	_glClearColor
Lloh20:
	adrp	x8, _GL_CULL_FACE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_CULL_FACE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_glEnable
Lloh23:
	adrp	x8, _GL_MODELVIEW@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GL_MODELVIEW@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_glMatrixMode
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.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	130                             ; 0x82
	.long	8                               ; 0x8
	.long	132                             ; 0x84
	.long	8                               ; 0x8
	.long	133                             ; 0x85
	.long	8                               ; 0x8
	.long	134                             ; 0x86
	.long	8                               ; 0x8
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	131                             ; 0x83

	.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_MODELVIEW,4,2               ; @GL_MODELVIEW
	.no_dead_strip	_init_ogl
.subsections_via_symbols
