	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function newhicolorcols
_newhicolorcols:                        ## @newhicolorcols
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movl	4(%rdi), %ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rcx,%rcx), %edi
	cltd
	idivl	%edi
	cmpl	%eax, %esi
	jge	LBB0_13
## %bb.1:
	movq	8(%rbx), %rdi
	imull	%ecx, %esi
	shll	$4, %esi
	callq	_REALLOC
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, 8(%rbx)
	movl	16(%rbx), %r14d
	movslq	(%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r11d
	testl	%r14d, %r14d
	movq	%rbx, %r10
	jle	LBB0_12
## %bb.3:
	movl	%r11d, %edi
	andl	$-2, %edi
	leaq	-1(%r14), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	imulq	%rdx, %rcx
	leaq	(%rax,%rcx,8), %rsi
	addq	$8, %rsi
	leaq	(,%rdx,8), %r12
	negq	%r12
	leaq	(%rax,%rdx,8), %rcx
	addq	$8, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leal	-1(%r14), %ebx
	imull	%edx, %ebx
	addl	%ebx, %ebx
	leal	(%rdx,%rdx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leaq	8(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	addq	%r12, %rsi
	subl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	cmpq	$2, %r13
	jl	LBB0_12
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%r14, %r13
	decq	%r14
	testl	%r11d, %r11d
	jle	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r10), %rcx
	cmpl	$1, %r11d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r9d, %r9d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	%ebx, %r8
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%r8,8), %r15
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%r8,8), %r8
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-8(%rsi,%r9,8), %rdx
	movq	%rdx, -8(%r15,%r9,8)
	movq	%rdx, -8(%r8,%r9,8)
	incl	(%rcx,%rdx,4)
	movq	(%rsi,%r9,8), %rdx
	movq	%rdx, (%r15,%r9,8)
	movq	%rdx, (%r8,%r9,8)
	incl	(%rcx,%rdx,4)
	addq	$2, %r9
	cmpq	%r9, %rdi
	jne	LBB0_11
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %r11b
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdx
	movq	%r12, %r10
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	imulq	%r12, %rdx
	leal	(%rdx,%rdx), %r8d
	leaq	(%rax,%rdx,8), %r15
	movslq	%r8d, %rdx
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r11, %r14
	leaq	(%rax,%rdx,8), %r11
	leaq	(%r11,%r12,8), %r8
	movq	%r10, %r12
	movq	(%r15,%r9,8), %rdx
	movq	%rdx, (%r8,%r9,8)
	movq	%rdx, (%r11,%r9,8)
	movq	%r14, %r11
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	incl	(%rcx,%rdx,4)
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_13:
	movq	_REG_ESPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CERR                           ## TAILCALL
LBB0_12:
	addl	%r11d, %r11d
	movl	%r11d, (%r10)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_REG_ESPACE,4,2                 ## @REG_ESPACE
	.no_dead_strip	_newhicolorcols
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function newhicolorcols
_newhicolorcols:                        ; @newhicolorcols
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	ldp	w8, w9, [x0]
	lsl	w11, w9, #1
	sdiv	w10, w10, w11
	cmp	w8, w10
	b.ge	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	mul	w8, w8, w9
	lsl	w1, w8, #4
	bl	_REALLOC
	cbz	x0, LBB0_8
; %bb.2:
	str	x0, [x19, #8]
	ldr	w9, [x19, #16]
	ldrsw	x8, [x19]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.3:
	and	x10, x8, #0xffffffff
	sub	w11, w9, #1
	mul	w11, w10, w11
	lsl	w11, w11, #1
	lsl	w12, w8, #1
	sub	x13, x9, #1
	mul	x13, x13, x8
	add	x13, x0, x13, lsl #3
	neg	x14, x8, lsl #3
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w11, w11, w12
	add	x13, x13, x14
	cmp	x9, #2
	mov	x9, x15
	b.lt	LBB0_9
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	sub	x15, x9, #1
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x16, x0, w11, sxtw #3
	ldr	x17, [x19, #24]
	mov	x1, x10
	mov	x2, x13
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x3, [x2], #8
	str	x3, [x16, x8, lsl #3]
	lsl	x4, x3, #2
	ldr	w5, [x17, x4]
	str	x3, [x16], #8
	add	w3, w5, #1
	str	w3, [x17, x4]
	subs	x1, x1, #1
	b.ne	LBB0_7
	b	LBB0_4
LBB0_8:
Lloh3:
	adrp	x8, _REG_ESPACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_ESPACE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CERR
LBB0_9:
	lsl	w8, w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_REG_ESPACE,4,2                 ; @REG_ESPACE
	.no_dead_strip	_newhicolorcols
.subsections_via_symbols
