	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DDRedrawFrame                  ## -- Begin function DDRedrawFrame
	.p2align	4, 0x90
_DDRedrawFrame:                         ## @DDRedrawFrame
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	leaq	-44(%rbp), %rsi
	callq	*(%rax)
	movq	_DD_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_SM_CXSCREEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_GetSystemMetrics
	movq	_DD_TEST_WIDTH@GOTPCREL(%rip), %rbx
	subl	(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, -64(%rbp)
	movl	(%r14), %edi
	callq	_GetSystemMetrics
	movl	(%rbx), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	addl	%ecx, %edx
	movl	%edx, -60(%rbp)
	movq	_SM_CYSCREEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_GetSystemMetrics
	movq	_DD_TEST_HEIGHT@GOTPCREL(%rip), %r15
	subl	(%r15), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movl	%ebx, -56(%rbp)
	movl	(%r14), %edi
	callq	_GetSystemMetrics
	movl	(%r15), %ecx
	subl	%ecx, %eax
	movl	%eax, %r14d
	shrl	$31, %r14d
	addl	%eax, %r14d
	sarl	%r14d
	addl	%ecx, %r14d
	movl	%r14d, -52(%rbp)
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RGB
	movl	%eax, %edi
	callq	_CreateSolidBrush
	movq	%rax, %r15
	movl	$255, %edi
	movl	$255, %esi
	movl	$255, %edx
	callq	_RGB
	movl	%eax, %edi
	callq	_CreateSolidBrush
	movq	%rax, %r13
	subl	%ebx, %r14d
	movslq	%r14d, %rax
	movq	_DD_TEST_STEP@GOTPCREL(%rip), %r14
	cmpq	%rax, (%r14)
	jge	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	sete	%bl
	movl	-44(%rbp), %edi
	movq	%r13, %rdx
	cmoveq	%r15, %rdx
	leaq	-64(%rbp), %rsi
	callq	_FillRect
	movq	(%r14), %rax
	movdqa	-64(%rbp), %xmm0
	movd	%eax, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	movdqa	%xmm0, %xmm2
	paddd	%xmm1, %xmm2
	psubd	%xmm1, %xmm0
	pshufd	$250, %xmm0, %xmm1              ## xmm1 = xmm0[2,2,3,3]
	psubd	%xmm2, %xmm1
	pblendw	$204, %xmm0, %xmm2              ## xmm2 = xmm2[0,1],xmm0[2,3],xmm2[4,5],xmm0[6,7]
	movdqa	%xmm2, -64(%rbp)
	pextrd	$2, %xmm1, %ecx
	movslq	%ecx, %rcx
	movl	%ebx, %r12d
	cmpq	%rcx, %rax
	jl	LBB0_2
LBB0_3:
	movl	%r15d, %edi
	callq	_DeleteObject
	movl	%r13d, %edi
	callq	_DeleteObject
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movl	-44(%rbp), %esi
	callq	*8(%rax)
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DD_OK,8,3                      ## @DD_OK
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SM_CXSCREEN,4,2                ## @SM_CXSCREEN
	.comm	_DD_TEST_WIDTH,4,2              ## @DD_TEST_WIDTH
	.comm	_SM_CYSCREEN,4,2                ## @SM_CYSCREEN
	.comm	_DD_TEST_HEIGHT,4,2             ## @DD_TEST_HEIGHT
	.comm	_DD_TEST_STEP,8,3               ## @DD_TEST_STEP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DDRedrawFrame                  ; -- Begin function DDRedrawFrame
	.p2align	2
_DDRedrawFrame:                         ; @DDRedrawFrame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	add	x1, sp, #28
	blr	x8
Lloh0:
	adrp	x8, _DD_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DD_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x20, _SM_CXSCREEN@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SM_CXSCREEN@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_GetSystemMetrics
Lloh8:
	adrp	x21, _DD_TEST_WIDTH@GOTPAGE
Lloh9:
	ldr	x21, [x21, _DD_TEST_WIDTH@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w8, w0, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [sp, #8]
	ldr	w0, [x20]
	bl	_GetSystemMetrics
	ldr	w8, [x21]
	sub	w9, w0, w8
	cmp	w9, #0
	cinc	w9, w9, lt
	add	w8, w8, w9, asr #1
	str	w8, [sp, #12]
Lloh10:
	adrp	x20, _SM_CYSCREEN@GOTPAGE
Lloh11:
	ldr	x20, [x20, _SM_CYSCREEN@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_GetSystemMetrics
Lloh12:
	adrp	x21, _DD_TEST_HEIGHT@GOTPAGE
Lloh13:
	ldr	x21, [x21, _DD_TEST_HEIGHT@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w8, w0, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w23, w8, #1
	str	w23, [sp, #16]
	ldr	w0, [x20]
	bl	_GetSystemMetrics
	ldr	w8, [x21]
	sub	w9, w0, w8
	cmp	w9, #0
	cinc	w9, w9, lt
	add	w24, w8, w9, asr #1
	str	w24, [sp, #20]
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_RGB
	bl	_CreateSolidBrush
	mov	x20, x0
	mov	w0, #255
	mov	w1, #255
	mov	w2, #255
	bl	_RGB
	bl	_CreateSolidBrush
	mov	x21, x0
	sub	w8, w24, w23
Lloh14:
	adrp	x23, _DD_TEST_STEP@GOTPAGE
Lloh15:
	ldr	x23, [x23, _DD_TEST_STEP@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x9, w8, sxtw
	b.ge	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, #0
	cset	w22, eq
	ldr	w0, [sp, #28]
	csel	x2, x20, x21, eq
	add	x1, sp, #8
	bl	_FillRect
	ldr	x8, [x23]
	ldp	w9, w10, [sp, #16]
	add	w9, w9, w8
	sub	w10, w10, w8
	sub	w11, w10, w9
	stp	w9, w10, [sp, #16]
	ldp	w9, w10, [sp, #8]
	add	w9, w9, w8
	sub	w10, w10, w8
	stp	w9, w10, [sp, #8]
	cmp	x8, w11, sxtw
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_DeleteObject
	mov	x0, x21
	bl	_DeleteObject
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w1, [sp, #28]
	mov	x0, x19
	blr	x8
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DD_OK,8,3                      ; @DD_OK
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SM_CXSCREEN,4,2                ; @SM_CXSCREEN
	.comm	_DD_TEST_WIDTH,4,2              ; @DD_TEST_WIDTH
	.comm	_SM_CYSCREEN,4,2                ; @SM_CYSCREEN
	.comm	_DD_TEST_HEIGHT,4,2             ; @DD_TEST_HEIGHT
	.comm	_DD_TEST_STEP,8,3               ; @DD_TEST_STEP
.subsections_via_symbols
