	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_last_needed_nal
_get_last_needed_nal:                   ## @get_last_needed_nal
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rdi)
	jle	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	leaq	-60(%rbp), %r13
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	8(%rdi), %rax
	addq	$12, %r15
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdi), %r12
	movl	(%r12,%r15), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$26, %ecx
	btl	%eax, %ecx
	jae	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12,%r15), %edx
	movl	8(%r12,%r15), %esi
	incl	%esi
	decl	%edx
	movq	%r13, %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rbx
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	testl	%eax, %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	(%r12,%r15), %ecx
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12,%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	%r12, %rdi
	movq	(%r12), %rax
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.9:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %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	"Invalid zero-sized VCL NAL unit\n"

	.comm	_AV_EF_EXPLODE,4,2              ## @AV_EF_EXPLODE
	.no_dead_strip	_get_last_needed_nal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_last_needed_nal
_get_last_needed_nal:                   ; @get_last_needed_nal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	mov	x24, #0
	mov	w20, #0
	mov	w25, #0
	mov	w26, #1
	mov	w27, #26
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19, #8]
	add	x23, x23, #12
	cmp	x24, x8
	b.ge	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x19, #16]
	ldr	w8, [x28, x23]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w8, w26, w8
	tst	w8, w27
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x28, x23
	ldp	w8, w9, [x8, #4]
	add	w1, w9, #1
	sub	w2, w8, #1
	add	x0, sp, #12
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_get_ue_golomb_long
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w25, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28, x23]
	cmp	w25, w8
	b.eq	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x24
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w25, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x28, x23]
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_av_log
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AV_EF_EXPLODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_EF_EXPLODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.14:
	mov	x20, x22
	b	LBB0_16
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid zero-sized VCL NAL unit\n"

	.comm	_AV_EF_EXPLODE,4,2              ; @AV_EF_EXPLODE
	.no_dead_strip	_get_last_needed_nal
.subsections_via_symbols
