	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ui_invalidate                  ## -- Begin function ui_invalidate
	.p2align	4, 0x90
_ui_invalidate:                         ## @ui_invalidate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, -24(%rbp)
	movl	%esi, -20(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	testl	%edx, %edx
	jle	LBB0_4
## %bb.1:
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.2:
	leaq	-24(%rbp), %rdi
	leaq	-20(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_bs_warp_coords
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	-12(%rbp), %edi
	addl	$3, %edi
	andl	$-4, %edi
	movl	%edi, -12(%rbp)
	imull	-16(%rbp), %edi
	shll	$2, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %ecx
	movl	-16(%rbp), %r8d
	movq	_g_server_depth@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leal	7(%r9), %eax
	addl	$14, %r9d
	testl	%eax, %eax
	cmovnsl	%eax, %r9d
	sarl	$3, %r9d
	imull	%ecx, %r9d
	movq	%rbx, %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_bs_copy_box
	movl	-12(%rbp), %esi
	movl	-16(%rbp), %edx
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %r8d
	movl	%edx, (%rsp)
	movq	%rbx, %rdi
	movl	%esi, %r9d
	callq	_mi_paint_rect
	movq	%rbx, %rdi
	callq	_xfree
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_server_depth,4,2             ## @g_server_depth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ui_invalidate                  ; -- Begin function ui_invalidate
	.p2align	2
_ui_invalidate:                         ; @ui_invalidate
	.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
	stp	w1, w0, [sp, #8]
	stp	w3, w2, [sp]
	cmp	w2, #1
	b.lt	LBB0_4
; %bb.1:
	cmp	w3, #1
	b.lt	LBB0_4
; %bb.2:
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	mov	w4, #0
	mov	w5, #0
	bl	_bs_warp_coords
	cbz	x0, LBB0_4
; %bb.3:
	ldp	w9, w8, [sp]
	add	w8, w8, #3
	and	w8, w8, #0xfffffffc
	str	w8, [sp, #4]
	mul	w8, w9, w8
	lsl	w0, w8, #2
	bl	_xmalloc
	mov	x19, x0
	ldp	w2, w1, [sp, #8]
	ldp	w4, w3, [sp]
Lloh0:
	adrp	x8, _g_server_depth@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_server_depth@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w8, #7
	add	w8, w8, #14
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #3
	mul	w5, w8, w3
	bl	_bs_copy_box
	ldp	w2, w1, [sp]
	ldp	w4, w3, [sp, #8]
	mov	x0, x19
	mov	x5, x1
	mov	x6, x2
	bl	_mi_paint_rect
	mov	x0, x19
	bl	_xfree
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_g_server_depth,4,2             ; @g_server_depth
.subsections_via_symbols
