	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_nal_units
_parse_nal_units:                       ## @parse_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	24(%rdi), %rbx
	leaq	24(%rbx), %rdi
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	$0, 8(%r12)
	movq	_AV_PICTURE_STRUCTURE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_ff_hevc_reset_sei
	movl	16(%rbx), %r9d
	movl	20(%rbx), %r8d
	movq	_AV_CODEC_ID_HEVC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rcx
	pushq	$0
	pushq	$1
	pushq	%rax
	callq	_ff_h2645_packet_split
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_11
## %bb.2:
	leaq	28(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	LJTI0_0(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_ff_hevc_decode_nal_sei
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movslq	(%rbx), %rax
	addq	$8, %r13
	cmpq	%rax, %r15
	jge	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rsi
	movl	(%rsi,%r13), %r8d
	leal	-128(%r8), %eax
	cmpl	$20, %eax
	ja	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rsi,%r13), %rdi
	addq	$4, %rdi
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r13, %rsi
	movq	%r12, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_hevc_parse_slice_header
	testl	%eax, %eax
	je	LBB0_10
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_ff_hevc_decode_nal_vps
	jmp	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_ff_hevc_decode_nal_sps
	jmp	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_ff_hevc_decode_nal_pps
	jmp	LBB0_10
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_av_log
	movl	$-1, %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_STRUCTURE_UNKNOWN,4,2 ## @AV_PICTURE_STRUCTURE_UNKNOWN
	.comm	_AV_CODEC_ID_HEVC,4,2           ## @AV_CODEC_ID_HEVC
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing picture in access unit with size %d\n"

	.no_dead_strip	_parse_nal_units
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_nal_units
_parse_nal_units:                       ; @parse_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, x3
	mov	x19, x2
	mov	x24, x1
	mov	x21, x0
	ldr	x22, [x0, #24]
	add	x23, x22, #24
Lloh0:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	xzr, [x0, #8]
Lloh3:
	adrp	x8, _AV_PICTURE_STRUCTURE_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PICTURE_STRUCTURE_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0]
	mov	x0, x23
	bl	_ff_hevc_reset_sei
	ldp	w5, w4, [x22, #16]
Lloh6:
	adrp	x8, _AV_CODEC_ID_HEVC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_CODEC_ID_HEVC@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
	str	wzr, [sp]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x19
	mov	x3, x20
	mov	w7, #1
	bl	_ff_h2645_packet_split
	tbnz	w0, #31, LBB0_12
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x25, #0
	mov	x26, #0
	add	x24, x22, #28
Lloh9:
	adrp	x27, lJTI0_0@PAGE
Lloh10:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x20
	mov	x2, x23
	mov	x3, x24
	bl	_ff_hevc_decode_nal_sei
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x22]
	add	x25, x25, #8
	cmp	x26, x8
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x1, x8, x25
	mov	x0, x1
	ldr	w4, [x0], #4
	sub	w8, w4, #128
	cmp	w8, #20
	b.hi	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x2, x20
	bl	_hevc_parse_slice_header
	cbz	w0, LBB0_4
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x20
	mov	x2, x24
	bl	_ff_hevc_decode_nal_vps
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x20
	mov	x2, x24
	mov	w3, #1
	bl	_ff_hevc_decode_nal_sps
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x20
	mov	x2, x24
	bl	_ff_hevc_decode_nal_pps
	b	LBB0_4
LBB0_11:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_av_log
	mov	w0, #-1
LBB0_12:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_STRUCTURE_UNKNOWN,4,2 ; @AV_PICTURE_STRUCTURE_UNKNOWN
	.comm	_AV_CODEC_ID_HEVC,4,2           ; @AV_CODEC_ID_HEVC
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing picture in access unit with size %d\n"

	.no_dead_strip	_parse_nal_units
.subsections_via_symbols
