	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h261_decode_block
_h261_decode_block:                     ## @h261_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	32(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%rdi)
	je	LBB0_3
## %bb.1:
	leaq	8(%r15), %rdi
	movl	$8, %esi
	callq	_get_bits
	testb	$127, %al
	je	LBB0_2
## %bb.7:
	cmpl	$255, %eax
	movl	$128, %r13d
	cmovnel	%eax, %r13d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	xorl	%edx, %edx
	testl	%r14d, %r14d
	jne	LBB0_11
	jmp	LBB0_8
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.5:
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_show_bits
	movl	%eax, %ebx
	testb	$2, %bl
	jne	LBB0_9
## %bb.6:
	movl	$-1, %edx
	jmp	LBB0_10
LBB0_2:
	movl	20(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	12(%r15), %r9d
	movl	16(%r15), %r8d
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movl	$-1, %eax
	jmp	LBB0_24
LBB0_4:
	movl	$-1, %edx
LBB0_8:
	movq	(%r15), %rax
	movslq	%r12d, %rcx
	jmp	LBB0_23
LBB0_9:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_skip_bits
	andl	$1, %ebx
	xorl	%edx, %edx
	negl	%ebx
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	$1, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_10:
                                        ## implicit-def: $r13d
LBB0_11:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	movq	_re@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	addq	$8, %r15
	movq	%r15, %rsi
	callq	_OPEN_READER
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_UPDATE_CACHE
	movl	(%r12), %edx
	movq	_ff_h261_rl_tcoeff@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r8d
	movq	_TCOEFF_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r13d, %edi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movq	%r15, %rcx
	pushq	$0
	pushq	$2
	callq	_GET_RL_VLC
	addq	$16, %rsp
	movl	(%r12), %edi
	cmpl	$66, %ebx
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rsi
	movl	$6, %edx
	callq	_SHOW_UBITS
	movl	%eax, %r13d
	incl	%r13d
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$6, %edx
	callq	_SKIP_CACHE
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_SHOW_SBITS
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %r14
	movl	$14, %r12d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%r13d, %r13d
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r12, %r14
	movl	$1, %r12d
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_SHOW_UBITS
	movl	%r13d, %ecx
	negl	%ecx
	testl	%eax, %eax
	cmovnel	%ecx, %r13d
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	-52(%rbp), %r13d                ## 4-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rbx
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_SKIP_COUNTER
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%r13d, %eax
	cmpl	$64, %eax
	jge	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cltq
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx,%rax,4), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, (%rcx,%rax,4)
	movq	%rbx, %r12
	jmp	LBB0_12
LBB0_20:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_CLOSE_READER
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	20(%rcx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rcx), %r8d
	movl	16(%rcx), %ecx
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_15
LBB0_14:
	movq	%r15, %rsi
	callq	_CLOSE_READER
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	20(%rcx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rcx), %r8d
	movl	16(%rcx), %ecx
	leaq	L_.str.1(%rip), %rdx
LBB0_15:
	xorl	%eax, %eax
	callq	_av_log
	movl	$-1, %eax
	jmp	LBB0_24
LBB0_22:
	movq	%r15, %rsi
	callq	_CLOSE_READER
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	-76(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_23:
	movl	%edx, (%rax,%rcx,4)
	xorl	%eax, %eax
LBB0_24:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_h261_rl_tcoeff,8,3          ## @ff_h261_rl_tcoeff
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal dc %d at %d %d\n"

	.comm	_re,4,2                         ## @re
	.comm	_TCOEFF_VLC_BITS,4,2            ## @TCOEFF_VLC_BITS
L_.str.1:                               ## @.str.1
	.asciz	"illegal ac vlc code at %dx%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"run overflow at %dx%d\n"

	.no_dead_strip	_h261_decode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h261_decode_block
_h261_decode_block:                     ; @h261_decode_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	x8, x26, [x0, #24]
	cbz	x8, LBB0_3
; %bb.1:
	add	x0, x19, #8
	mov	w1, #8
	bl	_get_bits
	mov	x3, x0
	tst	w0, #0x7f
	b.eq	LBB0_6
; %bb.2:
	mov	w8, #0
	mov	w27, #0
	mov	w9, #128
	cmp	w3, #255
	csel	w23, w9, w3, eq
	str	w23, [x21]
	cbnz	w22, LBB0_11
	b	LBB0_8
LBB0_3:
	cbz	w22, LBB0_7
; %bb.4:
	add	x22, x19, #8
	mov	x0, x22
	mov	w1, #2
	bl	_show_bits
	tbnz	w0, #1, LBB0_9
; %bb.5:
	mov	w27, #-1
	b	LBB0_10
LBB0_6:
	ldp	w4, w0, [x19, #16]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x19, #12]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	str	x8, [sp]
	b	LBB0_21
LBB0_7:
	mov	w8, #-1
LBB0_8:
	mov	w0, #0
	ldr	x9, [x19]
	str	w8, [x9, w20, sxtw #2]
	b	LBB0_22
LBB0_9:
	mov	x23, x0
	mov	x0, x22
	mov	w1, #2
	bl	_skip_bits
	mov	w27, #0
	tst	w23, #0x1
	mov	w8, #1
	cneg	w8, w8, ne
	str	w8, [x21]
LBB0_10:
                                        ; implicit-def: $w23
LBB0_11:
	str	w20, [sp, #20]                  ; 4-byte Folded Spill
Lloh5:
	adrp	x28, _re@GOTPAGE
Lloh6:
	ldr	x28, [x28, _re@GOTPAGEOFF]
	ldr	w0, [x28]
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	add	x22, x19, #8
	mov	x1, x22
	bl	_OPEN_READER
Lloh7:
	adrp	x20, _ff_h261_rl_tcoeff@GOTPAGE
Lloh8:
	ldr	x20, [x20, _ff_h261_rl_tcoeff@GOTPAGEOFF]
Lloh9:
	adrp	x19, _TCOEFF_VLC_BITS@GOTPAGE
Lloh10:
	ldr	x19, [x19, _TCOEFF_VLC_BITS@GOTPAGEOFF]
                                        ; implicit-def: $w24
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	mov	x1, x22
	bl	_UPDATE_CACHE
	ldr	w2, [x28]
	ldr	x8, [x20]
	ldr	w4, [x8]
	ldr	w5, [x19]
	mov	x0, x23
	mov	x1, x24
	mov	x3, x22
	mov	w6, #2
	mov	w7, #0
	bl	_GET_RL_VLC
	ldr	w0, [x28]
	cmp	w24, #66
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w23, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x1, x22
	mov	w2, #6
	bl	_SHOW_UBITS
	add	w24, w0, #1
	ldr	w0, [x28]
	mov	x1, x22
	mov	w2, #6
	bl	_SKIP_CACHE
	ldr	w0, [x28]
	mov	x1, x22
	mov	w2, #8
	bl	_SHOW_SBITS
	mov	x23, x0
	mov	w25, #14
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	w23, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w25, #1
	mov	x1, x22
	mov	w2, #1
	bl	_SHOW_UBITS
	cmp	w0, #0
	cneg	w23, w23, ne
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x28]
	mov	x1, x22
	mov	x2, x25
	bl	_SKIP_COUNTER
	add	w27, w24, w27
	cmp	w27, #64
	b.ge	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrsw	x8, [x26, w27, sxtw #2]
	str	w23, [x21, x8, lsl #2]
	b	LBB0_12
LBB0_19:
	ldr	w0, [x28]
	mov	x1, x22
	bl	_CLOSE_READER
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldp	w3, w0, [x9, #16]
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w4, [x9, #12]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_20:
	mov	x1, x22
	bl	_CLOSE_READER
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldp	w3, w0, [x9, #16]
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w4, [x9, #12]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_21:
	bl	_av_log
	mov	w0, #-1
LBB0_22:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_23:
	mov	x1, x22
	bl	_CLOSE_READER
	mov	w0, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	str	w27, [x8, w9, sxtw #2]
	b	LBB0_22
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_h261_rl_tcoeff,8,3          ; @ff_h261_rl_tcoeff
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal dc %d at %d %d\n"

	.comm	_re,4,2                         ; @re
	.comm	_TCOEFF_VLC_BITS,4,2            ; @TCOEFF_VLC_BITS
l_.str.1:                               ; @.str.1
	.asciz	"illegal ac vlc code at %dx%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"run overflow at %dx%d\n"

	.no_dead_strip	_h261_decode_block
.subsections_via_symbols
