	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_EM_LineScroll_internal
_EDIT_EM_LineScroll_internal:           ## @EDIT_EM_LineScroll_internal
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rcx
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	movq	64(%rdi), %rax
	subq	72(%rdi), %rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	cqto
	idivq	%rsi
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r15d
LBB0_3:
	movq	_ES_MULTILINE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	16(%rbx), %rsi
	testl	%eax, 8(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_EDIT_EM_PosFromChar
	movl	%eax, %edi
	callq	_LOWORD
	movswq	%ax, %rsi
	xorl	%ecx, %ecx
LBB0_5:
	movq	%r14, %rax
	negq	%rax
	movq	%rsi, %rdx
	negq	%rdx
	cmpq	%rax, %rsi
	cmovgeq	%r14, %rdx
	movq	24(%rbx), %r14
	subq	%rsi, %r14
	cmpq	%r14, %rdx
	cmovlq	%rdx, %r14
	addq	32(%rbx), %rcx
	xorl	%edi, %edi
	movq	%rcx, %rsi
	callq	_max
	movq	40(%rbx), %rsi
	subq	%r15, %rsi
	cmpq	%rsi, %rax
	jl	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	callq	_max
LBB0_7:
	movq	32(%rbx), %r15
	subq	%rax, %r15
	imulq	(%rbx), %r15
	movq	%r14, %rcx
	orq	%r15, %rcx
	je	LBB0_13
## %bb.8:
	leaq	64(%rbx), %r12
	movq	%rax, 32(%rbx)
	movl	(%r13), %ecx
	movq	%r14, %rax
	testl	%ecx, 8(%rbx)
	jne	LBB0_12
## %bb.9:
	movq	48(%rbx), %rcx
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.11:
	movq	%r14, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_12
LBB0_10:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_12:
	addq	%rax, 16(%rbx)
	movl	60(%rbx), %edi
	leaq	-48(%rbp), %r13
	movq	%r13, %rsi
	callq	_GetClientRect
	leaq	-44(%rbp), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_IntersectRect
	movl	60(%rbx), %edi
	movq	%r14, %rsi
	negq	%rsi
	movq	_SW_INVALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	leaq	-44(%rbp), %r8
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ScrollWindowEx
	addq	$16, %rsp
	movq	%rbx, %rdi
	callq	_EDIT_UpdateScrollInfo
LBB0_13:
	testq	%r14, %r14
	je	LBB0_16
## %bb.14:
	movq	_EF_HSCROLL_TRACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 56(%rbx)
	jne	LBB0_16
## %bb.15:
	movq	_EN_HSCROLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EDIT_NOTIFY_PARENT
LBB0_16:
	testq	%r15, %r15
	je	LBB0_19
## %bb.17:
	movq	_EF_VSCROLL_TRACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 56(%rbx)
	jne	LBB0_19
## %bb.18:
	movq	_EN_VSCROLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EDIT_NOTIFY_PARENT
LBB0_19:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SW_INVALIDATE,4,2              ## @SW_INVALIDATE
	.comm	_EF_HSCROLL_TRACK,4,2           ## @EF_HSCROLL_TRACK
	.comm	_EN_HSCROLL,4,2                 ## @EN_HSCROLL
	.comm	_EF_VSCROLL_TRACK,4,2           ## @EF_VSCROLL_TRACK
	.comm	_EN_VSCROLL,4,2                 ## @EN_VSCROLL
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_EDIT_EM_LineScroll_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_EM_LineScroll_internal
_EDIT_EM_LineScroll_internal:           ; @EDIT_EM_LineScroll_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20, #64]!
	ldr	x9, [x0, #72]
	sub	x8, x8, x9
	ldr	x9, [x0]
	ldr	w10, [x0, #8]
Lloh0:
	adrp	x23, _ES_MULTILINE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ES_MULTILINE@GOTPAGEOFF]
	ldr	w11, [x23]
	ldr	x1, [x0, #16]
	sdiv	x24, x8, x9
	tst	w11, w10
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_EDIT_EM_PosFromChar
	bl	_LOWORD
	mov	x2, #0
	sxth	x1, w0
LBB0_2:
	neg	x8, x21
	cmp	x1, x8
	csneg	x8, x21, x1, ge
	ldp	x9, x10, [x19, #24]
	sub	x9, x9, x1
	cmp	x8, x9
	csel	x22, x8, x9, lt
	add	x1, x10, x2
	mov	w0, #0
	bl	_max
	ldr	x8, [x19, #40]
	sub	x1, x8, x24
	cmp	x0, x1
	b.lt	LBB0_4
; %bb.3:
	mov	w0, #0
	bl	_max
LBB0_4:
	ldr	x8, [x19, #32]
	sub	x8, x8, x0
	ldr	x9, [x19]
	mul	x21, x8, x9
	orr	x8, x22, x21
	cbz	x8, LBB0_8
; %bb.5:
	str	x0, [x19, #32]
	ldr	w9, [x19, #8]
	ldr	w10, [x23]
	mov	x8, x22
	tst	w10, w9
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x19, #48]
	sdiv	x8, x22, x8
LBB0_7:
	ldr	x9, [x19, #16]
	add	x8, x9, x8
	str	x8, [x19, #16]
	ldr	w0, [x19, #60]
	add	x1, sp, #12
	bl	_GetClientRect
	add	x0, sp, #8
	add	x1, sp, #12
	mov	x2, x20
	bl	_IntersectRect
	ldr	w0, [x19, #60]
	neg	x1, x22
Lloh5:
	adrp	x8, _SW_INVALIDATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SW_INVALIDATE@GOTPAGEOFF]
Lloh7:
	ldr	w7, [x8]
	add	x4, sp, #8
	mov	x2, x21
	mov	x3, #0
	mov	x5, #0
	mov	x6, #0
	bl	_ScrollWindowEx
	mov	x0, x19
	bl	_EDIT_UpdateScrollInfo
LBB0_8:
	cbz	x22, LBB0_11
; %bb.9:
	ldr	w8, [x19, #56]
Lloh8:
	adrp	x9, _EF_HSCROLL_TRACK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EF_HSCROLL_TRACK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.10:
Lloh11:
	adrp	x8, _EN_HSCROLL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EN_HSCROLL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EDIT_NOTIFY_PARENT
LBB0_11:
	cbz	x21, LBB0_14
; %bb.12:
	ldr	w8, [x19, #56]
Lloh14:
	adrp	x9, _EF_VSCROLL_TRACK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EF_VSCROLL_TRACK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.13:
Lloh17:
	adrp	x8, _EN_VSCROLL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EN_VSCROLL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EDIT_NOTIFY_PARENT
LBB0_14:
Lloh20:
	adrp	x8, _TRUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ES_MULTILINE,4,2               ; @ES_MULTILINE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SW_INVALIDATE,4,2              ; @SW_INVALIDATE
	.comm	_EF_HSCROLL_TRACK,4,2           ; @EF_HSCROLL_TRACK
	.comm	_EN_HSCROLL,4,2                 ; @EN_HSCROLL
	.comm	_EF_VSCROLL_TRACK,4,2           ; @EF_VSCROLL_TRACK
	.comm	_EN_VSCROLL,4,2                 ; @EN_VSCROLL
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_EDIT_EM_LineScroll_internal
.subsections_via_symbols
