	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ClearRectangle
_ClearRectangle:                        ## @ClearRectangle
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $esi killed $esi def $rsi
	movl	%edi, %r14d
	movq	_Screen_atari@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_Screen_WIDTH@GOTPCREL(%rip), %r12
	movslq	(%r12), %rdi
	leaq	(%rdi,%rdi,2), %rbx
	shlq	$5, %rbx
	addq	%r9, %rbx
	leal	(,%rsi,8), %eax
	cltq
	leaq	(%rbx,%rax,4), %rbx
	leaq	(,%rdi,8), %rax
	imull	%eax, %edx
	movslq	%edx, %rdx
	leaq	(%rbx,%rdx,4), %rbx
	addq	$128, %rbx
	shlq	$7, %rdi
	addq	%r9, %rdi
	movslq	%r8d, %rdx
	imulq	%rax, %rdx
	leaq	(%rdi,%rdx,4), %r13
	addq	$128, %r13
	cmpq	%r13, %rbx
	jae	LBB0_3
## %bb.1:
	subl	%esi, %ecx
	leal	8(,%rcx,8), %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_ANTIC_VideoMemset
	movslq	(%r12), %rax
	leaq	(%rbx,%rax,4), %rbx
	cmpq	%r13, %rbx
	jb	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Screen_atari,8,3               ## @Screen_atari
	.comm	_Screen_WIDTH,4,2               ## @Screen_WIDTH
	.comm	_colour_translation_table,8,3   ## @colour_translation_table
	.no_dead_strip	_ClearRectangle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ClearRectangle
_ClearRectangle:                        ; @ClearRectangle
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	lsl	w8, w1, #3
Lloh0:
	adrp	x9, _Screen_atari@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Screen_atari@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x22, _Screen_WIDTH@GOTPAGE
Lloh4:
	ldr	x22, [x22, _Screen_WIDTH@GOTPAGEOFF]
	ldrsw	x10, [x22]
	add	w11, w10, w10, lsl #1
	lsl	w11, w11, #3
	add	x11, x9, w11, sxtw #2
	add	x8, x11, w8, sxtw #2
	lsl	w11, w10, #3
	mul	w12, w11, w2
	add	x8, x8, w12, sxtw #2
	add	x20, x8, #128
	add	x8, x9, x10, lsl #7
	mul	w9, w11, w4
	add	x8, x8, w9, sxtw #2
	add	x23, x8, #128
	cmp	x20, x23
	b.hs	LBB0_3
; %bb.1:
	mov	x19, x0
	sub	w8, w3, w1
	lsl	w8, w8, #3
	add	w21, w8, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_ANTIC_VideoMemset
	ldrsw	x8, [x22]
	add	x20, x20, x8, lsl #2
	cmp	x20, x23
	b.lo	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Screen_atari,8,3               ; @Screen_atari
	.comm	_Screen_WIDTH,4,2               ; @Screen_WIDTH
	.comm	_colour_translation_table,8,3   ; @colour_translation_table
	.no_dead_strip	_ClearRectangle
.subsections_via_symbols
