	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxt3_block_internal
_dxt3_block_internal:                   ## @dxt3_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	32(%rdx), %rdi
	callq	_AV_RL16
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	40(%r15), %rdi
	callq	_AV_RL16
	movq	%rax, %r12
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	leaq	48(%r15), %rdi
	callq	_AV_RL32
	movl	%eax, %r15d
	leaq	-64(%rbp), %rdi
	xorl	%ebx, %ebx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r12d, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_extract_color
	movslq	%r13d, %rax
	shlq	$2, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx), %rdi
	callq	_AV_RL16
	movq	%rax, %r12
	andl	$15, %eax
	movl	%r12d, %r13d
	shrl	$4, %r13d
	andl	$15, %r13d
	movl	%r12d, %ecx
	shrl	$8, %ecx
	andl	$15, %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	shrl	$12, %r12d
	andl	$15, %r12d
	movl	%r15d, %ecx
	andl	$3, %ecx
	imull	$285212672, %eax, %esi          ## imm = 0x11000000
	orl	-64(%rbp,%rcx,4), %esi
	movl	%r15d, %ebx
	shrl	$2, %r15d
	movq	%r14, %rdi
	callq	_AV_WL32
	andl	$3, %r15d
	imull	$285212672, %r13d, %esi         ## imm = 0x11000000
	orl	-64(%rbp,%r15,4), %esi
	movl	%ebx, %r15d
	shrl	$4, %ebx
	leaq	16(%r14), %rdi
	callq	_AV_WL32
	andl	$3, %ebx
	imull	$285212672, -76(%rbp), %esi     ## 4-byte Folded Reload
                                        ## imm = 0x11000000
	orl	-64(%rbp,%rbx,4), %esi
	movl	%r15d, %r13d
	shrl	$6, %r13d
	leaq	32(%r14), %rdi
	callq	_AV_WL32
	andl	$3, %r13d
	imull	$285212672, %r12d, %esi         ## imm = 0x11000000
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	orl	-64(%rbp,%r13,4), %esi
	sarl	$8, %r15d
	leaq	48(%r14), %rdi
	callq	_AV_WL32
	addq	$8, %rbx
	addq	-88(%rbp), %r14                 ## 8-byte Folded Reload
	cmpq	$32, %rbx
	jne	LBB0_1
## %bb.2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dxt3_block_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxt3_block_internal
_dxt3_block_internal:                   ; @dxt3_block_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x22, 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, #40]
	add	x0, x2, #32
	bl	_AV_RL16
	mov	x23, x0
	add	x0, x19, #40
	bl	_AV_RL16
	mov	x24, x0
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	add	x0, x19, #48
	bl	_AV_RL32
	mov	x21, x0
	add	x25, sp, #24
	add	x0, sp, #24
	mov	x1, x23
	mov	x2, x24
	mov	w3, #1
	mov	w4, #0
	bl	_extract_color
	mov	x23, #0
	sbfiz	x8, x22, #2, #32
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x0, x8, x23
	bl	_AV_RL16
	and	w8, w0, #0xf
	ubfx	x24, x0, #4, #28
	ubfx	w26, w0, #4, #4
	ubfx	x27, x0, #8, #24
	ubfx	w28, w0, #8, #4
	ubfx	x19, x0, #12, #20
	ubfx	w22, w0, #12, #4
	and	w9, w21, #0x3
	ldr	w9, [x25, w9, uxtw #2]
	bfi	w0, w8, #4, #4
	orr	w1, w9, w0, lsl #24
	mov	x0, x20
	bl	_AV_WL32
	ubfx	w8, w21, #2, #2
	ldr	w8, [x25, w8, uxtw #2]
	bfi	w24, w26, #4, #4
	orr	w1, w8, w24, lsl #24
	add	x0, x20, #16
	bl	_AV_WL32
	ubfx	w8, w21, #4, #2
	ldr	w8, [x25, w8, uxtw #2]
	bfi	w27, w28, #4, #4
	orr	w1, w8, w27, lsl #24
	add	x0, x20, #32
	bl	_AV_WL32
	ubfx	w8, w21, #6, #2
	ldr	w8, [x25, w8, uxtw #2]
	bfi	w19, w22, #4, #4
	orr	w1, w8, w19, lsl #24
	asr	w21, w21, #8
	add	x0, x20, #48
	bl	_AV_WL32
	add	x23, x23, #8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x20, x20, x8
	cmp	x23, #32
	b.ne	LBB0_1
; %bb.2:
	ldr	x8, [sp, #40]
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_4
; %bb.3:
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dxt3_block_internal
.subsections_via_symbols
