	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tscc2_decode_mb
_tscc2_decode_mb:                       ## @tscc2_decode_mb
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, %rbx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	leaq	28(%rdi), %r14
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, %r14
	movslq	%r15d, %r15
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$16, %edx
	callq	_memset
	leaq	(%rbx,%r15,4), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$16, %edx
	callq	_memset
	leaq	(%rbx,%r15,4), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$16, %edx
	callq	_memset
	leaq	(%rbx,%r15,4), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$16, %edx
	callq	_memset
	leaq	(%rbx,%r15,4), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$16, %edx
	callq	_memset
	leaq	(%rbx,%r15,4), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$16, %edx
	callq	_memset
	leaq	(%rbx,%r15,4), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$16, %edx
	callq	_memset
	leaq	(%rbx,%r15,4), %rdi
	movl	%r14d, %esi
	movl	$16, %edx
	callq	_memset
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_1:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	(,%r15,4), %eax
	cltq
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movq	%r15, -104(%rbp)                ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
	xorl	%r13d, %r13d
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
	movq	-80(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	orl	%r13d, %eax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %esi
	movq	%r14, %rdi
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$256, %eax                      ## imm = 0x100
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$-1, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_13
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	addl	%r12d, %eax
	movzbl	%al, %r13d
	movq	(%r15), %rax
	movl	%r13d, (%rax)
	movq	16(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	movl	$9, %edx
	movl	$1, %ecx
	callq	_get_vlc2
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, %r12d
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	(%r15), %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	movl	$60, %edx
	callq	_memset
	testl	%r12d, %r12d
	jle	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	$1, %r13d
	movq	%r15, %rsi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%rsi), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$4096, %eax                     ## imm = 0x1000
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=3
	cmpl	$-1, %eax
	jne	LBB0_19
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=3
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_get_bits
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=3
	movl	%eax, %r15d
	andl	$15, %r15d
	addl	%r13d, %r15d
	cmpl	$16, %r15d
	jge	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=3
	sarl	$4, %eax
	movl	%eax, %edi
	movl	$8, %esi
	callq	_sign_extend
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rdi
	movq	_ff_zigzag_scan@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r15d, %rdx
	incl	%r15d
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, (%rdi,%rcx,4)
	movl	%r15d, %r13d
	decl	%r12d
	jne	LBB0_16
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r15), %rdi
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdx
	shlq	$4, %rdx
	addq	%rbx, %rdx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movl	%r15d, %ecx
	callq	_tscc2_idct4_put
	incq	%r13
	cmpq	$4, %r13
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_3
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rbx
	xorl	%eax, %eax
	movl	$1, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jne	LBB0_2
	jmp	LBB0_24
LBB0_8:
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	$1024, %eax                     ## imm = 0x400
	jge	LBB0_9
LBB0_20:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_24:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movslq	%r15d, %r15
	addq	$60, %rbx
	shlq	$2, %r15
	movl	$8, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -60(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -56(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -52(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -48(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -44(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -40(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -36(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -32(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -28(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -24(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -20(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -16(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -12(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -8(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -4(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, (%rbx)
	addq	%r15, %rbx
	decl	%r12d
	jne	LBB0_10
## %bb.11:
	xorl	%eax, %eax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ff_zigzag_scan,8,3             ## @ff_zigzag_scan
	.no_dead_strip	_tscc2_decode_mb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tscc2_decode_mb
_tscc2_decode_mb:                       ; @tscc2_decode_mb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x4
	mov	x21, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
	add	x19, x0, #28
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_21
; %bb.2:
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	mov	w2, #16
	bl	_memset
	mov	x8, x20
	sbfiz	x22, x8, #2, #32
	add	x20, x21, x22
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16
	bl	_memset
	add	x20, x20, x22
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16
	bl	_memset
	add	x20, x20, x22
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16
	bl	_memset
	add	x20, x20, x22
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16
	bl	_memset
	add	x20, x20, x22
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16
	bl	_memset
	add	x20, x20, x22
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16
	bl	_memset
	add	x0, x20, x22
	mov	x1, x19
	mov	w2, #16
	bl	_memset
	mov	w0, #0
	b	LBB0_23
LBB0_3:
	str	wzr, [sp, #44]                  ; 4-byte Folded Spill
	mov	w25, #0
	sxtw	x26, w24
	sbfiz	x8, x20, #2, #32
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w8, #1
Lloh0:
	adrp	x28, _ff_zigzag_scan@GOTPAGE
Lloh1:
	ldr	x28, [x28, _ff_zigzag_scan@GOTPAGEOFF]
	stp	x22, x20, [sp, #24]             ; 16-byte Folded Spill
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	mov	x27, #0
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	orr	w8, w8, w27
	cbz	w8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w1, [x23, #24]
	mov	x0, x19
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #256
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	cmn	w0, #1
	b.ne	LBB0_9
	b	LBB0_22
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	w8, w0, w25
	and	w25, w8, #0xff
	ldr	x8, [x23]
	str	w25, [x8]
	ldr	x8, [x23, #16]
	ldr	w1, [x8, x26, lsl #2]
	mov	x0, x19
	mov	w2, #9
	mov	w3, #1
	bl	_get_vlc2
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	x24, x0
	ldr	x8, [x23]
	add	x0, x8, #4
	mov	w1, #0
	mov	w2, #60
	bl	_memset
	cmp	w24, #1
	b.lt	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	w22, #1
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x23, #8]
	ldr	w1, [x8, x26, lsl #2]
	mov	x0, x19
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #1, lsl #12                 ; =4096
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	cmn	w0, #1
	b.ne	LBB0_15
	b	LBB0_22
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=3
	mov	x0, x19
	mov	w1, #12
	bl	_get_bits
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=3
	and	w8, w0, #0xf
	add	w20, w8, w22
	cmp	w20, #16
	b.ge	LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=3
	asr	w0, w0, #4
	mov	w1, #8
	bl	_sign_extend
	mov	x8, x0
	ldr	x0, [x23]
	ldr	x9, [x28]
	add	w22, w20, #1
	ldr	x9, [x9, w20, sxtw #3]
	str	w8, [x0, x9, lsl #2]
	subs	w24, w24, #1
	b.ne	LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=2
	ldp	x22, x20, [sp, #24]             ; 16-byte Folded Reload
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x0, [x23]
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x2, x21, x27, lsl #4
	mov	x1, x22
	mov	x3, x20
	bl	_tscc2_idct4_put
	add	x27, x27, #1
	cmp	x27, #4
	b.ne	LBB0_5
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	mov	w0, #0
	mov	w9, #1
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x21, x21, x9, lsl #2
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	tbnz	w9, #0, LBB0_4
	b	LBB0_23
LBB0_21:
	mov	x0, x19
	bl	_get_bits_left
	cmp	w0, #1024
	b.ge	LBB0_24
LBB0_22:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_23:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_24:
	add	x21, x21, #32
	mov	x8, x20
	sbfiz	x20, x8, #2, #32
	mov	w22, #8
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	stur	w0, [x21, #-32]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	stur	w0, [x21, #-28]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	stur	w0, [x21, #-24]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	stur	w0, [x21, #-20]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	stur	w0, [x21, #-16]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	stur	w0, [x21, #-12]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	stur	w0, [x21, #-8]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	stur	w0, [x21, #-4]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	w0, [x21]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	w0, [x21, #4]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	w0, [x21, #8]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	w0, [x21, #12]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	w0, [x21, #16]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	w0, [x21, #20]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	w0, [x21, #24]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	w0, [x21, #28]
	add	x21, x21, x20
	subs	w22, w22, #1
	b.ne	LBB0_25
; %bb.26:
	mov	w0, #0
	b	LBB0_23
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ff_zigzag_scan,8,3             ; @ff_zigzag_scan
	.no_dead_strip	_tscc2_decode_mb
.subsections_via_symbols
