	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_2d_texel_rgba_dxt3       ## -- Begin function fetch_2d_texel_rgba_dxt3
	.p2align	4, 0x90
_fetch_2d_texel_rgba_dxt3:              ## @fetch_2d_texel_rgba_dxt3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edi killed $edi def $rdi
	leal	3(%rdi), %eax
	addl	$6, %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	movl	%ecx, %eax
                                        ## kill: def $edx killed $edx def $rdx
	shrl	$2, %edi
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	shrl	$2, %ecx
	imull	%edi, %ecx
	leal	3(%rdx), %edi
	testl	%edx, %edx
	cmovnsl	%edx, %edi
	shrl	$2, %edi
	addl	%ecx, %edi
	shll	$4, %edi
	movslq	%edi, %rdi
	leaq	(%rsi,%rdi,4), %r9
	andl	$3, %eax
	leal	(,%rdx,4), %ecx
                                        ## kill: def $edx killed $edx killed $rdx def $rdx
	andl	$3, %edx
	leal	(%rdx,%rax,4), %ebx
	shrl	%ebx
	movl	(%r9,%rbx,4), %ebx
	andb	$4, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	movq	%r8, %r14
	andl	$15, %ebx
	leaq	(%rsi,%rdi,4), %rdi
	addq	$32, %rdi
	movl	%edx, %esi
	movl	%eax, %edx
	movl	$2, %ecx
	callq	_dxt135_decode_imageblock
	movl	%ebx, %edi
	callq	_EXP4TO8
	movl	%eax, %edi
	callq	_UBYTE_TO_CHAN
	movq	_ACOMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r14,%rcx,4)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACOMP,8,3                      ## @ACOMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_2d_texel_rgba_dxt3       ; -- Begin function fetch_2d_texel_rgba_dxt3
	.p2align	2
_fetch_2d_texel_rgba_dxt3:              ; @fetch_2d_texel_rgba_dxt3
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x4
	add	w8, w0, #3
	add	w9, w0, #6
	cmp	w8, #0
	csel	w8, w9, w8, lt
	lsr	w8, w8, #2
	add	w9, w3, #3
	cmp	w3, #0
	csel	w9, w9, w3, lt
	lsr	w9, w9, #2
	mul	w8, w9, w8
	add	w9, w2, #3
	cmp	w2, #0
	csel	w9, w9, w2, lt
	add	w8, w8, w9, lsr #2
	lsl	w8, w8, #4
	add	x9, x1, w8, sxtw #2
	and	w8, w3, #0x3
	and	w1, w2, #0x3
	mov	x10, x1
	bfi	w10, w8, #2, #2
	lsr	w10, w10, #1
	ldr	w10, [x9, w10, uxtw #2]
	ubfiz	w11, w2, #2, #1
	asr	w10, w10, w11
	and	w20, w10, #0xf
	add	x0, x9, #32
	mov	x2, x8
	mov	w3, #2
	bl	_dxt135_decode_imageblock
	mov	x0, x20
	bl	_EXP4TO8
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_UBYTE_TO_CHAN
Lloh0:
	adrp	x8, _ACOMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACOMP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ACOMP,8,3                      ; @ACOMP
.subsections_via_symbols
