	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_nal_units
_decode_nal_units:                      ## @decode_nal_units
	.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
	movq	%rdi, %r12
	movq	$0, 24(%rdi)
	movl	4(%rdi), %eax
	movl	%eax, (%rdi)
	movq	$0, 4(%rdi)
	leaq	40(%rdi), %rbx
	movq	32(%rdi), %rcx
	movl	60(%rdi), %r8d
	movl	56(%rdi), %r9d
	movl	8(%rcx), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	pushq	$0
	pushq	$1
	pushq	%rax
	callq	_ff_h2645_packet_split
	addq	$32, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_32
## %bb.2:
	movq	%rbx, %r11
	movq	48(%r12), %rcx
	movq	_HEVC_NAL_EOB_NUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpl	$1, %r8d
	jne	LBB0_5
## %bb.3:
	movl	$1, %edi
	xorl	%esi, %esi
LBB0_17:
	testb	$1, %r8b
	je	LBB0_23
## %bb.18:
	movq	(%rcx,%rsi,8), %rax
	cmpq	%rdx, %rax
	je	LBB0_20
## %bb.19:
	movq	_HEVC_NAL_EOS_NUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
LBB0_20:
	testl	%edi, %edi
	je	LBB0_22
## %bb.21:
	movl	$1, (%r12)
	jmp	LBB0_23
LBB0_4:
	movq	32(%r12), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_35
LBB0_5:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	movl	$1, %edi
	xorl	%esi, %esi
	movq	_HEVC_NAL_EOS_NUT@GOTPCREL(%rip), %r9
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, 4(%r12)
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %r10
	je	LBB0_17
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rax
	movb	$1, %bl
	cmpq	%rdx, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	(%r9), %rax
	jne	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	testl	%edi, %edi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, 4(%r12)
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rcx,%rsi,8), %rax
	xorl	%edi, %edi
	cmpq	%rdx, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	(%r9), %rax
	jne	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	%bl, %bl
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, (%r12)
	movl	$1, %edi
	jmp	LBB0_16
LBB0_22:
	movl	$1, 4(%r12)
LBB0_23:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%r11, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	(%r13,%rbx,8), %rdi
	callq	_ff_hevc_nal_is_nonref
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_27
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rbx
	movslq	(%r11), %rax
	addq	$8, %r15
	cmpq	%rax, %rbx
	jge	LBB0_32
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movq	(%rax), %rax
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	48(%r12), %r13
	movq	_AVDISCARD_NONREF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	addq	%r15, %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_decode_nal_unit
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$3, 8(%r12)
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	jl	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jns	LBB0_31
LBB0_30:
	movq	32(%r12), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_32:
	movq	24(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.33:
	movq	16(%r12), %rax
	movq	_FF_THREAD_FRAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
## %bb.34:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ff_thread_report_progress
LBB0_35:
	movl	%r14d, %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	"Error splitting the input into NAL units.\n"

	.comm	_HEVC_NAL_EOB_NUT,8,3           ## @HEVC_NAL_EOB_NUT
	.comm	_HEVC_NAL_EOS_NUT,8,3           ## @HEVC_NAL_EOS_NUT
	.comm	_AVDISCARD_ALL,8,3              ## @AVDISCARD_ALL
	.comm	_AVDISCARD_NONREF,8,3           ## @AVDISCARD_NONREF
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Error parsing NAL unit #%d.\n"

	.comm	_FF_THREAD_FRAME,8,3            ## @FF_THREAD_FRAME
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_decode_nal_units
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_nal_units
_decode_nal_units:                      ; @decode_nal_units
	.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
	mov	x20, x0
	str	xzr, [x0, #24]
	ldr	w8, [x0, #4]
	stp	wzr, wzr, [x0, #4]
	str	w8, [x0]
	add	x21, x0, #40
	ldr	x3, [x0, #32]
	ldp	w5, w4, [x0, #56]
	ldr	w6, [x3, #8]
	str	wzr, [sp]
	mov	x0, x21
	mov	w7, #1
	bl	_ff_h2645_packet_split
	mov	x19, x0
	tbnz	w0, #31, LBB0_21
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.2:
Lloh0:
	adrp	x10, _HEVC_NAL_EOB_NUT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HEVC_NAL_EOB_NUT@GOTPAGEOFF]
	ldr	x9, [x20, #48]
Lloh2:
	ldr	x10, [x10]
	mov	w11, #1
Lloh3:
	adrp	x12, _HEVC_NAL_EOS_NUT@GOTPAGE
Lloh4:
	ldr	x12, [x12, _HEVC_NAL_EOS_NUT@GOTPAGEOFF]
	mov	w13, #1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w13, #0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x9]
	ldr	x15, [x12]
	cmp	x14, x10
	ccmp	x14, x15, #4, ne
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w13, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w13, #1
	str	w13, [x20]
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w11, [x20, #4]
	b	LBB0_4
LBB0_9:
	mov	x23, #0
	mov	x22, #0
Lloh5:
	adrp	x24, _AVDISCARD_ALL@GOTPAGE
Lloh6:
	ldr	x24, [x24, _AVDISCARD_ALL@GOTPAGEOFF]
Lloh7:
	adrp	x25, _AVDISCARD_NONREF@GOTPAGE
Lloh8:
	ldr	x25, [x25, _AVDISCARD_NONREF@GOTPAGEOFF]
Lloh9:
	adrp	x26, _AVERROR_INVALIDDATA@GOTPAGE
Lloh10:
	ldr	x26, [x26, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x27, x22, lsl #3]
	bl	_ff_hevc_nal_is_nonref
	cbz	x0, LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	x23, x23, #8
	cmp	x22, x8
	b.ge	LBB0_18
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x27, [x20, #48]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ge	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x1, x27, x23
	mov	x0, x20
	bl	_decode_nal_unit
	mov	x19, x0
	tbnz	w0, #31, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x20, #8]
	cmp	w8, #3
	b.lt	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w19, [x26]
	tbz	w19, #31, LBB0_11
LBB0_17:
	ldr	x0, [x20, #32]
Lloh11:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	str	x22, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
LBB0_18:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_22
; %bb.19:
	ldr	x8, [x20, #16]
Lloh16:
	adrp	x9, _FF_THREAD_FRAME@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FF_THREAD_FRAME@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.20:
Lloh19:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_ff_thread_report_progress
	b	LBB0_22
LBB0_21:
	ldr	x0, [x20, #32]
Lloh22:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_22:
	mov	x0, x19
	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 AdrpLdrGot	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 AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error splitting the input into NAL units.\n"

	.comm	_HEVC_NAL_EOB_NUT,8,3           ; @HEVC_NAL_EOB_NUT
	.comm	_HEVC_NAL_EOS_NUT,8,3           ; @HEVC_NAL_EOS_NUT
	.comm	_AVDISCARD_ALL,8,3              ; @AVDISCARD_ALL
	.comm	_AVDISCARD_NONREF,8,3           ; @AVDISCARD_NONREF
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Error parsing NAL unit #%d.\n"

	.comm	_FF_THREAD_FRAME,8,3            ; @FF_THREAD_FRAME
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_decode_nal_units
.subsections_via_symbols
