	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspitexutil_gl_term           ## -- Begin function raspitexutil_gl_term
	.p2align	4, 0x90
_raspitexutil_gl_term:                  ## @raspitexutil_gl_term
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_vcos_log_trace
	leaq	72(%rbx), %rsi
	movl	$1, %edi
	callq	_glDeleteTextures
	movl	(%rbx), %edi
	movq	64(%rbx), %rsi
	callq	_eglDestroyImageKHR
	movq	_EGL_NO_IMAGE_KHR@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, 64(%rbx)
	leaq	56(%rbx), %rsi
	movl	$1, %edi
	callq	_glDeleteTextures
	movl	(%rbx), %edi
	movq	48(%rbx), %rsi
	callq	_eglDestroyImageKHR
	movq	(%r14), %rax
	movq	%rax, 48(%rbx)
	leaq	40(%rbx), %rsi
	movl	$1, %edi
	callq	_glDeleteTextures
	movl	(%rbx), %edi
	movq	32(%rbx), %rsi
	callq	_eglDestroyImageKHR
	movq	(%r14), %rax
	movq	%rax, 32(%rbx)
	leaq	24(%rbx), %rsi
	movl	$1, %edi
	callq	_glDeleteTextures
	movl	(%rbx), %edi
	movq	16(%rbx), %rsi
	callq	_eglDestroyImageKHR
	movq	(%r14), %rax
	movq	%rax, 16(%rbx)
	movl	(%rbx), %edi
	movq	_EGL_NO_SURFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EGL_NO_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, %esi
	callq	_eglMakeCurrent
	movl	(%rbx), %edi
	movl	8(%rbx), %esi
	callq	_eglDestroyContext
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_eglDestroySurface
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_eglTerminate                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
	.comm	_EGL_NO_IMAGE_KHR,8,3           ## @EGL_NO_IMAGE_KHR
	.comm	_EGL_NO_SURFACE,4,2             ## @EGL_NO_SURFACE
	.comm	_EGL_NO_CONTEXT,4,2             ## @EGL_NO_CONTEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspitexutil_gl_term           ; -- Begin function raspitexutil_gl_term
	.p2align	2
_raspitexutil_gl_term:                  ; @raspitexutil_gl_term
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, _VCOS_FUNCTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCOS_FUNCTION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_trace
	add	x1, x19, #72
	mov	w0, #1
	bl	_glDeleteTextures
	ldr	w0, [x19]
	ldr	x1, [x19, #64]
	bl	_eglDestroyImageKHR
Lloh5:
	adrp	x20, _EGL_NO_IMAGE_KHR@GOTPAGE
Lloh6:
	ldr	x20, [x20, _EGL_NO_IMAGE_KHR@GOTPAGEOFF]
	ldr	x8, [x20]
	str	x8, [x19, #64]
	add	x1, x19, #56
	mov	w0, #1
	bl	_glDeleteTextures
	ldr	w0, [x19]
	ldr	x1, [x19, #48]
	bl	_eglDestroyImageKHR
	ldr	x8, [x20]
	str	x8, [x19, #48]
	add	x1, x19, #40
	mov	w0, #1
	bl	_glDeleteTextures
	ldr	w0, [x19]
	ldr	x1, [x19, #32]
	bl	_eglDestroyImageKHR
	ldr	x8, [x20]
	str	x8, [x19, #32]
	add	x1, x19, #24
	mov	w0, #1
	bl	_glDeleteTextures
	ldr	w0, [x19]
	ldr	x1, [x19, #16]
	bl	_eglDestroyImageKHR
	ldr	x8, [x20]
	str	x8, [x19, #16]
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _EGL_NO_SURFACE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EGL_NO_SURFACE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _EGL_NO_CONTEXT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EGL_NO_CONTEXT@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x2, x1
	bl	_eglMakeCurrent
	ldr	w0, [x19]
	ldr	w1, [x19, #8]
	bl	_eglDestroyContext
	ldp	w0, w1, [x19]
	bl	_eglDestroySurface
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_eglTerminate
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
	.comm	_EGL_NO_IMAGE_KHR,8,3           ; @EGL_NO_IMAGE_KHR
	.comm	_EGL_NO_SURFACE,4,2             ; @EGL_NO_SURFACE
	.comm	_EGL_NO_CONTEXT,4,2             ; @EGL_NO_CONTEXT
.subsections_via_symbols
