	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_ptl
_parse_ptl:                             ## @parse_ptl
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	24(%rdx), %r13
	movq	%r13, %rdx
	callq	_decode_profile_tier_level
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_get_bits_left
	xorl	%ecx, %ecx
	cmpl	$2, %r14d
	setge	%cl
	shll	$4, %ecx
	orl	$8, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_5
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_3:
	movl	$-1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, %rcx
	xorl	%eax, %eax
	movq	%rcx, (%r13)
	cmpl	$2, %r14d
	jl	LBB0_4
## %bb.6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leal	-1(%r14), %eax
	movl	%eax, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_get_bits1
	movq	16(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r12, %rdi
	callq	_get_bits1
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_7
## %bb.8:
	leal	-2(%r14), %eax
	cmpl	$6, %eax
	ja	LBB0_11
## %bb.9:
	addl	$-9, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_skip_bits
	incl	%r14d
	jne	LBB0_10
LBB0_11:
	negq	%r13
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	decq	%rbx
	addq	$8, %r14
	cmpq	%rbx, %r13
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	cmpq	$0, (%rax,%r14)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r15), %rdx
	addq	%r14, %rdx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_decode_profile_tier_level
	testq	%rax, %rax
	js	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r15), %rax
	cmpq	$0, (%rax,%r14)
	je	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	callq	_get_bits_left
	cmpl	$7, %eax
	jle	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%r14)
	jmp	LBB0_12
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_19:
	negl	%ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_21
LBB0_20:
	negl	%ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PTL information too short\n"

L_.str.1:                               ## @.str.1
	.asciz	"PTL information for sublayer %i too short\n"

L_.str.2:                               ## @.str.2
	.asciz	"Not enough data for sublayer %i level_idc\n"

	.no_dead_strip	_parse_ptl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_ptl
_parse_ptl:                             ; @parse_ptl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x23, x2, #24
	mov	x2, x23
	bl	_decode_profile_tier_level
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_get_bits_left
	subs	w24, w22, #1
	mov	w8, #8
	mov	w9, #24
	csel	w8, w9, w8, gt
	cmp	w0, w8
	b.ge	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_av_log
	mov	w0, #-1
	b	LBB0_24
LBB0_4:
	mov	x0, x21
	mov	w1, #8
	bl	_get_bits
	str	x0, [x23]
	subs	w23, w22, #2
	b.lt	LBB0_23
; %bb.5:
	mov	x25, #0
	lsl	x26, x24, #3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_get_bits1
	ldr	x8, [x20, #16]
	str	x0, [x8, x25]
	mov	x0, x21
	bl	_get_bits1
	ldr	x8, [x20, #8]
	str	x0, [x8, x25]
	add	x25, x25, #8
	cmp	x26, x25
	b.ne	LBB0_6
; %bb.7:
	cmp	w23, #6
	b.hi	LBB0_15
; %bb.8:
	mov	x0, x21
	mov	w1, #2
	bl	_skip_bits
	cmp	w22, #8
	b.eq	LBB0_15
; %bb.9:
	mov	x0, x21
	mov	w1, #2
	bl	_skip_bits
	cmp	w22, #7
	b.eq	LBB0_15
; %bb.10:
	mov	x0, x21
	mov	w1, #2
	bl	_skip_bits
	cmp	w22, #6
	b.eq	LBB0_15
; %bb.11:
	mov	x0, x21
	mov	w1, #2
	bl	_skip_bits
	cmp	w22, #5
	b.eq	LBB0_15
; %bb.12:
	mov	x0, x21
	mov	w1, #2
	bl	_skip_bits
	cmp	w22, #4
	b.eq	LBB0_15
; %bb.13:
	mov	x0, x21
	mov	w1, #2
	bl	_skip_bits
	cmp	w22, #3
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x21
	mov	w1, #2
	bl	_skip_bits
LBB0_15:
	mov	x23, #0
	mov	x22, #0
	neg	x24, x24
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x21
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x20]
	str	x0, [x8, x23]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	sub	x22, x22, #1
	add	x23, x23, #8
	cmp	x24, x22
	b.eq	LBB0_23
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x23]
	cbz	x8, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x20]
	add	x2, x8, x23
	mov	x0, x21
	mov	x1, x19
	bl	_decode_profile_tier_level
	tbnz	x0, #63, LBB0_25
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23]
	cbz	x8, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x21
	bl	_get_bits_left
	cmp	w0, #7
	b.gt	LBB0_16
; %bb.22:
	neg	x8, x22
Lloh5:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_23:
	mov	w0, #0
LBB0_24:
	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
	add	sp, sp, #96
	ret
LBB0_25:
	neg	x8, x22
Lloh10:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PTL information too short\n"

l_.str.1:                               ; @.str.1
	.asciz	"PTL information for sublayer %i too short\n"

l_.str.2:                               ; @.str.2
	.asciz	"Not enough data for sublayer %i level_idc\n"

	.no_dead_strip	_parse_ptl
.subsections_via_symbols
