	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTVIEW_UpdateScroll
_LISTVIEW_UpdateScroll:                 ## @LISTVIEW_UpdateScroll
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LVS_NOSCROLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	callq	_is_redrawing
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_LISTVIEW_UpdateHScroll
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_LISTVIEW_UpdateVScroll
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_LISTVIEW_UpdateHScroll
	movl	%eax, %r14d
	addl	%r15d, %r14d
	movq	%rbx, %rdi
	callq	_LISTVIEW_UpdateVScroll
	addl	%r12d, %eax
	movl	%r14d, %ecx
	orl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %ecx
	movl	%ecx, -36(%rbp)
	movl	4(%rbx), %edi
	movq	_SW_ERASE@GOTPCREL(%rip), %rcx
	movq	_SW_INVALIDATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	leaq	-36(%rbp), %rcx
	movl	%r14d, %esi
	movl	%eax, %edx
	movq	%rcx, %r8
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	$0
	callq	_ScrollWindowEx
	addq	$16, %rsp
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_LVS_NOSCROLL,4,2               ## @LVS_NOSCROLL
	.comm	_SW_ERASE,4,2                   ## @SW_ERASE
	.comm	_SW_INVALIDATE,4,2              ## @SW_INVALIDATE
	.no_dead_strip	_LISTVIEW_UpdateScroll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTVIEW_UpdateScroll
_LISTVIEW_UpdateScroll:                 ; @LISTVIEW_UpdateScroll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _LVS_NOSCROLL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LVS_NOSCROLL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	mov	x19, x0
	bl	_is_redrawing
	cbz	w0, LBB0_1
; %bb.3:
	mov	x0, x19
	bl	_LISTVIEW_UpdateHScroll
	mov	x20, x0
	mov	x0, x19
	bl	_LISTVIEW_UpdateVScroll
	mov	x21, x0
	mov	x0, x19
	bl	_LISTVIEW_UpdateHScroll
	add	w20, w0, w20
	mov	x0, x19
	bl	_LISTVIEW_UpdateVScroll
	add	w2, w0, w21
	orr	w8, w20, w2
	cbz	w8, LBB0_1
; %bb.4:
	ldp	w0, w8, [x19, #4]
Lloh3:
	adrp	x9, _SW_ERASE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SW_ERASE@GOTPAGEOFF]
	str	w8, [sp, #12]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _SW_INVALIDATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SW_INVALIDATE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w7, w9, w8
	add	x3, sp, #12
	add	x4, sp, #12
	mov	x1, x20
	mov	w5, #0
	mov	w6, #0
	bl	_ScrollWindowEx
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LVS_NOSCROLL,4,2               ; @LVS_NOSCROLL
	.comm	_SW_ERASE,4,2                   ; @SW_ERASE
	.comm	_SW_INVALIDATE,4,2              ; @SW_INVALIDATE
	.no_dead_strip	_LISTVIEW_UpdateScroll
.subsections_via_symbols
