	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxv_decompress_dxt1
_dxv_decompress_dxt1:                   ## @dxv_decompress_dxt1
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	leaq	16(%r12), %r15
	movq	8(%r12), %r14
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_AV_WL32
	movq	8(%r12), %r14
	addq	$4, %r14
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_AV_WL32
	cmpl	$16, (%r12)
	jl	LBB0_3
## %bb.1:
	movl	$4, %r14d
	movl	$12, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$2, %edi
	callq	_CHECKPOINT
	movl	$2, %edi
	callq	_CHECKPOINT
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	8(%r12), %rcx
	leaq	(%rbx,%rcx), %rdi
	addq	$-4, %rdi
	movq	%rax, %rsi
	callq	_AV_WL32
	movl	$2, %edi
	callq	_CHECKPOINT
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_AV_WL32
	addq	$2, %r14
	movl	(%r12), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	addq	$8, %rbx
	cmpq	%rax, %r14
	jle	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dxv_decompress_dxt1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxv_decompress_dxt1
_dxv_decompress_dxt1:                   ; @dxv_decompress_dxt1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x0]
	add	x19, x21, #16
	ldr	x20, [x21, #8]
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	mov	x0, x20
	bl	_AV_WL32
	ldr	x8, [x21, #8]
	add	x20, x8, #4
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	mov	x0, x20
	bl	_AV_WL32
	ldr	w8, [x21]
	cmp	w8, #16
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #4
	mov	w22, #12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #2
	bl	_CHECKPOINT
	mov	w0, #2
	bl	_CHECKPOINT
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	ldr	x8, [x21, #8]
	add	x8, x22, x8
	sub	x0, x8, #4
	bl	_AV_WL32
	mov	w0, #2
	bl	_CHECKPOINT
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	ldr	x8, [x21, #8]
	add	x0, x22, x8
	bl	_AV_WL32
	add	x20, x20, #2
	ldr	w8, [x21]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	add	x22, x22, #8
	cmp	x20, w8, sxtw
	b.le	LBB0_2
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dxv_decompress_dxt1
.subsections_via_symbols
