	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_join                        ## -- Begin function ex_join
	.p2align	4, 0x90
_ex_join:                               ## @ex_join
	.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, %r13
	movq	%rdi, %r15
	callq	_NEEDFILE
	movq	8(%r13), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_db_exist
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movl	$256, %ecx                      ## imm = 0x100
	callq	_GET_SPACE_RETW
	movq	_E_ADDR_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	cmpl	$1, (%r13)
	jne	LBB0_4
LBB0_5:
	movq	16(%r13), %rbx
	incq	%rbx
	movq	%rbx, 16(%r13)
LBB0_6:
	movq	8(%r13), %r12
	movl	$1, %r14d
	cmpq	%rbx, %r12
	jg	LBB0_26
## %bb.7:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_1:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_msgq
	jmp	LBB0_35
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rax
	cmpb	$41, (%rax)
	jne	LBB0_19
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rdx
	xorl	%r14d, %r14d
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rsi
	callq	_MEMCPY
	movq	-64(%rbp), %rax
	movq	-48(%rbp), %rcx
	movsbl	-1(%rax,%rcx), %eax
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%r12), %rax
	cmpq	%rbx, %r12
	movq	%rax, %r12
	je	LBB0_25
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	leaq	-48(%rbp), %rcx
	leaq	-64(%rbp), %r8
	callq	_db_get
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	%rax, %r13
	addq	$2, %r13
	movq	%r15, %rdi
	movq	%r13, %rcx
	callq	_ADD_SPACE_RETW
	testl	%r14d, %r14d
	jne	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	movq	_E_C_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FL_ISSET
	testl	%eax, %eax
	jne	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movsbl	-56(%rbp), %edi                 ## 1-byte Folded Reload
	callq	_isblank
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r14d, %r14d
	movl	$32, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, -64(%rbp)
	je	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rax
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%rax), %edi
	callq	_isblank
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	-48(%rbp), %rax
	incq	%rax
	decq	-64(%rbp)
	movq	%rax, -48(%rbp)
	jne	LBB0_16
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$32, %eax
	jmp	LBB0_23
LBB0_9:
	decq	%r12
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r12, 16(%r13)
	movq	%r12, %rbx
	jmp	LBB0_26
LBB0_25:
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	16(%r13), %rbx
LBB0_26:
	movq	8(%r13), %r12
	movq	%r12, 8(%r15)
	cmpq	%r12, %rbx
	jle	LBB0_28
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_db_delete
	testq	%rax, %rax
	jne	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_33 Depth=1
	decq	%rbx
	cmpq	%r12, %rbx
	jg	LBB0_33
LBB0_28:
	testl	%r14d, %r14d
	je	LBB0_29
LBB0_30:
	movq	%r15, %rdi
	callq	_FREE_SPACEW
	movl	16(%r13), %eax
	subl	8(%r13), %eax
	movq	16(%r15), %rcx
	movq	_L_JOINED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %esi
	addl	%esi, %eax
	incl	%eax
	movl	%eax, (%rcx,%rdx,4)
	xorl	%eax, %eax
	jmp	LBB0_36
LBB0_29:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_db_set
	testq	%rax, %rax
	je	LBB0_30
LBB0_34:
	movq	%r15, %rdi
	callq	_FREE_SPACEW
LBB0_35:
	movl	$1, %eax
LBB0_36:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	16(%r13), %rbx
	jmp	LBB0_6
LBB0_19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ex_join.cold.1
	xorl	%eax, %eax
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function ex_join.cold.1
_ex_join.cold.1:                        ## @ex_join.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_L
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_STRCHR
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_M_ERR,4,2                      ## @M_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"131|No following lines to join"

	.comm	_E_ADDR_DEF,4,2                 ## @E_ADDR_DEF
	.comm	_E_C_FORCE,4,2                  ## @E_C_FORCE
L_.str.1:                               ## @.str.1
	.asciz	".?!"

	.comm	_L_JOINED,8,3                   ## @L_JOINED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_join                        ; -- Begin function ex_join
	.p2align	2
_ex_join:                               ; @ex_join
	.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	x20, x1
	mov	x19, x0
	bl	_NEEDFILE
	ldr	x8, [x20, #8]
	add	x1, x8, #1
	mov	x0, x19
	bl	_db_exist
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	w3, #256
	bl	_GET_SPACE_RETW
Lloh0:
	adrp	x8, _E_ADDR_DEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E_ADDR_DEF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_ISSET
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_35
LBB0_3:
	ldr	x8, [x20, #16]
	add	x21, x8, #1
	str	x21, [x20, #16]
LBB0_4:
	ldr	x22, [x20, #8]
	cmp	x22, x21
	b.le	LBB0_7
; %bb.5:
	mov	w26, #1
	b	LBB0_26
LBB0_6:
Lloh3:
	adrp	x8, _M_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_msgq
	b	LBB0_33
LBB0_7:
	mov	w24, #0
	mov	x23, #0
	mov	w26, #1
Lloh8:
	adrp	x25, _E_C_FORCE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _E_C_FORCE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	w26, #0
	mov	w24, #32
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x22, #1
	cmp	x22, x21
	mov	x22, x8
	b.eq	LBB0_25
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	mov	x3, sp
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_db_get
	cbnz	x0, LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x23, x8
	add	x23, x8, #2
	mov	x0, x19
	mov	x3, x23
	bl	_ADD_SPACE_RETW
	cbnz	w26, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x20, #24]
	ldr	w1, [x25]
	bl	_FL_ISSET
	cbz	w0, LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [sp]
	bl	_MEMCPY
	mov	w26, #0
	ldp	x9, x8, [sp]
	add	x8, x8, x9
	ldursb	w24, [x8, #-1]
	b	LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	sxtb	w0, w24
	bl	_isblank
	cbz	x0, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_8
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp]
LBB0_19:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x8]
	bl	_isblank
	cbz	x0, LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	ldp	x8, x9, [sp]
	add	x8, x8, #1
	mov	w24, #32
	subs	x9, x9, #1
	stp	x8, x9, [sp]
	b.ne	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w26, #0
	b	LBB0_9
LBB0_22:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp]
	ldrb	w8, [x8]
	cmp	w8, #41
	b.eq	LBB0_14
; %bb.23:
	mov	x0, x24
	bl	_ex_join.cold.1
LBB0_24:
	sub	x21, x22, #1
	str	x21, [x20, #16]
	b	LBB0_26
LBB0_25:
	ldr	x21, [x20, #16]
LBB0_26:
	ldr	x22, [x20, #8]
	str	x22, [x19, #8]
	cmp	x21, x22
	b.le	LBB0_29
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_db_delete
	cbnz	x0, LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	sub	x21, x21, #1
	cmp	x21, x22
	b.gt	LBB0_27
LBB0_29:
	cbz	w26, LBB0_31
LBB0_30:
	mov	x0, x19
	bl	_FREE_SPACEW
	mov	w0, #0
	ldr	w8, [x20, #16]
	ldr	x9, [x19, #16]
Lloh10:
	adrp	x10, _L_JOINED@GOTPAGE
Lloh11:
	ldr	x10, [x10, _L_JOINED@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	ldr	w12, [x20, #8]
	sub	w8, w8, w12
	add	w8, w8, w11
	add	w8, w8, #1
	str	w8, [x9, x10]
	b	LBB0_34
LBB0_31:
	mov	x0, x19
	mov	x1, x22
	bl	_db_set
	cbz	x0, LBB0_30
LBB0_32:
	mov	x0, x19
	bl	_FREE_SPACEW
LBB0_33:
	mov	w0, #1
LBB0_34:
	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
LBB0_35:
	ldr	x21, [x20, #16]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function ex_join.cold.1
_ex_join.cold.1:                        ; @ex_join.cold.1
	.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
	mov	x19, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_L
	mov	x1, x19
	bl	_STRCHR
	brk	#0x1
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_M_ERR,4,2                      ; @M_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"131|No following lines to join"

	.comm	_E_ADDR_DEF,4,2                 ; @E_ADDR_DEF
	.comm	_E_C_FORCE,4,2                  ; @E_C_FORCE
l_.str.1:                               ; @.str.1
	.asciz	".?!"

	.comm	_L_JOINED,8,3                   ; @L_JOINED
.subsections_via_symbols
