	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxt135_decode_imageblock
_dxt135_decode_imageblock:              ## @dxt135_decode_imageblock
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, %r12d
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	movl	4(%rdi), %r14d
	shll	$8, %r14d
	orl	(%rdi), %r14d
	movl	12(%rdi), %r15d
	shll	$8, %r15d
	orl	8(%rdi), %r15d
	movl	20(%rdi), %eax
	shll	$8, %eax
	orl	16(%rdi), %eax
	movl	24(%rdi), %ecx
	shll	$16, %ecx
	movl	28(%rdi), %edi
	shll	$24, %edi
	orl	%ecx, %edi
	orl	%eax, %edi
	leal	(%rsi,%rdx,4), %ecx
	addl	%ecx, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	andl	$3, %edi
	movq	_CHAN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ACOMP@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	%eax, (%r8,%rcx,4)
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_1:
	movl	%r14d, %edi
	callq	_EXP5TO8R
	movl	%eax, %edi
	callq	_UBYTE_TO_CHAN
	movq	_RCOMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movl	%r14d, %edi
	callq	_EXP6TO8G
	movl	%eax, %edi
	callq	_UBYTE_TO_CHAN
	movq	_GCOMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movl	%r14d, %edi
	jmp	LBB0_3
LBB0_2:
	movl	%r15d, %edi
	callq	_EXP5TO8R
	movl	%eax, %edi
	callq	_UBYTE_TO_CHAN
	movq	_RCOMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movl	%r15d, %edi
	callq	_EXP6TO8G
	movl	%eax, %edi
	callq	_UBYTE_TO_CHAN
	movq	_GCOMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movl	%r15d, %edi
LBB0_3:
	callq	_EXP5TO8B
	movl	%eax, %edi
	jmp	LBB0_13
LBB0_4:
	movq	%r13, %rbx
	movl	%r14d, %edi
	callq	_EXP5TO8R
	movl	%eax, %r13d
	cmpl	$1, %r12d
	jg	LBB0_10
## %bb.5:
	cmpl	%r15d, %r14d
	jg	LBB0_10
## %bb.6:
	movl	%r15d, %edi
	callq	_EXP5TO8R
	addl	%eax, %r13d
	movl	%r13d, %edi
	shrl	$31, %edi
	addl	%r13d, %edi
	sarl	%edi
	callq	_UBYTE_TO_CHAN
	movq	_RCOMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rbx, %r13
	movl	%eax, (%rbx,%rcx,4)
	movl	%r14d, %edi
	callq	_EXP6TO8G
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_EXP6TO8G
	addl	%eax, %r12d
	movl	%r12d, %edi
	shrl	$31, %edi
	addl	%r12d, %edi
	sarl	%edi
	callq	_UBYTE_TO_CHAN
	movq	_GCOMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rbx,%rcx,4)
	movl	%r14d, %edi
	callq	_EXP5TO8B
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_EXP5TO8B
	addl	%ebx, %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	jmp	LBB0_13
LBB0_7:
	cmpl	$1, %r12d
	jg	LBB0_11
## %bb.8:
	cmpl	%r15d, %r14d
	jg	LBB0_11
## %bb.9:
	movq	_RCOMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r13,%rax,4)
	movq	_GCOMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r13,%rax,4)
	movq	_BCOMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r13,%rax,4)
	xorl	%edi, %edi
	cmpl	$1, %r12d
	je	LBB0_14
	jmp	LBB0_15
LBB0_10:
	movl	%r15d, %edi
	callq	_EXP5TO8R
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r13,2), %eax
	cltq
	imulq	$1431655766, %rax, %rdi         ## imm = 0x55555556
	movq	%rdi, %rax
	shrq	$63, %rax
	shrq	$32, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_UBYTE_TO_CHAN
	movq	_RCOMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rbx, %r13
	movl	%eax, (%rbx,%rcx,4)
	movl	%r14d, %edi
	callq	_EXP6TO8G
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_EXP6TO8G
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12,2), %eax
	cltq
	imulq	$1431655766, %rax, %rdi         ## imm = 0x55555556
	movq	%rdi, %rax
	shrq	$63, %rax
	shrq	$32, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_UBYTE_TO_CHAN
	movq	_GCOMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rbx,%rcx,4)
	movl	%r14d, %edi
	callq	_EXP5TO8B
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_EXP5TO8B
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rbx,2), %eax
	jmp	LBB0_12
LBB0_11:
	movl	%r14d, %edi
	callq	_EXP5TO8R
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_EXP5TO8R
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r12,%rax,2), %eax
	cltq
	imulq	$1431655766, %rax, %rdi         ## imm = 0x55555556
	movq	%rdi, %rax
	shrq	$63, %rax
	shrq	$32, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_UBYTE_TO_CHAN
	movq	_RCOMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movl	%r14d, %edi
	callq	_EXP6TO8G
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_EXP6TO8G
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r12,%rax,2), %eax
	cltq
	imulq	$1431655766, %rax, %rdi         ## imm = 0x55555556
	movq	%rdi, %rax
	shrq	$63, %rax
	shrq	$32, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_UBYTE_TO_CHAN
	movq	_GCOMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movl	%r14d, %edi
	callq	_EXP5TO8B
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_EXP5TO8B
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax,2), %eax
LBB0_12:
	cltq
	imulq	$1431655766, %rax, %rdi         ## imm = 0x55555556
	movq	%rdi, %rax
	shrq	$63, %rax
	shrq	$32, %rdi
	addl	%eax, %edi
LBB0_13:
	movq	_BCOMP@GOTPCREL(%rip), %rbx
LBB0_14:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_UBYTE_TO_CHAN
	movq	(%rbx), %rcx
	movl	%eax, (%r13,%rcx,4)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_1
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_CHAN_MAX,4,2                   ## @CHAN_MAX
	.comm	_ACOMP,8,3                      ## @ACOMP
	.comm	_RCOMP,8,3                      ## @RCOMP
	.comm	_GCOMP,8,3                      ## @GCOMP
	.comm	_BCOMP,8,3                      ## @BCOMP
	.no_dead_strip	_dxt135_decode_imageblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxt135_decode_imageblock
_dxt135_decode_imageblock:              ; @dxt135_decode_imageblock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldp	w8, w9, [x0]
	orr	w21, w8, w9, lsl #8
	ldp	w8, w9, [x0, #8]
	orr	w20, w8, w9, lsl #8
	ldp	w8, w9, [x0, #16]
	orr	w8, w8, w9, lsl #8
	ldp	w9, w10, [x0, #24]
	orr	w8, w8, w9, lsl #16
	orr	w8, w8, w10, lsl #24
	add	w9, w1, w2, lsl #2
	lsl	w9, w9, #1
	asr	w8, w8, w9
	and	w8, w8, #0x3
Lloh0:
	adrp	x9, _CHAN_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHAN_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _ACOMP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ACOMP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	str	w9, [x4, x10, lsl #2]
	mov	x19, x4
	mov	x22, x3
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_1
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_1:
	mov	x0, x21
	bl	_EXP5TO8R
	bl	_UBYTE_TO_CHAN
Lloh8:
	adrp	x8, _RCOMP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RCOMP@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	mov	x0, x21
	bl	_EXP6TO8G
	bl	_UBYTE_TO_CHAN
Lloh11:
	adrp	x8, _GCOMP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GCOMP@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	mov	x0, x21
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_EXP5TO8R
	bl	_UBYTE_TO_CHAN
Lloh14:
	adrp	x8, _RCOMP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RCOMP@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	mov	x0, x20
	bl	_EXP6TO8G
	bl	_UBYTE_TO_CHAN
Lloh17:
	adrp	x8, _GCOMP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GCOMP@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	mov	x0, x20
LBB0_3:
	bl	_EXP5TO8B
	b	LBB0_14
LBB0_4:
	mov	x0, x21
	bl	_EXP5TO8R
	mov	x23, x0
	cmp	w22, #1
	b.gt	LBB0_11
; %bb.5:
	cmp	w21, w20
	b.gt	LBB0_11
; %bb.6:
	mov	x0, x20
	bl	_EXP5TO8R
	add	w8, w0, w23
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	bl	_UBYTE_TO_CHAN
Lloh20:
	adrp	x8, _RCOMP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RCOMP@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	mov	x0, x21
	bl	_EXP6TO8G
	mov	x22, x0
	mov	x0, x20
	bl	_EXP6TO8G
	add	w8, w0, w22
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	bl	_UBYTE_TO_CHAN
Lloh23:
	adrp	x8, _GCOMP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GCOMP@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	mov	x0, x21
	bl	_EXP5TO8B
	mov	x21, x0
	mov	x0, x20
	bl	_EXP5TO8B
	add	w8, w0, w21
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	b	LBB0_14
LBB0_7:
	cmp	w22, #1
	b.gt	LBB0_12
; %bb.8:
	cmp	w21, w20
	b.gt	LBB0_12
; %bb.9:
Lloh26:
	adrp	x8, _RCOMP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RCOMP@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	wzr, [x19, x8, lsl #2]
Lloh29:
	adrp	x8, _GCOMP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GCOMP@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	wzr, [x19, x8, lsl #2]
Lloh32:
	adrp	x8, _BCOMP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BCOMP@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	wzr, [x19, x8, lsl #2]
	cmp	w22, #1
	b.ne	LBB0_16
; %bb.10:
	mov	w0, #0
Lloh35:
	adrp	x20, _ACOMP@GOTPAGE
Lloh36:
	ldr	x20, [x20, _ACOMP@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	mov	x0, x20
	bl	_EXP5TO8R
	add	w8, w0, w23, lsl #1
	mov	w23, #21846
	movk	w23, #21845, lsl #16
	smull	x8, w8, w23
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w0, w8, w9
	bl	_UBYTE_TO_CHAN
Lloh37:
	adrp	x8, _RCOMP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RCOMP@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	mov	x0, x21
	bl	_EXP6TO8G
	mov	x22, x0
	mov	x0, x20
	bl	_EXP6TO8G
	add	w8, w0, w22, lsl #1
	smull	x8, w8, w23
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w0, w8, w9
	bl	_UBYTE_TO_CHAN
Lloh40:
	adrp	x8, _GCOMP@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GCOMP@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	mov	x0, x21
	bl	_EXP5TO8B
	mov	x21, x0
	mov	x0, x20
	bl	_EXP5TO8B
	add	w8, w0, w21, lsl #1
	b	LBB0_13
LBB0_12:
	mov	x0, x21
	bl	_EXP5TO8R
	mov	x22, x0
	mov	x0, x20
	bl	_EXP5TO8R
	add	w8, w22, w0, lsl #1
	mov	w23, #21846
	movk	w23, #21845, lsl #16
	smull	x8, w8, w23
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w0, w8, w9
	bl	_UBYTE_TO_CHAN
Lloh43:
	adrp	x8, _RCOMP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _RCOMP@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	mov	x0, x21
	bl	_EXP6TO8G
	mov	x22, x0
	mov	x0, x20
	bl	_EXP6TO8G
	add	w8, w22, w0, lsl #1
	smull	x8, w8, w23
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w0, w8, w9
	bl	_UBYTE_TO_CHAN
Lloh46:
	adrp	x8, _GCOMP@GOTPAGE
Lloh47:
	ldr	x8, [x8, _GCOMP@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	mov	x0, x21
	bl	_EXP5TO8B
	mov	x21, x0
	mov	x0, x20
	bl	_EXP5TO8B
	add	w8, w21, w0, lsl #1
LBB0_13:
	smull	x8, w8, w23
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w0, w8, w9
LBB0_14:
Lloh49:
	adrp	x20, _BCOMP@GOTPAGE
Lloh50:
	ldr	x20, [x20, _BCOMP@GOTPAGEOFF]
LBB0_15:
	bl	_UBYTE_TO_CHAN
	ldr	x8, [x20]
	str	w0, [x19, x8, lsl #2]
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
                                        ; -- End function
	.comm	_CHAN_MAX,4,2                   ; @CHAN_MAX
	.comm	_ACOMP,8,3                      ; @ACOMP
	.comm	_RCOMP,8,3                      ; @RCOMP
	.comm	_GCOMP,8,3                      ; @GCOMP
	.comm	_BCOMP,8,3                      ; @BCOMP
	.no_dead_strip	_dxt135_decode_imageblock
.subsections_via_symbols
