	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_EM_Scroll
_EDIT_EM_Scroll:                        ## @EDIT_EM_Scroll
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	_ES_MULTILINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_13
## %bb.1:
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_13
## %bb.2:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	cmpl	$0, 4(%rbx)
	je	LBB0_13
## %bb.5:
	leaq	16(%rbx), %rcx
	leaq	20(%rbx), %rax
	jmp	LBB0_8
LBB0_6:
	movl	8(%rbx), %eax
	decl	%eax
	cmpl	%eax, 4(%rbx)
	jge	LBB0_13
## %bb.7:
	leaq	16(%rbx), %rax
	leaq	20(%rbx), %rcx
LBB0_8:
	movl	(%rax), %eax
	subl	(%rcx), %eax
	cltd
	idivl	12(%rbx)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_13
LBB0_12:
	movl	$-1, %r14d
	cmpl	$0, 4(%rbx)
	jne	LBB0_9
	jmp	LBB0_13
LBB0_3:
	movl	8(%rbx), %eax
	decl	%eax
	movl	$1, %r14d
	cmpl	%eax, 4(%rbx)
	jge	LBB0_13
LBB0_9:
	movq	%rbx, %rdi
	callq	_get_vertical_line_count
	movl	4(%rbx), %ecx
	addl	%r14d, %ecx
	movl	8(%rbx), %edi
	subl	%eax, %edi
	cmpl	%edi, %ecx
	jle	LBB0_11
## %bb.10:
	xorl	%esi, %esi
	callq	_max
	movl	%eax, %r14d
	subl	4(%rbx), %r14d
	je	LBB0_13
LBB0_11:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_EDIT_EM_LineScroll
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MAKELONG                       ## TAILCALL
LBB0_13:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_EDIT_EM_Scroll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_EM_Scroll
_EDIT_EM_Scroll:                        ; @EDIT_EM_Scroll
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ES_MULTILINE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ES_MULTILINE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.1:
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_15
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_15
; %bb.4:
	add	x8, x19, #16
	add	x9, x19, #20
	b	LBB0_7
LBB0_5:
	ldp	w8, w9, [x19, #4]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_15
; %bb.6:
	add	x9, x19, #16
	add	x8, x19, #20
LBB0_7:
	ldr	w9, [x9]
	ldr	w8, [x8]
	sub	w8, w9, w8
	ldr	w9, [x19, #12]
	sdiv	w20, w8, w9
	cbnz	w20, LBB0_12
	b	LBB0_15
LBB0_8:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_15
; %bb.9:
	mov	w20, #-1
	b	LBB0_12
LBB0_10:
	ldp	w8, w9, [x19, #4]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_15
; %bb.11:
	mov	w20, #1
LBB0_12:
	mov	x0, x19
	bl	_get_vertical_line_count
	ldp	w8, w9, [x19, #4]
	add	w8, w8, w20
	sub	w0, w9, w0
	cmp	w8, w0
	b.le	LBB0_14
; %bb.13:
	mov	w1, #0
	bl	_max
	ldr	w8, [x19, #4]
	subs	w20, w0, w8
	b.eq	LBB0_15
LBB0_14:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_EDIT_EM_LineScroll
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MAKELONG
LBB0_15:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
	.comm	_ES_MULTILINE,4,2               ; @ES_MULTILINE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_EDIT_EM_Scroll
.subsections_via_symbols
