	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function RichString_setAttrn
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RichString_setAttrn
	.p2align	4, 0x90
_RichString_setAttrn:                   ## @RichString_setAttrn
	.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
	movq	(%rdi), %r15
	movq	8(%rdi), %rdx
	decq	%rdx
	movl	%ecx, %edi
	xorl	%esi, %esi
	callq	_CLAMP
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %r10d
	subl	%r14d, %r10d
	jl	LBB0_12
## %bb.1:
	movslq	%r14d, %rdx
	leaq	(%r15,%rdx,4), %rcx
	cmpl	$7, %r10d
	jb	LBB0_10
## %bb.2:
	incq	%r10
	movq	%r10, %r8
	andq	$-8, %r8
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r8), %rsi
	movq	%rsi, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movq	%r9, %rsi
	andq	$-2, %rsi
	leaq	(%r15,%rdx,4), %rdx
	addq	$48, %rdx
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rdx,%rdi,4), %xmm2
	movdqu	-32(%rdx,%rdi,4), %xmm3
	movdqu	-16(%rdx,%rdi,4), %xmm4
	movdqu	(%rdx,%rdi,4), %xmm5
	pand	%xmm1, %xmm2
	pand	%xmm1, %xmm3
	por	%xmm0, %xmm2
	por	%xmm0, %xmm3
	movdqu	%xmm2, -48(%rdx,%rdi,4)
	movdqu	%xmm3, -32(%rdx,%rdi,4)
	pand	%xmm1, %xmm4
	pand	%xmm1, %xmm5
	por	%xmm0, %xmm4
	por	%xmm0, %xmm5
	movdqu	%xmm4, -16(%rdx,%rdi,4)
	movdqu	%xmm5, (%rdx,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rsi
	jne	LBB0_5
## %bb.6:
	testb	$1, %r9b
	je	LBB0_8
LBB0_7:
	movdqu	(%rcx,%rdi,4), %xmm1
	movdqu	16(%rcx,%rdi,4), %xmm2
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	pand	%xmm3, %xmm1
	pand	%xmm3, %xmm2
	por	%xmm0, %xmm1
	por	%xmm0, %xmm2
	movdqu	%xmm1, (%rcx,%rdi,4)
	movdqu	%xmm2, 16(%rcx,%rdi,4)
LBB0_8:
	cmpq	%r8, %r10
	je	LBB0_12
## %bb.9:
	addl	%r8d, %r14d
	leaq	(%rcx,%r8,4), %rcx
LBB0_10:
	subl	%r14d, %eax
	incl	%eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rdx,4), %esi
	orl	%ebx, %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	cmpl	%edx, %eax
	jne	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%edi, %edi
	testb	$1, %r9b
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RichString_setAttrn            ; -- Begin function RichString_setAttrn
	.p2align	2
_RichString_setAttrn:                   ; @RichString_setAttrn
	.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	x20, x2
	mov	x19, x1
	ldp	x21, x8, [x0]
	sub	x2, x8, #1
	mov	x0, x3
	mov	w1, #0
	bl	_CLAMP
	subs	w9, w0, w20
	b.lt	LBB0_7
; %bb.1:
	add	x8, x21, w20, sxtw #2
	cmp	w9, #15
	b.lo	LBB0_5
; %bb.2:
	sxtw	x11, w20
	add	x9, x9, #1
	and	x10, x9, #0x1fffffff0
	add	w20, w10, w20
	add	x8, x8, x10, lsl #2
	dup.4s	v0, w19
	add	x11, x21, x11, lsl #2
	add	x11, x11, #32
	movi.2d	v1, #0x0000ff000000ff
	mov	x12, x10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x11, #-32]
	ldp	q4, q5, [x11]
	and.16b	v2, v2, v1
	and.16b	v3, v3, v1
	and.16b	v4, v4, v1
	and.16b	v5, v5, v1
	orr.16b	v2, v2, v0
	orr.16b	v3, v3, v0
	orr.16b	v4, v4, v0
	orr.16b	v5, v5, v0
	stp	q2, q3, [x11, #-32]
	stp	q4, q5, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_3
; %bb.4:
	cmp	x9, x10
	b.eq	LBB0_7
LBB0_5:
	sub	w9, w0, w20
	add	w9, w9, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	orr	w10, w10, w19
	str	w10, [x8], #4
	subs	w9, w9, #1
	b.ne	LBB0_6
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
