	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WINHELP_FindLink
_WINHELP_FindLink:                      ## @WINHELP_FindLink
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_13
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_LOWORD
	movw	%ax, -48(%rbp)
	movq	%rbx, %rdi
	callq	_HIWORD
	movw	%ax, -46(%rbp)
	movl	(%r14), %edi
	movq	_CTL_ID_TEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movq	_EM_CHARFROMPOS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rcx
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_SendMessageW
	movq	%rax, %r15
	movq	8(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	leaq	1(%r15), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rbx)
	jg	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	8(%rbx), %r15
	jg	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edi
	movq	_CTL_ID_TEXT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_GetDlgItem
	movq	_EM_POSFROMCHAR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%eax, %edi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rcx
	callq	_SendMessageW
	movl	(%r14), %edi
	movl	(%r13), %esi
	callq	_GetDlgItem
	movl	(%r12), %esi
	movl	%eax, %edi
	leaq	-64(%rbp), %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_SendMessageW
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movswq	-48(%rbp), %rcx
	movswq	-56(%rbp), %rdx
	addq	(%rbx), %rdx
	cmpq	%rcx, %rdx
	jg	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	8(%rbx), %rdx
	cmpq	%rcx, %rdx
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movswq	-46(%rbp), %rcx
	movswq	-54(%rbp), %rdx
	addq	%rdx, %rax
	cmpq	%rcx, %rax
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	24(%rbx), %rax
	cmpq	%rcx, %rax
	jle	LBB0_10
	jmp	LBB0_14
LBB0_11:
	movzwl	-62(%rbp), %eax
	cmpw	-54(%rbp), %ax
	jne	LBB0_13
## %bb.12:
	movzwl	-48(%rbp), %eax
	cmpw	-64(%rbp), %ax
	jl	LBB0_14
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_ID_TEXT,4,2                ## @CTL_ID_TEXT
	.comm	_EM_CHARFROMPOS,4,2             ## @EM_CHARFROMPOS
	.comm	_EM_POSFROMCHAR,4,2             ## @EM_POSFROMCHAR
	.no_dead_strip	_WINHELP_FindLink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WINHELP_FindLink
_WINHELP_FindLink:                      ; @WINHELP_FindLink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_LOWORD
	strh	w0, [sp, #24]
	mov	x0, x20
	bl	_HIWORD
	strh	w0, [sp, #26]
	ldr	w0, [x19]
Lloh0:
	adrp	x23, _CTL_ID_TEXT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CTL_ID_TEXT@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_GetDlgItem
Lloh2:
	adrp	x8, _EM_CHARFROMPOS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EM_CHARFROMPOS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x3, sp, #24
	mov	x2, #0
	bl	_SendMessageW
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
	cbz	x20, LBB0_14
; %bb.2:
	mov	x21, x0
	add	x22, x0, #1
Lloh5:
	adrp	x24, _EM_POSFROMCHAR@GOTPAGE
Lloh6:
	ldr	x24, [x24, _EM_POSFROMCHAR@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x20, #24]
	cbz	x20, LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cmp	x8, x21
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	cmp	x21, x8
	b.gt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	ldr	w1, [x23]
	bl	_GetDlgItem
	ldr	w1, [x24]
	add	x2, sp, #16
	mov	x3, x21
	bl	_SendMessageW
	ldr	w0, [x19]
	ldr	w1, [x23]
	bl	_GetDlgItem
	ldr	w1, [x24]
	add	x2, sp, #8
	mov	x3, x22
	bl	_SendMessageW
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsh	x9, [sp, #24]
	ldrsh	x10, [sp, #16]
	ldr	x11, [x20]
	add	x10, x11, x10
	cmp	x10, x9
	b.gt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x20, #8]
	add	x10, x11, x10
	cmp	x10, x9
	b.le	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsh	x9, [sp, #26]
	ldrsh	x10, [sp, #18]
	add	x8, x8, x10
	cmp	x8, x9
	b.gt	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x20, #24]
	add	x8, x10, x8
	cmp	x8, x9
	b.le	LBB0_3
	b	LBB0_14
LBB0_11:
	ldrh	w8, [sp, #10]
	ldrh	w9, [sp, #18]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
	ldrsh	w8, [sp, #24]
	ldrsh	w9, [sp, #8]
	cmp	w8, w9
	b.lt	LBB0_14
LBB0_13:
	mov	x20, #0
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_ID_TEXT,4,2                ; @CTL_ID_TEXT
	.comm	_EM_CHARFROMPOS,4,2             ; @EM_CHARFROMPOS
	.comm	_EM_POSFROMCHAR,4,2             ; @EM_POSFROMCHAR
	.no_dead_strip	_WINHELP_FindLink
.subsections_via_symbols
