	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_encode_nal_vps         ## -- Begin function ff_hevc_encode_nal_vps
	.p2align	4, 0x90
_ff_hevc_encode_nal_vps:                ## @ff_hevc_encode_nal_vps
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	-28(%rbp), %r14
	movq	%r14, %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_init_put_bits
	movq	%r14, %rdi
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$3, %edx
	callq	_put_bits
	movl	(%r15), %edx
	decl	%edx
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_put_bits
	movl	4(%r15), %edx
	decl	%edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_put_bits
	movl	8(%r15), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_put_bits
	leaq	72(%r15), %rsi
	movl	4(%r15), %edx
	movq	%r14, %rdi
	callq	_write_ptl
	movl	12(%r15), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_put_bits
	xorl	%eax, %eax
	cmpl	$0, 12(%r15)
	je	LBB0_1
## %bb.2:
	cmpl	4(%r15), %eax
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
	movl	(%r15), %eax
	decl	%eax
	cmpl	4(%r15), %eax
	jge	LBB0_5
LBB0_3:
	movslq	%eax, %rbx
	leaq	-28(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	decl	%esi
	movq	%r14, %rdi
	callq	_set_ue_golomb
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_set_ue_golomb
	movq	32(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	incl	%esi
	movq	%r14, %rdi
	callq	_set_ue_golomb
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movl	40(%r15), %edx
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_put_bits
	movl	44(%r15), %esi
	decl	%esi
	movq	%rbx, %rdi
	callq	_set_ue_golomb
	cmpl	$2, 44(%r15)
	jl	LBB0_8
## %bb.6:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_8:
	movl	48(%r15), %edx
	leaq	-28(%rbp), %rdi
	movl	$1, %esi
	callq	_put_bits
	cmpl	$0, 48(%r15)
	je	LBB0_13
## %bb.9:
	movl	68(%r15), %esi
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_put_bits32
	movl	64(%r15), %esi
	movq	%rbx, %rdi
	callq	_put_bits32
	movl	52(%r15), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
	cmpl	$0, 52(%r15)
	je	LBB0_11
## %bb.10:
	movl	56(%r15), %esi
	decl	%esi
	leaq	-28(%rbp), %rdi
	callq	_set_ue_golomb
LBB0_11:
	movl	60(%r15), %esi
	leaq	-28(%rbp), %rdi
	callq	_set_ue_golomb
	cmpl	$0, 60(%r15)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	xorl	%edi, %edi
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_13:
	leaq	-28(%rbp), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r14, %rdi
	callq	_avpriv_align_put_bits
	movq	%r14, %rdi
	callq	_put_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
	movq	%r14, %rdi
	callq	_flush_put_bits
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Writing layer_id_included_flag"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
L_.str.1:                               ## @.str.1
	.asciz	"Writing HRD parameters"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_encode_nal_vps         ; -- Begin function ff_hevc_encode_nal_vps
	.p2align	2
_ff_hevc_encode_nal_vps:                ; @ff_hevc_encode_nal_vps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #12
	mov	x1, x2
	mov	x2, x3
	bl	_init_put_bits
	add	x0, sp, #12
	mov	w1, #4
	mov	x2, x20
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #2
	mov	w2, #3
	bl	_put_bits
	ldr	w8, [x19]
	sub	w2, w8, #1
	add	x0, sp, #12
	mov	w1, #6
	bl	_put_bits
	ldr	w8, [x19, #4]
	sub	w2, w8, #1
	add	x0, sp, #12
	mov	w1, #3
	bl	_put_bits
	ldr	w2, [x19, #8]
	add	x0, sp, #12
	mov	w1, #1
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #16
	mov	w2, #65535
	bl	_put_bits
	add	x1, x19, #72
	ldr	w2, [x19, #4]
	add	x0, sp, #12
	bl	_write_ptl
	ldr	w2, [x19, #12]
	add	x0, sp, #12
	mov	w1, #1
	bl	_put_bits
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19]
	sub	w8, w8, #1
LBB0_3:
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.4:
	sxtw	x20, w8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	lsl	x21, x20, #2
	ldr	w8, [x8, x21]
	sub	w1, w8, #1
	add	x0, sp, #12
	bl	_set_ue_golomb
	ldr	x8, [x19, #24]
	ldr	w1, [x8, x21]
	add	x0, sp, #12
	bl	_set_ue_golomb
	ldr	x8, [x19, #32]
	ldr	w8, [x8, x21]
	add	w1, w8, #1
	add	x0, sp, #12
	bl	_set_ue_golomb
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	w2, [x19, #40]
	add	x0, sp, #12
	mov	w1, #6
	bl	_put_bits
	ldr	w8, [x19, #44]
	sub	w1, w8, #1
	add	x0, sp, #12
	bl	_set_ue_golomb
	ldr	w8, [x19, #44]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.7:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_8:
	ldr	w2, [x19, #48]
	add	x0, sp, #12
	mov	w1, #1
	bl	_put_bits
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_14
; %bb.9:
	ldr	w1, [x19, #68]
	add	x0, sp, #12
	bl	_put_bits32
	ldr	w1, [x19, #64]
	add	x0, sp, #12
	bl	_put_bits32
	ldr	w2, [x19, #52]
	add	x0, sp, #12
	mov	w1, #1
	bl	_put_bits
	ldr	w8, [x19, #52]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	w8, [x19, #56]
	sub	w1, w8, #1
	add	x0, sp, #12
	bl	_set_ue_golomb
LBB0_11:
	ldr	w1, [x19, #60]
	add	x0, sp, #12
	bl	_set_ue_golomb
	ldr	w8, [x19, #60]
	cbz	w8, LBB0_14
; %bb.12:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, #0
	bl	_avpriv_report_missing_feature
Lloh4:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
	b	LBB0_15
LBB0_14:
	add	x0, sp, #12
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	add	x0, sp, #12
	bl	_avpriv_align_put_bits
	add	x0, sp, #12
	bl	_put_bits_count
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w19, w8, #3
	add	x0, sp, #12
	bl	_flush_put_bits
LBB0_15:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Writing layer_id_included_flag"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
l_.str.1:                               ; @.str.1
	.asciz	"Writing HRD parameters"

.subsections_via_symbols
