	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h265_metadata_update_vps
_h265_metadata_update_vps:              ## @h265_metadata_update_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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	16(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_INT_MAX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r8
	cmpq	%r8, %rax
	cmovgq	%rax, %r8
	leaq	-32(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	callq	_av_reduce
	movl	-32(%rbp), %eax
	movl	%eax, (%rbx)
	movl	-28(%rbp), %eax
	movl	%eax, 4(%rbx)
	movl	$1, 8(%rbx)
	movq	(%r15), %rax
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	decq	%rax
	movq	%rax, 16(%rbx)
	movl	$1, %eax
LBB0_6:
	movl	%eax, 24(%rbx)
	jmp	LBB0_7
LBB0_4:
	je	LBB0_5
LBB0_7:
	addq	$28, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_h265_metadata_update_level
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT32_MAX,8,3                 ## @UINT32_MAX
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.no_dead_strip	_h265_metadata_update_vps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h265_metadata_update_vps
_h265_metadata_update_vps:              ; @h265_metadata_update_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
	ldr	x21, [x0]
	ldr	x2, [x21, #16]
	cbz	x2, LBB0_6
; %bb.1:
	ldr	x3, [x21, #8]
	cbz	x3, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _UINT32_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x4, x8, x9, gt
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_av_reduce
	ldp	w9, w8, [sp, #8]
	stp	w8, w9, [x20]
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	x8, [x21]
	subs	x9, x8, #1
	b.lt	LBB0_4
; %bb.3:
	str	x9, [x20, #16]
	mov	w8, #1
	b	LBB0_5
LBB0_4:
	cbnz	x8, LBB0_6
LBB0_5:
	str	w8, [x20, #24]
LBB0_6:
	add	x1, x20, #28
	mov	x0, x19
	bl	_h265_metadata_update_level
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT32_MAX,8,3                 ; @UINT32_MAX
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.no_dead_strip	_h265_metadata_update_vps
.subsections_via_symbols
