	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuv420sp_uploadTexture
_yuv420sp_uploadTexture:                ## @yuv420sp_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	$24, %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_3
## %bb.4:
	movq	%rdi, %r13
	movq	16(%rsi), %rax
	movq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %r12d
	movl	%r12d, %r14d
	shrl	$31, %r14d
	addl	%r12d, %r14d
	sarl	%r14d
	movq	(%rsi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movl	%eax, %r15d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	(%r13), %rax
	movl	(%rax), %esi
	callq	_glBindTexture
	movl	(%rbx), %edi
	movq	_GL_RED_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%rdx
	callq	_glTexImage2D
	addq	$32, %rsp
	movl	(%rbx), %edi
	movq	(%r13), %rax
	movl	4(%rax), %esi
	callq	_glBindTexture
	movl	(%rbx), %edi
	movq	_GL_RG_EXT@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	%r14d, %r8d
	xorl	%r9d, %r9d
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%rdx
	callq	_glTexImage2D
	addq	$32, %rsp
	movq	_GL_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_ALOGE
LBB0_5:
	movl	(%rbx), %eax
	addq	$24, %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	"[yuv420sp] unexpected format %x\n"

	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_RED_EXT,4,2                 ## @GL_RED_EXT
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_GL_RG_EXT,4,2                  ## @GL_RG_EXT
	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.no_dead_strip	_yuv420sp_uploadTexture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuv420sp_uploadTexture
_yuv420sp_uploadTexture:                ; @yuv420sp_uploadTexture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	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
	.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	x19, x0
	ldr	x8, [x1, #16]
	ldp	x25, x24, [x8]
	ldr	w20, [x1, #8]
	cmp	w20, #0
	cinc	w8, w20, lt
	asr	w21, w8, #1
	ldr	x8, [x1]
	ldp	w22, w9, [x8]
	cmp	w9, #0
	cinc	w8, w9, 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, [x19]
	ldr	w1, [x8]
	bl	_glBindTexture
	ldr	w0, [x26]
Lloh4:
	adrp	x8, _GL_RED_EXT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GL_RED_EXT@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x27, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
	ldr	w7, [x27]
	str	x25, [sp]
	mov	w1, #0
	mov	x3, x22
	mov	x4, x20
	mov	w5, #0
	mov	x6, x2
	bl	_glTexImage2D
	ldr	w0, [x26]
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
	bl	_glBindTexture
	ldr	w0, [x26]
Lloh9:
	adrp	x8, _GL_RG_EXT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_RG_EXT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w7, [x27]
	str	x24, [sp]
	mov	w1, #0
	mov	x3, x23
	mov	x4, x21
	mov	w5, #0
	mov	x6, x2
	bl	_glTexImage2D
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, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.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	"[yuv420sp] unexpected format %x\n"

	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_RED_EXT,4,2                 ; @GL_RED_EXT
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_GL_RG_EXT,4,2                  ; @GL_RG_EXT
	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.no_dead_strip	_yuv420sp_uploadTexture
.subsections_via_symbols
