	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_hls_filter             ## -- Begin function ff_hevc_hls_filter
	.p2align	4, 0x90
_ff_hevc_hls_filter:                    ## @ff_hevc_hls_filter
	.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, %r15d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	32(%rdi), %rcx
	movl	(%rax), %r13d
	subl	%r15d, %r13d
	movq	(%rcx), %rax
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_25
## %bb.1:
	movq	_AVDISCARD_NONKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_IS_IDR
	testl	%eax, %eax
	je	LBB0_25
## %bb.3:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
LBB0_4:
	movq	_AVDISCARD_NONINTRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.5:
	movq	40(%rbx), %rcx
	movq	_HEVC_SLICE_I@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_25
LBB0_6:
	movq	_AVDISCARD_BIDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_8
## %bb.7:
	movq	40(%rbx), %rcx
	movq	_HEVC_SLICE_B@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_25
LBB0_8:
	movq	_AVDISCARD_NONREF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_10
## %bb.9:
	movl	24(%rbx), %edi
	callq	_ff_hevc_nal_is_nonref
	testq	%rax, %rax
	jne	LBB0_25
LBB0_10:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_deblocking_filter_CTB
	movq	16(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_25
## %bb.11:
	movl	4(%rax), %eax
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.12:
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.13:
	movl	%r12d, %esi
	subl	%r15d, %esi
	movl	%r14d, %edx
	subl	%r15d, %edx
	movq	%rbx, %rdi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_sao_filter_CTB
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_14:
	subl	%r15d, %eax
	testl	%r12d, %r12d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_17
## %bb.15:
	cmpl	%r14d, %eax
	jg	LBB0_17
## %bb.16:
	movl	%r12d, %esi
	subl	%r15d, %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_sao_filter_CTB
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_17:
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.18:
	cmpl	%r12d, %r13d
	jg	LBB0_21
## %bb.19:
	movl	%r14d, %edx
	subl	%r15d, %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_sao_filter_CTB
	movq	_FF_THREAD_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_21
## %bb.20:
	movq	8(%rbx), %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_ff_thread_report_progress
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_21:
	cmpl	%r12d, %r13d
	jg	LBB0_29
## %bb.22:
	cmpl	%r14d, %eax
	jg	LBB0_29
## %bb.23:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_sao_filter_CTB
	movq	_FF_THREAD_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_29
## %bb.24:
	movq	8(%rbx), %rdi
	addl	%r14d, %r15d
	movl	%r15d, %esi
	jmp	LBB0_28
LBB0_25:
	movq	_FF_THREAD_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_29
## %bb.26:
	cmpl	%r12d, %r13d
	jg	LBB0_29
## %bb.27:
	movq	8(%rbx), %rdi
	leal	(%r15,%r14), %esi
	addl	$-4, %esi
LBB0_28:
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_thread_report_progress      ## TAILCALL
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVDISCARD_ALL,8,3              ## @AVDISCARD_ALL
	.comm	_AVDISCARD_NONKEY,8,3           ## @AVDISCARD_NONKEY
	.comm	_AVDISCARD_NONINTRA,8,3         ## @AVDISCARD_NONINTRA
	.comm	_HEVC_SLICE_I,8,3               ## @HEVC_SLICE_I
	.comm	_AVDISCARD_BIDIR,8,3            ## @AVDISCARD_BIDIR
	.comm	_HEVC_SLICE_B,8,3               ## @HEVC_SLICE_B
	.comm	_AVDISCARD_NONREF,8,3           ## @AVDISCARD_NONREF
	.comm	_FF_THREAD_FRAME,4,2            ## @FF_THREAD_FRAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_hls_filter             ; -- Begin function ff_hevc_hls_filter
	.p2align	2
_ff_hevc_hls_filter:                    ; @ff_hevc_hls_filter
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	sub	w23, w8, w3
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _AVDISCARD_ALL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVDISCARD_ALL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_25
; %bb.1:
Lloh3:
	adrp	x9, _AVDISCARD_NONKEY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVDISCARD_NONKEY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_IS_IDR
	cbz	w0, LBB0_25
; %bb.3:
	ldr	x8, [x21, #32]
	ldr	x8, [x8]
LBB0_4:
Lloh6:
	adrp	x9, _AVDISCARD_NONINTRA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVDISCARD_NONINTRA@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.5:
	ldr	x9, [x21, #40]
Lloh9:
	adrp	x10, _HEVC_SLICE_I@GOTPAGE
Lloh10:
	ldr	x10, [x10, _HEVC_SLICE_I@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_25
LBB0_6:
Lloh12:
	adrp	x9, _AVDISCARD_BIDIR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AVDISCARD_BIDIR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_8
; %bb.7:
	ldr	x9, [x21, #40]
Lloh15:
	adrp	x10, _HEVC_SLICE_B@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HEVC_SLICE_B@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_25
LBB0_8:
Lloh18:
	adrp	x9, _AVDISCARD_NONREF@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AVDISCARD_NONREF@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.9:
	ldr	w0, [x21, #24]
	bl	_ff_hevc_nal_is_nonref
	cbnz	x0, LBB0_25
LBB0_10:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_deblocking_filter_CTB
	ldr	x8, [x21, #16]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_25
; %bb.11:
	ldr	w24, [x8, #4]
	cbz	w22, LBB0_14
; %bb.12:
	cbz	w20, LBB0_14
; %bb.13:
	sub	w1, w22, w19
	sub	w2, w20, w19
	mov	x0, x21
	bl	_sao_filter_CTB
LBB0_14:
	sub	w24, w24, w19
	cbz	w22, LBB0_17
; %bb.15:
	cmp	w24, w20
	b.gt	LBB0_17
; %bb.16:
	sub	w1, w22, w19
	mov	x0, x21
	mov	x2, x20
	bl	_sao_filter_CTB
LBB0_17:
	cbz	w20, LBB0_21
; %bb.18:
	cmp	w23, w22
	b.gt	LBB0_21
; %bb.19:
	sub	w2, w20, w19
	mov	x0, x21
	mov	x1, x22
	bl	_sao_filter_CTB
	ldr	w8, [x21]
Lloh21:
	adrp	x9, _FF_THREAD_FRAME@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FF_THREAD_FRAME@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
	ldr	x0, [x21, #8]
	mov	x1, x20
	mov	w2, #0
	bl	_ff_thread_report_progress
LBB0_21:
	cmp	w23, w22
	b.gt	LBB0_26
; %bb.22:
	cmp	w24, w20
	b.gt	LBB0_26
; %bb.23:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_sao_filter_CTB
	ldr	w8, [x21]
Lloh24:
	adrp	x9, _FF_THREAD_FRAME@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FF_THREAD_FRAME@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.24:
	ldr	x0, [x21, #8]
	add	w1, w19, w20
	b	LBB0_28
LBB0_25:
	ldr	w8, [x21]
Lloh27:
	adrp	x9, _FF_THREAD_FRAME@GOTPAGE
Lloh28:
	ldr	x9, [x9, _FF_THREAD_FRAME@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w23, w22, #0, ne
	b.le	LBB0_27
LBB0_26:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_27:
	ldr	x0, [x21, #8]
	add	w8, w19, w20
	sub	w1, w8, #4
LBB0_28:
	mov	w2, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ff_thread_report_progress
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_AVDISCARD_ALL,8,3              ; @AVDISCARD_ALL
	.comm	_AVDISCARD_NONKEY,8,3           ; @AVDISCARD_NONKEY
	.comm	_AVDISCARD_NONINTRA,8,3         ; @AVDISCARD_NONINTRA
	.comm	_HEVC_SLICE_I,8,3               ; @HEVC_SLICE_I
	.comm	_AVDISCARD_BIDIR,8,3            ; @AVDISCARD_BIDIR
	.comm	_HEVC_SLICE_B,8,3               ; @HEVC_SLICE_B
	.comm	_AVDISCARD_NONREF,8,3           ; @AVDISCARD_NONREF
	.comm	_FF_THREAD_FRAME,4,2            ; @FF_THREAD_FRAME
.subsections_via_symbols
