	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getColorInfo
_getColorInfo:                          ## @getColorInfo
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_pg_reg_getnumcolors
	movl	%eax, %ebx
	movl	%eax, (%r14)
	leal	(,%rbx,8), %eax
	leal	(%rax,%rax,2), %edi
	callq	_palloc0
	movq	%rax, 8(%r14)
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.1:
	movq	%rax, %r13
	movl	%ebx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_pg_reg_getnumcharacters
	movl	%eax, %r15d
	leaq	(%r12,%r12,2), %rbx
	leaq	(,%rbx,8), %rax
	addq	%r13, %rax
	testl	%r15d, %r15d
	js	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_COLOR_COUNT_LIMIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jg	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%rax)
	movl	$0, 4(%r13,%rbx,8)
	leal	(,%r15,4), %r14d
	movl	%r14d, %edi
	callq	_palloc
	movq	%rax, 16(%r13,%rbx,8)
	movq	$0, 8(%r13,%rbx,8)
	movl	%r14d, %edi
	callq	_palloc
	movq	%rax, %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%rax, %rdx
	movl	%r15d, %ecx
	callq	_pg_reg_getcharacters
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	4(%r13,%rbx,8), %r13
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	$1, (%r13)
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_12
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14,%rbx,4), %edi
	leaq	-48(%rbp), %rsi
	callq	_convertPgWchar
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	-48(%rbp), %edi
	callq	_ISWORDCHR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	12(%r13), %rax
	movq	4(%r13), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 4(%r13)
	movl	-48(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%rax)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_pfree
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %r13
	jmp	LBB0_2
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COLOR_COUNT_LIMIT,4,2          ## @COLOR_COUNT_LIMIT
	.no_dead_strip	_getColorInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function getColorInfo
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_getColorInfo:                          ; @getColorInfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x27, x1
	mov	x20, x0
	bl	_pg_reg_getnumcolors
	mov	x23, x0
	str	w0, [x27]
	add	w8, w0, w0, lsl #1
	lsl	w0, w8, #3
	bl	_palloc0
	str	x0, [x27, #8]
	cmp	w23, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x22, x0
	mov	x21, #0
	mov	w24, #24
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	mov	w26, w23
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x20
	mov	x1, x21
	bl	_pg_reg_getnumcharacters
	madd	x8, x21, x24, x22
	tbnz	w0, #31, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
Lloh2:
	adrp	x9, _COLOR_COUNT_LIMIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _COLOR_COUNT_LIMIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w0, w9
	b.gt	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w9, #24
	madd	x24, x21, x9, x22
	str	d8, [x8]
	lsl	w22, w23, #2
	mov	x0, x22
	bl	_palloc
	str	x0, [x24, #16]!
	mov	x28, x24
	str	xzr, [x28, #-8]!
	mov	x0, x22
	bl	_palloc
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	bl	_pg_reg_getcharacters
	cbz	w23, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x25, x24, #12
	mov	w23, w23
	mov	x22, x19
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	w8, #1
	str	w8, [x25]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x22, x22, #4
	subs	x23, x23, #1
	b.eq	LBB0_12
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_convertPgWchar
	cbz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [sp, #8]
	bl	_ISWORDCHR
	cbz	x0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x24]
	ldr	x9, [x28]
	add	x10, x9, #1
	str	x10, [x28]
	ldr	w10, [sp, #8]
	str	w10, [x8, x9, lsl #2]
	b	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [x8]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_pfree
	mov	w24, #24
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	cmp	x21, x26
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x22, [x27, #8]
	b	LBB0_2
LBB0_15:
	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
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_COLOR_COUNT_LIMIT,4,2          ; @COLOR_COUNT_LIMIT
	.no_dead_strip	_getColorInfo
.subsections_via_symbols
