	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_transform_coeffs
_decode_transform_coeffs:               ## @decode_transform_coeffs
	.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	%rdi, %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	cmpl	$0, (%rdi)
	jle	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	xorl	%r13d, %r13d
	movl	$1, %ebx
	leaq	-64(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CPL_CH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	8(%r12), %rax
	movl	$1, %r13d
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rax), %rax
	movq	16(%r12), %rcx
	movq	%rax, %rdi
	shlq	$3, %rdi
	addq	(%rcx,%rbx,8), %rdi
	cmpl	$256, %eax                      ## imm = 0x100
	movl	$255, %ecx
	cmovgel	%eax, %ecx
	subl	%eax, %ecx
	leaq	8(,%rcx,8), %rsi
	callq	___bzero
	leaq	1(%rbx), %rax
	movslq	(%r12), %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_decode_transform_coeffs_ch
	movq	24(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CPL_CH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rcx
	callq	_decode_transform_coeffs_ch
	movq	%r12, %rdi
	callq	_calc_transform_coeffs_cpl
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%rbx,4), %rax
	addq	8(%r12), %rax
	jmp	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	callq	_remove_dithering
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPL_CH,8,3                     ## @CPL_CH
	.no_dead_strip	_decode_transform_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_transform_coeffs
_decode_transform_coeffs:               ; @decode_transform_coeffs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	w25, #0
	mov	w21, #1
	mov	w22, #4
	mov	w23, #255
Lloh0:
	adrp	x24, _CPL_CH@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CPL_CH@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x8, x8, x9, lsl #2
	mov	w25, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8, lsl #3
	cmp	w8, #255
	csel	w9, w8, w23, gt
	sub	w8, w9, w8
	lsl	x8, x8, #3
	add	x1, x8, #8
	bl	_bzero
	add	x8, x21, #1
	ldrsw	x9, [x19]
	add	x22, x22, #4
	cmp	x21, x9
	mov	x21, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_decode_transform_coeffs_ch
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w25, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x24]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_decode_transform_coeffs_ch
	mov	x0, x19
	bl	_calc_transform_coeffs_cpl
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	b	LBB0_3
LBB0_8:
	mov	x0, x19
	bl	_remove_dithering
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CPL_CH,8,3                     ; @CPL_CH
	.no_dead_strip	_decode_transform_coeffs
.subsections_via_symbols
