	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_TileClear                   ## -- Begin function CG_TileClear
	.p2align	4, 0x90
_CG_TileClear:                          ## @CG_TileClear
	.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	_cgs@GOTPCREL(%rip), %rcx
	movq	4(%rcx), %xmm2                  ## xmm2 = mem[0],zero
	movq	_cg@GOTPCREL(%rip), %rax
	movdqu	(%rax), %xmm0
	movdqa	%xmm2, %xmm1
	pslldq	$8, %xmm1                       ## xmm1 = zero,zero,zero,zero,zero,zero,zero,zero,xmm1[0,1,2,3,4,5,6,7]
	pcmpeqd	%xmm0, %xmm1
	pslld	$31, %xmm1
	movmskps	%xmm1, %eax
	cmpb	$15, %al
	je	LBB0_1
## %bb.2:
	pextrd	$1, %xmm0, %r14d
	pextrd	$3, %xmm0, %eax
	leal	(%r14,%rax), %ebx
	decl	%ebx
	pextrd	$2, %xmm0, %eax
	movd	%xmm0, %r13d
	leal	(%rax,%r13), %r15d
	decl	%r15d
	movl	(%rcx), %r8d
	movd	%xmm2, %r12d
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movdqa	%xmm2, -64(%rbp)                ## 16-byte Spill
	callq	_CG_TileClearBox
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	extractps	$1, %xmm0, %ecx
	subl	%ebx, %ecx
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edi, %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_CG_TileClearBox
	subl	%r14d, %ebx
	incl	%ebx
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_CG_TileClearBox
	subl	%r15d, %r12d
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_TileClearBox                ## TAILCALL
LBB0_1:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cgs,12,2                       ## @cgs
	.comm	_cg,16,2                        ## @cg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_TileClear                   ; -- Begin function CG_TileClear
	.p2align	2
_CG_TileClear:                          ; @CG_TileClear
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x24, _cgs@GOTPAGE
Lloh1:
	ldr	x24, [x24, _cgs@GOTPAGEOFF]
	ldp	w19, w25, [x24, #4]
Lloh2:
	adrp	x9, _cg@GOTPAGE
Lloh3:
	ldr	x9, [x9, _cg@GOTPAGEOFF]
	ldp	w21, w20, [x9]
	ldp	w8, w9, [x9, #8]
	cmp	w21, #0
	ccmp	w20, #0, #0, eq
	ccmp	w8, w19, #0, eq
	ccmp	w9, w25, #0, eq
	b.eq	LBB0_2
; %bb.1:
	add	w9, w20, w9
	sub	w22, w9, #1
	add	w8, w21, w8
	sub	w23, w8, #1
	ldr	w4, [x24]
	mov	w0, #0
	mov	w1, #0
	mov	x2, x19
	mov	x3, x20
	bl	_CG_TileClearBox
	sub	w3, w25, w22
	ldr	w4, [x24]
	mov	w0, #0
	mov	x1, x22
	mov	x2, x19
	bl	_CG_TileClearBox
	sub	w8, w22, w20
	add	w22, w8, #1
	ldr	w4, [x24]
	mov	w0, #0
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_CG_TileClearBox
	sub	w2, w19, w23
	ldr	w4, [x24]
	mov	x0, x23
	mov	x1, x20
	mov	x3, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_CG_TileClearBox
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cgs,12,2                       ; @cgs
	.comm	_cg,16,2                        ; @cg
.subsections_via_symbols
