	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_planes
_init_planes:                           ## @init_planes
	.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
	movq	%rdi, %r12
	xorl	%edx, %edx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	16(%r12), %rax
	movl	8(%rax), %edi
	movb	(%r12), %r8b
	movl	%r8d, %ecx
	sarl	%cl, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	movl	%edi, 8(%rbx,%r11)
	movl	12(%rax), %esi
	movb	4(%r12), %r9b
	movl	%r9d, %ecx
	sarl	%cl, %esi
	movl	%esi, 12(%rbx,%r11)
	movl	16(%rax), %r10d
	movl	%r8d, %ecx
	sarl	%cl, %r10d
	movl	%r10d, 16(%rbx,%r11)
	movl	20(%rax), %eax
	movl	%r9d, %ecx
	sarl	%cl, %eax
	movl	%eax, 20(%rbx,%r11)
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	subl	%eax, %esi
	subl	%r10d, %edi
	movl	%edi, %eax
	shrl	$31, %eax
	addl	%edi, %eax
	sarl	%eax
	movl	%eax, 24(%rbx,%r11)
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	movl	%eax, 28(%rbx,%r11)
	incq	%rdx
	cmpq	$3, %rdx
	je	LBB0_18
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movl	24(%r12), %edi
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	(%r12), %cl
	sarl	%cl, %edi
	movl	4(%r12), %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edi
	movl	12(%rbx), %esi
	movl	16(%rbx), %r10d
	movl	20(%rbx), %eax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ecx, %ecx
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %r13
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	imulq	$56, %rdx, %rbx
	movl	%edi, (%r13,%rbx)
	movl	28(%r12), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movl	%eax, 4(%r13,%rbx)
	movl	8(%r12), %esi
	callq	_CALC_PADDING
	movl	%eax, %r15d
	movl	%eax, 40(%r13,%rbx)
	movl	4(%r13,%rbx), %edi
	movl	8(%r12), %esi
	callq	_CALC_PADDING
	movl	%eax, %r14d
	movl	%eax, 44(%r13,%rbx)
	movl	40(%r13,%rbx), %edi
	movl	$8, %esi
	callq	_FFALIGN
	movl	12(%r12), %r10d
	leal	1(%r10), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%eax, 48(%r13,%rbx)
	movl	8(%r12), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	32(%rax,%rcx), %rdx
	movl	52(%rax,%rcx), %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movq	%rsi, %r9
	decq	%rsi
	sarl	%r15d
	sarl	%r14d
	xorl	%r8d, %r8d
	testq	%rsi, %rsi
	setne	%r8b
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ecx
	subl	%esi, %ecx
	movl	-64(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%r15d, %ebx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	addl	$-2, %r9d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=3
	incq	%r8
	cmpq	$4, %r8
	je	LBB0_14
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rdx,%rsi,8), %r11
	leaq	(%r8,%r8,4), %r13
	movl	%r10d, (%r11,%r13,8)
	movl	%edi, 4(%r11,%r13,8)
	movl	%esi, 8(%r11,%r13,8)
	movl	%eax, 12(%r11,%r13,8)
	movl	%r15d, 16(%r11,%r13,8)
	movl	%r14d, 20(%r11,%r13,8)
	movl	%r8d, 24(%r11,%r13,8)
	movl	%r8d, %r12d
	andl	$1, %r12d
	cmpq	$1, %r8
	ja	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	testl	%r12d, %r12d
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=3
	leaq	(%r11,%r13,8), %rcx
	addq	$4, %rcx
	negl	%r12d
	andl	-72(%rbp), %r12d                ## 4-byte Folded Reload
	addl	%edi, %r12d
	cmpq	$2, %r8
	movl	$0, %ebx
	cmovael	-68(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	%r12d, %ebx
	movl	%ebx, (%rcx)
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=3
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=3
	leaq	(,%r8,8), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	movq	(%rdx,%r9,8), %rbx
	addq	%rcx, %rbx
	movq	%rbx, 32(%r11,%rcx)
	incq	%r8
	cmpq	$4, %r8
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpq	$2, -104(%rbp)                  ## 8-byte Folded Reload
	jge	LBB0_7
	jmp	LBB0_14
LBB0_18:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_init_planes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_planes
_init_planes:                           ; @init_planes
	.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
	mov	x19, x0
	mov	x22, #0
	mov	w23, #56
	mov	w24, #40
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x22, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x19, #16]
	ldp	w8, w11, [x10, #8]
	ldp	w12, w13, [x19]
	asr	w9, w8, w12
	madd	x14, x22, x23, x25
	asr	w8, w11, w13
	stp	w9, w8, [x14, #8]
	ldp	w11, w10, [x10, #16]
	asr	w11, w11, w12
	asr	w10, w10, w13
	stp	w11, w10, [x14, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w9, w11
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	madd	x11, x22, x23, x25
	sub	w8, w8, w10
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	stp	w9, w8, [x11, #24]
	add	x22, x22, #1
	cmp	x22, #3
	b.eq	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	w0, [x19, #24]
	cbz	x22, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w8, [x19]
	asr	w0, w0, w9
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w8, [x25, #8]
	ldp	w11, w10, [x25, #16]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [x19, #16]
	madd	x26, x22, x23, x25
	str	w0, [x26]
	ldr	w9, [x19, #28]
	asr	w8, w9, w8
	str	w8, [x26, #4]
	ldr	w1, [x19, #8]
	bl	_CALC_PADDING
	mov	x20, x0
	str	w0, [x26, #40]
	ldr	w0, [x26, #4]
	ldr	w1, [x19, #8]
	bl	_CALC_PADDING
	mov	x21, x0
	str	w0, [x26, #44]
	ldr	w0, [x26, #40]
	mov	w1, #8
	bl	_FFALIGN
	ldp	w9, w8, [x19, #8]
	add	w10, w8, #1
	lsl	w11, w0, w10
	str	w11, [x26, #48]
	cmp	w9, #1
	b.lt	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x13, x22, x23, x25
	ldr	x12, [x13, #32]
	ldr	w13, [x13, #52]
	mov	x14, x9
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	mov	x15, x14
	subs	x14, x14, #1
	asr	w20, w20, #1
	asr	w21, w21, #1
	sub	w16, w9, w14
	lsl	w16, w11, w16
	cset	w17, ne
	lsl	w0, w20, w10
	asr	w1, w16, #1
	sub	w2, w15, #2
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	add	x17, x17, #1
	cmp	x17, #4
	b.eq	LBB0_1
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x3, [x12, x14, lsl #3]
	madd	x4, x17, x24, x3
	str	w8, [x4]
	stp	w14, w16, [x4, #8]
	stp	w20, w21, [x4, #16]
	str	w17, [x4, #24]
	str	w13, [x4, #4]!
	cmp	x17, #1
	b.hi	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	tbz	w17, #0, LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=3
	sbfx	w5, w17, #0, #1
	and	w5, w5, w0
	cmp	x17, #1
	csel	w6, w1, wzr, hi
	add	w5, w13, w5
	add	w5, w5, w6
	str	w5, [x4]
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=3
	cbz	x14, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=3
	ldr	x4, [x12, x2, lsl #3]
	add	x5, x17, x17, lsl #2
	lsl	x5, x5, #3
	add	x4, x4, x5
	add	x3, x3, x5
	str	x4, [x3, #32]
	add	x17, x17, #1
	cmp	x17, #4
	b.ne	LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=2
	cmp	x15, #2
	b.ge	LBB0_10
	b	LBB0_1
LBB0_18:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_init_planes
.subsections_via_symbols
