	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_decode_nal_units
_hevc_decode_nal_units:                 ## @hevc_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
	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, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movl	%esi, %edx
	movq	%rdi, %rsi
	movq	32(%rbp), %rcx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	_AV_CODEC_ID_HEVC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	-64(%rbp), %rdi
	pushq	$0
	pushq	$1
	pushq	%rax
	callq	_ff_h2645_packet_split
	addq	$32, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	cmpl	$0, -64(%rbp)
	jle	LBB0_12
## %bb.2:
	movl	$4, %r14d
	xorl	%r12d, %r12d
	leaq	LJTI0_0(%rip), %r15
	jmp	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r14, %rdi
	movq	32(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_ff_hevc_decode_nal_vps
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	-64(%rbp), %rax
	addq	$8, %r14
	cmpq	%rax, %r12
	jge	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi
	movl	-4(%rdi,%r14), %r8d
	leal	-128(%r8), %eax
	cmpl	$4, %eax
	ja	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r15,%rax,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r14, %rdi
	movq	32(%rbp), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_ff_hevc_decode_nal_sei
	jmp	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%rbp), %rdi
	leaq	L_.str(%rip), %rdx
	movl	%r8d, %ecx
	callq	_av_log
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r14, %rdi
	movq	32(%rbp), %rsi
	movq	%rbx, %rdx
	movl	24(%rbp), %ecx
	callq	_ff_hevc_decode_nal_sps
	jmp	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r14, %rdi
	movq	32(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_ff_hevc_decode_nal_pps
	jmp	LBB0_6
LBB0_12:
	leaq	-64(%rbp), %rdi
	callq	_ff_h2645_packet_uninit
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rcx
	movl	16(%rbp), %eax
	andl	(%rcx), %eax
	cmovnel	%r13d, %eax
	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_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_AV_CODEC_ID_HEVC,4,2           ## @AV_CODEC_ID_HEVC
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ignoring NAL type %d in extradata\n"

	.comm	_AV_EF_EXPLODE,4,2              ## @AV_EF_EXPLODE
	.no_dead_strip	_hevc_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 hevc_decode_nal_units
_hevc_decode_nal_units:                 ; @hevc_decode_nal_units
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x7
	mov	x19, x6
	mov	x21, x3
	mov	x22, x2
	mov	x2, x1
	mov	x1, x0
	ldr	x23, [x29, #16]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _AV_CODEC_ID_HEVC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CODEC_ID_HEVC@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
	str	wzr, [sp]
	add	x0, sp, #8
	mov	x3, x23
	mov	w7, #1
	bl	_ff_h2645_packet_split
	mov	x25, x0
	tbnz	w0, #31, LBB0_12
; %bb.1:
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.2:
	mov	x26, #0
	mov	x27, #0
Lloh3:
	adrp	x24, l_.str@PAGE
Lloh4:
	add	x24, x24, l_.str@PAGEOFF
Lloh5:
	adrp	x28, lJTI0_0@PAGE
Lloh6:
	add	x28, x28, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, x26
	add	x0, x8, #4
	mov	x1, x23
	mov	x2, x22
	bl	_ff_hevc_decode_nal_vps
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	tbnz	w0, #31, LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [sp, #8]
	add	x26, x26, #8
	cmp	x27, x8
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	ldr	w4, [x8, x26]
	sub	w9, w4, #128
	cmp	w9, #4
	b.hi	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	adr	x10, LBB0_3
	ldrb	w11, [x28, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, x26
	add	x0, x8, #4
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_ff_hevc_decode_nal_sei
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh7:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x24
	mov	x3, x4
	bl	_av_log
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, x26
	add	x0, x8, #4
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	bl	_ff_hevc_decode_nal_sps
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, x26
	add	x0, x8, #4
	mov	x1, x23
	mov	x2, x22
	bl	_ff_hevc_decode_nal_pps
	b	LBB0_4
LBB0_12:
	add	x0, sp, #8
	bl	_ff_h2645_packet_uninit
Lloh10:
	adrp	x8, _AV_EF_EXPLODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_EF_EXPLODE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w19
	csel	w0, wzr, w25, eq
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
                                        ; -- End function
	.comm	_AV_CODEC_ID_HEVC,4,2           ; @AV_CODEC_ID_HEVC
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ignoring NAL type %d in extradata\n"

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