	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmlab_update_rgba_texture      ## -- Begin function dmlab_update_rgba_texture
	.p2align	4, 0x90
_dmlab_update_rgba_texture:             ## @dmlab_update_rgba_texture
	.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	%rcx, %r13
	movl	%edx, %r15d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	callq	_generateHashValue
	movq	_hashTable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %r12
	xorl	%r14d, %r14d
	testq	%r12, %r12
	je	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r12), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r12), %r12
	testq	%r12, %r12
	jne	LBB0_2
	jmp	LBB0_6
LBB0_3:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	_IMGFLAG_PICMIP@GOTPCREL(%rip), %rax
	movl	%r15d, %edx
	movl	(%r12), %r15d
	movl	(%rax), %r13d
	andl	%r15d, %r13d
	movq	_IMGFLAG_MIPMAP@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	leaq	4(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	movl	$1, %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 4(%r12)
	jne	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	cmpl	%edx, 8(%r12)
	setne	%cl
LBB0_5:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	20(%r12), %eax
	movq	_glState@GOTPCREL(%rip), %rcx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	(%rcx), %rdx
	movq	8(%rcx), %rcx
	movl	%eax, (%rcx,%rdx,4)
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r12), %esi
	callq	_qglBindTexture
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	16(%r12), %r10
	leaq	8(%r12), %rbx
	addq	$12, %r12
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	pushq	%r12
	pushq	%rbx
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%rax
	callq	_Upload32
	addq	$64, %rsp
LBB0_6:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hashTable,8,3                  ## @hashTable
	.comm	_IMGFLAG_PICMIP,4,2             ## @IMGFLAG_PICMIP
	.comm	_IMGFLAG_MIPMAP,4,2             ## @IMGFLAG_MIPMAP
	.comm	_glState,16,3                   ## @glState
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmlab_update_rgba_texture      ; -- Begin function dmlab_update_rgba_texture
	.p2align	2
_dmlab_update_rgba_texture:             ; @dmlab_update_rgba_texture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_generateHashValue
Lloh0:
	adrp	x8, _hashTable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hashTable@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x24, [x8, x0, lsl #3]
	cbz	x24, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24, #24]
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x24, [x24, #32]
	cbnz	x24, LBB0_1
LBB0_3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	ldr	w8, [x24]
Lloh3:
	adrp	x9, _IMGFLAG_PICMIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IMGFLAG_PICMIP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w22, w9, w8
Lloh6:
	adrp	x9, _IMGFLAG_MIPMAP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IMGFLAG_MIPMAP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w23, w9, w8
	mov	x25, x24
	ldr	w8, [x25, #4]!
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x24, #8]
	cmp	w8, w19
	cset	w26, ne
	b	LBB0_7
LBB0_6:
	mov	w26, #1
LBB0_7:
	ldr	w8, [x24, #20]
Lloh9:
	adrp	x9, _glState@GOTPAGE
Lloh10:
	ldr	x9, [x9, _glState@GOTPAGEOFF]
	ldp	x9, x10, [x9]
	str	w8, [x10, x9, lsl #2]
Lloh11:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x24, #20]
	bl	_qglBindTexture
Lloh14:
	adrp	x8, _qfalse@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x8]
	add	x8, x24, #16
	add	x9, x24, #8
	add	x10, x24, #12
	stp	x9, x10, [sp, #24]
	stp	x8, x25, [sp, #8]
	str	w26, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w3, #0
	mov	x4, x23
	mov	x5, x22
	mov	x7, x6
	bl	_Upload32
	mov	w0, #1
LBB0_8:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hashTable,8,3                  ; @hashTable
	.comm	_IMGFLAG_PICMIP,4,2             ; @IMGFLAG_PICMIP
	.comm	_IMGFLAG_MIPMAP,4,2             ; @IMGFLAG_MIPMAP
	.comm	_glState,16,3                   ; @glState
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
