	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_nalsize
_get_nalsize:                           ## @get_nalsize
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	movl	(%rcx), %r10d
	movl	%edx, %eax
	subl	%edi, %eax
	cmpl	%eax, %r10d
	jge	LBB0_4
## %bb.1:
	movl	%edx, %r9d
	testl	%edi, %edi
	jle	LBB0_5
## %bb.2:
	cmpl	$1, %edi
	jne	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
                                        ## implicit-def: $edx
                                        ## implicit-def: $eax
	testb	$1, %dil
	jne	LBB0_9
	jmp	LBB0_10
LBB0_4:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_6:
	movslq	%r10d, %rax
	movl	%r10d, %edx
	incl	%edx
	movslq	%edx, %rdx
	leaq	(%rsi,%rdx,4), %r11
	leaq	(%rsi,%rax,4), %r14
	movl	%edi, %r15d
	andl	$-2, %r15d
	xorl	%edx, %edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r10,%rdx), %ebx
	incl	%ebx
	movl	%ebx, (%rcx)
	movl	(%r14,%rdx,4), %ebx
	shll	$16, %eax
	shll	$8, %ebx
	orl	%ebx, %eax
	leal	(%r10,%rdx), %ebx
	addl	$2, %ebx
	movl	%ebx, (%rcx)
	orl	(%r11,%rdx,4), %eax
	addq	$2, %rdx
	cmpl	%edx, %r15d
	jne	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	shll	$8, %ebx
	addl	%r10d, %edx
	movl	%edx, %r10d
	testb	$1, %dil
	je	LBB0_10
LBB0_9:
	leal	1(%r10), %edx
	movl	%edx, (%rcx)
	movslq	%r10d, %rax
	orl	(%rsi,%rax,4), %ebx
	movl	%ebx, %eax
LBB0_10:
	testl	%eax, %eax
	jle	LBB0_12
## %bb.11:
	subl	%edx, %r9d
	cmpl	%r9d, %eax
	jg	LBB0_14
	jmp	LBB0_15
LBB0_12:
	movl	%edx, %r10d
LBB0_13:
	subl	%r10d, %r9d
LBB0_14:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r8, %rdi
	movl	%eax, %ecx
	movl	%r9d, %r8d
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid NAL unit size (%d > %d).\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_get_nalsize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_nalsize
_get_nalsize:                           ; @get_nalsize
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w9, [x3]
	sub	w8, w2, w0
	cmp	w9, w8
	b.ge	LBB0_6
; %bb.1:
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w8, #0
	sxtw	x9, w9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x9
	add	x9, x9, #1
	str	w9, [x3]
	ldr	w10, [x1, x10, lsl #2]
	orr	w8, w10, w8, lsl #8
	subs	w0, w0, #1
	b.ne	LBB0_3
; %bb.4:
	cmp	w8, #0
	b.le	LBB0_8
; %bb.5:
	mov	w10, w2
	sub	x9, x10, x9
	cmp	w8, w9
	b.gt	LBB0_10
	b	LBB0_11
LBB0_6:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_7:
	mov	w8, #0
	b	LBB0_9
LBB0_8:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_9:
	sub	w9, w2, w9
LBB0_10:
Lloh3:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x10]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x4
	mov	x3, x8
	mov	x4, x9
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
LBB0_11:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid NAL unit size (%d > %d).\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_get_nalsize
.subsections_via_symbols
