	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_put                            ## -- Begin function put
	.p2align	4, 0x90
_put:                                   ## @put
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %rbx
	movq	%rdi, %r12
	testq	%rsi, %rsi
	je	LBB0_1
LBB0_5:
	movl	%r9d, %r14d
	movl	(%rsi), %edi
	movq	%rsi, %r15
	callq	_TAILQ_FIRST
	movq	%rbx, %rcx
	movq	%rax, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$1, (%rcx)
	jne	LBB0_14
## %bb.6:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_db_last
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_52
## %bb.7:
	cmpl	$0, -44(%rbp)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_8
LBB0_14:
	movq	_CB_LMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	cmpl	$1, %r14d
	sbbl	$0, %edx
	movl	%edx, -44(%rbp)
	leal	1(%rdx), %esi
	movl	%esi, (%r13)
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.16:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r8
	movq	8(%rbx), %rcx
	movl	$1, %r15d
	movq	%r12, %rdi
	movl	$1, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_db_append
	testq	%rax, %rax
	jne	LBB0_52
## %bb.17:
	movq	_L_ADDED@GOTPCREL(%rip), %r14
	movq	_q@GOTPCREL(%rip), %r13
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	incl	-44(%rbp)
	movq	8(%r12), %rax
	movq	(%r14), %rcx
	incl	(%rax,%rcx,4)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %rbx
	movl	-44(%rbp), %edx
	movq	(%rax), %r8
	movq	8(%rax), %rcx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_db_append
	testq	%rax, %rax
	je	LBB0_18
	jmp	LBB0_52
LBB0_1:
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.4:
	movl	(%rdx), %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_CBNAME
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_KEY_NAME
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_msgq
	movl	$1, %r15d
	jmp	LBB0_52
LBB0_22:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	%esi, -44(%rbp)
	movq	_DBG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rcx
	leaq	-80(%rbp), %r8
	movq	%r12, %rdi
	callq	_db_get
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_52
## %bb.23:
	movq	(%rbx), %rax
	movq	-80(%rbp), %rcx
	addq	%rax, %rcx
	incq	%rcx
	movq	%r12, %r15
	movq	%r12, %rdi
	callq	_GET_SPACE_RETW
	cmpq	$0, -80(%rbp)
	je	LBB0_26
## %bb.24:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	4(%rax), %r12
	cmpl	$1, -48(%rbp)                   ## 4-byte Folded Reload
	sbbq	$-1, %r12
	testl	%r12d, %r12d
	je	LBB0_26
## %bb.25:
	movq	-72(%rbp), %rsi
	movq	%r12, %rdx
	callq	_MEMCPY
	shlq	$2, %r12
	addq	%r12, -72(%rbp)
LBB0_26:
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_28
## %bb.27:
	movq	8(%rbx), %rsi
	callq	_MEMCPY
LBB0_28:
	movq	-80(%rbp), %r12
	testq	%r12, %r12
	je	LBB0_29
## %bb.30:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	4(%rax), %rcx
	xorl	%eax, %eax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	setne	%al
	addq	%rcx, %rax
	movl	-44(%rbp), %ecx
	movl	%ecx, (%r13)
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	testl	%esi, %esi
	je	LBB0_32
## %bb.31:
	cmpq	$0, (%rbx)
	setne	%cl
LBB0_32:
	addl	%edx, %ecx
	subq	%rax, %r12
	jmp	LBB0_33
LBB0_2:
	movq	16(%r12), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.3:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_msgq
	movl	$1, %r15d
	jmp	LBB0_52
LBB0_8:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.9:
	movq	(%rbx), %r8
	movq	8(%rbx), %rcx
	movq	%r12, %r14
	movl	$1, %r15d
	movq	%r12, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_db_append
	testq	%rax, %rax
	jne	LBB0_52
## %bb.10:
	movq	_L_ADDED@GOTPCREL(%rip), %r12
	movq	_q@GOTPCREL(%rip), %r13
	movl	$1, %r15d
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	incl	-44(%rbp)
	movq	8(%r14), %rax
	movq	(%r12), %rcx
	incl	(%rax,%rcx,4)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	movl	-44(%rbp), %edx
	movq	(%rax), %r8
	movq	8(%rax), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_db_append
	testq	%rax, %rax
	je	LBB0_11
	jmp	LBB0_52
LBB0_20:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %esi
LBB0_21:
	movl	$0, 4(%r13)
	addq	$4, %r13
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_nonblank
	xorl	%r15d, %r15d
	jmp	LBB0_52
LBB0_13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$1, (%rax)
	xorl	%r15d, %r15d
	jmp	LBB0_52
LBB0_29:
	movl	-44(%rbp), %eax
	movl	%eax, (%r13)
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
LBB0_33:
	movl	%ecx, 4(%r13)
	movq	_q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	testq	%rax, %rax
	je	LBB0_34
## %bb.39:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	__texth@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TAILQ_LAST
	movq	%r15, %rdi
	movq	%rax, %r15
	movq	$0, -80(%rbp)
	movq	(%rax), %rcx
	movq	%r12, %r14
	addq	%r12, %rcx
	movq	%rdi, %r13
	callq	_ADD_SPACE_RETW
	movq	(%r15), %rdx
	movq	8(%r15), %rsi
	callq	_MEMCPY
	movq	%r12, %rdx
	testq	%r12, %r12
	je	LBB0_41
## %bb.40:
	movq	-72(%rbp), %rsi
	callq	_MEMCPY
	movq	%r12, %rdx
LBB0_41:
	addq	(%r15), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_db_set
	movl	$1, %r15d
	testq	%rax, %rax
	movq	_q@GOTPCREL(%rip), %r12
	jne	LBB0_51
## %bb.42:
	movl	-44(%rbp), %eax
	cmpl	%eax, 4(%r13)
	je	LBB0_44
## %bb.43:
	movl	%eax, 4(%r13)
	movq	8(%r13), %rax
	movq	_L_CHANGED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incl	(%rax,%rcx,4)
LBB0_44:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %rbx
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_TAILQ_NEXT
	testq	%rax, %rax
	je	LBB0_48
## %bb.45:
	movq	_L_ADDED@GOTPCREL(%rip), %r14
	movl	$1, %r15d
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edx
	movq	(%rbx), %r8
	movq	8(%rbx), %rcx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_db_append
	testq	%rax, %rax
	jne	LBB0_51
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=1
	incl	-44(%rbp)
	movq	8(%r13), %rax
	movq	(%r14), %rcx
	incl	(%rax,%rcx,4)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %rbx
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_TAILQ_NEXT
	testq	%rax, %rax
	jne	LBB0_46
LBB0_48:
	movl	-44(%rbp), %edx
	movl	$1, %r15d
	movq	%r13, %rdi
	movl	$1, %esi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_db_append
	testq	%rax, %rax
	jne	LBB0_51
## %bb.49:
	movq	_L_ADDED@GOTPCREL(%rip), %rax
	jmp	LBB0_50
LBB0_34:
	testq	%r12, %r12
	je	LBB0_36
## %bb.35:
	movq	-72(%rbp), %rsi
	movq	%r12, %rdx
	callq	_MEMCPY
LBB0_36:
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_db_set
	movq	%r15, %r13
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_51
## %bb.37:
	movl	-44(%rbp), %eax
	movl	$0, %r15d
	cmpl	%eax, 4(%r13)
	je	LBB0_51
## %bb.38:
	movl	%eax, 4(%r13)
	movq	_L_CHANGED@GOTPCREL(%rip), %rax
LBB0_50:
	movq	8(%r13), %rcx
	movq	(%rax), %rax
	incl	(%rcx,%rax,4)
	xorl	%r15d, %r15d
LBB0_51:
	movq	%r13, %rdi
	callq	_FREE_SPACEW
LBB0_52:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_ERR,4,2                      ## @M_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"053|The default buffer is empty"

L_.str.1:                               ## @.str.1
	.asciz	"054|Buffer %s is empty"

	.comm	_L_ADDED,8,3                    ## @L_ADDED
	.comm	_q,4,2                          ## @q
	.comm	_CB_LMODE,4,2                   ## @CB_LMODE
	.comm	_DBG_FATAL,4,2                  ## @DBG_FATAL
	.comm	_L_CHANGED,8,3                  ## @L_CHANGED
	.comm	__texth,4,2                     ## @_texth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function put
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_put
	.p2align	2
_put:                                   ; @put
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x1
	mov	x19, x0
	cbz	x1, LBB0_10
LBB0_1:
	ldr	w0, [x23]
	bl	_TAILQ_FIRST
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.2:
	add	x1, sp, #28
	mov	x0, x19
	bl	_db_last
	cbnz	x0, LBB0_14
; %bb.3:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_25
LBB0_4:
Lloh0:
	adrp	x8, _CB_LMODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CB_LMODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_F_ISSET
	cbz	x0, LBB0_13
; %bb.5:
	cmp	w24, #0
	cset	w8, eq
	ldr	w9, [x22]
	sub	w2, w9, w8
	str	w2, [sp, #28]
	add	w1, w2, #1
	str	w1, [x21]
	cbz	x20, LBB0_31
; %bb.6:
	ldp	x4, x3, [x20]
	mov	w23, #1
	mov	x0, x19
	mov	w1, #1
	bl	_db_append
	cbnz	x0, LBB0_53
; %bb.7:
Lloh3:
	adrp	x22, _L_ADDED@GOTPAGE
Lloh4:
	ldr	x22, [x22, _L_ADDED@GOTPAGEOFF]
Lloh5:
	adrp	x24, _q@GOTPAGE
Lloh6:
	ldr	x24, [x24, _q@GOTPAGEOFF]
	mov	w23, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_TAILQ_NEXT
	cbz	x0, LBB0_30
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x20, x0
	ldr	w2, [sp, #28]
	ldp	x4, x3, [x0]
	mov	x0, x19
	mov	w1, #1
	bl	_db_append
	cbz	x0, LBB0_8
	b	LBB0_53
LBB0_10:
	cbz	x2, LBB0_15
; %bb.11:
	ldr	w20, [x2]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x20
	bl	_CBNAME
Lloh7:
	adrp	x8, _M_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_KEY_NAME
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
LBB0_12:
	bl	_msgq
	mov	w23, #1
	b	LBB0_53
LBB0_13:
	ldr	w1, [x22]
	str	w1, [sp, #28]
Lloh12:
	adrp	x8, _DBG_FATAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DBG_FATAL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x3, sp, #8
	add	x4, sp, #16
	mov	x0, x19
	bl	_db_get
	cbz	x0, LBB0_17
LBB0_14:
	mov	w23, #1
	b	LBB0_53
LBB0_15:
	ldr	x8, [x19, #16]
	ldr	x23, [x8]
	cbnz	x23, LBB0_1
; %bb.16:
Lloh15:
	adrp	x8, _M_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_12
LBB0_17:
	ldr	x8, [x20]
	ldr	x9, [sp, #16]
	add	x8, x8, x9
	add	x3, x8, #1
	mov	x0, x19
	bl	_GET_SPACE_RETW
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_20
; %bb.18:
	ldrsw	x8, [x22, #4]
	cmp	w24, #0
	cinc	x25, x8, ne
	cbz	w25, LBB0_20
; %bb.19:
	ldr	x1, [sp, #8]
	mov	x2, x25
	bl	_MEMCPY
	ldr	x8, [sp, #8]
	add	x8, x8, x25, lsl #2
	str	x8, [sp, #8]
LBB0_20:
	ldr	x2, [x20]
	cbz	x2, LBB0_22
; %bb.21:
	ldr	x1, [x20, #8]
	bl	_MEMCPY
LBB0_22:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_33
; %bb.23:
	ldrsw	x9, [x22, #4]
	cmp	w24, #0
	cinc	x9, x9, ne
	sub	x22, x8, x9
	ldr	w8, [sp, #28]
	str	w8, [x21]
	ldr	w8, [x19]
	cbz	w24, LBB0_34
; %bb.24:
	ldr	x9, [x20]
	cmp	x9, #0
	cset	w9, ne
	b	LBB0_35
LBB0_25:
	cbz	x20, LBB0_32
; %bb.26:
	ldp	x4, x3, [x20]
	mov	w23, #1
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_db_append
	cbnz	x0, LBB0_53
; %bb.27:
Lloh20:
	adrp	x22, _L_ADDED@GOTPAGE
Lloh21:
	ldr	x22, [x22, _L_ADDED@GOTPAGEOFF]
Lloh22:
	adrp	x24, _q@GOTPAGE
Lloh23:
	ldr	x24, [x24, _q@GOTPAGEOFF]
	mov	w23, #1
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_TAILQ_NEXT
	cbz	x0, LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x20, x0
	ldr	w2, [sp, #28]
	ldp	x4, x3, [x0]
	mov	x0, x19
	mov	w1, #1
	bl	_db_append
	cbz	x0, LBB0_28
	b	LBB0_53
LBB0_30:
	ldr	w1, [x21]
LBB0_31:
	str	wzr, [x21, #4]!
	mov	x0, x19
	mov	x2, x21
	bl	_nonblank
	mov	w23, #0
	b	LBB0_53
LBB0_32:
	mov	w23, #0
Lloh24:
	adrp	x8, lCPI0_0@PAGE
Lloh25:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	b	LBB0_53
LBB0_33:
	mov	x22, #0
	ldr	w9, [sp, #28]
	str	w9, [x21]
	b	LBB0_36
LBB0_34:
	mov	w9, #0
LBB0_35:
	add	w8, w9, w8
LBB0_36:
	str	w8, [x21, #4]
Lloh26:
	adrp	x24, _q@GOTPAGE
Lloh27:
	ldr	x24, [x24, _q@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_TAILQ_NEXT
	cbz	x0, LBB0_48
; %bb.37:
	ldr	w0, [x23]
Lloh28:
	adrp	x8, __texth@GOTPAGE
Lloh29:
	ldr	x8, [x8, __texth@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_TAILQ_LAST
	mov	x21, x0
	str	xzr, [sp, #16]
	ldr	x8, [x0]
	add	x3, x8, x22
	mov	x0, x19
	bl	_ADD_SPACE_RETW
	ldp	x2, x1, [x21]
	bl	_MEMCPY
	cbz	x22, LBB0_39
; %bb.38:
	ldr	x1, [sp, #8]
	mov	x2, x22
	bl	_MEMCPY
LBB0_39:
	ldr	x21, [x21]
	ldr	w1, [sp, #28]
	mov	x0, x19
	bl	_db_set
	cbnz	x0, LBB0_51
; %bb.40:
	ldr	w9, [x19, #4]
	ldr	w8, [sp, #28]
	cmp	w9, w8
	b.eq	LBB0_42
; %bb.41:
	str	w8, [x19, #4]
	ldr	x8, [x19, #8]
Lloh31:
	adrp	x9, _L_CHANGED@GOTPAGE
Lloh32:
	ldr	x9, [x9, _L_CHANGED@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_42:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_TAILQ_NEXT
	mov	x20, x0
	ldr	w1, [x24]
	bl	_TAILQ_NEXT
	cbz	x0, LBB0_46
; %bb.43:
Lloh34:
	adrp	x25, _L_ADDED@GOTPAGE
Lloh35:
	ldr	x25, [x25, _L_ADDED@GOTPAGEOFF]
	mov	w23, #1
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [sp, #28]
	ldp	x4, x3, [x20]
	mov	x0, x19
	mov	w1, #1
	bl	_db_append
	cbnz	x0, LBB0_52
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_TAILQ_NEXT
	mov	x20, x0
	ldr	w1, [x24]
	bl	_TAILQ_NEXT
	cbnz	x0, LBB0_44
LBB0_46:
	add	x4, x21, x22
	ldr	w2, [sp, #28]
	mov	w23, #1
	mov	x0, x19
	mov	w1, #1
	bl	_db_append
	cbnz	x0, LBB0_52
; %bb.47:
Lloh36:
	adrp	x8, _L_ADDED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _L_ADDED@GOTPAGEOFF]
	b	LBB0_57
LBB0_48:
	cbz	x22, LBB0_50
; %bb.49:
	ldr	x1, [sp, #8]
	mov	x2, x22
	bl	_MEMCPY
LBB0_50:
	ldr	w1, [sp, #28]
	mov	x0, x19
	mov	w3, #0
	bl	_db_set
	cbz	x0, LBB0_54
LBB0_51:
	mov	w23, #1
LBB0_52:
	mov	x0, x19
	bl	_FREE_SPACEW
LBB0_53:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_54:
	ldr	w9, [x19, #4]
	ldr	w8, [sp, #28]
	cmp	w9, w8
	b.ne	LBB0_56
; %bb.55:
	mov	w23, #0
	b	LBB0_52
LBB0_56:
	str	w8, [x19, #4]
Lloh38:
	adrp	x8, _L_CHANGED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _L_CHANGED@GOTPAGEOFF]
LBB0_57:
	mov	w23, #0
	ldr	x9, [x19, #8]
	ldr	x8, [x8]
	lsl	x8, x8, #2
	ldr	w10, [x9, x8]
	add	w10, w10, #1
	str	w10, [x9, x8]
	b	LBB0_52
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_M_ERR,4,2                      ; @M_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"053|The default buffer is empty"

l_.str.1:                               ; @.str.1
	.asciz	"054|Buffer %s is empty"

	.comm	_L_ADDED,8,3                    ; @L_ADDED
	.comm	_q,4,2                          ; @q
	.comm	_CB_LMODE,4,2                   ; @CB_LMODE
	.comm	_DBG_FATAL,4,2                  ; @DBG_FATAL
	.comm	_L_CHANGED,8,3                  ; @L_CHANGED
	.comm	__texth,4,2                     ; @_texth
.subsections_via_symbols
