	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxt1_block_internal
_dxt1_block_internal:                   ## @dxt1_block_internal
	.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
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, %rdi
	callq	_AV_RL16
	movl	%eax, %r12d
	leaq	8(%rbx), %rdi
	callq	_AV_RL16
	movl	%eax, %r15d
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_AV_RL32
	movl	%eax, %r13d
	leaq	-64(%rbp), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	callq	_extract_color
	movslq	-72(%rbp), %r12                 ## 4-byte Folded Reload
	movl	%r13d, %eax
	andl	$3, %eax
	movl	-64(%rbp,%rax,4), %esi
	movl	%r13d, %ebx
	shrl	$2, %ebx
	movq	%r14, %rdi
	callq	_AV_WL32
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$4, %ebx
	leaq	16(%r14), %rdi
	callq	_AV_WL32
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$6, %ebx
	leaq	32(%r14), %rdi
	callq	_AV_WL32
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$8, %ebx
	leaq	48(%r14), %rdi
	callq	_AV_WL32
	leaq	(%r14,%r12,4), %r15
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$10, %ebx
	movq	%r15, %rdi
	callq	_AV_WL32
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$12, %ebx
	leaq	(%r14,%r12,4), %rdi
	addq	$16, %rdi
	callq	_AV_WL32
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$14, %ebx
	leaq	(%r14,%r12,4), %rdi
	addq	$32, %rdi
	callq	_AV_WL32
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$16, %ebx
	leaq	(%r14,%r12,4), %rdi
	addq	$48, %rdi
	callq	_AV_WL32
	leaq	(%r15,%r12,4), %r14
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$18, %ebx
	movq	%r14, %rdi
	callq	_AV_WL32
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$20, %ebx
	leaq	(%r15,%r12,4), %rdi
	addq	$16, %rdi
	callq	_AV_WL32
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$22, %ebx
	leaq	(%r15,%r12,4), %rdi
	addq	$32, %rdi
	callq	_AV_WL32
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$24, %ebx
	leaq	(%r15,%r12,4), %rdi
	addq	$48, %rdi
	callq	_AV_WL32
	leaq	(%r14,%r12,4), %rdi
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$26, %ebx
	callq	_AV_WL32
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	movl	%r13d, %ebx
	shrl	$28, %ebx
	leaq	(%r14,%r12,4), %rdi
	addq	$16, %rdi
	callq	_AV_WL32
	andl	$3, %ebx
	movl	-64(%rbp,%rbx,4), %esi
	shrl	$30, %r13d
	leaq	(%r14,%r12,4), %rdi
	addq	$32, %rdi
	callq	_AV_WL32
	movl	-64(%rbp,%r13,4), %esi
	leaq	(%r14,%r12,4), %rdi
	addq	$48, %rdi
	callq	_AV_WL32
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dxt1_block_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxt1_block_internal
_dxt1_block_internal:                   ; @dxt1_block_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x0, x2
	bl	_AV_RL16
	mov	x23, x0
	add	x0, x19, #8
	bl	_AV_RL16
	mov	x24, x0
	add	x0, x19, #16
	bl	_AV_RL32
	mov	x19, x0
	add	x25, sp, #8
	add	x0, sp, #8
	mov	x1, x23
	mov	x2, x24
	mov	w3, #0
	mov	x4, x22
	bl	_extract_color
	and	w8, w19, #0x3
	ldr	w1, [x25, w8, uxtw #2]
	mov	x0, x20
	bl	_AV_WL32
	ubfx	w8, w19, #2, #2
	ldr	w1, [x25, w8, uxtw #2]
	add	x0, x20, #16
	bl	_AV_WL32
	ubfx	w8, w19, #4, #2
	ldr	w1, [x25, w8, uxtw #2]
	add	x0, x20, #32
	bl	_AV_WL32
	ubfx	w8, w19, #6, #2
	ldr	w1, [x25, w8, uxtw #2]
	add	x0, x20, #48
	bl	_AV_WL32
	sbfiz	x21, x21, #2, #32
	add	x20, x20, x21
	ubfx	w8, w19, #8, #2
	ldr	w1, [x25, w8, uxtw #2]
	mov	x0, x20
	bl	_AV_WL32
	ubfx	w8, w19, #10, #2
	ldr	w1, [x25, w8, uxtw #2]
	add	x0, x20, #16
	bl	_AV_WL32
	ubfx	w8, w19, #12, #2
	ldr	w1, [x25, w8, uxtw #2]
	add	x0, x20, #32
	bl	_AV_WL32
	ubfx	w8, w19, #14, #2
	ldr	w1, [x25, w8, uxtw #2]
	add	x0, x20, #48
	bl	_AV_WL32
	add	x20, x20, x21
	ubfx	w8, w19, #16, #2
	ldr	w1, [x25, w8, uxtw #2]
	mov	x0, x20
	bl	_AV_WL32
	ubfx	w8, w19, #18, #2
	ldr	w1, [x25, w8, uxtw #2]
	add	x0, x20, #16
	bl	_AV_WL32
	ubfx	w8, w19, #20, #2
	ldr	w1, [x25, w8, uxtw #2]
	add	x0, x20, #32
	bl	_AV_WL32
	ubfx	w8, w19, #22, #2
	ldr	w1, [x25, w8, uxtw #2]
	add	x0, x20, #48
	bl	_AV_WL32
	add	x20, x20, x21
	ubfx	w8, w19, #24, #2
	ldr	w1, [x25, w8, uxtw #2]
	mov	x0, x20
	bl	_AV_WL32
	ubfx	w8, w19, #26, #2
	ldr	w1, [x25, w8, uxtw #2]
	add	x0, x20, #16
	bl	_AV_WL32
	ubfx	w8, w19, #28, #2
	ldr	w1, [x25, w8, uxtw #2]
	lsr	w19, w19, #30
	add	x0, x20, #32
	bl	_AV_WL32
	ldr	w1, [x25, w19, uxtw #2]
	add	x0, x20, #48
	bl	_AV_WL32
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	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
	add	sp, sp, #112
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dxt1_block_internal
.subsections_via_symbols
