	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hls_decode_entry_wpp
_hls_decode_entry_wpp:                  ## @hls_decode_entry_wpp
	.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	%ecx, %r8d
	movq	(%rdi), %r10
	movq	24(%r10), %rax
	movq	32(%r10), %r9
	movb	(%rax), %cl
	movl	$1, %edi
	shll	%cl, %edi
	movslq	%edx, %rdx
	movslq	(%rsi,%rdx,4), %r14
	movslq	40(%r10), %rdx
	movl	4(%rax), %eax
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	addl	%edi, %eax
	decl	%eax
	sarl	%cl, %eax
	imull	%r14d, %eax
	movslq	%eax, %rbx
	addq	%rdx, %rbx
	movl	%r14d, %eax
	cltd
	idivl	(%r10)
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	(%r9), %rax
	movslq	(%rax,%rbx,4), %r15
	movq	%r10, -88(%rbp)                 ## 8-byte Spill
	movq	80(%r10), %rax
	movslq	%r8d, %rcx
	movq	(%rax,%rcx,8), %r13
	testq	%r14, %r14
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	movq	%r14, %r12
	movq	72(%r13), %r14
	leaq	4(%r14), %rdi
	movq	48(%r13), %rax
	movq	56(%r13), %rcx
	movq	-8(%rcx,%r12,8), %rsi
	addq	64(%r13), %rsi
	movl	-4(%rax,%r12,4), %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_16
## %bb.2:
	movq	48(%r13), %rax
	movq	56(%r13), %rcx
	movq	-8(%rcx,%r12,8), %rsi
	addq	64(%r13), %rsi
	movl	-4(%rax,%r12,4), %edx
	movq	%r14, %rdi
	callq	_ff_init_cabac_decoder
	movq	%r12, %r14
LBB0_3:
	leaq	16(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	$20, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	24(%r13), %rsi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	8(%rsi), %rax
	cmpq	%rax, %r15
	jge	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%rsi), %ecx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	cltd
	idivl	12(%rsi)
	movl	%eax, %r12d
	movl	%edx, %r13d
	shll	%cl, %r13d
	shll	%cl, %r12d
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_hls_decode_neighbour
	movl	16(%rbx), %edi
	movq	_SHIFT_CTB_WPP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ff_thread_await_progress2
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_atomic_load
	testq	%rax, %rax
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ff_hevc_cabac_init
	testl	%eax, %eax
	js	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rbx), %rax
	movzbl	(%rax), %ecx
	movl	%r13d, %esi
	sarl	%cl, %esi
	movl	%r12d, %edx
	sarl	%cl, %edx
	movq	%rbx, %rdi
	callq	_hls_sao_param
	movq	24(%rbx), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	xorl	%r8d, %r8d
	callq	_hls_coding_quadtree
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leal	1(%r15), %esi
	movq	%rbx, %rdi
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	callq	_ff_hevc_save_states
	movl	16(%rbx), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_ff_thread_report_progress2
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %ecx
	callq	_ff_hevc_hls_filters
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rbx), %rsi
	movl	4(%rsi), %eax
	leal	(%r15,%r13), %ecx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	leal	(%r15,%r13), %ecx
	movq	24(%rbx), %rsi
	movl	4(%rsi), %eax
	cmpl	%eax, %ecx
	jge	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpl	44(%rbx), %edx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_25
	.p2align	4, 0x90
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, %ecx
	jl	LBB0_14
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%eax, %ecx
	jge	LBB0_22
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%rbx), %rax
	movq	8(%rax), %rax
	movl	4(%rax,%rdx,4), %ebx
	leaq	1(%rdx), %r15
	testl	%r14d, %r14d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_4
LBB0_15:
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_16:
	movq	%r12, %r14
	movl	%eax, %r15d
	jmp	LBB0_20
LBB0_17:
	movl	%eax, %r15d
	jmp	LBB0_19
LBB0_18:
	movl	%r14d, %r15d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_19:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movslq	%ebx, %rbx
LBB0_20:
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	8(%r12), %rax
	movl	$-1, (%rax,%rbx,4)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	addq	$20, %rdi
	movl	$1, %esi
	callq	_atomic_store
	addq	$16, %r12
	movq	%r12, %rbx
LBB0_21:
	movl	(%rbx), %edi
	movq	_SHIFT_CTB_WPP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ff_thread_report_progress2
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leal	(%r12,%rcx), %eax
	cmpl	16(%rsi), %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	$0, %r15d
	jl	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_ff_hevc_hls_filter
	movl	-76(%rbp), %r15d                ## 4-byte Reload
LBB0_24:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_25:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	$1, %esi
	callq	_atomic_store
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SHIFT_CTB_WPP,4,2              ## @SHIFT_CTB_WPP
	.no_dead_strip	_hls_decode_entry_wpp
.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_wpp
_hls_decode_entry_wpp:                  ; @hls_decode_entry_wpp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x12, [x0]
	mov	w8, #1
	ldr	w19, [x1, w2, sxtw #2]
	ldp	x9, x10, [x12, #24]
	ldp	w11, w9, [x9]
	lsl	w22, w8, w11
	ldrsw	x8, [x12, #40]
	add	w9, w22, w9
	sub	w9, w9, #1
	asr	w9, w9, w11
	mul	w9, w9, w19
	add	x28, x8, w9, sxtw
	ldr	x8, [x10]
	ldrsw	x23, [x8, x28, lsl #2]
	ldr	w8, [x12]
	sdiv	w9, w19, w8
	msub	w20, w9, w8, w19
	str	x12, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x8, [x12, #80]
	ldr	x21, [x8, w3, sxtw #3]
	cbz	w19, LBB0_3
; %bb.1:
	ldp	x8, x24, [x21, #64]
	add	x0, x24, #4
	sub	w26, w19, #1
	ldp	x10, x9, [x21, #48]
	ldr	x9, [x9, w26, sxtw #3]
	add	x1, x9, x8
	ldr	w2, [x10, w26, sxtw #2]
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_14
; %bb.2:
	sxtw	x8, w26
	ldp	x10, x9, [x21, #56]
	ldr	x11, [x21, #48]
	ldr	x10, [x10, x8, lsl #3]
	add	x1, x10, x9
	ldr	w2, [x11, x8, lsl #2]
	mov	x0, x24
	bl	_ff_init_cabac_decoder
LBB0_3:
	add	x8, x21, #16
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x24, x8, #20
	ldr	x8, [x21, #24]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x8, #8]
	cmp	x23, x9
	b.ge	LBB0_21
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, #12]
	sdiv	w10, w28, w9
	msub	w9, w10, w9, w28
	ldr	w8, [x8]
	lsl	w26, w9, w8
	lsl	w27, w10, w8
	mov	x0, x21
	mov	x1, x26
	mov	x2, x27
	mov	x3, x23
	bl	_hls_decode_neighbour
	ldr	w0, [x21, #16]
Lloh0:
	adrp	x8, _SHIFT_CTB_WPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHIFT_CTB_WPP@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x19
	mov	x2, x20
	bl	_ff_thread_await_progress2
	mov	x0, x24
	bl	_atomic_load
	cbnz	x0, LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_ff_hevc_cabac_init
	tbnz	w0, #31, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #24]
	ldr	w8, [x8]
	asr	w1, w26, w8
	asr	w2, w27, w8
	mov	x0, x21
	bl	_hls_sao_param
	ldr	x8, [x21, #24]
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x26
	mov	x2, x27
	mov	w4, #0
	bl	_hls_coding_quadtree
	mov	x25, x0
	tbnz	w0, #31, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w1, w23, #1
	mov	x0, x21
	bl	_ff_hevc_save_states
	ldr	w0, [x21, #16]
	mov	x1, x19
	mov	x2, x20
	mov	w3, #1
	bl	_ff_thread_report_progress2
	mov	x0, x21
	mov	x1, x26
	mov	x2, x27
	mov	x3, x22
	bl	_ff_hevc_hls_filters
	cbz	w25, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #24]
	ldr	w9, [x8, #4]
	add	w10, w26, w22
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #24]
	ldr	w9, [x8, #4]
	add	w10, w26, w22
	cmp	w10, w9
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x21, #44]
	cmp	w19, w11
	b.ne	LBB0_20
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, w9
	b.ge	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21, #32]
	ldr	x9, [x9, #8]
	add	x9, x9, x23, lsl #2
	ldr	w28, [x9, #4]
	add	x23, x23, #1
	cbnz	w25, LBB0_4
	b	LBB0_22
LBB0_14:
	mov	x25, x0
	b	LBB0_17
LBB0_15:
	mov	x25, x0
LBB0_16:
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	sxtw	x28, w28
LBB0_17:
	ldr	x8, [x21, #8]
	mov	w9, #-1
	str	w9, [x8, x28, lsl #2]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x0, x8, #20
	mov	w1, #1
	bl	_atomic_store
	add	x8, x21, #16
	b	LBB0_23
LBB0_18:
	ldr	w8, [x8, #16]
	add	w9, w27, w22
	cmp	w9, w8
	b.lt	LBB0_21
; %bb.19:
	add	w25, w23, #1
	mov	x0, x21
	mov	x1, x26
	mov	x2, x27
	mov	x3, x22
	bl	_ff_hevc_hls_filter
	b	LBB0_22
LBB0_20:
	mov	x0, x24
	mov	w1, #1
	bl	_atomic_store
LBB0_21:
	mov	w25, #0
LBB0_22:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
LBB0_23:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SHIFT_CTB_WPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHIFT_CTB_WPP@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x19
	mov	x2, x20
	bl	_ff_thread_report_progress2
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SHIFT_CTB_WPP,4,2              ; @SHIFT_CTB_WPP
	.no_dead_strip	_hls_decode_entry_wpp
.subsections_via_symbols
