	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RE_UploadCinematic             ## -- Begin function RE_UploadCinematic
	.p2align	4, 0x90
_RE_UploadCinematic:                    ## @RE_UploadCinematic
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	16(%rbp), %r12
	movq	_tr@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movslq	%r9d, %r14
	movq	(%rax,%r14,8), %rdi
	callq	_GL_Bind
	movq	(%r13), %rax
	movq	(%rax,%r14,8), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_6
## %bb.1:
	cmpl	%r15d, 4(%rax)
	jne	LBB0_6
## %bb.2:
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	movl	%r15d, %r9d
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%r10
	callq	_qglTexSubImage2D
	addq	$40, %rsp
	jmp	LBB0_5
LBB0_6:
	movl	%ebx, 8(%rax)
	movl	%ebx, (%rax)
	movl	%r15d, 12(%rax)
	movl	%r15d, 4(%rax)
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_GL_RGB8@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GL_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%r10
	callq	_qglTexImage2D
	addq	$32, %rsp
	movl	(%r12), %edi
	movq	_GL_TEXTURE_MIN_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_LINEAR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_qglTexParameterf
	movl	(%r12), %edi
	movq	_GL_TEXTURE_MAG_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_qglTexParameterf
	movl	(%r12), %edi
	movq	_GL_TEXTURE_WRAP_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_CLAMP_TO_EDGE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_qglTexParameterf
	movl	(%r12), %edi
	movq	_GL_TEXTURE_WRAP_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qglTexParameterf               ## TAILCALL
LBB0_4:
	addq	$8, %rsp
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,8,3                         ## @tr
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_RGB8,4,2                    ## @GL_RGB8
	.comm	_GL_RGBA,4,2                    ## @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_GL_TEXTURE_MIN_FILTER,4,2      ## @GL_TEXTURE_MIN_FILTER
	.comm	_GL_LINEAR,4,2                  ## @GL_LINEAR
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RE_UploadCinematic             ; -- Begin function RE_UploadCinematic
	.p2align	2
_RE_UploadCinematic:                    ; @RE_UploadCinematic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x6
                                        ; kill: def $w5 killed $w5 def $x5
	mov	x21, x4
	mov	x19, x3
	mov	x20, x2
	sbfiz	x23, x5, #3, #32
Lloh0:
	adrp	x24, _tr@GOTPAGE
Lloh1:
	ldr	x24, [x24, _tr@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x0, [x8, x23]
	bl	_GL_Bind
	ldr	x8, [x24]
	ldr	x8, [x8, x23]
	ldr	w9, [x8]
	cmp	w9, w20
	b.ne	LBB0_5
; %bb.1:
	ldr	w9, [x8, #4]
	cmp	w9, w19
	b.ne	LBB0_5
; %bb.2:
	cbz	x22, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _GL_RGBA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_RGBA@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
Lloh8:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh10:
	ldr	w7, [x8]
	str	x21, [sp]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x4, x20
	mov	x5, x19
	bl	_qglTexSubImage2D
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	stp	w20, w19, [x8, #8]
	stp	w20, w19, [x8]
Lloh11:
	adrp	x22, _GL_TEXTURE_2D@GOTPAGE
Lloh12:
	ldr	x22, [x22, _GL_TEXTURE_2D@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh13:
	adrp	x8, _GL_RGB8@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GL_RGB8@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _GL_RGBA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GL_RGBA@GOTPAGEOFF]
Lloh18:
	ldr	w6, [x8]
Lloh19:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh21:
	ldr	w7, [x8]
	str	x21, [sp]
	mov	w1, #0
	mov	x3, x20
	mov	x4, x19
	mov	w5, #0
	bl	_qglTexImage2D
	ldr	w0, [x22]
Lloh22:
	adrp	x8, _GL_TEXTURE_MIN_FILTER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GL_TEXTURE_MIN_FILTER@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x19, _GL_LINEAR@GOTPAGE
Lloh26:
	ldr	x19, [x19, _GL_LINEAR@GOTPAGEOFF]
	ldr	w2, [x19]
	bl	_qglTexParameterf
	ldr	w0, [x22]
Lloh27:
	adrp	x8, _GL_TEXTURE_MAG_FILTER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GL_TEXTURE_MAG_FILTER@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x19]
	bl	_qglTexParameterf
	ldr	w0, [x22]
Lloh30:
	adrp	x8, _GL_TEXTURE_WRAP_S@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GL_TEXTURE_WRAP_S@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x19, _GL_CLAMP_TO_EDGE@GOTPAGE
Lloh34:
	ldr	x19, [x19, _GL_CLAMP_TO_EDGE@GOTPAGEOFF]
	ldr	w2, [x19]
	bl	_qglTexParameterf
Lloh35:
	adrp	x8, _GL_TEXTURE_WRAP_T@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GL_TEXTURE_WRAP_T@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_qglTexParameterf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.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 AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,8,3                         ; @tr
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_RGB8,4,2                    ; @GL_RGB8
	.comm	_GL_RGBA,4,2                    ; @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_GL_TEXTURE_MIN_FILTER,4,2      ; @GL_TEXTURE_MIN_FILTER
	.comm	_GL_LINEAR,4,2                  ; @GL_LINEAR
	.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
.subsections_via_symbols
