	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_subframe_length
_decode_subframe_length:                ## @decode_subframe_length
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %ecx
	movl	4(%rdi), %eax
	subl	%eax, %ecx
	cmpl	%esi, %ecx
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	leaq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_10
## %bb.2:
	cmpq	$0, 32(%rbx)
	je	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	16(%rbx), %rsi
	decq	%rsi
	movq	%r14, %rdi
	callq	_get_bits
	movl	%eax, %ecx
	incl	%ecx
	jmp	LBB0_7
LBB0_6:
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_get_bits
	movl	%eax, %ecx
	jmp	LBB0_7
LBB0_4:
	xorl	%ecx, %ecx
LBB0_7:
	movl	(%rbx), %edx
	movl	%edx, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	cmpl	4(%rbx), %eax
	jl	LBB0_9
## %bb.8:
	cmpl	%edx, %eax
	jle	LBB0_11
LBB0_9:
	movl	8(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_av_log
LBB0_10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"broken frame: subframe_len %i\n"

	.no_dead_strip	_decode_subframe_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_subframe_length
_decode_subframe_length:                ; @decode_subframe_length
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	w8, w3, [x0]
	sub	w8, w8, w3
	cmp	w8, w1
	b.eq	LBB0_10
; %bb.1:
	mov	x19, x0
	add	x20, x0, #24
	mov	x0, x20
	bl	_get_bits_left
	cmp	w0, #0
	b.le	LBB0_9
; %bb.2:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
	sub	x1, x8, #1
	mov	x0, x20
	bl	_get_bits
	add	w0, w0, #1
	b	LBB0_6
LBB0_5:
	ldr	x1, [x19, #16]
	mov	x0, x20
	bl	_get_bits
LBB0_6:
	ldp	w8, w9, [x19]
	asr	w3, w8, w0
	cmp	w3, w9
	b.lt	LBB0_8
; %bb.7:
	cmp	w3, w8
	b.le	LBB0_10
LBB0_8:
	ldr	w0, [x19, #8]
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_9:
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
LBB0_10:
	mov	x0, x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"broken frame: subframe_len %i\n"

	.no_dead_strip	_decode_subframe_length
.subsections_via_symbols
