	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UpdateWindowScrollState        ## -- Begin function UpdateWindowScrollState
	.p2align	4, 0x90
_UpdateWindowScrollState:               ## @UpdateWindowScrollState
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r13
	movl	%edi, %r14d
	leaq	-56(%rbp), %rsi
	callq	_GetClientRect
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	-56(%rbp), %rdi
	callq	_SetRectEmpty
LBB0_2:
	leaq	-96(%rbp), %r12
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_ZeroMemory
	movq	_SIF_RANGE@GOTPCREL(%rip), %rax
	movq	_SIF_PAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SIF_POS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	$40, -96(%rbp)
	movq	_SIF_DISABLENOSCROLL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -92(%rbp)
	movq	%r13, 56(%rbx)
	movq	%r13, %rdi
	subq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_max
	movq	%rax, 48(%rbx)
	movq	40(%rbx), %rdi
	movq	%rax, %rsi
	callq	_min
	movq	%rax, 40(%rbx)
	movq	-56(%rbp), %rcx
	movq	%rcx, (%rbx)
	movq	$0, -64(%rbp)
	movq	%r13, -72(%rbp)
	movq	%rcx, -88(%rbp)
	movq	%rax, -80(%rbp)
	movq	_SB_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TRUE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_SetScrollInfo
	movq	%r15, 32(%rbx)
	movq	%r15, %rdi
	subq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_max
	movq	%rax, 24(%rbx)
	movq	16(%rbx), %rdi
	movq	%rax, %rsi
	callq	_min
	movq	%rax, 16(%rbx)
	movq	-48(%rbp), %rcx
	movq	%rcx, 8(%rbx)
	movq	$0, -64(%rbp)
	movq	%r15, -72(%rbp)
	movq	%rcx, -88(%rbp)
	movq	%rax, -80(%rbp)
	movq	_SB_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_SetScrollInfo
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIF_RANGE,4,2                  ## @SIF_RANGE
	.comm	_SIF_PAGE,4,2                   ## @SIF_PAGE
	.comm	_SIF_POS,4,2                    ## @SIF_POS
	.comm	_SIF_DISABLENOSCROLL,4,2        ## @SIF_DISABLENOSCROLL
	.comm	_SB_HORZ,4,2                    ## @SB_HORZ
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SB_VERT,4,2                    ## @SB_VERT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UpdateWindowScrollState        ; -- Begin function UpdateWindowScrollState
	.p2align	2
_UpdateWindowScrollState:               ; @UpdateWindowScrollState
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	add	x1, sp, #48
	bl	_GetClientRect
	cbnz	w0, LBB0_2
; %bb.1:
	add	x0, sp, #48
	bl	_SetRectEmpty
LBB0_2:
	mov	w23, #40
	add	x0, sp, #8
	mov	w1, #40
	bl	_ZeroMemory
Lloh0:
	adrp	x8, _SIF_RANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIF_RANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SIF_PAGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIF_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _SIF_POS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SIF_POS@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _SIF_DISABLENOSCROLL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SIF_DISABLENOSCROLL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stp	w23, w8, [sp, #8]
	str	x22, [x21, #56]
	ldr	x8, [sp, #48]
	sub	x0, x22, x8
	mov	w1, #0
	bl	_max
	mov	x1, x0
	str	x0, [x21, #48]
	ldr	x0, [x21, #40]
	bl	_min
	str	x0, [x21, #40]
	ldr	x8, [sp, #48]
	str	x8, [x21]
	stp	x22, xzr, [sp, #32]
	stp	x8, x0, [sp, #16]
Lloh12:
	adrp	x8, _SB_HORZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SB_HORZ@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x22, _TRUE@GOTPAGE
Lloh16:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	ldr	w3, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_SetScrollInfo
	str	x20, [x21, #32]
	ldr	x8, [sp, #56]
	sub	x0, x20, x8
	mov	w1, #0
	bl	_max
	mov	x1, x0
	str	x0, [x21, #24]
	ldr	x0, [x21, #16]
	bl	_min
	ldr	x8, [sp, #56]
	stp	x8, x0, [x21, #8]
	stp	x20, xzr, [sp, #32]
	stp	x8, x0, [sp, #16]
Lloh17:
	adrp	x8, _SB_VERT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SB_VERT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w3, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_SetScrollInfo
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIF_RANGE,4,2                  ; @SIF_RANGE
	.comm	_SIF_PAGE,4,2                   ; @SIF_PAGE
	.comm	_SIF_POS,4,2                    ; @SIF_POS
	.comm	_SIF_DISABLENOSCROLL,4,2        ; @SIF_DISABLENOSCROLL
	.comm	_SB_HORZ,4,2                    ; @SB_HORZ
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SB_VERT,4,2                    ; @SB_VERT
.subsections_via_symbols
