	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clearArea
_clearArea:                             ## @clearArea
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_giz_screen@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_4
LBB0_3:
	xorl	%esi, %esi
	movl	$38400, %edx                    ## imm = 0x9600
	jmp	LBB0_5
LBB0_1:
	movl	$1, %edi
	callq	_fb_lock
	movq	%rax, %rdi
	movq	%rax, (%r14)
	testl	%ebx, %ebx
	jne	LBB0_3
LBB0_4:
	addq	$148944, %rdi                   ## imm = 0x245D0
	xorl	%esi, %esi
	movl	$1284, %edx                     ## imm = 0x504
LBB0_5:
	callq	_memset32
	movq	_currentConfig@GOTPCREL(%rip), %rax
	testb	$-128, 1(%rax)
	jne	LBB0_6
## %bb.10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	callq	_fb_unlock
	xorl	%edi, %edi
	callq	_fb_lock
	movq	%rax, (%r14)
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.7:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$38400, %edx                    ## imm = 0x9600
	jmp	LBB0_8
LBB0_9:
	addq	$148944, %rax                   ## imm = 0x245D0
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1284, %edx                     ## imm = 0x504
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memset32                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_giz_screen,8,3                 ## @giz_screen
	.comm	_currentConfig,4,2              ## @currentConfig
	.no_dead_strip	_clearArea
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clearArea
_clearArea:                             ; @clearArea
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _giz_screen@GOTPAGE
Lloh1:
	ldr	x20, [x20, _giz_screen@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_3
; %bb.1:
	cbz	w19, LBB0_4
LBB0_2:
	mov	w1, #0
	mov	w2, #38400
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	bl	_fb_lock
	str	x0, [x20]
	cbnz	w19, LBB0_2
LBB0_4:
	add	x8, x0, #36, lsl #12            ; =147456
	add	x0, x8, #1488
	mov	w1, #0
	mov	w2, #1284
LBB0_5:
	bl	_memset32
Lloh2:
	adrp	x8, _currentConfig@GOTPAGE
Lloh3:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
	ldrb	w8, [x8, #1]
	tbnz	w8, #7, LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	_fb_unlock
	mov	w0, #0
	bl	_fb_lock
	str	x0, [x20]
	cbz	w19, LBB0_9
; %bb.8:
	mov	w1, #0
	mov	w2, #38400
	b	LBB0_10
LBB0_9:
	add	x8, x0, #36, lsl #12            ; =147456
	add	x0, x8, #1488
	mov	w1, #0
	mov	w2, #1284
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memset32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_giz_screen,8,3                 ; @giz_screen
	.comm	_currentConfig,4,2              ; @currentConfig
	.no_dead_strip	_clearArea
.subsections_via_symbols
