	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hvcc_parse_ptl
_hvcc_parse_ptl:                        ## @hvcc_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HEVC_MAX_SUB_LAYERS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%rax, -80(%rbp)
	movq	%r13, %rdi
	callq	_get_bits1
	movq	%rax, -88(%rbp)
	movq	%r13, %rdi
	movl	$5, %esi
	callq	_get_bits
	movq	%rax, -96(%rbp)
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_get_bits_long
	movl	%eax, -100(%rbp)
	movq	%r13, %rdi
	movl	$48, %esi
	callq	_get_bits64
	movl	%eax, -104(%rbp)
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, -112(%rbp)
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	callq	_hvcc_update_ptl
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_get_bits1
	movq	%rax, (%r15,%rbx,8)
	movq	%r13, %rdi
	callq	_get_bits1
	movq	%rax, (%r12,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_2
## %bb.3:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leal	-1(%rbx), %eax
	cmpl	$6, %eax
	ja	LBB0_6
## %bb.4:
	addl	$-8, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_skip_bits
	incl	%ebx
	jne	LBB0_5
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_skip_bits_long
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_skip_bits_long
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_skip_bits
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, (%r12,%rbx,8)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_skip_bits
	jmp	LBB0_11
LBB0_12:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HEVC_MAX_SUB_LAYERS,4,2        ## @HEVC_MAX_SUB_LAYERS
	.no_dead_strip	_hvcc_parse_ptl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hvcc_parse_ptl
_hvcc_parse_ptl:                        ; @hvcc_parse_ptl
	.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
	sub	sp, sp, #48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x12, _HEVC_MAX_SUB_LAYERS@GOTPAGE
Lloh4:
	ldr	x12, [x12, _HEVC_MAX_SUB_LAYERS@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	w8, [x12]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x24, x9, x8
	mov	sp, x24
	mov	w1, #2
	bl	_get_bits
	stur	x0, [x29, #-96]
	mov	x0, x19
	bl	_get_bits1
	stur	x0, [x29, #-104]
	mov	x0, x19
	mov	w1, #5
	bl	_get_bits
	stur	x0, [x29, #-112]
	mov	x0, x19
	mov	w1, #32
	bl	_get_bits_long
	stur	w0, [x29, #-116]
	mov	x0, x19
	mov	w1, #48
	bl	_get_bits64
	stur	w0, [x29, #-120]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	stur	x0, [x29, #-128]
	sub	x1, x29, #128
	mov	x0, x21
	bl	_hvcc_update_ptl
	cbz	w20, LBB0_16
; %bb.1:
	mov	w21, w20
	mov	x25, x21
	mov	x26, x24
	mov	x27, x23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_get_bits1
	str	x0, [x27], #8
	mov	x0, x19
	bl	_get_bits1
	str	x0, [x26], #8
	subs	x25, x25, #1
	b.ne	LBB0_2
; %bb.3:
	sub	w8, w20, #1
	cmp	w8, #6
	b.hi	LBB0_12
; %bb.4:
	mov	x0, x19
	mov	w1, #2
	bl	_skip_bits
	cmp	w20, #7
	b.eq	LBB0_12
; %bb.5:
	mov	x0, x19
	mov	w1, #2
	bl	_skip_bits
	cmp	w20, #6
	b.eq	LBB0_12
; %bb.6:
	mov	x0, x19
	mov	w1, #2
	bl	_skip_bits
	cmp	w20, #5
	b.eq	LBB0_12
; %bb.7:
	mov	x0, x19
	mov	w1, #2
	bl	_skip_bits
	cmp	w20, #4
	b.eq	LBB0_12
; %bb.8:
	mov	x0, x19
	mov	w1, #2
	bl	_skip_bits
	cmp	w20, #3
	b.eq	LBB0_12
; %bb.9:
	mov	x0, x19
	mov	w1, #2
	bl	_skip_bits
	cmp	w20, #2
	b.eq	LBB0_12
; %bb.10:
	mov	x0, x19
	mov	w1, #2
	bl	_skip_bits
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #8
	add	x24, x24, #8
	subs	x21, x21, #1
	b.eq	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	w1, #32
	bl	_skip_bits_long
	mov	x0, x19
	mov	w1, #32
	bl	_skip_bits_long
	mov	x0, x19
	mov	w1, #24
	bl	_skip_bits
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_skip_bits
	b	LBB0_11
LBB0_16:
	mov	sp, x22
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #80
	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_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HEVC_MAX_SUB_LAYERS,4,2        ; @HEVC_MAX_SUB_LAYERS
	.no_dead_strip	_hvcc_parse_ptl
.subsections_via_symbols
