	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_SetRedraw
_LISTBOX_SetRedraw:                     ## @LISTBOX_SetRedraw
	.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
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movl	(%rbx), %eax
	movq	_LBS_NOREDRAW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_8
## %bb.2:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	_LBS_DISPLAYCHANGED@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.3:
	movl	32(%rbx), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_InvalidateRect
	movq	16(%rbx), %rcx
	movq	24(%rbx), %rax
	movq	8(%rbx), %rdx
	addq	%rcx, %rdx
	cmpq	%rax, %rdx
	jle	LBB0_5
## %bb.4:
	subq	%rcx, %rax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovgq	%rax, %rcx
	movq	%rcx, 8(%rbx)
LBB0_5:
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_LISTBOX_UpdateScroll           ## TAILCALL
LBB0_7:
	movq	_LBS_NOREDRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_NOREDRAW,4,2               ## @LBS_NOREDRAW
	.comm	_LBS_DISPLAYCHANGED,4,2         ## @LBS_DISPLAYCHANGED
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_LISTBOX_SetRedraw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_SetRedraw
_LISTBOX_SetRedraw:                     ; @LISTBOX_SetRedraw
	.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
	cbz	x1, LBB0_7
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _LBS_NOREDRAW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LBS_NOREDRAW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.2:
	bic	w8, w8, w9
	str	w8, [x19]
Lloh3:
	adrp	x20, _LBS_DISPLAYCHANGED@GOTPAGE
Lloh4:
	ldr	x20, [x20, _LBS_DISPLAYCHANGED@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	w0, [x19, #32]
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_InvalidateRect
	ldp	x10, x8, [x19, #8]
	ldr	x9, [x19, #24]
	add	x10, x8, x10
	cmp	x10, x9
	b.le	LBB0_5
; %bb.4:
	sub	x8, x9, x8
	cmp	x8, #0
	csel	x8, x8, xzr, gt
	str	x8, [x19, #8]
LBB0_5:
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_LISTBOX_UpdateScroll
LBB0_7:
Lloh8:
	adrp	x8, _LBS_NOREDRAW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LBS_NOREDRAW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_NOREDRAW,4,2               ; @LBS_NOREDRAW
	.comm	_LBS_DISPLAYCHANGED,4,2         ; @LBS_DISPLAYCHANGED
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_LISTBOX_SetRedraw
.subsections_via_symbols
