	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_parse_nal_header
_hevc_parse_nal_header:                 ## @hevc_parse_nal_header
	.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	%rsi, %r14
	movq	%rdi, %r12
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_get_bits
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_get_bits
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	movl	%ecx, 4(%r12)
	testl	%eax, %eax
	jle	LBB0_1
## %bb.3:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r12), %ebx
	movl	%ebx, %edi
	callq	_hevc_nal_unit_name
	movl	4(%r12), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movl	%r15d, %r9d
	callq	_av_log
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nal_unit_type: %d(%s), nuh_layer_id: %d, temporal_id: %d\n"

	.no_dead_strip	_hevc_parse_nal_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_parse_nal_header
_hevc_parse_nal_header:                 ; @hevc_parse_nal_header
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	add	x22, x0, #8
	mov	x0, x22
	bl	_get_bits1
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_2:
	mov	x0, x22
	mov	w1, #6
	bl	_get_bits
	str	w0, [x20]
	mov	x0, x22
	mov	w1, #6
	bl	_get_bits
	mov	x21, x0
	mov	x0, x22
	mov	w1, #3
	bl	_get_bits
	sub	w8, w0, #1
	str	w8, [x20, #4]
	cmp	w0, #0
	b.le	LBB0_1
; %bb.3:
Lloh3:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	w23, [x20]
	mov	x0, x23
	bl	_hevc_nal_unit_name
	mov	x4, x0
	ldr	w6, [x20, #4]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x3, x23
	mov	x5, x21
	bl	_av_log
	cmp	w21, #0
	cset	w0, eq
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nal_unit_type: %d(%s), nuh_layer_id: %d, temporal_id: %d\n"

	.no_dead_strip	_hevc_parse_nal_header
.subsections_via_symbols
