	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_WM_HScroll
_EDIT_WM_HScroll:                       ## @EDIT_WM_HScroll
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movl	(%rdi), %eax
	movq	_ES_MULTILINE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_36
## %bb.1:
	movq	_ES_AUTOHSCROLL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_36
## %bb.2:
	leal	-128(%rsi), %eax
	cmpl	$10, %eax
	ja	LBB0_8
## %bb.3:
	movl	%edx, %r14d
	movq	%rdi, %r15
	movl	32(%rdi), %ebx
	subl	36(%rdi), %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	leaq	L_.str.6(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_EF_HSCROLL_TRACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 44(%r15)
	movq	_WS_HSCROLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_33
LBB0_5:
	subl	8(%r15), %r14d
	testl	%r14d, %r14d
	jne	LBB0_26
	jmp	LBB0_36
LBB0_8:
	leaq	L_.str.11(%rip), %rdi
	movl	%esi, %edx
	callq	_ERR
	jmp	LBB0_36
LBB0_9:
	leaq	L_.str.7(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_EF_HSCROLL_TRACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 44(%r15)
	movl	40(%r15), %edi
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movq	_WS_HSCROLL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_38
LBB0_10:
	movq	8(%r15), %rax
	subl	%eax, %r14d
	testl	%r14d, %r14d
	jne	LBB0_27
LBB0_11:
	movq	%r15, %rdi
	callq	_EDIT_UpdateScrollInfo
	movq	_EN_HSCROLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_EDIT_NOTIFY_PARENT
	jmp	LBB0_36
LBB0_12:
	leaq	L_.str.5(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_TRACE
	movq	8(%r15), %rax
	movq	24(%r15), %r14
	cmpq	%rax, %r14
	jle	LBB0_37
## %bb.13:
	subl	%eax, %r14d
	testl	%r14d, %r14d
	jne	LBB0_26
	jmp	LBB0_36
LBB0_14:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_TRACE
	movq	8(%r15), %rax
	cmpq	24(%r15), %rax
	jge	LBB0_37
## %bb.15:
	movq	_HSCROLL_FRACTION@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, %r14d
	cltd
	idivl	16(%r15)
	subl	%edx, %r14d
	testl	%r14d, %r14d
	jne	LBB0_26
	jmp	LBB0_36
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_TRACE
	cmpq	$0, 8(%r15)
	je	LBB0_37
## %bb.17:
	movq	_HSCROLL_FRACTION@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, %ecx
	cltd
	idivl	16(%r15)
	movl	%edx, %r14d
	subl	%ecx, %r14d
	testl	%r14d, %r14d
	jne	LBB0_26
	jmp	LBB0_36
LBB0_18:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_TRACE
	movq	8(%r15), %rax
	cmpq	24(%r15), %rax
	jge	LBB0_37
## %bb.19:
	movl	16(%r15), %r14d
	testl	%r14d, %r14d
	jne	LBB0_26
	jmp	LBB0_36
LBB0_20:
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_TRACE
	cmpq	$0, 8(%r15)
	je	LBB0_37
## %bb.21:
	xorl	%r14d, %r14d
	subl	16(%r15), %r14d
	testl	%r14d, %r14d
	jne	LBB0_26
	jmp	LBB0_36
LBB0_22:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_TRACE
	movq	8(%r15), %r14
	testq	%r14, %r14
	je	LBB0_37
## %bb.23:
	negl	%r14d
	testl	%r14d, %r14d
	jne	LBB0_26
LBB0_36:
	xorl	%r12d, %r12d
LBB0_37:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	leaq	L_.str.8(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_TRACE
	jmp	LBB0_37
LBB0_25:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	testl	%r14d, %r14d
	je	LBB0_36
LBB0_26:
	movq	8(%r15), %rax
LBB0_27:
	movslq	32(%r15), %rcx
	movslq	36(%r15), %rdx
	subq	%rdx, %rcx
	addq	%rax, %rcx
	movslq	%r14d, %rsi
	leaq	(%rcx,%rsi), %rax
	movq	24(%r15), %rdx
	movl	%edx, %edi
	subl	%ecx, %edi
	cmpq	%rdx, %rax
	cmovgl	%edi, %esi
	movl	$0, %r12d
	testl	%esi, %esi
	je	LBB0_37
## %bb.28:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_EDIT_EM_LineScroll_internal
	jmp	LBB0_37
LBB0_29:
	movl	40(%r15), %edi
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movq	_WS_HSCROLL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_41
## %bb.30:
	movl	40(%r15), %edi
	movq	_SB_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetScrollPos
LBB0_31:
	movl	%eax, %r12d
LBB0_32:
	leaq	L_.str.9(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_TRACE
	jmp	LBB0_37
LBB0_33:
	cmpl	$100, %r14d
	ja	LBB0_37
## %bb.34:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_37
## %bb.35:
	movslq	32(%r15), %rcx
	movslq	36(%r15), %rdx
	subq	%rcx, %rdx
	addq	%rdx, %rax
	movl	%r14d, %ecx
	imulq	%rax, %rcx
	movabsq	$-6640827866535438581, %rdx     ## imm = 0xA3D70A3D70A3D70B
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %r14
	addq	%rcx, %r14
	movq	%r14, %rax
	shrq	$63, %rax
	shrq	$6, %r14
	addl	%eax, %r14d
	jmp	LBB0_5
LBB0_38:
	cmpl	$100, %r14d
	ja	LBB0_37
## %bb.39:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.40:
	movslq	32(%r15), %rcx
	movslq	36(%r15), %rdx
	subq	%rcx, %rdx
	addq	%rdx, %rax
	movl	%r14d, %ecx
	imulq	%rax, %rcx
	movabsq	$-6640827866535438581, %rdx     ## imm = 0xA3D70A3D70A3D70B
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %r14
	addq	%rcx, %r14
	movq	%r14, %rax
	shrq	$63, %rax
	shrq	$6, %r14
	addl	%eax, %r14d
	jmp	LBB0_10
LBB0_41:
	movq	24(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_44
## %bb.42:
	movslq	32(%r15), %rdx
	movslq	36(%r15), %rsi
	imulq	$100, 8(%r15), %rax
	subq	%rdx, %rsi
	addq	%rsi, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_45
## %bb.43:
	cqto
	idivq	%rcx
	movq	%rax, %r12
	jmp	LBB0_32
LBB0_44:
	xorl	%r12d, %r12d
	jmp	LBB0_32
LBB0_45:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	jmp	LBB0_31
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_20
	.long	L0_0_set_22
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_29
	.end_data_region
                                        ## -- End function
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.comm	_ES_AUTOHSCROLL,4,2             ## @ES_AUTOHSCROLL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SB_LINELEFT\n"

L_.str.1:                               ## @.str.1
	.asciz	"SB_LINERIGHT\n"

L_.str.2:                               ## @.str.2
	.asciz	"SB_PAGELEFT\n"

	.comm	_HSCROLL_FRACTION,4,2           ## @HSCROLL_FRACTION
L_.str.3:                               ## @.str.3
	.asciz	"SB_PAGERIGHT\n"

L_.str.4:                               ## @.str.4
	.asciz	"SB_LEFT\n"

L_.str.5:                               ## @.str.5
	.asciz	"SB_RIGHT\n"

L_.str.6:                               ## @.str.6
	.asciz	"SB_THUMBTRACK %d\n"

	.comm	_EF_HSCROLL_TRACK,4,2           ## @EF_HSCROLL_TRACK
	.comm	_WS_HSCROLL,4,2                 ## @WS_HSCROLL
L_.str.7:                               ## @.str.7
	.asciz	"SB_THUMBPOSITION %d\n"

	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_EN_HSCROLL,4,2                 ## @EN_HSCROLL
L_.str.8:                               ## @.str.8
	.asciz	"SB_ENDSCROLL\n"

	.comm	_SB_HORZ,4,2                    ## @SB_HORZ
L_.str.9:                               ## @.str.9
	.asciz	"EM_GETTHUMB: returning %ld\n"

L_.str.10:                              ## @.str.10
	.asciz	"EM_LINESCROLL16\n"

L_.str.11:                              ## @.str.11
	.asciz	"undocumented WM_HSCROLL action %d (0x%04x), please report\n"

	.no_dead_strip	_EDIT_WM_HScroll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_WM_HScroll
_EDIT_WM_HScroll:                       ; @EDIT_WM_HScroll
	.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, _ES_MULTILINE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ES_MULTILINE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.1:
Lloh3:
	adrp	x9, _ES_AUTOHSCROLL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ES_AUTOHSCROLL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.2:
	sub	w8, w1, #128
	cmp	w8, #10
	b.hi	LBB0_6
; %bb.3:
	mov	x20, x2
	mov	x19, x0
	ldp	w9, w10, [x0, #32]
	sub	w21, w9, w10
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	str	x20, [sp]
Lloh8:
	adrp	x0, l_.str.6@PAGE
Lloh9:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_TRACE
Lloh10:
	adrp	x8, _EF_HSCROLL_TRACK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EF_HSCROLL_TRACK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #44]
	orr	w8, w9, w8
	str	w8, [x19, #44]
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _WS_HSCROLL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WS_HSCROLL@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_30
; %bb.5:
	ldr	w8, [x19, #8]
	sub	w20, w20, w8
	cbnz	w20, LBB0_23
	b	LBB0_26
LBB0_6:
Lloh16:
	adrp	x0, l_.str.11@PAGE
Lloh17:
	add	x0, x0, l_.str.11@PAGEOFF
	mov	x2, x1
	bl	_ERR
	b	LBB0_26
LBB0_7:
	mov	x8, x20
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.7@PAGE
Lloh19:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_TRACE
Lloh20:
	adrp	x8, _EF_HSCROLL_TRACK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EF_HSCROLL_TRACK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldp	w0, w9, [x19, #40]
	bic	w8, w9, w8
	str	w8, [x19, #44]
Lloh23:
	adrp	x8, _GWL_STYLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GWL_STYLE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_GetWindowLongW
Lloh26:
	adrp	x8, _WS_HSCROLL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WS_HSCROLL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_33
; %bb.8:
	ldr	x8, [x19, #8]
	sub	w20, w20, w8
	cbnz	w20, LBB0_24
	b	LBB0_36
LBB0_9:
Lloh29:
	adrp	x0, l_.str.5@PAGE
Lloh30:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	cmp	x9, x8
	b.le	LBB0_26
; %bb.10:
	sub	w20, w9, w8
	cbnz	w20, LBB0_23
	b	LBB0_26
LBB0_11:
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ge	LBB0_26
; %bb.12:
Lloh33:
	adrp	x8, _HSCROLL_FRACTION@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HSCROLL_FRACTION@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	sdiv	w8, w21, w8
	ldr	w9, [x19, #16]
	sdiv	w8, w8, w9
	mul	w20, w8, w9
	cbnz	w20, LBB0_23
	b	LBB0_26
LBB0_13:
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_26
; %bb.14:
Lloh38:
	adrp	x8, _HSCROLL_FRACTION@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HSCROLL_FRACTION@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	sdiv	w8, w21, w8
	ldr	w9, [x19, #16]
	sdiv	w10, w8, w9
	msub	w9, w10, w9, w8
	sub	w20, w9, w8
	cbnz	w20, LBB0_23
	b	LBB0_26
LBB0_15:
Lloh41:
	adrp	x0, l_.str.1@PAGE
Lloh42:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ge	LBB0_26
; %bb.16:
	ldr	w20, [x19, #16]
	cbnz	w20, LBB0_23
	b	LBB0_26
LBB0_17:
Lloh43:
	adrp	x0, l_.str@PAGE
Lloh44:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_26
; %bb.18:
	ldr	w8, [x19, #16]
	neg	w20, w8
	cbnz	w20, LBB0_23
	b	LBB0_26
LBB0_19:
Lloh45:
	adrp	x0, l_.str.4@PAGE
Lloh46:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_26
; %bb.20:
	neg	w20, w8
	cbnz	w20, LBB0_23
	b	LBB0_26
LBB0_21:
Lloh47:
	adrp	x0, l_.str.8@PAGE
Lloh48:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_TRACE
	b	LBB0_26
LBB0_22:
Lloh49:
	adrp	x0, l_.str.10@PAGE
Lloh50:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_TRACE
	cbz	w20, LBB0_26
LBB0_23:
	ldr	x8, [x19, #8]
LBB0_24:
	ldpsw	x9, x10, [x19, #32]
	sub	x9, x9, x10
	add	x8, x8, x9
	add	x9, x8, w20, sxtw
	ldr	x10, [x19, #24]
	sub	w8, w10, w8
	cmp	x9, x10
	csel	w1, w8, w20, gt
	cbz	w1, LBB0_26
; %bb.25:
	mov	x0, x19
	mov	w2, #0
	bl	_EDIT_EM_LineScroll_internal
LBB0_26:
	mov	w19, #0
LBB0_27:
	mov	x0, x19
	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_28:
	ldr	w0, [x19, #40]
Lloh51:
	adrp	x8, _GWL_STYLE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _GWL_STYLE@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	bl	_GetWindowLongW
Lloh54:
	adrp	x8, _WS_HSCROLL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _WS_HSCROLL@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_37
; %bb.29:
	ldr	w0, [x19, #40]
Lloh57:
	adrp	x8, _SB_HORZ@GOTPAGE
Lloh58:
	ldr	x8, [x8, _SB_HORZ@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	bl	_GetScrollPos
	mov	x19, x0
	b	LBB0_40
LBB0_30:
	cmp	w20, #100
	b.hi	LBB0_26
; %bb.31:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_26
; %bb.32:
	ldpsw	x9, x10, [x19, #32]
	sub	x9, x10, x9
	add	x8, x8, x9
	mov	w9, w20
	mul	x8, x8, x9
	mov	x9, #55051
	movk	x9, #28835, lsl #16
	movk	x9, #2621, lsl #32
	movk	x9, #41943, lsl #48
	smulh	x9, x8, x9
	add	x8, x9, x8
	lsr	x9, x8, #63
	lsr	x8, x8, #6
	ldr	w10, [x19, #8]
	add	w8, w8, w9
	sub	w20, w8, w10
	cbnz	w20, LBB0_23
	b	LBB0_26
LBB0_33:
	cmp	w20, #100
	b.hi	LBB0_26
; %bb.34:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_36
; %bb.35:
	ldpsw	x9, x10, [x19, #32]
	sub	x9, x10, x9
	add	x8, x8, x9
	mov	w9, w20
	mul	x8, x8, x9
	mov	x9, #55051
	movk	x9, #28835, lsl #16
	movk	x9, #2621, lsl #32
	movk	x9, #41943, lsl #48
	smulh	x9, x8, x9
	add	x8, x9, x8
	lsr	x9, x8, #63
	lsr	x10, x8, #6
	ldr	x8, [x19, #8]
	add	w9, w10, w9
	sub	w20, w9, w8
	cbnz	w20, LBB0_24
LBB0_36:
	mov	x0, x19
	bl	_EDIT_UpdateScrollInfo
Lloh60:
	adrp	x8, _EN_HSCROLL@GOTPAGE
Lloh61:
	ldr	x8, [x8, _EN_HSCROLL@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EDIT_NOTIFY_PARENT
	b	LBB0_26
LBB0_37:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_39
; %bb.38:
	ldpsw	x9, x10, [x19, #32]
	ldr	x11, [x19, #8]
	mov	w12, #100
	mul	x11, x11, x12
	sub	x9, x10, x9
	add	x8, x8, x9
	sdiv	x19, x11, x8
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	b	LBB0_40
LBB0_39:
	mov	w19, #0
LBB0_40:
	str	x19, [sp]
Lloh63:
	adrp	x0, l_.str.9@PAGE
Lloh64:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_TRACE
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
	.byte	(LBB0_19-LBB0_4)>>2
	.byte	(LBB0_21-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
	.byte	(LBB0_28-LBB0_4)>>2
                                        ; -- End function
	.comm	_ES_MULTILINE,4,2               ; @ES_MULTILINE
	.comm	_ES_AUTOHSCROLL,4,2             ; @ES_AUTOHSCROLL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SB_LINELEFT\n"

l_.str.1:                               ; @.str.1
	.asciz	"SB_LINERIGHT\n"

l_.str.2:                               ; @.str.2
	.asciz	"SB_PAGELEFT\n"

	.comm	_HSCROLL_FRACTION,4,2           ; @HSCROLL_FRACTION
l_.str.3:                               ; @.str.3
	.asciz	"SB_PAGERIGHT\n"

l_.str.4:                               ; @.str.4
	.asciz	"SB_LEFT\n"

l_.str.5:                               ; @.str.5
	.asciz	"SB_RIGHT\n"

l_.str.6:                               ; @.str.6
	.asciz	"SB_THUMBTRACK %d\n"

	.comm	_EF_HSCROLL_TRACK,4,2           ; @EF_HSCROLL_TRACK
	.comm	_WS_HSCROLL,4,2                 ; @WS_HSCROLL
l_.str.7:                               ; @.str.7
	.asciz	"SB_THUMBPOSITION %d\n"

	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_EN_HSCROLL,4,2                 ; @EN_HSCROLL
l_.str.8:                               ; @.str.8
	.asciz	"SB_ENDSCROLL\n"

	.comm	_SB_HORZ,4,2                    ; @SB_HORZ
l_.str.9:                               ; @.str.9
	.asciz	"EM_GETTHUMB: returning %ld\n"

l_.str.10:                              ; @.str.10
	.asciz	"EM_LINESCROLL16\n"

l_.str.11:                              ; @.str.11
	.asciz	"undocumented WM_HSCROLL action %d (0x%04x), please report\n"

	.no_dead_strip	_EDIT_WM_HScroll
.subsections_via_symbols
