	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hls_coding_quadtree
_hls_coding_quadtree:                   ## @hls_coding_quadtree
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	24(%rdi), %rsi
	movl	$1, %r12d
	shll	%cl, %r12d
	movl	%r8d, (%rsi)
	leal	(%r12,%r13), %eax
	movq	(%rdi), %rcx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	(%rcx), %eax
	jg	LBB0_4
## %bb.1:
	leal	(%r12,%r14), %eax
	cmpl	4(%rcx), %eax
	jg	LBB0_4
## %bb.2:
	cmpl	%ebx, 8(%rcx)
	jge	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%r8d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	callq	_ff_hevc_split_coding_unit_flag_decode
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	cmpl	%ebx, 8(%rcx)
	setl	%al
LBB0_5:
	movq	8(%r15), %rdx
	cmpq	$0, 8(%rdx)
	je	LBB0_8
## %bb.6:
	movq	(%r15), %rcx
	movl	12(%rcx), %ecx
	subl	(%rdx), %ecx
	cmpl	%ebx, %ecx
	jg	LBB0_8
## %bb.7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rsi)
LBB0_8:
	cmpq	$0, 16(%r15)
	je	LBB0_11
## %bb.9:
	movq	(%r15), %rcx
	movl	12(%rcx), %ecx
	subl	4(%rdx), %ecx
	cmpl	%ebx, %ecx
	jg	LBB0_11
## %bb.10:
	movq	$0, 16(%rsi)
LBB0_11:
	testl	%eax, %eax
	je	LBB0_25
## %bb.12:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movl	12(%rax), %ecx
	subl	(%rdx), %ecx
	movl	$-1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	decl	%ebx
	incl	%r8d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	callq	_hls_coding_quadtree
	testl	%eax, %eax
	js	LBB0_44
## %bb.13:
	movl	%r12d, %ecx
	sarl	%ecx
	leal	(%rcx,%r13), %esi
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%r14), %edx
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_32
## %bb.14:
	movq	(%r15), %rax
	cmpl	(%rax), %esi
	jge	LBB0_18
## %bb.15:
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_hls_coding_quadtree
	testl	%eax, %eax
	js	LBB0_44
## %bb.16:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_36
## %bb.17:
	movq	(%r15), %rax
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
LBB0_18:
	cmpl	4(%rax), %edx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	jge	LBB0_22
## %bb.19:
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%edx, %r13d
	movl	%ebx, %ecx
	callq	_hls_coding_quadtree
	testl	%eax, %eax
	js	LBB0_44
## %bb.20:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_37
## %bb.21:
	movq	(%r15), %rax
LBB0_22:
	movl	$1, %r14d
	cmpl	(%rax), %esi
	jge	LBB0_32
## %bb.23:
	cmpl	4(%rax), %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jge	LBB0_37
## %bb.24:
	movq	%r15, %rdi
	movq	%rcx, %r14
	movl	%ebx, %ecx
	movl	%edx, %r13d
	movl	%esi, %ebx
	callq	_hls_coding_quadtree
	movl	%ebx, %esi
	movl	%r13d, %edx
	movq	%r14, %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_37
	jmp	LBB0_45
LBB0_25:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r14, %r13
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_hls_coding_unit
	testl	%eax, %eax
	js	LBB0_44
## %bb.26:
	movq	(%r15), %rax
	movb	12(%rax), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%edx, %ecx
	je	LBB0_28
## %bb.27:
	movl	$1, %r14d
	cmpl	(%rax), %ecx
	jl	LBB0_45
LBB0_28:
	addl	%r13d, %r12d
	testl	%edx, %r12d
	je	LBB0_30
## %bb.29:
	movl	$1, %r14d
	cmpl	4(%rax), %r12d
	jl	LBB0_45
LBB0_30:
	movq	%r15, %rdi
	callq	_ff_hevc_end_of_slice_flag_decode
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
	jmp	LBB0_45
LBB0_44:
	movl	%eax, %r14d
	jmp	LBB0_45
LBB0_32:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_37:
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	notl	%eax
	testl	%eax, %edi
	jne	LBB0_39
## %bb.38:
	addl	-88(%rbp), %r12d                ## 4-byte Folded Reload
	testl	%eax, %r12d
	je	LBB0_42
LBB0_39:
	testl	%r14d, %r14d
	je	LBB0_43
LBB0_40:
	addl	%ecx, %esi
	movq	(%r15), %rax
	movl	$1, %r14d
	cmpl	(%rax), %esi
	jl	LBB0_45
## %bb.41:
	addl	%ecx, %edx
	xorl	%r14d, %r14d
	cmpl	4(%rax), %edx
	setl	%r14b
	jmp	LBB0_45
LBB0_42:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	4(%rdi), %eax
	movl	%eax, 8(%rdi)
	testl	%r14d, %r14d
	jne	LBB0_40
LBB0_43:
	xorl	%r14d, %r14d
LBB0_45:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hls_coding_quadtree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hls_coding_quadtree
_hls_coding_quadtree:                   ; @hls_coding_quadtree
	.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
	mov	x23, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x28, [x0, #24]
	mov	w8, #1
	lsl	w26, w8, w3
	str	w4, [x28]
	ldr	x8, [x0]
	ldr	w9, [x8]
	add	w27, w26, w1
	cmp	w27, w9
	b.gt	LBB0_4
; %bb.1:
	ldr	w9, [x8, #4]
	add	w10, w26, w20
	cmp	w10, w9
	b.gt	LBB0_4
; %bb.2:
	ldr	w9, [x8, #8]
	cmp	w9, w22
	b.ge	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	bl	_ff_hevc_split_coding_unit_flag_decode
	b	LBB0_5
LBB0_4:
	ldr	w8, [x8, #8]
	cmp	w8, w22
	cset	w0, lt
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_8
; %bb.6:
	ldr	x9, [x19]
	ldr	w9, [x9, #12]
	ldr	w10, [x8]
	sub	w9, w9, w10
	cmp	w9, w22
	b.gt	LBB0_8
; %bb.7:
	stp	xzr, xzr, [x28, #24]
LBB0_8:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_11
; %bb.9:
	ldr	x9, [x19]
	ldr	w9, [x9, #12]
	ldr	w10, [x8, #4]
	sub	w9, w9, w10
	cmp	w9, w22
	b.gt	LBB0_11
; %bb.10:
	str	xzr, [x28, #16]
LBB0_11:
	cbz	w0, LBB0_25
; %bb.12:
	ldr	x9, [x19]
	ldr	w9, [x9, #12]
	ldr	w8, [x8]
	stp	w8, w9, [sp, #8]                ; 8-byte Folded Spill
	sub	w24, w22, #1
	add	w25, w23, #1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x24
	mov	x4, x25
	bl	_hls_coding_quadtree
	tbnz	w0, #31, LBB0_39
; %bb.13:
	asr	w22, w26, #1
	add	w23, w22, w21
	add	w2, w22, w20
	cbz	w0, LBB0_34
; %bb.14:
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w23, w9
	b.ge	LBB0_18
; %bb.15:
	str	w2, [sp, #4]                    ; 4-byte Folded Spill
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	mov	x3, x24
	mov	x4, x25
	bl	_hls_coding_quadtree
	tbnz	w0, #31, LBB0_39
; %bb.16:
	cbz	w0, LBB0_32
; %bb.17:
	ldr	x8, [x19]
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
LBB0_18:
	ldr	w9, [x8, #4]
	cmp	w2, w9
	b.ge	LBB0_22
; %bb.19:
	mov	x0, x19
	mov	x1, x21
	mov	x21, x2
	mov	x3, x24
	mov	x4, x25
	bl	_hls_coding_quadtree
	tbnz	w0, #31, LBB0_39
; %bb.20:
	cbz	w0, LBB0_33
; %bb.21:
	ldr	x8, [x19]
	mov	x2, x21
LBB0_22:
	ldr	w9, [x8]
	cmp	w23, w9
	b.ge	LBB0_31
; %bb.23:
	ldr	w8, [x8, #4]
	cmp	w2, w8
	b.ge	LBB0_31
; %bb.24:
	mov	x0, x19
	mov	x1, x23
	mov	x21, x2
	mov	x3, x24
	mov	x4, x25
	bl	_hls_coding_quadtree
	mov	x2, x21
	tbz	w0, #31, LBB0_34
	b	LBB0_39
LBB0_25:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_hls_coding_unit
	tbnz	w0, #31, LBB0_39
; %bb.26:
	ldr	x8, [x19]
	ldr	w9, [x8, #12]
	mov	w10, #-1
	lsl	w9, w10, w9
	bics	wzr, w27, w9
	b.eq	LBB0_28
; %bb.27:
	ldr	w10, [x8]
	cmp	w27, w10
	b.lt	LBB0_37
LBB0_28:
	mvn	w10, w9
	add	w9, w26, w20
	tst	w9, w10
	b.eq	LBB0_30
; %bb.29:
	ldr	w8, [x8, #4]
	cmp	w9, w8
	b.lt	LBB0_37
LBB0_30:
	mov	x0, x19
	bl	_ff_hevc_end_of_slice_flag_decode
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_39
LBB0_31:
	mov	w0, #1
	b	LBB0_34
LBB0_32:
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	b	LBB0_34
LBB0_33:
	mov	x2, x21
LBB0_34:
	ldp	w9, w8, [sp, #8]                ; 8-byte Folded Reload
	sub	w8, w8, w9
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	and	w9, w27, w8
	cmp	w9, #0
	add	w9, w26, w20
	and	w8, w9, w8
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_40
; %bb.35:
	cbz	w0, LBB0_39
LBB0_36:
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w10, w23, w22
	cmp	w10, w9
	b.ge	LBB0_38
LBB0_37:
	mov	w0, #1
	b	LBB0_39
LBB0_38:
	ldr	w8, [x8, #4]
	add	w9, w2, w22
	cmp	w9, w8
	cset	w0, lt
LBB0_39:
	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
LBB0_40:
	ldr	w8, [x28, #4]
	str	w8, [x28, #8]
	cbnz	w0, LBB0_36
	b	LBB0_39
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hls_coding_quadtree
.subsections_via_symbols
