	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_block
_decode_block:                          ## @decode_block
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	8(%rdi), %r13
	xorl	%r14d, %r14d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %esi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$9, %edx
	movl	$3, %ecx
	callq	_get_vlc2
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	addl	$-63, %eax
	movl	%eax, (%r15)
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	andl	$1, %eax
	decl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	$1, %r13d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ebx
	cmpl	$7167, %eax                     ## imm = 0x1BFF
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_get_bits
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_sbits
	movl	%eax, %r15d
	testl	%r15d, %r15d
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %edi
	callq	_FFABS
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %ecx
	incl	%ecx
	imull	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	addl	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, %eax
	negl	%eax
	testl	%r15d, %r15d
	cmovnsl	%ecx, %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %r12d
	shrl	$12, %r12d
	movl	%ebx, %eax
	shrl	$4, %eax
	movzbl	%al, %r14d
	andl	$15, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_bits1
	movl	%ebx, %r15d
	negl	%r15d
	testl	%eax, %eax
	cmovel	%ebx, %r15d
	testl	%r15d, %r15d
	jne	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	addl	%r13d, %r14d
	cmpl	$64, %r14d
	jge	LBB0_1
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_ff_zigzag_direct@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r14d, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, (%r15,%rcx,4)
	cmpl	$63, %r14d
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	movl	%r14d, %r13d
	testl	%r12d, %r12d
	je	LBB0_4
LBB0_14:
	xorl	%r14d, %r14d
	cmpl	$1, %r12d
	sbbl	%r14d, %r14d
	jmp	LBB0_15
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ff_zigzag_direct,8,3           ## @ff_zigzag_direct
	.no_dead_strip	_decode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_block
_decode_block:                          ; @decode_block
	.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, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	add	x22, x0, #8
	mov	x0, x1
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	w1, [x21, #4]
	mov	x0, x22
	mov	w2, #9
	mov	w3, #3
	bl	_get_vlc2
	str	w0, [x20]
	tbnz	w0, #31, LBB0_12
; %bb.1:
	sub	w8, w0, #63
	str	w8, [x20]
	cbz	w23, LBB0_13
; %bb.2:
	and	w8, w19, #0x1
	sub	w26, w8, #1
	mov	w28, #1
	mov	w27, #7167
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x22
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, w27
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_get_bits1
	mov	x23, x0
	mov	x0, x22
	mov	w1, #6
	bl	_get_bits
	mov	x24, x0
	mov	x0, x22
	mov	w1, #8
	bl	_get_sbits
	mov	x25, x0
	cbz	w25, LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	bl	_FFABS
	mov	w8, #1
	bfi	w8, w0, #1, #31
	madd	w8, w8, w19, w26
	cmp	w25, #0
	cneg	w8, w8, lt
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsr	w23, w0, #12
	ubfx	w24, w0, #4, #8
	and	w25, w0, #0xf
	mov	x0, x22
	bl	_get_bits1
	cmp	w0, #0
	cneg	w25, w25, ne
	cbnz	w25, LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w24, w28
	cmp	w9, #64
	b.ge	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh0:
	adrp	x10, _ff_zigzag_direct@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ff_zigzag_direct@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	w28, w9, #1
	ldr	x10, [x10, w9, sxtw #3]
	str	w8, [x20, x10, lsl #2]
	cmp	w9, #63
	ccmp	w23, #0, #0, ne
	b.eq	LBB0_3
; %bb.11:
	cmp	w23, #0
	csetm	w0, eq
	b	LBB0_14
LBB0_12:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ff_zigzag_direct,8,3           ; @ff_zigzag_direct
	.no_dead_strip	_decode_block
.subsections_via_symbols
