	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_docrep
_get_docrep:                            ## @get_docrep
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movq	(%rsi), %rdi
	callq	_GETQUERY
	movq	%rax, %r12
	movq	(%rbx), %rax
	movl	(%rax), %r14d
	movl	%r14d, %eax
	shll	$5, %eax
	leal	(%rax,%rax,4), %edi
	callq	_palloc
	movq	%rax, %rdi
	movq	(%rbx), %rsi
	cmpl	$0, (%rsi)
	je	LBB0_32
## %bb.1:
	movq	%rbx, %r8
	shll	$2, %r14d
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	(%r8), %rsi
	movslq	(%rsi), %rax
	cmpq	%rax, %rbx
	jae	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_10 Depth 3
                                        ##       Child Loop BB0_13 Depth 3
	movq	%rbx, %rax
	shlq	$4, %rax
	movq	(%r12,%rax), %rcx
	movq	_QI_VAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	leaq	(%r12,%rax), %rdx
	addq	$8, %rdx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	leaq	-104(%rbp), %rcx
	callq	_find_wordentry
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	-104(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$8, %edx
	subq	%r14, %rdx
	movq	%r15, %rdi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_10 Depth 3
                                        ##       Child Loop BB0_13 Depth 3
	movq	%r14, %r15
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	$0, (%r14)
	jne	LBB0_9
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=3
	addq	$8, %r14
	leaq	(%rdx,%r15), %rcx
	sarq	$3, %rcx
	addq	$8, %r15
	cmpq	%rax, %rcx
	jb	LBB0_8
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, %r12
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_POSDATALEN
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_POSDATAPTR
	movq	%r12, %rdi
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %r12
	addq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	%ebx, %rax
	cmpq	%rax, %r12
	jb	LBB0_11
## %bb.24:                              ##   in Loop: Header=BB0_10 Depth=3
	movl	%ebx, %eax
	leal	(%rax,%rax), %ebx
	shll	$4, %eax
	leal	(%rax,%rax,4), %esi
	callq	_repalloc
	movq	%rax, %rdi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	xorl	%r12d, %r12d
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=3
	movq	(%rsi,%r12,8), %rax
	movslq	%r13d, %r13
	leaq	(,%r13,4), %rcx
	addq	%r13, %rcx
	movq	%rax, (%rdi,%rcx,8)
	movq	%r15, 24(%rdi,%rcx,8)
	movq	%rdx, 32(%rdi,%rcx,8)
	incl	%r13d
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=3
	incq	%r12
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_17
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rdx), %ebx
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=3
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, %r13
	movq	(%rsi,%r12,8), %rdi
	callq	_WEP_GETWEIGHT
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-128(%rbp), %r13                ## 8-byte Reload
	btl	%eax, %ebx
	jb	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=2
	addq	$8, %r14
	movq	-104(%rbp), %rax
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	addq	%rdx, %r15
	sarq	$3, %r15
	cmpq	%rax, %r15
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jb	LBB0_7
	jmp	LBB0_18
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_19:
	testl	%r13d, %r13d
	jle	LBB0_32
## %bb.20:
	movq	_compareDocR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdi, %rbx
	movl	%r13d, %esi
	movl	$40, %edx
	movq	%r8, %r15
	callq	_qsort
	movq	(%rbx), %r14
	movq	(%r15), %rax
	movl	(%rax), %edi
	shll	$3, %edi
	callq	_palloc
	movq	%rbx, %rdi
	movq	32(%rbx), %rcx
	movq	%rcx, (%rax)
	cmpl	$1, %r13d
	jne	LBB0_25
## %bb.21:
	movl	$1, %ecx
	movq	%rdi, %r15
LBB0_31:
	movq	%r14, (%r15)
	movl	%ecx, 8(%r15)
	movq	%rax, 16(%r15)
	movups	-144(%rbp), %xmm0
	movups	%xmm0, 24(%r15)
	subq	%rdi, %r15
	addq	$40, %r15
	shrq	$3, %r15
	imull	$-858993459, %r15d, %eax        ## imm = 0xCCCCCCCD
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_33
LBB0_32:
	callq	_pfree
	xorl	%edi, %edi
LBB0_33:
	movq	%rdi, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	%r13d, %r12d
	movl	$1, %ecx
	movl	$80, %r13d
	movq	%rdi, %r15
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	%r14, (%r15)
	movl	%ecx, 8(%r15)
	movq	%rax, 16(%r15)
	movups	-144(%rbp), %xmm0
	movups	%xmm0, 24(%r15)
	addq	$40, %r15
	movq	-40(%rdi,%r13), %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	shll	$3, %edi
	callq	_palloc
	movq	%rbx, %rdi
	movq	-8(%rbx,%r13), %rcx
	movq	%rcx, (%rax)
	movl	$1, %ecx
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	%r13, %rdx
	sarq	$3, %rdx
	movabsq	$-3689348814741910323, %rsi     ## imm = 0xCCCCCCCCCCCCCCCD
	imulq	%rsi, %rdx
	addq	$40, %r13
	cmpq	%r12, %rdx
	jge	LBB0_31
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	-40(%rdi,%r13), %rdx
	cmpq	-80(%rdi,%r13), %rdx
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-16(%rdi,%r13), %rdx
	cmpq	-56(%rdi,%r13), %rdx
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-8(%rdi,%r13), %rdx
	movslq	%ecx, %rsi
	movq	%rdx, (%rax,%rsi,8)
	incl	%ecx
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_QI_VAL,8,3                     ## @QI_VAL
	.comm	_compareDocR,4,2                ## @compareDocR
	.no_dead_strip	_get_docrep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_docrep
_get_docrep:                            ; @get_docrep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x27, x1
	mov	x22, x0
	ldr	x0, [x1]
	bl	_GETQUERY
	mov	x28, x0
	ldr	x8, [x27]
	ldr	w21, [x8]
	add	w8, w21, w21, lsl #2
	lsl	w0, w8, #5
	bl	_palloc
	mov	x20, x0
	ldr	x1, [x27]
	ldr	w8, [x1]
	cbz	w8, LBB0_23
; %bb.1:
	str	x19, [sp]                       ; 8-byte Folded Spill
	str	wzr, [sp, #36]                  ; 4-byte Folded Spill
	mov	x19, #0
	lsl	w23, w21, #2
Lloh0:
	adrp	x26, _QI_VAL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _QI_VAL@GOTPAGEOFF]
	str	x27, [sp, #24]                  ; 8-byte Folded Spill
	str	w22, [sp, #20]                  ; 4-byte Folded Spill
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x26, _QI_VAL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _QI_VAL@GOTPAGEOFF]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #1
	ldr	x1, [x27]
	ldrsw	x8, [x1]
	cmp	x19, x8
	b.hs	LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	lsl	x8, x19, #4
	ldr	x8, [x28, x8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x28, x19, lsl #4
	add	x25, x8, #8
	add	x3, sp, #56
	mov	x0, x22
	mov	x2, x25
	bl	_find_wordentry
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	mov	w9, #8
	sub	x24, x9, x0
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	mov	x26, x21
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x21]
	cbnz	x9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	add	x21, x21, #8
	add	x9, x24, x26
	add	x26, x26, #8
	cmp	x8, x9, asr #3
	b.hi	LBB0_9
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x22
	mov	x1, x21
	bl	_POSDATALEN
	mov	x27, x0
	mov	x0, x22
	mov	x1, x21
	bl	_POSDATAPTR
	mov	x28, x0
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	add	x22, x27, w8, sxtw
	cmp	x22, w23, sxtw
	b.lo	LBB0_13
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w8, w23, w23, lsl #2
	lsl	w23, w23, #1
	lsl	w1, w8, #4
	mov	x0, x20
	bl	_repalloc
	mov	x20, x0
	cmp	x22, w23, sxtw
	b.hs	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=2
	cbnz	x27, LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x21, x21, #8
	ldr	x8, [sp, #56]
	add	x9, x24, x26
	cmp	x8, x9, asr #3
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w22, [sp, #20]                  ; 4-byte Folded Reload
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
Lloh4:
	adrp	x26, _QI_VAL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _QI_VAL@GOTPAGEOFF]
	b.hi	LBB0_8
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=3
	ldr	x8, [x28]
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	mov	w9, #40
	smaddl	x9, w10, w9, x20
	str	x8, [x9]
	stp	x26, x25, [x9, #24]
	add	w10, w10, #1
	str	w10, [sp, #36]                  ; 4-byte Folded Spill
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=3
	add	x28, x28, #8
	subs	x27, x27, #1
	b.eq	LBB0_14
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w22, [x25]
	cbz	w22, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=3
	ldr	x0, [x28]
	bl	_WEP_GETWEIGHT
	lsr	w8, w22, w0
	tbnz	w8, #0, LBB0_15
	b	LBB0_16
LBB0_19:
	ldr	w21, [sp, #36]                  ; 4-byte Folded Reload
	cmp	w21, #1
	b.lt	LBB0_23
; %bb.20:
Lloh6:
	adrp	x8, _compareDocR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _compareDocR@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #40
	bl	_qsort
	ldr	x19, [x20]
	ldr	x8, [x27]
	ldr	w8, [x8]
	lsl	w0, w8, #3
	bl	_palloc
	ldr	x8, [x20, #32]
	str	x8, [x0]
	cmp	w21, #1
	b.ne	LBB0_25
; %bb.21:
	mov	w8, #1
	mov	x21, x20
LBB0_22:
	str	x19, [x21]
	str	w8, [x21, #8]
	str	x0, [x21, #16]
	ldur	q0, [sp, #40]
	stur	q0, [x21, #24]
	sub	x8, x21, x20
	add	x8, x8, #40
	lsr	x8, x8, #3
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	mul	w8, w8, w9
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_24
LBB0_23:
	mov	x0, x20
	bl	_pfree
	mov	x20, #0
LBB0_24:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_25:
	mov	x23, #0
	mov	w8, #1
	mov	x24, #-3689348814741910324
	movk	x24, #52429
	mov	x9, x21
	mov	x21, x20
	mov	w22, w9
	b	LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_28 Depth=1
	str	x19, [x21]
	str	w8, [x21, #8]
	str	x0, [x21, #16]
	ldur	q0, [sp, #40]
	stur	q0, [x21, #24]
	add	x21, x21, #40
	ldr	x19, [x25, #40]
	ldr	x8, [x27]
	ldr	w8, [x8]
	lsl	w0, w8, #3
	bl	_palloc
	ldr	x8, [x25, #72]
	str	x8, [x0]
	mov	w8, #1
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x9, x23, #80
	asr	x9, x9, #3
	mul	x9, x9, x24
	add	x23, x23, #40
	cmp	x9, x22
	b.ge	LBB0_22
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	add	x25, x20, x23
	ldr	x9, [x25, #40]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x9, [x25, #64]
	ldr	x10, [x25, #24]
	cmp	x9, x10
	b.ne	LBB0_26
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	add	x9, x20, x23
	ldr	x9, [x9, #72]
	str	x9, [x0, w8, sxtw #3]
	add	w8, w8, #1
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QI_VAL,8,3                     ; @QI_VAL
	.comm	_compareDocR,4,2                ; @compareDocR
	.no_dead_strip	_get_docrep
.subsections_via_symbols
