	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_DrawScriptFilledRectangles
_CG_DrawScriptFilledRectangles:         ## @CG_DrawScriptFilledRectangles
	.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	_SCREEN_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCREEN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dmlab_make_filled_rectangles
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	leaq	-52(%rbp), %r12
	leaq	-48(%rbp), %r13
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	callq	_dmlab_get_filled_rectangle
	movl	-56(%rbp), %edi
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	callq	_CG_FillRect
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_2
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCREEN_WIDTH,4,2               ## @SCREEN_WIDTH
	.comm	_SCREEN_HEIGHT,4,2              ## @SCREEN_HEIGHT
	.no_dead_strip	_CG_DrawScriptFilledRectangles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawScriptFilledRectangles
_CG_DrawScriptFilledRectangles:         ; @CG_DrawScriptFilledRectangles
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _SCREEN_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCREEN_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SCREEN_HEIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCREEN_HEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_dmlab_make_filled_rectangles
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x4, sp
	mov	x0, x20
	bl	_dmlab_get_filled_rectangle
	ldp	w1, w0, [sp, #8]
	ldp	w3, w2, [sp]
	bl	_CG_FillRect
	add	w20, w20, #1
	cmp	w19, w20
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCREEN_WIDTH,4,2               ; @SCREEN_WIDTH
	.comm	_SCREEN_HEIGHT,4,2              ; @SCREEN_HEIGHT
	.no_dead_strip	_CG_DrawScriptFilledRectangles
.subsections_via_symbols
