	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_textures
_init_textures:                         ## @init_textures
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_glGenTextures
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	(%rbx), %rsi
	callq	_glBindTexture
	movl	(%r14), %edi
	movq	_GL_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IMAGE_SIZE_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IMAGE_SIZE_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	pushq	%rdx
	callq	_glTexImage2D
	addq	$32, %rsp
	movl	(%r14), %edi
	movq	_GL_TEXTURE_MIN_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_NEAREST@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_glTexParameteri
	movl	(%r14), %edi
	movq	_GL_TEXTURE_MAG_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	callq	_glTexParameteri
	movl	(%r14), %edi
	movq	_GL_TEXTURE_WRAP_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_CLAMP_TO_EDGE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_glTexParameteri
	movl	(%r14), %edi
	movq	_GL_TEXTURE_WRAP_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	callq	_glTexParameteri
	movl	12(%rbx), %edi
	movl	(%rbx), %ecx
	movl	8(%rbx), %esi
	movq	_EGL_GL_TEXTURE_2D_KHR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r8d, %r8d
	callq	_eglCreateImageKHR
	movq	_eglImage@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_EGL_NO_IMAGE_KHR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.2:
	movq	_video_decode_test@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_thread1@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	movq	%rax, %rcx
	callq	_pthread_create
	movq	_GL_FLOAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_texCoords@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$2, %edi
	xorl	%edx, %edx
	callq	_glTexCoordPointer
	movq	_GL_TEXTURE_COORD_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glEnableClientState
	movl	(%r14), %edi
	callq	_glEnable
	movl	(%r14), %edi
	movq	(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glBindTexture                  ## TAILCALL
LBB0_1:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_RGBA,4,2                    ## @GL_RGBA
	.comm	_IMAGE_SIZE_WIDTH,4,2           ## @IMAGE_SIZE_WIDTH
	.comm	_IMAGE_SIZE_HEIGHT,4,2          ## @IMAGE_SIZE_HEIGHT
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_GL_TEXTURE_MIN_FILTER,4,2      ## @GL_TEXTURE_MIN_FILTER
	.comm	_GL_NEAREST,4,2                 ## @GL_NEAREST
	.comm	_GL_TEXTURE_MAG_FILTER,4,2      ## @GL_TEXTURE_MAG_FILTER
	.comm	_GL_TEXTURE_WRAP_S,4,2          ## @GL_TEXTURE_WRAP_S
	.comm	_GL_CLAMP_TO_EDGE,4,2           ## @GL_CLAMP_TO_EDGE
	.comm	_GL_TEXTURE_WRAP_T,4,2          ## @GL_TEXTURE_WRAP_T
	.comm	_EGL_GL_TEXTURE_2D_KHR,4,2      ## @EGL_GL_TEXTURE_2D_KHR
	.comm	_eglImage,8,3                   ## @eglImage
	.comm	_EGL_NO_IMAGE_KHR,8,3           ## @EGL_NO_IMAGE_KHR
	.comm	_thread1,4,2                    ## @thread1
	.comm	_video_decode_test,4,2          ## @video_decode_test
	.comm	_GL_FLOAT,4,2                   ## @GL_FLOAT
	.comm	_texCoords,4,2                  ## @texCoords
	.comm	_GL_TEXTURE_COORD_ARRAY,4,2     ## @GL_TEXTURE_COORD_ARRAY
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"eglCreateImageKHR failed."

	.no_dead_strip	_init_textures
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_textures
_init_textures:                         ; @init_textures
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	mov	w0, #1
	mov	x1, x19
	bl	_glGenTextures
Lloh0:
	adrp	x20, _GL_TEXTURE_2D@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GL_TEXTURE_2D@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	x1, [x19]
	bl	_glBindTexture
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _GL_RGBA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_RGBA@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _IMAGE_SIZE_WIDTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IMAGE_SIZE_WIDTH@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _IMAGE_SIZE_HEIGHT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IMAGE_SIZE_HEIGHT@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh13:
	ldr	w7, [x8]
	str	xzr, [sp]
	mov	w1, #0
	mov	w5, #0
	mov	x6, x2
	bl	_glTexImage2D
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _GL_TEXTURE_MIN_FILTER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_TEXTURE_MIN_FILTER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x21, _GL_NEAREST@GOTPAGE
Lloh18:
	ldr	x21, [x21, _GL_NEAREST@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_glTexParameteri
	ldr	w0, [x20]
Lloh19:
	adrp	x8, _GL_TEXTURE_MAG_FILTER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GL_TEXTURE_MAG_FILTER@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x21]
	bl	_glTexParameteri
	ldr	w0, [x20]
Lloh22:
	adrp	x8, _GL_TEXTURE_WRAP_S@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GL_TEXTURE_WRAP_S@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x21, _GL_CLAMP_TO_EDGE@GOTPAGE
Lloh26:
	ldr	x21, [x21, _GL_CLAMP_TO_EDGE@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_glTexParameteri
	ldr	w0, [x20]
Lloh27:
	adrp	x8, _GL_TEXTURE_WRAP_T@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GL_TEXTURE_WRAP_T@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x21]
	bl	_glTexParameteri
	ldp	w1, w0, [x19, #8]
Lloh30:
	adrp	x8, _EGL_GL_TEXTURE_2D_KHR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EGL_GL_TEXTURE_2D_KHR@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	w4, #0
	bl	_eglCreateImageKHR
Lloh33:
	adrp	x8, _eglImage@GOTPAGE
Lloh34:
	ldr	x8, [x8, _eglImage@GOTPAGEOFF]
Lloh35:
	str	x0, [x8]
Lloh36:
	adrp	x8, _EGL_NO_IMAGE_KHR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EGL_NO_IMAGE_KHR@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x3, x0
Lloh39:
	adrp	x8, _video_decode_test@GOTPAGE
Lloh40:
	ldr	x8, [x8, _video_decode_test@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
Lloh42:
	adrp	x0, _thread1@GOTPAGE
Lloh43:
	ldr	x0, [x0, _thread1@GOTPAGEOFF]
	mov	x1, #0
	bl	_pthread_create
Lloh44:
	adrp	x8, _GL_FLOAT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GL_FLOAT@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _texCoords@GOTPAGE
Lloh48:
	ldr	x8, [x8, _texCoords@GOTPAGEOFF]
Lloh49:
	ldr	w3, [x8]
	mov	w0, #2
	mov	w2, #0
	bl	_glTexCoordPointer
Lloh50:
	adrp	x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGE
Lloh51:
	ldr	x8, [x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_glEnableClientState
	ldr	w0, [x20]
	bl	_glEnable
	ldr	w0, [x20]
	ldr	x1, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_glBindTexture
LBB0_2:
Lloh53:
	adrp	x0, l_str@PAGE
Lloh54:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_RGBA,4,2                    ; @GL_RGBA
	.comm	_IMAGE_SIZE_WIDTH,4,2           ; @IMAGE_SIZE_WIDTH
	.comm	_IMAGE_SIZE_HEIGHT,4,2          ; @IMAGE_SIZE_HEIGHT
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_GL_TEXTURE_MIN_FILTER,4,2      ; @GL_TEXTURE_MIN_FILTER
	.comm	_GL_NEAREST,4,2                 ; @GL_NEAREST
	.comm	_GL_TEXTURE_MAG_FILTER,4,2      ; @GL_TEXTURE_MAG_FILTER
	.comm	_GL_TEXTURE_WRAP_S,4,2          ; @GL_TEXTURE_WRAP_S
	.comm	_GL_CLAMP_TO_EDGE,4,2           ; @GL_CLAMP_TO_EDGE
	.comm	_GL_TEXTURE_WRAP_T,4,2          ; @GL_TEXTURE_WRAP_T
	.comm	_EGL_GL_TEXTURE_2D_KHR,4,2      ; @EGL_GL_TEXTURE_2D_KHR
	.comm	_eglImage,8,3                   ; @eglImage
	.comm	_EGL_NO_IMAGE_KHR,8,3           ; @EGL_NO_IMAGE_KHR
	.comm	_thread1,4,2                    ; @thread1
	.comm	_video_decode_test,4,2          ; @video_decode_test
	.comm	_GL_FLOAT,4,2                   ; @GL_FLOAT
	.comm	_texCoords,4,2                  ; @texCoords
	.comm	_GL_TEXTURE_COORD_ARRAY,4,2     ; @GL_TEXTURE_COORD_ARRAY
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"eglCreateImageKHR failed."

	.no_dead_strip	_init_textures
.subsections_via_symbols
