	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on2avc_decode_subframe
_on2avc_decode_subframe:                ## @on2avc_decode_subframe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rdi, %r13
	leaq	-44(%rbp), %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	-44(%rbp), %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	32(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_11:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_21
LBB0_1:
	movl	%eax, %r12d
	jmp	LBB0_21
LBB0_4:
	movq	8(%r13), %rax
	movq	%rax, (%r13)
	leaq	-44(%rbp), %rdi
	movl	$3, %esi
	callq	_get_bits
	movq	%rax, 8(%r13)
	movq	24(%r13), %rcx
	movq	48(%r13), %rdx
	leaq	(%rax,%rax,2), %rsi
	movl	8(%rdx,%rsi,4), %edi
	movl	%edi, 60(%r13)
	movl	(%rdx,%rsi,4), %edi
	movl	%edi, 16(%r13)
	movl	4(%rdx,%rsi,4), %edx
	movl	%edx, 56(%r13)
	movq	_WINDOW_TYPE_8SHORT@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rax
	setne	%sil
	movl	%esi, 20(%r13)
	movl	$1, (%rcx)
	cmpl	$2, 16(%r13)
	jl	LBB0_7
## %bb.5:
	movl	$1, %ebx
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_get_bits1
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	24(%r13), %rax
	movl	%ecx, (%rax,%rbx,4)
	incq	%rbx
	movslq	16(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_on2avc_read_ms_info
	movq	32(%r13), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.8:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_on2avc_read_channel_data
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	movq	32(%r13), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jl	LBB0_10
## %bb.12:
	cmpl	$2, %eax
	jne	LBB0_15
## %bb.13:
	cmpq	$0, 40(%r13)
	je	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_on2avc_apply_ms
LBB0_15:
	movq	8(%r13), %rax
	movq	_WINDOW_TYPE_EXT4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_19
## %bb.16:
	movq	32(%r13), %rax
	cmpl	$0, (%rax)
	jle	LBB0_20
## %bb.17:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_on2avc_reconstruct_channel
	incl	%ebx
	movq	32(%r13), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_18
	jmp	LBB0_21
LBB0_19:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_on2avc_reconstruct_channel_ext
LBB0_20:
	xorl	%r12d, %r12d
LBB0_21:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enh bit set\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_WINDOW_TYPE_8SHORT,8,3         ## @WINDOW_TYPE_8SHORT
	.comm	_WINDOW_TYPE_EXT4,8,3           ## @WINDOW_TYPE_EXT4
	.no_dead_strip	_on2avc_decode_subframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on2avc_decode_subframe
_on2avc_decode_subframe:                ; @on2avc_decode_subframe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x0
	add	x0, sp, #12
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_20
; %bb.1:
	add	x0, sp, #12
	bl	_get_bits1
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x21, #32]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_3:
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_20
LBB0_4:
	ldr	x8, [x21, #8]
	str	x8, [x21]
	add	x0, sp, #12
	mov	w1, #3
	bl	_get_bits
	str	x0, [x21, #8]
	ldr	x8, [x21, #48]
	mov	w9, #12
	madd	x8, x0, x9, x8
	ldr	w9, [x8]
	str	w9, [x21, #16]
	ldur	d0, [x8, #4]
	str	d0, [x21, #56]
Lloh8:
	adrp	x8, _WINDOW_TYPE_8SHORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WINDOW_TYPE_8SHORT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w8, ne
	str	w8, [x21, #20]
	ldr	x8, [x21, #24]
	mov	w9, #1
	str	w9, [x8]
	ldr	w8, [x21, #16]
	cmp	w8, #1
	b.le	LBB0_7
; %bb.5:
	mov	w22, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_get_bits1
	cmp	x0, #0
	cset	w8, eq
	ldr	x9, [x21, #24]
	str	w8, [x9, x22, lsl #2]
	add	x22, x22, #1
	ldrsw	x8, [x21, #16]
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_7:
	add	x1, sp, #12
	mov	x0, x21
	bl	_on2avc_read_ms_info
	ldr	x8, [x21, #32]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.8:
	mov	w22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x21
	mov	x2, x22
	bl	_on2avc_read_channel_data
	tbnz	w0, #31, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w22, w22, #1
	ldr	x8, [x21, #32]
	ldr	w8, [x8]
	cmp	w22, w8
	b.lt	LBB0_9
; %bb.11:
	cmp	w8, #2
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_on2avc_apply_ms
LBB0_14:
	ldr	x8, [x21, #8]
Lloh11:
	adrp	x9, _WINDOW_TYPE_EXT4@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WINDOW_TYPE_EXT4@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_18
; %bb.15:
	ldr	x8, [x21, #32]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.16:
	mov	w22, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_on2avc_reconstruct_channel
	add	w22, w22, #1
	ldr	x8, [x21, #32]
	ldr	w8, [x8]
	cmp	w22, w8
	b.lt	LBB0_17
	b	LBB0_19
LBB0_18:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_on2avc_reconstruct_channel_ext
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enh bit set\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_WINDOW_TYPE_8SHORT,8,3         ; @WINDOW_TYPE_8SHORT
	.comm	_WINDOW_TYPE_EXT4,8,3           ; @WINDOW_TYPE_EXT4
	.no_dead_strip	_on2avc_decode_subframe
.subsections_via_symbols
