	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_plane
_process_plane:                         ## @process_plane
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_38
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	imull	%edx, %eax
	cltq
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	%edx, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	cmpq	-96(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_38
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
                                        ##       Child Loop BB0_28 Depth 3
                                        ##       Child Loop BB0_36 Depth 3
                                        ##     Child Loop BB0_9 Depth 2
                                        ##       Child Loop BB0_22 Depth 3
                                        ##       Child Loop BB0_16 Depth 3
                                        ##       Child Loop BB0_20 Depth 3
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	incq	%rcx
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	imull	%ecx, %eax
	cltq
	shlq	$2, %rax
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	subq	%rax, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_37
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	xorl	%ebx, %ebx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_25 Depth=2
	addl	%r8d, %r14d
	cmpl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	jge	LBB0_37
LBB0_25:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_28 Depth 3
                                        ##       Child Loop BB0_36 Depth 3
	callq	_CVAL
	movl	%eax, %r12d
	andl	$15, %eax
	shrl	$4, %r12d
	andl	$15, %r12d
	movl	%eax, %ecx
	shll	$4, %ecx
	leal	(%rcx,%r12), %edx
	addl	$-16, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	orl	%r12d, %ecx
	cmpl	$32, %edx
	cmovael	%eax, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jb	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=2
	testl	%r12d, %r12d
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=2
	leal	(,%r14,4), %r13d
	incl	%r12d
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_25 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_CVAL
	movl	%eax, %ebx
	sarl	%eax
	andl	$1, %ebx
	negl	%ebx
	xorl	%eax, %ebx
	movslq	%r13d, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13,4), %eax
	addl	%ebx, %eax
	movl	%eax, (%r15)
	addq	$16, %r15
	addl	$4, %r13d
	incl	%r14d
	decl	%r12d
	cmpl	$1, %r12d
	ja	LBB0_28
LBB0_29:                                ##   in Loop: Header=BB0_25 Depth=2
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	testl	%r8d, %r8d
	je	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_25 Depth=2
	movl	%r14d, %eax
	testb	$1, %r8b
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_25 Depth=2
	movl	%r8d, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	cmpl	$1, %r8d
	je	LBB0_23
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_25 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	jl	LBB0_25
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_25 Depth=2
	leal	(,%r14,4), %ecx
	movslq	%ecx, %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%rcx,4), %ecx
	addl	%ebx, %ecx
	movl	%ecx, (%r15)
	addq	$16, %r15
	incq	%rax
	leal	-1(%r8), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpl	$1, %r8d
	je	LBB0_23
LBB0_35:                                ##   in Loop: Header=BB0_25 Depth=2
	shll	$2, %eax
	addl	$2, %ecx
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_25 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cltq
	movl	(%rsi,%rax,4), %edx
	addl	%ebx, %edx
	movl	%edx, (%r15)
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	movl	(%rsi,%rdx,4), %edx
	addl	%ebx, %edx
	movl	%edx, 16(%r15)
	addq	$32, %r15
	addl	$8, %eax
	addl	$-2, %ecx
	cmpl	$2, %ecx
	jg	LBB0_36
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_37
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=2
	addl	%r15d, %r13d
	movl	%r13d, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r15d
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_37
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_22 Depth 3
                                        ##       Child Loop BB0_16 Depth 3
                                        ##       Child Loop BB0_20 Depth 3
	callq	_CVAL
	movl	%eax, %ebx
	andl	$15, %eax
	shrl	$4, %ebx
	andl	$15, %ebx
	movl	%eax, %r13d
	shll	$4, %r13d
	leal	(%rbx,%r13), %ecx
	addl	$-16, %ecx
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
	orl	%ebx, %r13d
	cmpl	$32, %ecx
	cmovael	%eax, %r13d
	movl	%ebx, %esi
	movl	$0, %eax
	cmovbl	%eax, %esi
	testl	%esi, %esi
	je	LBB0_10
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	incl	%ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r15, %rdi
	callq	_CVAL
	movl	%eax, (%r14)
	addq	$16, %r14
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	%eax, %r12d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	leal	(%rsi,%r15), %eax
	testl	%r13d, %r13d
	jne	LBB0_13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	%r15d, %eax
	testl	%r13d, %r13d
	je	LBB0_8
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	leal	-1(%r13), %ecx
	movl	%r13d, %eax
	andl	$7, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=2
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r12d, (%r14)
	addq	$16, %r14
	incl	%edx
	cmpl	%edx, %eax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	%r13d, %eax
	subl	%edx, %eax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	%r13d, %eax
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=2
	addl	%esi, %r13d
	cmpl	$7, %ecx
	jb	LBB0_7
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=2
	addl	$8, %eax
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r12d, (%r14)
	movl	%r12d, 16(%r14)
	movl	%r12d, 32(%r14)
	movl	%r12d, 48(%r14)
	movl	%r12d, 64(%r14)
	movl	%r12d, 80(%r14)
	movl	%r12d, 96(%r14)
	movl	%r12d, 112(%r14)
	subq	$-128, %r14
	addl	$-8, %eax
	cmpl	$8, %eax
	jg	LBB0_20
	jmp	LBB0_7
LBB0_38:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_process_plane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_plane
_process_plane:                         ; @process_plane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cmp	w2, #1
	b.lt	LBB0_30
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
	lsl	w8, w1, #2
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	mul	w8, w8, w2
	add	x9, x3, w8, sxtw #2
	mov	w8, w2
	stp	x8, x9, [sp]                    ; 16-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x22, x8
	b.eq	LBB0_30
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
                                        ;     Child Loop BB0_18 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
                                        ;       Child Loop BB0_26 Depth 3
                                        ;       Child Loop BB0_29 Depth 3
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	add	x22, x22, #1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	mul	w8, w8, w22
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	sub	x8, x9, w8, sxtw #2
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	cmp	w19, #1
	cbz	x21, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #0
	mov	w24, #0
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	cmp	w27, w19
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	mov	x0, x20
	bl	_CVAL
	and	w9, w0, #0xf
	ubfx	w8, w0, #4, #4
	mov	x10, x8
	bfi	w10, w9, #4, #4
	sub	w11, w10, #16
	cmp	w11, #32
	csel	w26, w10, w9, lo
	ccmp	w8, #0, #4, hs
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	lsl	w23, w27, #2
	add	w25, w8, #1
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x20
	bl	_CVAL
	and	w8, w0, #0x1
	neg	w8, w8
	eor	w24, w8, w0, asr #1
	ldr	w8, [x21, w23, sxtw #2]
	add	w8, w24, w8
	str	w8, [x28], #16
	add	w23, w23, #4
	add	w27, w27, #1
	sub	w25, w25, #1
	cmp	w25, #1
	b.hi	LBB0_9
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	cbz	w26, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	lsl	w8, w27, #2
	add	w9, w26, #1
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w10, [x21, w8, sxtw #2]
	add	w10, w10, w24
	str	w10, [x28], #16
	add	w8, w8, #4
	sub	w9, w9, #1
	cmp	w9, #1
	b.gt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	add	w27, w27, w26
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	b.lt	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #0
	mov	w21, #0
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w9, w28, w24
	add	w9, w9, w27
	mov	x26, x8
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	mov	x27, x9
	cmp	w9, w19
	b.ge	LBB0_2
LBB0_18:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
                                        ;       Child Loop BB0_26 Depth 3
                                        ;       Child Loop BB0_29 Depth 3
	mov	x0, x20
	bl	_CVAL
	and	w9, w0, #0xf
	ubfx	w8, w0, #4, #4
	mov	x10, x8
	bfi	w10, w9, #4, #4
	sub	w11, w10, #16
	cmp	w11, #32
	csel	w28, w10, w9, lo
	csel	w24, wzr, w8, lo
	cbz	w24, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	w23, w8, #1
LBB0_20:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x20
	bl	_CVAL
	str	w0, [x26], #16
	sub	w23, w23, #1
	cmp	w23, #1
	b.hi	LBB0_20
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x21, x0
	add	w9, w24, w27
	cbnz	w28, LBB0_23
	b	LBB0_17
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=2
	mov	x9, x27
	cbz	w28, LBB0_17
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=2
	sub	w8, w28, #1
	cmp	w8, #3
	b.hs	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x8, x26
	mov	x9, x28
	b	LBB0_28
LBB0_25:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x10, x8, #1
	and	x11, x10, #0x1fffffffc
	add	x8, x26, x11, lsl #4
	sub	w9, w28, w11
	add	x12, x26, #32
	mov	x13, x11
LBB0_26:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	stur	w21, [x12, #-32]
	stur	w21, [x12, #-16]
	str	w21, [x12]
	str	w21, [x12, #16]
	add	x12, x12, #64
	subs	x13, x13, #4
	b.ne	LBB0_26
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=2
	cmp	x10, x11
	b.eq	LBB0_16
LBB0_28:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w9, w9, #1
LBB0_29:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	str	w21, [x8], #16
	sub	w9, w9, #1
	cmp	w9, #1
	b.gt	LBB0_29
	b	LBB0_16
LBB0_30:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_process_plane
.subsections_via_symbols
