	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_dictionary
_read_dictionary:                       ## @read_dictionary
	.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
	movq	%rsi, %rax
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_get_tsearch_config_filename
	movq	%rax, %rbx
	leaq	-44(%rbp), %rdi
	movq	%rax, %rsi
	callq	_tsearch_readline_begin
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_CONFIG_FILE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %rdi
	callq	_tsearch_readline
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfree
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-44(%rbp), %rdi
	callq	_tsearch_readline
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_19
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpb	$0, (%r14)
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_lowerstr
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_pfree
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	%esi, %edi
	callq	_palloc
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, 8(%r15)
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %rbx
	movq	%rax, %r14
	je	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	-64(%rbp), %esi
	subl	%r13d, %esi
	movq	%r13, %rdi
	callq	_pnstrdup
	movq	8(%r15), %rcx
	movslq	%r12d, %rbx
	movl	%eax, 4(%rcx,%rbx,8)
	movq	%r14, %rdi
	callq	_pstrdup
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,8)
	incl	%r12d
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-64(%rbp), %rbx
	cmpl	$0, 16(%r15)
	je	LBB0_17
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_find_word
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, %r13
	cmpl	(%r15), %r12d
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	leal	(%r12,%r12), %esi
	testl	%r12d, %r12d
	movl	$16, %eax
	cmovlel	%eax, %esi
	movl	%esi, (%r15)
	movq	8(%r15), %rdi
	shll	$3, %esi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	callq	_repalloc
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpq	$0, 24(%r15)
	jne	LBB0_15
	jmp	LBB0_16
LBB0_19:
	leaq	-44(%rbp), %rdi
	callq	_tsearch_readline_end
	movl	%r12d, (%r15)
	cmpl	$2, %r12d
	jl	LBB0_21
## %bb.20:
	movq	8(%r15), %rdi
	movq	_compare_syn@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %esi
	movl	$8, %edx
	callq	_qsort
	jmp	LBB0_21
LBB0_3:
	leaq	-44(%rbp), %rdi
	callq	_tsearch_readline_end
	movl	$0, (%r15)
LBB0_21:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfree
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rules"

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_CONFIG_FILE_ERROR,4,2  ## @ERRCODE_CONFIG_FILE_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"could not open synonym file \"%s\": %m"

	.comm	_compare_syn,4,2                ## @compare_syn
	.no_dead_strip	_read_dictionary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_dictionary
_read_dictionary:                       ; @read_dictionary
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_get_tsearch_config_filename
	mov	x19, x0
	add	x0, sp, #12
	mov	x1, x19
	bl	_tsearch_readline_begin
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
Lloh5:
	adrp	x8, _ERRCODE_CONFIG_FILE_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_CONFIG_FILE_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_2:
	add	x0, sp, #12
	bl	_tsearch_readline
	cbz	x0, LBB0_20
; %bb.3:
	mov	x23, x0
	mov	w21, #0
	mov	w25, #16
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_pfree
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #12
	bl	_tsearch_readline
	mov	x23, x0
	cbz	x0, LBB0_18
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldrb	w8, [x23]
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_lowerstr
	mov	x22, x0
	mov	x0, x23
	bl	_pfree
	mov	x23, x22
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x1
	bl	_palloc
LBB0_9:                                 ;   in Loop: Header=BB0_13 Depth=2
	str	x0, [x20, #8]
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=2
	cmp	x23, x22
	b.eq	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp]
	sub	w1, w8, w24
	mov	x0, x24
	bl	_pnstrdup
	ldr	x8, [x20, #8]
	sbfiz	x23, x21, #3, #32
	add	x8, x8, x23
	str	w0, [x8, #4]
	mov	x0, x22
	bl	_pstrdup
	ldr	x8, [x20, #8]
	str	w0, [x8, x23]
	add	w21, w21, #1
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x23, [sp]
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_4
LBB0_13:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, sp
	mov	x0, x23
	bl	_find_word
	cbz	x0, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x24, x0
	ldr	w8, [x20]
	cmp	w21, w8
	b.ne	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	lsl	w8, w21, #1
	cmp	w21, #0
	csel	w8, w8, w25, gt
	str	w8, [x20]
	ldr	x0, [x20, #8]
	lsl	w1, w8, #3
	cbz	x0, LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	bl	_repalloc
	b	LBB0_9
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_11
	b	LBB0_12
LBB0_18:
	add	x0, sp, #12
	bl	_tsearch_readline_end
	str	w21, [x20]
	cmp	w21, #2
	b.lt	LBB0_21
; %bb.19:
	ldr	x0, [x20, #8]
Lloh10:
	adrp	x8, _compare_syn@GOTPAGE
Lloh11:
	ldr	x8, [x8, _compare_syn@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x1, x21
	mov	w2, #8
	bl	_qsort
	b	LBB0_21
LBB0_20:
	add	x0, sp, #12
	bl	_tsearch_readline_end
	str	wzr, [x20]
LBB0_21:
	mov	x0, x19
	bl	_pfree
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rules"

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_CONFIG_FILE_ERROR,4,2  ; @ERRCODE_CONFIG_FILE_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"could not open synonym file \"%s\": %m"

	.comm	_compare_syn,4,2                ; @compare_syn
	.no_dead_strip	_read_dictionary
.subsections_via_symbols
