	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encodedxtcolorblockfaster
_encodedxtcolorblockfaster:             ## @encodedxtcolorblockfaster
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movq	%rdi, -168(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	(%rsi), %rbx
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	testq	%rcx, %rcx
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	_REDWEIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_GREENWEIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	_BLUEWEIGHT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	movq	8(%rsi), %rdi
	movq	16(%rsi), %r13
	imulq	%rdi, %rdi
	imulq	%r14, %rdi
	imulq	%rbx, %rbx
	imulq	%r12, %rbx
	addq	%rdi, %rbx
	imulq	%r13, %r13
	imulq	%r9, %r13
	addq	%rbx, %r13
	movq	_GL_COMPRESSED_RGBA_S3TC_DXT1_EXT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_ALPHACUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rsi, %r8
	movq	%r13, %r11
	movq	%rsi, %rdi
	movq	%rsi, -160(%rbp)                ## 8-byte Spill
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-184(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	movq	-176(%rbp), %r8                 ## 8-byte Reload
	subq	$-128, %r8
	cmpq	-152(%rbp), %rax                ## 8-byte Folded Reload
	je	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	%r8, -176(%rbp)                 ## 8-byte Spill
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %r10
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpq	%r11, %r15
	cmovbq	%r8, %rdi
	cmovbq	%r15, %r11
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	addq	$32, %r8
	decq	%r10
	je	LBB0_14
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rsi, %rbx
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-192(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, 24(%r8)
	jbe	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r8), %rdx
	movq	8(%r8), %rcx
	movq	%rdx, %rax
	imulq	%r12, %rax
	imulq	%rdx, %rax
	movq	%rcx, %rdx
	imulq	%r14, %rdx
	imulq	%rcx, %rdx
	addq	%rax, %rdx
	movq	16(%r8), %rax
	movq	%rax, %r15
	imulq	%r9, %r15
	imulq	%rax, %r15
	addq	%rdx, %r15
	cmpq	%r13, %r15
	jbe	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	%r8, -160(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	-120(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	jmp	LBB0_13
LBB0_7:
	movq	(%rdi), %rbx
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	movq	-160(%rbp), %rdx                ## 8-byte Reload
	jmp	LBB0_8
LBB0_1:
	movq	%rsi, %rdx
	movq	%rsi, %rdi
LBB0_8:
	movq	%rbx, -112(%rbp)
	movups	8(%rdi), %xmm0
	movups	%xmm0, -104(%rbp)
	movq	(%rdx), %rax
	leaq	-88(%rbp), %rcx
	movq	%rax, -88(%rbp)
	movq	8(%rdx), %rax
	movq	%rax, -80(%rbp)
	movq	16(%rdx), %rax
	movq	%rax, -72(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	%rcx, -56(%rbp)
	movl	-116(%rbp), %r12d               ## 4-byte Reload
	movl	%r12d, (%rsp)
	leaq	-64(%rbp), %rdx
	movq	-168(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rcx
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r8
	movq	-128(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %r9
	callq	_fancybasecolorsearch
	movl	%r12d, (%rsp)
	movq	%r14, %rdi
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	leaq	-64(%rbp), %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	movq	%r13, %r9
	callq	_storedxtencodedblock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.9:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_REDWEIGHT,8,3                  ## @REDWEIGHT
	.comm	_GREENWEIGHT,8,3                ## @GREENWEIGHT
	.comm	_BLUEWEIGHT,8,3                 ## @BLUEWEIGHT
	.comm	_GL_COMPRESSED_RGBA_S3TC_DXT1_EXT,8,3 ## @GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
	.comm	_ALPHACUT,8,3                   ## @ALPHACUT
	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.no_dead_strip	_encodedxtcolorblockfaster
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encodedxtcolorblockfaster
_encodedxtcolorblockfaster:             ; @encodedxtcolorblockfaster
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	ldr	x14, [x1]
	cbz	x3, LBB0_12
; %bb.1:
	mov	x8, #0
Lloh6:
	adrp	x9, _REDWEIGHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REDWEIGHT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _GREENWEIGHT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _GREENWEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _BLUEWEIGHT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _BLUEWEIGHT@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	ldp	x13, x12, [x22, #8]
	mul	x13, x13, x13
	mul	x14, x14, x14
	mul	x14, x14, x9
	madd	x13, x13, x10, x14
	mul	x12, x12, x12
Lloh15:
	adrp	x14, _GL_COMPRESSED_RGBA_S3TC_DXT1_EXT@GOTPAGE
Lloh16:
	ldr	x14, [x14, _GL_COMPRESSED_RGBA_S3TC_DXT1_EXT@GOTPAGEOFF]
	madd	x17, x12, x11, x13
Lloh17:
	ldr	x14, [x14]
Lloh18:
	adrp	x12, _ALPHACUT@GOTPAGE
Lloh19:
	ldr	x12, [x12, _ALPHACUT@GOTPAGEOFF]
Lloh20:
	adrp	x13, _GL_TRUE@GOTPAGE
Lloh21:
	ldr	x13, [x13, _GL_TRUE@GOTPAGEOFF]
Lloh22:
	ldr	x15, [x12]
Lloh23:
	ldr	w16, [x13]
	mov	x0, x22
	mov	x1, x17
	mov	x13, x22
	mov	x12, x22
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x0, x0, #128
	cmp	x8, x20
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x2, x0
	mov	x3, x21
	cbnz	x21, LBB0_6
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	cmp	x4, x1
	csel	x13, x2, x13, lo
	csel	x1, x4, x1, lo
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x2, x2, #32
	subs	x3, x3, #1
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x14, x19
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x4, [x2, #24]
	cmp	x4, x15
	b.ls	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldp	x4, x5, [x2]
	mul	x6, x4, x9
	mul	x4, x6, x4
	mul	x6, x5, x10
	madd	x4, x6, x5, x4
	ldr	x5, [x2, #16]
	mul	x6, x5, x11
	madd	x4, x6, x5, x4
	cmp	x4, x17
	b.ls	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x12, x2
	mov	x17, x4
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x24, x16
	b	LBB0_5
LBB0_11:
	ldr	x14, [x13]
	b	LBB0_13
LBB0_12:
	mov	x12, x22
	mov	x13, x22
LBB0_13:
	str	x14, [sp, #8]
	ldur	q0, [x13, #8]
	stur	q0, [sp, #16]
	ldr	x8, [x12]
	add	x9, sp, #8
	add	x10, x9, #24
	str	x8, [sp, #32]
	ldr	x8, [x12, #8]
	str	x8, [sp, #40]
	ldr	x8, [x12, #16]
	stp	x8, x9, [sp, #48]
	str	x10, [sp, #64]
	add	x2, sp, #56
	mov	x0, x23
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x24
	bl	_fancybasecolorsearch
	add	x2, sp, #56
	mov	x0, x23
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x24
	bl	_storedxtencodedblock
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_REDWEIGHT,8,3                  ; @REDWEIGHT
	.comm	_GREENWEIGHT,8,3                ; @GREENWEIGHT
	.comm	_BLUEWEIGHT,8,3                 ; @BLUEWEIGHT
	.comm	_GL_COMPRESSED_RGBA_S3TC_DXT1_EXT,8,3 ; @GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
	.comm	_ALPHACUT,8,3                   ; @ALPHACUT
	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.no_dead_strip	_encodedxtcolorblockfaster
.subsections_via_symbols
