	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h265_metadata_update_level
_h265_metadata_update_level:            ## @h265_metadata_update_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	(%r15), %rbx
	movq	_LEVEL_UNSET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	movq	_LEVEL_AUTO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_5
## %bb.2:
	movl	8(%r15), %ebx
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.3:
	movl	$255, %ebx
	cmpl	$0, 12(%r15)
	jne	LBB0_5
## %bb.4:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movl	$1, 12(%r15)
LBB0_5:
	movl	%ebx, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEVEL_UNSET,8,3                ## @LEVEL_UNSET
	.comm	_LEVEL_AUTO,8,3                 ## @LEVEL_AUTO
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to determine level of stream: using level 8.5.\n"

	.no_dead_strip	_h265_metadata_update_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_update_level
_h265_metadata_update_level:            ; @h265_metadata_update_level
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _LEVEL_UNSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LEVEL_UNSET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x1
Lloh3:
	adrp	x9, _LEVEL_AUTO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LEVEL_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_6
; %bb.3:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	w8, #1
	str	w8, [x20, #12]
LBB0_5:
	mov	w8, #255
LBB0_6:
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LEVEL_UNSET,8,3                ; @LEVEL_UNSET
	.comm	_LEVEL_AUTO,8,3                 ; @LEVEL_AUTO
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to determine level of stream: using level 8.5.\n"

	.no_dead_strip	_h265_metadata_update_level
.subsections_via_symbols
