	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DbHookCmd
_DbHookCmd:                             ## @DbHookCmd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	32(%rsi), %r14
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	callq	_Tcl_SetObjResult
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	movq	(%r12), %rdi
	callq	_Tcl_DecrRefCount
	movq	$0, (%r12)
	jmp	LBB0_4
LBB0_3:
	testq	%r15, %r15
	je	LBB0_6
LBB0_4:
	movl	$1, %edi
	callq	_assert
	movq	%r15, %rdi
	callq	_Tcl_GetCharLength
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	movq	%r15, (%r12)
	movq	%r15, %rdi
	callq	_Tcl_IncrRefCount
LBB0_6:
	xorl	%r15d, %r15d
	cmpq	$0, 16(%rbx)
	movl	$0, %esi
	je	LBB0_8
## %bb.7:
	movq	_DbUpdateHandler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_sqlite3_update_hook
	cmpq	$0, 8(%rbx)
	movl	$0, %esi
	je	LBB0_10
## %bb.9:
	movq	_DbRollbackHandler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_sqlite3_rollback_hook
	cmpq	$0, (%rbx)
	je	LBB0_12
## %bb.11:
	movq	_DbWalHandler@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_12:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_wal_hook               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DbUpdateHandler,4,2            ## @DbUpdateHandler
	.comm	_DbRollbackHandler,4,2          ## @DbRollbackHandler
	.comm	_DbWalHandler,4,2               ## @DbWalHandler
	.comm	_DbPreUpdateHandler,4,2         ## @DbPreUpdateHandler
	.no_dead_strip	_DbHookCmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DbHookCmd
_DbHookCmd:                             ; @DbHookCmd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	ldr	x20, [x1, #32]
	ldr	x1, [x3]
	cbz	x1, LBB0_3
; %bb.1:
	bl	_Tcl_SetObjResult
	cbz	x21, LBB0_6
; %bb.2:
	ldr	x0, [x22]
	bl	_Tcl_DecrRefCount
	str	xzr, [x22]
	b	LBB0_4
LBB0_3:
	cbz	x21, LBB0_6
LBB0_4:
	mov	w0, #1
	bl	_assert
	mov	x0, x21
	bl	_Tcl_GetCharLength
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.5:
	str	x21, [x22]
	mov	x0, x21
	bl	_Tcl_IncrRefCount
LBB0_6:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _DbUpdateHandler@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DbUpdateHandler@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w1, wzr, w9, eq
	mov	x0, x20
	mov	x2, x19
	bl	_sqlite3_update_hook
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _DbRollbackHandler@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DbRollbackHandler@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w1, wzr, w9, eq
	mov	x0, x20
	mov	x2, x19
	bl	_sqlite3_rollback_hook
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _DbWalHandler@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DbWalHandler@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w1, wzr, w9, eq
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sqlite3_wal_hook
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DbUpdateHandler,4,2            ; @DbUpdateHandler
	.comm	_DbRollbackHandler,4,2          ; @DbRollbackHandler
	.comm	_DbWalHandler,4,2               ; @DbWalHandler
	.comm	_DbPreUpdateHandler,4,2         ; @DbPreUpdateHandler
	.no_dead_strip	_DbHookCmd
.subsections_via_symbols
