	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hls_decode_entry
_hls_decode_entry:                      ## @hls_decode_entry
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	8(%r15), %rax
	movq	16(%r15), %rdx
	movb	(%rax), %cl
	movl	$1, %r14d
	shll	%cl, %r14d
	movq	(%rdx), %rcx
	movq	24(%r15), %rsi
	movslq	(%rcx,%rsi,4), %rbx
	movq	56(%r15), %rcx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.4:
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	movq	8(%rdx), %rcx
	movslq	-4(%rcx,%rbx,4), %rcx
	movq	(%r15), %rdx
	movq	(%rdx,%rcx,8), %rcx
	cmpq	32(%r15), %rcx
	je	LBB0_7
## %bb.6:
	movl	80(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	movl	80(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_3:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_7:
	xorl	%r12d, %r12d
	cmpl	4(%rax), %ebx
	jge	LBB0_8
## %bb.9:
	leal	-1(%r14), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	movq	8(%rcx), %rcx
	movslq	(%rcx,%rbx,4), %r14
	movl	8(%rax), %esi
	addl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	movzbl	(%rax), %ecx
	sarl	%cl, %esi
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r12d
	movl	%edx, %r13d
	shll	%cl, %r13d
	shll	%cl, %r12d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_hls_decode_neighbour
	movq	%r15, %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	callq	_ff_hevc_cabac_init
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r15), %rax
	movzbl	(%rax), %ecx
	movl	%r13d, %esi
	sarl	%cl, %esi
	movl	%r12d, %edx
	sarl	%cl, %edx
	movq	%r15, %rdi
	callq	_hls_sao_param
	movl	48(%r15), %eax
	movq	72(%r15), %rcx
	movl	%eax, 4(%rcx,%r14,8)
	movl	44(%r15), %eax
	movl	%eax, (%rcx,%r14,8)
	movl	40(%r15), %eax
	movq	64(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	8(%r15), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	xorl	%r8d, %r8d
	callq	_hls_coding_quadtree
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %esi
	movq	%r15, %rdi
	callq	_ff_hevc_save_states
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_ff_hevc_hls_filters
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%r15), %rax
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	1(%rdx), %rbx
	movslq	4(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_10
LBB0_16:
	incq	%rdx
	movq	%rdx, %rbx
	jmp	LBB0_17
LBB0_8:
	xorl	%r13d, %r13d
LBB0_17:
	leal	(%r14,%r13), %ecx
	cmpl	8(%rax), %ecx
	jl	LBB0_20
## %bb.18:
	leal	(%r12,%r14), %ecx
	cmpl	12(%rax), %ecx
	jl	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_ff_hevc_hls_filter
	jmp	LBB0_20
LBB0_11:
	movl	%eax, %ebx
LBB0_13:
	movq	(%r15), %rax
	movq	$-1, (%rax,%r14,8)
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Impossible initial tile.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Previous slice segment missing\n"

	.no_dead_strip	_hls_decode_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hls_decode_entry
_hls_decode_entry:                      ; @hls_decode_entry
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x19, [x0]
	ldp	x8, x10, [x19, #8]
	ldr	w9, [x8]
	ldr	x11, [x10]
	ldr	x12, [x19, #24]
	ldrsw	x21, [x11, x12, lsl #2]
	ldr	x11, [x19, #56]
	cbz	w21, LBB0_4
; %bb.1:
	cbz	x11, LBB0_7
; %bb.2:
	ldr	x10, [x10, #8]
	sub	w11, w21, #1
	ldrsw	x10, [x10, w11, sxtw #2]
	ldr	x11, [x19]
	ldr	x10, [x11, x10, lsl #3]
	ldr	x11, [x19, #32]
	cmp	x10, x11
	b.eq	LBB0_7
; %bb.3:
	ldr	w0, [x19, #80]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	cbz	x11, LBB0_7
; %bb.5:
	ldr	w0, [x19, #80]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
LBB0_6:
	bl	_av_log
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x8]
	b	LBB0_20
LBB0_7:
	mov	w10, #1
	lsl	w20, w10, w9
	ldr	w9, [x8, #4]
	cmp	w21, w9
	b.ge	LBB0_14
; %bb.8:
	sub	w25, w20, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x9, [x9, #8]
	ldrsw	x26, [x9, x21, lsl #2]
	ldr	w9, [x8, #8]
	add	w9, w25, w9
	ldr	w8, [x8]
	asr	w9, w9, w8
	sdiv	w10, w26, w9
	msub	w9, w10, w9, w26
	lsl	w23, w9, w8
	lsl	w22, w10, w8
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_hls_decode_neighbour
	mov	x0, x19
	mov	x1, x21
	bl	_ff_hevc_cabac_init
	tbnz	w0, #31, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	asr	w1, w23, w8
	asr	w2, w22, w8
	mov	x0, x19
	bl	_hls_sao_param
	ldur	d0, [x19, #44]
	ldp	x9, x8, [x19, #64]
	str	d0, [x8, x26, lsl #3]
	ldr	w8, [x19, #40]
	str	w8, [x9, x26, lsl #2]
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	w4, #0
	bl	_hls_coding_quadtree
	mov	x24, x0
	tbnz	w0, #31, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x21, #1
	add	w1, w21, #1
	mov	x0, x19
	bl	_ff_hevc_save_states
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	bl	_ff_hevc_hls_filters
	ldr	x8, [x19, #8]
	cbz	w24, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsw	x9, [x8, #4]
	mov	x21, x26
	cmp	x26, x9
	b.lt	LBB0_9
LBB0_13:
	mov	x21, x26
	b	LBB0_15
LBB0_14:
	mov	w22, #0
	mov	w23, #0
LBB0_15:
	mov	x24, x21
	ldr	w9, [x8, #8]
	add	w10, w23, w20
	cmp	w10, w9
	b.lt	LBB0_20
; %bb.16:
	ldr	w8, [x8, #12]
	add	w9, w22, w20
	cmp	w9, w8
	b.lt	LBB0_20
; %bb.17:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	bl	_ff_hevc_hls_filter
	b	LBB0_20
LBB0_18:
	mov	x24, x0
LBB0_19:
	ldr	x8, [x19]
	mov	x9, #-1
	str	x9, [x8, x26, lsl #3]
LBB0_20:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.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	"Impossible initial tile.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Previous slice segment missing\n"

	.no_dead_strip	_hls_decode_entry
.subsections_via_symbols
