	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compress_texture
_compress_texture:                      ## @compress_texture
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	cmpl	%edx, (%r14)
	jle	LBB0_1
## %bb.10:
	movq	_AVERROR_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_1:
	movl	(%rdi), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.2:
	movq	%rsi, %rbx
	movl	4(%rdi), %eax
	xorl	%r13d, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	$4, %r13d
	cmpl	%edx, %r13d
	jge	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%eax, %eax
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx), %rax
	movq	8(%rcx), %rdi
	movl	(%rax), %esi
	movl	%r13d, %eax
	imull	%esi, %eax
	movslq	%eax, %rdx
	shlq	$2, %rdx
	addq	(%rdi), %rdx
	addq	%r15, %rdx
	movq	%rbx, %rdi
	callq	*8(%r14)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cltq
	leaq	(%rbx,%rax,4), %rbx
	movl	4(%rdi), %eax
	addq	$64, %r15
	addl	$4, %r12d
	cmpl	%r12d, %eax
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rdi), %edx
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_BUFFER_TOO_SMALL,4,2   ## @AVERROR_BUFFER_TOO_SMALL
	.no_dead_strip	_compress_texture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compress_texture
_compress_texture:                      ; @compress_texture
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x22, [x0, #8]
	ldr	w8, [x22]
	cmp	w8, w2
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVERROR_BUFFER_TOO_SMALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_2:
	mov	x21, x0
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x19, x3
	mov	x20, x1
	mov	w23, #0
	ldr	w8, [x21, #4]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w23, #4
	cmp	w23, w9
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #0
	mov	x25, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x9]
	mul	w9, w23, w1
	add	x8, x8, w9, sxtw #2
	add	x2, x8, x25
	ldr	x8, [x22, #8]
	mov	x0, x20
	blr	x8
	add	x20, x20, w0, sxtw #2
	ldr	w8, [x21, #4]
	add	x25, x25, #64
	add	w24, w24, #4
	cmp	w8, w24
	b.gt	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x21]
	b	LBB0_4
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_BUFFER_TOO_SMALL,4,2   ; @AVERROR_BUFFER_TOO_SMALL
	.no_dead_strip	_compress_texture
.subsections_via_symbols
