	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgbx8888_uploadTexture
_rgbx8888_uploadTexture:                ## @rgbx8888_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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	(%rsi), %rax
	movl	(%rax), %eax
	leal	3(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$2, %ebx
	movq	16(%rsi), %rax
	movq	(%rax), %r15
	movl	8(%rsi), %r14d
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	(%rdi), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_glBindTexture
	movl	(%r12), %edi
	movq	_GL_RGBA@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	%r14d, %r8d
	xorl	%r9d, %r9d
	pushq	%r15
	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
	popq	%rbx
	popq	%r12
	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	"[rgbx8888] unexpected format %x\n"

	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_RGBA,4,2                    ## @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.no_dead_strip	_rgbx8888_uploadTexture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgbx8888_uploadTexture
_rgbx8888_uploadTexture:                ; @rgbx8888_uploadTexture
	.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
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:
	ldr	x8, [x1]
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w19, w8, #2
	ldr	x8, [x1, #16]
	ldr	x21, [x8]
	ldr	w20, [x1, #8]
Lloh2:
	adrp	x22, _GL_TEXTURE_2D@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GL_TEXTURE_2D@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	x9, [x0]
	ldr	w1, [x9]
	mov	x0, x8
	bl	_glBindTexture
	ldr	w0, [x22]
Lloh4:
	adrp	x8, _GL_RGBA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GL_RGBA@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh9:
	ldr	w7, [x8]
	str	x21, [sp]
	mov	w1, #0
	mov	x3, x19
	mov	x4, x20
	mov	w5, #0
	mov	x6, x2
	bl	_glTexImage2D
Lloh10:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_ALOGE
Lloh14:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[rgbx8888] unexpected format %x\n"

	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_RGBA,4,2                    ; @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.no_dead_strip	_rgbx8888_uploadTexture
.subsections_via_symbols
