	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mss4_decode_dct
_mss4_decode_dct:                       ## @mss4_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	%r9d, %ebx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_get_coeff
	movl	%eax, %r13d
	cmpl	$0, 16(%rbp)
	je	LBB0_4
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%rax,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_TOP_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	_TOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %edi
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	subl	%ecx, %edi
	callq	_FFABS
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	subl	-60(%rbp), %edi                 ## 4-byte Folded Reload
	callq	_FFABS
	cmpq	%rax, -72(%rbp)                 ## 8-byte Folded Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovgl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	jmp	LBB0_8
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.6:
	movq	_LEFT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_TOP@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%rax,4), %eax
LBB0_8:
	addl	%eax, %r13d
LBB0_9:
	movq	_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r13d, (%rbx,%rax,4)
	movq	24(%rbp), %rax
	imull	(%rax), %r13d
	movl	%r13d, (%r14)
	movl	$1, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	addl	$16, %r13d
	cmpl	$64, %r13d
	jge	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	cmpl	$240, %eax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %ebx
	sarl	$4, %ebx
	andl	$15, %eax
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_get_coeff_bits
	addl	%r13d, %ebx
	cmpl	$63, %ebx
	jg	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_ff_zigzag_direct@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %rdx
	movslq	(%rcx,%rdx,4), %rcx
	movq	24(%rbp), %rdx
	imull	(%rdx,%rcx,4), %eax
	movl	%eax, (%r14,%rcx,4)
	incl	%ebx
	movl	%ebx, %r13d
	cmpl	$64, %r13d
	jl	LBB0_10
LBB0_17:
	setne	%al
	movzbl	%al, %eax
	negl	%eax
	jmp	LBB0_19
LBB0_18:
	movl	$-1, %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_LEFT,8,3                       ## @LEFT
	.comm	_TOP_LEFT,8,3                   ## @TOP_LEFT
	.comm	_TOP,8,3                        ## @TOP
	.comm	_ff_zigzag_direct,8,3           ## @ff_zigzag_direct
	.no_dead_strip	_mss4_decode_dct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mss4_decode_dct
_mss4_decode_dct:                       ; @mss4_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	x19, x7
	mov	x26, x6
	mov	x25, x5
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	mov	x0, x3
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	mov	x0, x22
	mov	x1, x24
	bl	_get_coeff
	mov	x24, x0
Lloh0:
	adrp	x9, _LEFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LEFT@GOTPAGEOFF]
	cbz	w26, LBB0_3
; %bb.1:
	cbz	w25, LBB0_5
; %bb.2:
	ldr	x8, [x9]
	ldr	w26, [x23, x8, lsl #2]
Lloh2:
	adrp	x8, _TOP_LEFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TOP_LEFT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w28, [x23, x8, lsl #2]
Lloh5:
	adrp	x8, _TOP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TOP@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w27, [x23, x8, lsl #2]
	sub	w0, w27, w28
	bl	_FFABS
	mov	x25, x0
	sub	w0, w26, w28
	bl	_FFABS
Lloh8:
	adrp	x9, _LEFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LEFT@GOTPAGEOFF]
	cmp	x25, x0
	csel	w8, w27, w26, gt
	b	LBB0_7
LBB0_3:
	cbz	w25, LBB0_8
; %bb.4:
	ldr	x8, [x9]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _TOP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TOP@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
LBB0_6:
	ldr	w8, [x23, x8, lsl #2]
LBB0_7:
	add	w24, w8, w24
LBB0_8:
	ldr	x8, [x9]
	str	w24, [x23, x8, lsl #2]
	ldr	w8, [x19]
	mul	w8, w8, w24
	str	w8, [x20]
	mov	w25, #1
Lloh13:
	adrp	x24, _ff_zigzag_direct@GOTPAGE
Lloh14:
	ldr	x24, [x24, _ff_zigzag_direct@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w25, w25, #16
	cmp	w25, #64
	b.ge	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x22
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
	cmp	w0, #240
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x23, x0
	add	w8, w0, #1
	cmp	w8, #2
	b.lo	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	and	w1, w23, #0xf
	mov	x0, x22
	bl	_get_coeff_bits
	add	w8, w25, w23, asr #4
	cmp	w8, #63
	b.gt	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x24]
	ldrsw	x9, [x9, w8, sxtw #2]
	lsl	x9, x9, #2
	ldr	w10, [x19, x9]
	mul	w10, w10, w0
	str	w10, [x20, x9]
	add	w25, w8, #1
	cmp	w25, #64
	b.lt	LBB0_10
LBB0_14:
	csetm	w23, ne
	b	LBB0_16
LBB0_15:
	mov	w23, #-1
LBB0_16:
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LEFT,8,3                       ; @LEFT
	.comm	_TOP_LEFT,8,3                   ; @TOP_LEFT
	.comm	_TOP,8,3                        ; @TOP
	.comm	_ff_zigzag_direct,8,3           ; @ff_zigzag_direct
	.no_dead_strip	_mss4_decode_dct
.subsections_via_symbols
