	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TXT_DB_write                   ## -- Begin function TXT_DB_write
	.p2align	4, 0x90
_TXT_DB_write:                          ## @TXT_DB_write
	.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	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_BUF_MEM_new
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movl	8(%rbx), %edi
	callq	_sk_OPENSSL_PSTRING_num
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jle	LBB0_20
## %bb.2:
	movq	(%rbx), %r12
	xorl	%esi, %esi
	xorl	%r14d, %r14d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##       Child Loop BB0_15 Depth 3
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	callq	_sk_OPENSSL_PSTRING_value
	movq	%rax, %r13
	xorl	%r14d, %r14d
	testq	%r12, %r12
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_8
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	callq	_strlen
	addq	%rax, %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r12,%r14,2), %esi
	movq	%r15, %rdi
	callq	_BUF_MEM_grow_clean
	testl	%eax, %eax
	je	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %r14
	testq	%r12, %r12
	jle	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=2
	movb	$9, (%r14)
	incq	%r14
	incq	%rax
	cmpq	%r12, %rax
	je	LBB0_17
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_15 Depth 3
	movq	(%r13,%rax,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=3
	movb	$92, (%r14)
	incq	%r14
	movzbl	(%rcx), %edx
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=3
	incq	%rcx
	movb	%dl, (%r14)
	incq	%r14
LBB0_15:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	(%rcx), %edx
	cmpb	$9, %dl
	je	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=3
	testb	%dl, %dl
	jne	LBB0_14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$10, -1(%r14)
	movq	(%r15), %rsi
	subq	%rsi, %r14
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_BIO_write
	cmpq	%r14, %rax
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	movq	%rax, %r14
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	cmpq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_3
	jmp	LBB0_23
LBB0_22:
	movq	$-1, %r14
	jmp	LBB0_23
LBB0_20:
	xorl	%r14d, %r14d
LBB0_23:
	movq	%r15, %rdi
	callq	_BUF_MEM_free
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TXT_DB_write                   ; -- Begin function TXT_DB_write
	.p2align	2
_TXT_DB_write:                          ; @TXT_DB_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x1
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	bl	_BUF_MEM_new
	mov	x19, x0
	cbz	x0, LBB0_20
; %bb.1:
	ldr	w0, [x22, #8]
	bl	_sk_OPENSSL_PSTRING_num
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	cmp	x0, #1
	b.lt	LBB0_21
; %bb.2:
	mov	x24, #0
	mov	x20, #0
	ldr	x21, [x22]
	mov	w27, #9
	mov	w28, #92
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
	ldr	w0, [x22, #8]
	mov	x1, x24
	bl	_sk_OPENSSL_PSTRING_value
	mov	x23, x0
	cmp	x21, #1
	b.lt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
	mov	x25, x23
	mov	x26, x21
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x25, x25, #8
	subs	x26, x26, #1
	b.eq	LBB0_9
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x25]
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	bl	_strlen
	add	x22, x0, x22
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w1, w21, w22, lsl #1
	mov	x0, x19
	bl	_BUF_MEM_grow_clean
	cbz	w0, LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	cmp	x21, #1
	b.lt	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	strb	w27, [x8], #1
	add	x9, x9, #1
	cmp	x9, x21
	b.eq	LBB0_18
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
	ldr	x10, [x23, x9, lsl #3]
	cbnz	x10, LBB0_16
	b	LBB0_12
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=3
	strb	w28, [x8], #1
	ldrb	w11, [x10]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=3
	add	x10, x10, #1
	strb	w11, [x8], #1
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrb	w11, [x10]
	cmp	w11, #9
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=3
	cbnz	w11, LBB0_15
	b	LBB0_12
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w9, #10
	sturb	w9, [x8, #-1]
	ldr	x1, [x19]
	sub	x25, x8, x1
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x25
	bl	_BIO_write
	cmp	x0, x25
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x25, x20
	add	x24, x24, #1
	ldp	x22, x8, [sp, #8]               ; 16-byte Folded Reload
	cmp	x24, x8
	b.ne	LBB0_3
	b	LBB0_22
LBB0_20:
	mov	x20, #-1
	b	LBB0_22
LBB0_21:
	mov	x20, #0
LBB0_22:
	mov	x0, x19
	bl	_BUF_MEM_free
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
