	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_profile_tier_level
_decode_profile_tier_level:             ## @decode_profile_tier_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_get_bits_left
	movl	%eax, %ecx
	movl	$-1, %eax
	cmpl	$88, %ecx
	jl	LBB0_18
## %bb.1:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%rax, 56(%r12)
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 48(%r12)
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, (%r12)
	movq	_FF_PROFILE_HEVC_MAIN@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_4
## %bb.2:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_3
LBB0_4:
	movq	_FF_PROFILE_HEVC_MAIN_10@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_6:
	movq	_FF_PROFILE_HEVC_MAIN_STILL_PICTURE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_3
LBB0_8:
	movq	_FF_PROFILE_HEVC_REXT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_10
## %bb.9:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_3:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	cmpq	$32, %rbx
	je	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_get_bits1
	movq	40(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	cmpl	$0, (%r12)
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	40(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%ebx, (%r12)
	jmp	LBB0_16
LBB0_17:
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 32(%r12)
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 24(%r12)
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 16(%r12)
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 8(%r12)
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_skip_bits
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_skip_bits
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_skip_bits
	xorl	%eax, %eax
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_PROFILE_HEVC_MAIN,4,2       ## @FF_PROFILE_HEVC_MAIN
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Main profile bitstream\n"

	.comm	_FF_PROFILE_HEVC_MAIN_10,4,2    ## @FF_PROFILE_HEVC_MAIN_10
L_.str.1:                               ## @.str.1
	.asciz	"Main 10 profile bitstream\n"

	.comm	_FF_PROFILE_HEVC_MAIN_STILL_PICTURE,4,2 ## @FF_PROFILE_HEVC_MAIN_STILL_PICTURE
L_.str.2:                               ## @.str.2
	.asciz	"Main Still Picture profile bitstream\n"

	.comm	_FF_PROFILE_HEVC_REXT,4,2       ## @FF_PROFILE_HEVC_REXT
L_.str.3:                               ## @.str.3
	.asciz	"Range Extension profile bitstream\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"Unknown HEVC profile: %d\n"

	.no_dead_strip	_decode_profile_tier_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_profile_tier_level
_decode_profile_tier_level:             ; @decode_profile_tier_level
	.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, x2
	mov	x21, x1
	mov	x19, x0
	bl	_get_bits_left
	cmp	w0, #88
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_17
LBB0_2:
	mov	x0, x19
	mov	w1, #2
	bl	_get_bits
	str	x0, [x20, #56]
	mov	x0, x19
	bl	_get_bits1
	str	x0, [x20, #48]
	mov	x0, x19
	mov	w1, #5
	bl	_get_bits
	str	w0, [x20]
Lloh0:
	adrp	x8, _FF_PROFILE_HEVC_MAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FF_PROFILE_HEVC_MAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_4:
Lloh8:
	adrp	x8, _FF_PROFILE_HEVC_MAIN_10@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FF_PROFILE_HEVC_MAIN_10@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_6:
Lloh16:
	adrp	x8, _FF_PROFILE_HEVC_MAIN_STILL_PICTURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FF_PROFILE_HEVC_MAIN_STILL_PICTURE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh24:
	adrp	x8, _FF_PROFILE_HEVC_REXT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FF_PROFILE_HEVC_REXT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_10
; %bb.9:
Lloh27:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh32:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh35:
	adrp	x2, l_.str.4@PAGE
Lloh36:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_11:
	mov	x0, x21
	bl	_av_log
	mov	x21, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #1
	cmp	x21, #32
	b.eq	LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_get_bits1
	ldr	x8, [x20, #40]
	str	x0, [x8, x21, lsl #3]
	ldr	w8, [x20]
	cmp	w8, #0
	ccmp	x21, #0, #4, eq
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x20, #40]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	str	w21, [x20]
	b	LBB0_12
LBB0_16:
	mov	x0, x19
	bl	_get_bits1
	str	x0, [x20, #32]
	mov	x0, x19
	bl	_get_bits1
	str	x0, [x20, #24]
	mov	x0, x19
	bl	_get_bits1
	str	x0, [x20, #16]
	mov	x0, x19
	bl	_get_bits1
	str	x0, [x20, #8]
	mov	x0, x19
	mov	w1, #16
	bl	_skip_bits
	mov	x0, x19
	mov	w1, #16
	bl	_skip_bits
	mov	x0, x19
	mov	w1, #12
	bl	_skip_bits
	mov	w0, #0
LBB0_17:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_PROFILE_HEVC_MAIN,4,2       ; @FF_PROFILE_HEVC_MAIN
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Main profile bitstream\n"

	.comm	_FF_PROFILE_HEVC_MAIN_10,4,2    ; @FF_PROFILE_HEVC_MAIN_10
l_.str.1:                               ; @.str.1
	.asciz	"Main 10 profile bitstream\n"

	.comm	_FF_PROFILE_HEVC_MAIN_STILL_PICTURE,4,2 ; @FF_PROFILE_HEVC_MAIN_STILL_PICTURE
l_.str.2:                               ; @.str.2
	.asciz	"Main Still Picture profile bitstream\n"

	.comm	_FF_PROFILE_HEVC_REXT,4,2       ; @FF_PROFILE_HEVC_REXT
l_.str.3:                               ; @.str.3
	.asciz	"Range Extension profile bitstream\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"Unknown HEVC profile: %d\n"

	.no_dead_strip	_decode_profile_tier_level
.subsections_via_symbols
