	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_dct
_decode_dct:                            ## @decode_dct
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	(%rsi), %ebx
	imull	%r8d, %ebx
	addl	%ecx, %ebx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	leaq	32(%r13), %rsi
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_decode_coeff
	movl	%eax, %r12d
	movslq	%ebx, %rbx
	testl	%r15d, %r15d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	movq	8(%r13), %rax
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.2:
	movl	-4(%rax,%rbx,4), %r14d
	movl	(%r13), %ecx
	movl	%ebx, %edx
	subl	%ecx, %edx
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %r13d
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %r15d
	movl	%r15d, %edi
	subl	%r13d, %edi
	callq	_FFABS
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	subl	%r13d, %edi
	callq	_FFABS
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	cmovlel	%r14d, %r15d
	addl	%r15d, %r12d
	jmp	LBB0_7
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.4:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rax
	movslq	%r14d, %rcx
	movl	-4(%rax,%rcx,4), %eax
	jmp	LBB0_6
LBB0_7:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_5:
	movslq	(%r13), %rcx
	movq	%rbx, %rdx
	subq	%rcx, %rdx
	movl	(%rax,%rdx,4), %eax
LBB0_6:
	addl	%eax, %r12d
LBB0_8:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r13), %rax
	movl	%r12d, (%rax,%rbx,4)
	movq	16(%r13), %rax
	imull	(%rax), %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	leaq	28(%r13), %r12
	leaq	24(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	addl	$16, %ebx
	cmpl	$64, %ebx
	jge	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_rac_get_model256_sym
	cmpl	$240, %eax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r14d, %r13d
	movl	$-1, %eax
	andl	$15, %r13d
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	sarl	$4, %r14d
	addl	%ebx, %r14d
	cmpl	$63, %r14d
	jg	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_rac_get_model2_sym
	movl	%eax, %r15d
	movl	$1, %eax
	cmpl	$2, %r13d
	jb	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	decl	%r13d
	movl	$1, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_rac_get_bits
	addl	%ebx, %eax
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %ecx
	negl	%ecx
	testl	%r15d, %r15d
	cmovnel	%eax, %ecx
	movq	_ff_zigzag_direct@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rdx
	movslq	(%rax,%rdx,4), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rdx
	imull	(%rdx,%rax,4), %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%rax,4)
	incl	%r14d
	movl	%r14d, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpl	$64, %ebx
	jl	LBB0_10
LBB0_17:
	setne	%al
	movzbl	%al, %eax
	negl	%eax
	jmp	LBB0_19
LBB0_18:
	movl	%r14d, %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_zigzag_direct,8,3           ## @ff_zigzag_direct
	.no_dead_strip	_decode_dct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_dct
_decode_dct:                            ; @decode_dct
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, x1
	ldr	w8, [x22], #32
	madd	w25, w8, w4, w3
	mov	x0, x2
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	mov	x0, x21
	mov	x1, x22
	bl	_decode_coeff
	mov	x22, x0
	cbz	w24, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	w23, LBB0_5
; %bb.2:
	sxtw	x9, w25
	sub	x9, x9, #1
	ldr	w24, [x8, x9, lsl #2]
	ldr	w10, [x20]
	sub	w9, w9, w10
	ldr	w26, [x8, w9, sxtw #2]
	sub	w9, w25, w10
	ldr	w27, [x8, w9, sxtw #2]
	sub	w0, w27, w26
	bl	_FFABS
	mov	x23, x0
	sub	w0, w24, w26
	bl	_FFABS
	cmp	x23, x0
	csel	w8, w27, w24, gt
	b	LBB0_7
LBB0_3:
	cbz	w23, LBB0_8
; %bb.4:
	ldr	x8, [x20, #8]
	sub	w9, w23, #1
	b	LBB0_6
LBB0_5:
	ldr	w9, [x20]
	sub	w9, w25, w9
LBB0_6:
	ldr	w8, [x8, w9, sxtw #2]
LBB0_7:
	add	w22, w8, w22
LBB0_8:
	ldp	x8, x9, [x20, #8]
	str	w22, [x8, w25, sxtw #2]
	ldr	w8, [x9]
	mul	w8, w8, w22
	str	w8, [x19]
	add	x22, x20, #28
	add	x23, x20, #24
	mov	w25, #1
Lloh0:
	adrp	x26, _ff_zigzag_direct@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ff_zigzag_direct@GOTPAGEOFF]
	mov	w24, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w24, w24, #16
	cmp	w24, #64
	b.ge	LBB0_18
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_rac_get_model256_sym
	cmp	w0, #240
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	w0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ands	w28, w0, #0xf
	b.eq	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w27, w24, w0, asr #4
	cmp	w27, #63
	b.gt	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_rac_get_model2_sym
	mov	x24, x0
	cmp	w28, #2
	b.lo	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	w1, w28, #1
	lsl	w28, w25, w1
	mov	x0, x21
	bl	_rac_get_bits
	add	w8, w0, w28
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w8, #1
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	w24, #0
	cneg	w8, w8, eq
	ldr	x9, [x26]
	ldrsw	x9, [x9, w27, sxtw #2]
	ldr	x10, [x20, #16]
	lsl	x9, x9, #2
	ldr	w10, [x10, x9]
	mul	w8, w10, w8
	str	w8, [x19, x9]
	add	w24, w27, #1
	cmp	w24, #64
	b.lt	LBB0_10
LBB0_18:
	csetm	w0, ne
	b	LBB0_20
LBB0_19:
	mov	w0, #-1
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_zigzag_direct,8,3           ; @ff_zigzag_direct
	.no_dead_strip	_decode_dct
.subsections_via_symbols
