	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod_color                      ## -- Begin function mod_color
	.p2align	4, 0x90
_mod_color:                             ## @mod_color
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movl	%edi, %r15d
	movq	_underglow@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_save_color
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movl	$359, %eax                      ## imm = 0x167
	subl	%r14d, %eax
	cmpl	%r15d, %eax
	jge	LBB0_2
## %bb.3:
	movl	%r14d, %eax
	addl	$359, %eax                      ## imm = 0x167
	cltq
	imulq	$-1232260811, %rax, %rcx        ## imm = 0xB68D3135
	shrq	$32, %rcx
	addl	%r14d, %ecx
	addl	$359, %ecx                      ## imm = 0x167
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$8, %ecx
	addl	%edx, %ecx
	imull	$359, %ecx, %ecx                ## imm = 0x167
	subl	%ecx, %eax
	jmp	LBB0_6
LBB0_4:
	movl	%r15d, %eax
	subl	%r14d, %eax
	jge	LBB0_6
## %bb.5:
	subl	%r14d, %r15d
	addl	$359, %r15d                     ## imm = 0x167
	movl	%r15d, %eax
	jmp	LBB0_6
LBB0_2:
	addl	%r15d, %r14d
	movl	%r14d, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_underglow,4,2                  ## @underglow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod_color                      ; -- Begin function mod_color
	.p2align	2
_mod_color:                             ; @mod_color
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _underglow@GOTPAGE
Lloh1:
	ldr	x8, [x8, _underglow@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_save_color
	cbz	w21, LBB0_3
; %bb.1:
	mov	w8, #359
	sub	w9, w8, w19
	cmp	w9, w20
	b.ge	LBB0_4
; %bb.2:
	add	w9, w19, #359
	mov	w10, #12597
	movk	w10, #46733, lsl #16
	smull	x10, w9, w10
	lsr	x10, x10, #32
	add	w10, w10, w9
	asr	w11, w10, #8
	add	w10, w11, w10, lsr #31
	msub	w0, w10, w8, w9
	b	LBB0_5
LBB0_3:
	subs	w8, w20, w19
	add	w9, w8, #359
	csel	w0, w9, w8, lt
	b	LBB0_5
LBB0_4:
	add	w0, w20, w19
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_underglow,4,2                  ; @underglow
.subsections_via_symbols
