	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function createIncrblobChannel
_createIncrblobChannel:                 ## @createIncrblobChannel
	.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
	movl	%r9d, %eax
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	16(%rbp), %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, -48(%rbp)
	movq	8(%r15), %rdi
	movq	_TCL_READABLE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	xorl	%r9d, %r9d
	testl	%r13d, %r13d
	sete	%r9b
	movq	_TCL_WRITABLE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r14d
	leaq	-128(%rbp), %rsi
	movq	%rsi, (%rsp)
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movq	%r8, %rcx
	movl	%eax, %r8d
	callq	_sqlite3_blob_open
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	testl	%r13d, %r13d
	cmovel	%r14d, %r12d
	orl	%ebx, %r12d
	movl	$48, %edi
	callq	_Tcl_Alloc
	movq	%rax, %rbx
	movq	$0, 40(%rax)
	movq	-128(%rbp), %rax
	movq	%rax, 32(%rbx)
	movl	_createIncrblobChannel.count(%rip), %ecx
	incl	%ecx
	movl	%ecx, _createIncrblobChannel.count(%rip)
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %r13
	movl	$64, %edi
	movq	%r13, %rsi
	callq	_sqlite3_snprintf
	movq	_IncrblobChannelType@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	movq	-120(%rbp), %r12                ## 8-byte Reload
	callq	_Tcl_CreateChannel
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_Tcl_RegisterChannel
	movq	(%r15), %rax
	movq	%rax, 24(%rbx)
	movq	$0, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, 16(%rax)
LBB0_4:
	movq	%rbx, (%r15)
	movq	%r15, 8(%rbx)
	movl	(%rbx), %edi
	callq	_Tcl_GetChannelName
	movq	_TCL_OK@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_1:
	movq	8(%r15), %rdi
	callq	_sqlite3_errmsg
	movq	_TCL_ERROR@GOTPCREL(%rip), %rbx
LBB0_5:
	movq	_TCL_VOLATILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_Tcl_SetResult
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TCL_READABLE,4,2               ## @TCL_READABLE
	.comm	_TCL_WRITABLE,4,2               ## @TCL_WRITABLE
.zerofill __DATA,__bss,_createIncrblobChannel.count,4,2 ## @createIncrblobChannel.count
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_TCL_VOLATILE,4,2               ## @TCL_VOLATILE
	.comm	_TCL_ERROR,4,2                  ## @TCL_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incrblob_%d"

	.comm	_IncrblobChannelType,4,2        ## @IncrblobChannelType
	.comm	_TCL_OK,4,2                     ## @TCL_OK
	.no_dead_strip	_createIncrblobChannel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function createIncrblobChannel
_createIncrblobChannel:                 ; @createIncrblobChannel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x6
	mov	x8, x5
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-56]
	ldr	x0, [x1, #8]
Lloh3:
	adrp	x9, _TCL_READABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TCL_READABLE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x9]
	cmp	w6, #0
	cset	w5, eq
Lloh6:
	adrp	x9, _TCL_WRITABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TCL_WRITABLE@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x9]
	mov	x6, sp
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	mov	x4, x8
	bl	_sqlite3_blob_open
Lloh9:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
	cmp	w21, #0
	csel	w8, w23, wzr, eq
	orr	w22, w8, w22
	mov	w0, #48
	bl	_Tcl_Alloc
	mov	x21, x0
	ldr	x8, [sp]
	stp	x8, xzr, [x0, #32]
	adrp	x8, _createIncrblobChannel.count@PAGE
	ldr	w9, [x8, _createIncrblobChannel.count@PAGEOFF]
	add	w3, w9, #1
	str	w3, [x8, _createIncrblobChannel.count@PAGEOFF]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	w0, #64
	bl	_sqlite3_snprintf
Lloh14:
	adrp	x0, _IncrblobChannelType@GOTPAGE
Lloh15:
	ldr	x0, [x0, _IncrblobChannelType@GOTPAGEOFF]
	add	x1, sp, #8
	mov	x2, x21
	mov	x3, x22
	bl	_Tcl_CreateChannel
	mov	x1, x0
	str	w0, [x21]
	mov	x0, x19
	bl	_Tcl_RegisterChannel
	ldr	x8, [x20]
	stp	xzr, x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.2:
	str	x21, [x8, #16]
LBB0_3:
	str	x21, [x20]
	str	x20, [x21, #8]
	ldr	w0, [x21]
	bl	_Tcl_GetChannelName
	mov	x1, x0
Lloh16:
	adrp	x20, _TCL_OK@GOTPAGE
Lloh17:
	ldr	x20, [x20, _TCL_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	x0, [x20, #8]
	bl	_sqlite3_errmsg
	mov	x1, x0
Lloh18:
	adrp	x20, _TCL_ERROR@GOTPAGE
Lloh19:
	ldr	x20, [x20, _TCL_ERROR@GOTPAGEOFF]
LBB0_5:
Lloh20:
	adrp	x8, _TCL_VOLATILE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TCL_VOLATILE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_Tcl_SetResult
	ldr	w0, [x20]
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TCL_READABLE,4,2               ; @TCL_READABLE
	.comm	_TCL_WRITABLE,4,2               ; @TCL_WRITABLE
.zerofill __DATA,__bss,_createIncrblobChannel.count,4,2 ; @createIncrblobChannel.count
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_TCL_VOLATILE,4,2               ; @TCL_VOLATILE
	.comm	_TCL_ERROR,4,2                  ; @TCL_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incrblob_%d"

	.comm	_IncrblobChannelType,4,2        ; @IncrblobChannelType
	.comm	_TCL_OK,4,2                     ; @TCL_OK
	.no_dead_strip	_createIncrblobChannel
.subsections_via_symbols
