	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_SetItemColor            ## -- Begin function Script_SetItemColor
	.p2align	4, 0x90
_Script_SetItemColor:                   ## @Script_SetItemColor
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_String_Parse
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_String_Parse
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movl	32(%r14), %edi
	movq	-56(%rbp), %rsi
	callq	_Menu_ItemsMatchingGroup
	movl	%eax, %r15d
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_Color_Parse
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.4:
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$24, %r13
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax
	movq	(%r13), %rcx
	movl	(%rax), %edx
	movl	%edx, (%rcx)
	movl	4(%rax), %edx
	movl	%edx, 4(%rcx)
	movl	8(%rax), %edx
	movl	%edx, 8(%rcx)
	movl	12(%rax), %eax
	movl	%eax, 12(%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%ebx, %r15d
	je	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r14), %edi
	movq	-56(%rbp), %rdx
	movl	%ebx, %esi
	callq	_Menu_GetMatchingItemByNumber
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_WINDOW_FORECOLORSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r13)
	addq	$16, %r13
	jmp	LBB0_11
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"backcolor"

L_.str.1:                               ## @.str.1
	.asciz	"forecolor"

	.comm	_WINDOW_FORECOLORSET,4,2        ## @WINDOW_FORECOLORSET
L_.str.2:                               ## @.str.2
	.asciz	"bordercolor"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_SetItemColor            ; -- Begin function Script_SetItemColor
	.p2align	2
_Script_SetItemColor:                   ; @Script_SetItemColor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x1
	mov	x19, x0
	add	x1, sp, #24
	mov	x0, x21
	bl	_String_Parse
	cbz	x0, LBB0_14
; %bb.1:
	add	x1, sp, #16
	mov	x0, x21
	bl	_String_Parse
	cbz	x0, LBB0_14
; %bb.2:
	ldr	w0, [x19, #32]
	ldr	x1, [sp, #24]
	bl	_Menu_ItemsMatchingGroup
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_Color_Parse
	cbz	w0, LBB0_14
; %bb.3:
	cmp	w20, #1
	b.lt	LBB0_14
; %bb.4:
	mov	w21, #0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh4:
	adrp	x26, _WINDOW_FORECOLORSET@GOTPAGE
Lloh5:
	ldr	x26, [x26, _WINDOW_FORECOLORSET@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.2@PAGE
Lloh7:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x25, #24
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [sp, #8]
	ldr	x8, [x8]
	ldr	w10, [x9]
	str	w10, [x8]
	ldr	w10, [x9, #4]
	str	w10, [x8, #4]
	ldr	w10, [x9, #8]
	str	w10, [x8, #8]
	ldr	w9, [x9, #12]
	str	w9, [x8, #12]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w21, w21, #1
	cmp	w20, w21
	b.eq	LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	ldr	x2, [sp, #24]
	mov	x1, x21
	bl	_Menu_GetMatchingItemByNumber
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, x0
	ldr	x0, [sp, #16]
	mov	x1, x22
	bl	_Q_stricmp
	cbz	x0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #16]
	mov	x1, x23
	bl	_Q_stricmp
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #16]
	mov	x1, x24
	bl	_Q_stricmp
	cbnz	x0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, x25
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x25, #16
	ldr	w9, [x26]
	ldr	w10, [x25, #8]
	orr	w9, w10, w9
	str	w9, [x25, #8]
	b	LBB0_6
LBB0_14:
	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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"backcolor"

l_.str.1:                               ; @.str.1
	.asciz	"forecolor"

	.comm	_WINDOW_FORECOLORSET,4,2        ; @WINDOW_FORECOLORSET
l_.str.2:                               ; @.str.2
	.asciz	"bordercolor"

.subsections_via_symbols
