	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspitexutil_gl_init_1_0       ## -- Begin function raspitexutil_gl_init_1_0
	.p2align	4, 0x90
_raspitexutil_gl_init_1_0:              ## @raspitexutil_gl_init_1_0
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	(%rdi), %rax
	movq	_EGL_RED_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -80(%rbp)
	movl	$8, -76(%rbp)
	movq	_EGL_GREEN_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -72(%rbp)
	movl	$8, -68(%rbp)
	movq	_EGL_BLUE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)
	movl	$8, -60(%rbp)
	movq	_EGL_ALPHA_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movl	$8, -52(%rbp)
	movq	_EGL_DEPTH_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movl	$16, -44(%rbp)
	movq	_EGL_RENDERABLE_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	movq	_EGL_OPENGL_ES_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -36(%rbp)
	movq	_EGL_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -32(%rbp)
	movq	_EGL_CONTEXT_CLIENT_VERSION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -92(%rbp)
	movl	$1, -88(%rbp)
	movl	%ecx, -84(%rbp)
	testq	%rax, %rax
	leaq	-80(%rbp), %rsi
	cmovneq	%rax, %rsi
	leaq	-92(%rbp), %rdx
	callq	_raspitexutil_gl_common
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_GL_TEXTURE_EXTERNAL_OES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glEnable
	movl	%eax, %edi
	callq	_GLCHK
	movq	%rbx, %rdi
	callq	_raspitexutil_create_textures
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$88, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EGL_RED_SIZE,4,2               ## @EGL_RED_SIZE
	.comm	_EGL_GREEN_SIZE,4,2             ## @EGL_GREEN_SIZE
	.comm	_EGL_BLUE_SIZE,4,2              ## @EGL_BLUE_SIZE
	.comm	_EGL_ALPHA_SIZE,4,2             ## @EGL_ALPHA_SIZE
	.comm	_EGL_DEPTH_SIZE,4,2             ## @EGL_DEPTH_SIZE
	.comm	_EGL_RENDERABLE_TYPE,4,2        ## @EGL_RENDERABLE_TYPE
	.comm	_EGL_OPENGL_ES_BIT,4,2          ## @EGL_OPENGL_ES_BIT
	.comm	_EGL_NONE,4,2                   ## @EGL_NONE
	.comm	_EGL_CONTEXT_CLIENT_VERSION,4,2 ## @EGL_CONTEXT_CLIENT_VERSION
	.comm	_GL_TEXTURE_EXTERNAL_OES,4,2    ## @GL_TEXTURE_EXTERNAL_OES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspitexutil_gl_init_1_0       ; -- Begin function raspitexutil_gl_init_1_0
	.p2align	2
_raspitexutil_gl_init_1_0:              ; @raspitexutil_gl_init_1_0
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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, #-24]
Lloh3:
	adrp	x8, _EGL_RED_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EGL_RED_SIZE@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh5:
	ldr	w8, [x8]
	mov	w10, #8
Lloh6:
	adrp	x11, _EGL_GREEN_SIZE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _EGL_GREEN_SIZE@GOTPAGEOFF]
	stp	w8, w10, [sp, #20]
Lloh8:
	ldr	w8, [x11]
	stp	w8, w10, [sp, #28]
Lloh9:
	adrp	x8, _EGL_BLUE_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EGL_BLUE_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w10, [sp, #36]
Lloh12:
	adrp	x8, _EGL_ALPHA_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EGL_ALPHA_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	w8, w10, [sp, #44]
Lloh15:
	adrp	x8, _EGL_DEPTH_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EGL_DEPTH_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	w10, #16
	stp	w8, w10, [sp, #52]
Lloh18:
	adrp	x8, _EGL_RENDERABLE_TYPE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EGL_RENDERABLE_TYPE@GOTPAGEOFF]
Lloh20:
	adrp	x10, _EGL_OPENGL_ES_BIT@GOTPAGE
Lloh21:
	ldr	x10, [x10, _EGL_OPENGL_ES_BIT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w10, [x10]
	stp	w8, w10, [sp, #60]
Lloh24:
	adrp	x8, _EGL_NONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EGL_NONE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #68]
Lloh27:
	adrp	x10, _EGL_CONTEXT_CLIENT_VERSION@GOTPAGE
Lloh28:
	ldr	x10, [x10, _EGL_CONTEXT_CLIENT_VERSION@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	mov	w11, #1
	stp	w10, w11, [sp, #8]
	add	x10, sp, #20
	cmp	x9, #0
	csel	x1, x10, x9, eq
	str	w8, [sp, #16]
	add	x2, sp, #8
	bl	_raspitexutil_gl_common
	cbnz	w0, LBB0_2
; %bb.1:
Lloh30:
	adrp	x8, _GL_TEXTURE_EXTERNAL_OES@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GL_TEXTURE_EXTERNAL_OES@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_glEnable
	bl	_GLCHK
	mov	x0, x19
	bl	_raspitexutil_create_textures
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EGL_RED_SIZE,4,2               ; @EGL_RED_SIZE
	.comm	_EGL_GREEN_SIZE,4,2             ; @EGL_GREEN_SIZE
	.comm	_EGL_BLUE_SIZE,4,2              ; @EGL_BLUE_SIZE
	.comm	_EGL_ALPHA_SIZE,4,2             ; @EGL_ALPHA_SIZE
	.comm	_EGL_DEPTH_SIZE,4,2             ; @EGL_DEPTH_SIZE
	.comm	_EGL_RENDERABLE_TYPE,4,2        ; @EGL_RENDERABLE_TYPE
	.comm	_EGL_OPENGL_ES_BIT,4,2          ; @EGL_OPENGL_ES_BIT
	.comm	_EGL_NONE,4,2                   ; @EGL_NONE
	.comm	_EGL_CONTEXT_CLIENT_VERSION,4,2 ; @EGL_CONTEXT_CLIENT_VERSION
	.comm	_GL_TEXTURE_EXTERNAL_OES,4,2    ; @GL_TEXTURE_EXTERNAL_OES
.subsections_via_symbols
