	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h265_metadata_guess_level
_h265_metadata_guess_level:             ## @h265_metadata_guess_level
	.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	(%rdi), %r15
	movl	(%rsi), %eax
	testl	%eax, %eax
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rcx
	movq	_HEVC_NAL_VPS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r10
	movq	_HEVC_NAL_SPS@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r9
	movq	_HEVC_NAL_PPS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	shlq	$4, %rax
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	xorl	%r11d, %r11d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rcx,%rdx), %rsi
	leaq	96(%rsi), %r12
	movq	16(%rsi), %rbx
	movl	(%rbx), %r14d
	incl	%r14d
	movl	24(%rsi), %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	28(%rsi), %r13d
	leaq	48(%rsi), %rbx
	cmpq	$0, 88(%rsi)
	cmovneq	%rbx, %r15
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rax
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx), %rbx
	cmpq	%r10, %rbx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rcx,%rdx), %rbx
	leaq	96(%rbx), %r12
	movq	(%rbx), %rsi
	movl	(%rsi), %r14d
	incl	%r14d
	cmpq	$0, 8(%rbx)
	jle	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	104(%rbx), %r15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r9, %rbx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r8, %rbx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rcx,%rdx), %rbx
	cmpq	$0, 40(%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%rbx), %esi
	movl	36(%rbx), %r11d
	incl	%esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	incl	%r11d
	jmp	LBB0_11
LBB0_12:
	xorl	%esi, %esi
	testq	%r15, %r15
	je	LBB0_17
## %bb.13:
	cmpq	$0, 32(%r15)
	je	LBB0_15
## %bb.14:
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movl	$1, %edi
	movq	%r11, -64(%rbp)                 ## 8-byte Spill
	callq	_INT64_C
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movl	%eax, %esi
	movb	(%r15), %cl
	addb	$6, %cl
	shll	%cl, %esi
	imull	%ebx, %esi
	jmp	LBB0_17
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	xorl	%r14d, %r14d
	xorl	%r11d, %r11d
	xorl	%r9d, %r9d
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	jmp	LBB0_18
LBB0_15:
	cmpq	$0, 16(%r15)
	je	LBB0_17
## %bb.16:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movq	%r11, %rbx
	callq	_INT64_C
	movq	%rbx, %r11
	movb	(%r15), %cl
	addb	$6, %cl
	shll	%cl, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rdx,%rdx,4), %ecx
	leal	(%rdx,%rcx,2), %ecx
	addl	$11, %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
LBB0_17:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
LBB0_18:
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	pushq	%r14
	pushq	%r11
	callq	_ff_h265_guess_level
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%rax, %rbx
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movl	(%rbx), %eax
	movl	%eax, (%r15)
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEVC_NAL_VPS,8,3               ## @HEVC_NAL_VPS
	.comm	_HEVC_NAL_SPS,8,3               ## @HEVC_NAL_SPS
	.comm	_HEVC_NAL_PPS,8,3               ## @HEVC_NAL_PPS
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stream appears to conform to level %s.\n"

	.no_dead_strip	_h265_metadata_guess_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h265_metadata_guess_level
_h265_metadata_guess_level:             ; @h265_metadata_guess_level
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x26, [x0]
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x20, #0
	mov	x27, #0
	mov	w23, #0
	mov	w24, #0
	mov	w21, #0
	mov	w22, #0
	mov	w25, #0
	ldr	x12, [x1, #8]
Lloh0:
	adrp	x9, _HEVC_NAL_VPS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HEVC_NAL_VPS@GOTPAGEOFF]
Lloh2:
	adrp	x10, _HEVC_NAL_SPS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _HEVC_NAL_SPS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _HEVC_NAL_PPS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _HEVC_NAL_PPS@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	add	x12, x12, #8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x12]
	add	x20, x13, #96
	ldr	x14, [x13, #16]
	ldr	w14, [x14]
	add	w24, w14, #1
	ldp	w23, w25, [x13, #24]
	add	x14, x13, #48
	ldr	x13, [x13, #88]
	cmp	x13, #0
	csel	x27, x27, x14, eq
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x12, #16
	subs	x8, x8, #1
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x13, [x12, #-8]
	cmp	x13, x9
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x12]
	add	x20, x13, #96
	ldp	x14, x15, [x13]
	ldr	w14, [x14]
	add	w24, w14, #1
	cmp	x15, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x27, [x13, #104]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x13, x10
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x13, x11
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x12]
	ldr	x14, [x13, #40]
	cbz	x14, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldp	w14, w13, [x13, #32]
	add	w22, w14, #1
	add	w21, w13, #1
	b	LBB0_3
LBB0_11:
	cbz	x27, LBB0_15
; %bb.12:
	ldr	x8, [x27, #32]
	cbz	x8, LBB0_19
; %bb.13:
	ldr	x8, [x27, #24]
	ldr	x8, [x8]
	ldr	w28, [x8]
	mov	w0, #1
	bl	_INT64_C
	ldr	w8, [x27]
	add	w8, w8, #6
	lsl	w8, w0, w8
	madd	w1, w8, w28, w8
	b	LBB0_16
LBB0_14:
	mov	x20, #0
	mov	w23, #0
	mov	w24, #0
	mov	w21, #0
	mov	w22, #0
	mov	w25, #0
LBB0_15:
	mov	w1, #0
LBB0_16:
	mov	x0, x20
	mov	x2, x23
	mov	x3, x25
	mov	w4, #0
	mov	x5, x22
	mov	x6, x21
	mov	x7, x24
	bl	_ff_h265_guess_level
	cbz	x0, LBB0_18
; %bb.17:
	mov	x20, x0
Lloh9:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w3, [x0, #4]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w8, [x20]
	str	w8, [x26]
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	x8, [x27, #16]
	cbz	x8, LBB0_15
; %bb.20:
	ldr	x8, [x27, #8]
	ldr	x8, [x8]
	ldr	w28, [x8]
	mov	w0, #1
	bl	_INT64_C
	ldr	w8, [x27]
	add	w8, w8, #6
	lsl	w8, w0, w8
	mov	w9, #11
	mul	w9, w28, w9
	add	w9, w9, #11
	mul	w8, w9, w8
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HEVC_NAL_VPS,8,3               ; @HEVC_NAL_VPS
	.comm	_HEVC_NAL_SPS,8,3               ; @HEVC_NAL_SPS
	.comm	_HEVC_NAL_PPS,8,3               ; @HEVC_NAL_PPS
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stream appears to conform to level %s.\n"

	.no_dead_strip	_h265_metadata_guess_level
.subsections_via_symbols
