	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuv444p10le_uploadTexture
_yuv444p10le_uploadTexture:             ## @yuv444p10le_uploadTexture
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GL_FALSE@GOTPCREL(%rip), %rbx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movl	12(%rsi), %eax
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rdi, %r12
	movq	16(%rsi), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rsi), %rax
	movl	8(%rax), %ecx
	movl	%ecx, %r15d
	shrl	$31, %r15d
	addl	%ecx, %r15d
	sarl	%r15d
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	movl	%eax, %r13d
	shrl	$31, %r13d
	addl	%eax, %r13d
	sarl	%r13d
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	callq	_glBindTexture
	leaq	L_.str.1(%rip), %rdi
	callq	_IJK_GLES2_checkError_TRACE
	movl	(%r14), %edi
	movq	_GL_LUMINANCE_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	movl	%ebx, %ecx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%rdx
	callq	_glTexImage2D
	addq	$32, %rsp
	leaq	L_.str.2(%rip), %rdi
	callq	_IJK_GLES2_checkError_TRACE
	movl	(%r14), %edi
	movq	(%r12), %rax
	movl	4(%rax), %esi
	callq	_glBindTexture
	leaq	L_.str.1(%rip), %rdi
	callq	_IJK_GLES2_checkError_TRACE
	movl	(%r14), %edi
	movq	_GL_LUMINANCE_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%rdx
	callq	_glTexImage2D
	addq	$32, %rsp
	leaq	L_.str.2(%rip), %r13
	movq	%r13, %rdi
	callq	_IJK_GLES2_checkError_TRACE
	movl	(%r14), %edi
	movq	(%r12), %rax
	movl	8(%rax), %esi
	callq	_glBindTexture
	leaq	L_.str.1(%rip), %rdi
	callq	_IJK_GLES2_checkError_TRACE
	movl	(%r14), %edi
	movq	_GL_LUMINANCE_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%rdx
	callq	_glTexImage2D
	addq	$32, %rsp
	movq	%r13, %rdi
	callq	_IJK_GLES2_checkError_TRACE
	movq	_GL_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_ALOGE
LBB0_5:
	movl	(%rbx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[yuv420p10le] unexpected format %x\n"

	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
L_.str.1:                               ## @.str.1
	.asciz	"glBindTexture"

	.comm	_GL_LUMINANCE_ALPHA,4,2         ## @GL_LUMINANCE_ALPHA
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
L_.str.2:                               ## @.str.2
	.asciz	"glTexImage2D"

	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.no_dead_strip	_yuv444p10le_uploadTexture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuv444p10le_uploadTexture
_yuv444p10le_uploadTexture:             ; @yuv444p10le_uploadTexture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	cbz	x1, LBB0_5
; %bb.2:
	ldr	w8, [x1, #12]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	x8, [x1, #16]
	ldp	x27, x9, [x8, #8]
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x21, [x8]
	ldr	w19, [x1, #8]
	ldr	x8, [x1]
	ldr	w9, [x8, #8]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	ldp	w8, w9, [x8]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w24, w9, #1
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w23, w8, #1
Lloh2:
	adrp	x26, _GL_TEXTURE_2D@GOTPAGE
Lloh3:
	ldr	x26, [x26, _GL_TEXTURE_2D@GOTPAGEOFF]
	ldr	w0, [x26]
	ldr	x8, [x20]
	ldr	w1, [x8]
	bl	_glBindTexture
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_IJK_GLES2_checkError_TRACE
	ldr	w0, [x26]
Lloh6:
	adrp	x28, _GL_LUMINANCE_ALPHA@GOTPAGE
Lloh7:
	ldr	x28, [x28, _GL_LUMINANCE_ALPHA@GOTPAGEOFF]
	ldr	w2, [x28]
Lloh8:
	adrp	x25, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
	ldr	w7, [x25]
	str	x21, [sp]
	mov	w1, #0
	mov	x3, x23
	mov	x4, x19
	mov	w5, #0
	mov	x6, x2
	bl	_glTexImage2D
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_IJK_GLES2_checkError_TRACE
	ldr	w0, [x26]
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	bl	_glBindTexture
	mov	x0, x22
	bl	_IJK_GLES2_checkError_TRACE
	ldr	w0, [x26]
	ldr	w2, [x28]
	ldr	w7, [x25]
	str	x27, [sp]
	mov	w1, #0
	mov	x3, x24
	mov	x4, x19
	mov	w5, #0
	mov	x6, x2
	bl	_glTexImage2D
	mov	x0, x23
	bl	_IJK_GLES2_checkError_TRACE
	ldr	w0, [x26]
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
	bl	_glBindTexture
	mov	x0, x22
	bl	_IJK_GLES2_checkError_TRACE
	ldr	w0, [x26]
	ldr	w2, [x28]
	ldr	w7, [x25]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x8, [sp]
	mov	w1, #0
	ldr	w3, [sp, #20]                   ; 4-byte Folded Reload
	mov	x4, x19
	mov	w5, #0
	mov	x6, x2
	bl	_glTexImage2D
	mov	x0, x23
	bl	_IJK_GLES2_checkError_TRACE
Lloh12:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_ALOGE
Lloh16:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[yuv420p10le] unexpected format %x\n"

	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
l_.str.1:                               ; @.str.1
	.asciz	"glBindTexture"

	.comm	_GL_LUMINANCE_ALPHA,4,2         ; @GL_LUMINANCE_ALPHA
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
l_.str.2:                               ; @.str.2
	.asciz	"glTexImage2D"

	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.no_dead_strip	_yuv444p10le_uploadTexture
.subsections_via_symbols
