	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function do_watch
LCPI0_0:
	.quad	0x408f400000000000              ## double 1000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_do_watch:                              ## @do_watch
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm0, -192(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_pset@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -216(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rdi)
	jle	LBB0_2
## %bb.3:
	movq	%rdi, -240(%rbp)                ## 8-byte Spill
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	-192(%rbp), %xmm0               ## 8-byte Folded Reload
	movq	$0, -208(%rbp)
	movq	-216(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movsd	%xmm0, -224(%rbp)               ## 8-byte Spill
	callq	_strlen
	movsd	-224(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addl	$256, %eax                      ## imm = 0x100
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pg_log_error
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_4:
	movl	$256, %eax                      ## imm = 0x100
LBB0_6:
	movl	%eax, %edi
	cvttsd2si	%xmm0, %rax
	movq	%rax, -248(%rbp)                ## 8-byte Spill
	movl	%edi, -180(%rbp)                ## 4-byte Spill
	callq	_pg_malloc
	movq	%rax, %rbx
	xorl	%eax, %eax
                                        ## kill: def $rax killed $eax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movl	$1000, %r15d                    ## imm = 0x3E8
	movq	_cancel_pressed@GOTPCREL(%rip), %r12
	movq	%r14, -256(%rbp)                ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_sigint_interrupt_enabled@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	-256(%rbp), %rax                ## 8-byte Reload
	movq	%r14, %rbx
	movq	%rax, %r14
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	-232(%rbp), %rdi                ## 8-byte Reload
	callq	_time
	movl	%eax, -196(%rbp)
	leaq	-196(%rbp), %rdi
	callq	_localtime
	leaq	-176(%rbp), %r13
	movq	%r13, %rdi
	movl	$128, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %ecx
	callq	_strftime
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%rbx, %rdi
	movl	-180(%rbp), %esi                ## 4-byte Reload
	movq	%rax, %rdx
	movq	%r14, %rcx
	movq	%r13, %r8
	movsd	-192(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movb	$1, %al
	callq	_snprintf
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	%rbx, %rdi
	movl	-180(%rbp), %esi                ## 4-byte Reload
	movq	%rax, %rdx
	movq	%r13, %rcx
	movsd	-192(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movb	$1, %al
	callq	_snprintf
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %r14
	movq	%rbx, -216(%rbp)
	movq	-240(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %edi
	leaq	-216(%rbp), %rsi
	callq	_PSQLexecWatch
	movl	%eax, %r13d
	testl	%eax, %eax
	jle	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_sigint_interrupt_jmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_sigsetjmp
	testq	%rax, %rax
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_sigint_interrupt_enabled@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	-248(%rbp), %rbx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_Min
	movq	%rax, %r13
	imulq	$1000, %rax, %rdi               ## imm = 0x3E8
	callq	_pg_usleep
	subq	%r13, %rbx
	cmpq	$0, (%r12)
	je	LBB0_13
	jmp	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	callq	_pg_free
	notl	%r13d
	shrl	$31, %r13d
	movl	%r13d, %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_pset,16,3                      ## @pset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\watch cannot be used with an empty query"

L_.str.1:                               ## @.str.1
	.asciz	"%c"

L_.str.2:                               ## @.str.2
	.asciz	"%s\t%s (every %gs)\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s (every %gs)\n"

	.comm	_sigint_interrupt_jmp,4,2       ## @sigint_interrupt_jmp
	.comm	_sigint_interrupt_enabled,4,2   ## @sigint_interrupt_enabled
	.comm	_cancel_pressed,8,3             ## @cancel_pressed
	.no_dead_strip	_do_watch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_watch
_do_watch:                              ; @do_watch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	d9, d8, [sp, #192]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]
Lloh3:
	adrp	x8, _pset@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pset@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #32]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	b.le	LBB0_4
; %bb.2:
	fmov	d8, d0
	mov	x8, #0
	mov	x9, #70368744177664
	movk	x9, #16527, lsl #48
	fmov	d0, x9
	fmul	d0, d8, d0
	fcvtzs	x22, d0
	str	xzr, [sp, #40]
	ldr	x8, [sp, #32]
	mov	x20, x8
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_strlen
	add	w21, w0, #256
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_log_error
	mov	w0, #0
	b	LBB0_17
LBB0_5:
	mov	w21, #256
LBB0_6:
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x21
	bl	_pg_malloc
	mov	x22, x0
	add	x24, sp, #48
Lloh8:
	adrp	x27, _sigint_interrupt_enabled@GOTPAGE
Lloh9:
	ldr	x27, [x27, _sigint_interrupt_enabled@GOTPAGEOFF]
	mov	w26, #1
	mov	w8, #1000
	mov	x23, x8
Lloh10:
	adrp	x28, _cancel_pressed@GOTPAGE
Lloh11:
	ldr	x28, [x28, _cancel_pressed@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #0
	mov	x27, x25
	str	wzr, [x25]
	add	x24, sp, #48
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x0, #0
	bl	_time
	str	w0, [sp, #28]
	add	x0, sp, #28
	bl	_localtime
	mov	x3, x0
	mov	x0, x24
	mov	w1, #128
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_strftime
	cbz	x20, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x8, sp
	str	d8, [x8, #8]
	str	x24, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x20
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x8, sp
	str	d8, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x24
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_snprintf
	str	x22, [sp, #32]
	ldr	w0, [x19, #8]
	add	x1, sp, #32
	bl	_PSQLexecWatch
	mov	x24, x0
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh18:
	adrp	x8, _sigint_interrupt_jmp@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sigint_interrupt_jmp@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x26
	bl	_sigsetjmp
	cbnz	x0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, x27
	str	w26, [x27]
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
LBB0_14:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x24, #1
	b.lt	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x24
	mov	x1, x23
	bl	_Min
	mov	x27, x0
	mul	x0, x0, x23
	bl	_pg_usleep
	ldr	x8, [x28]
	sub	x24, x24, x27
	cbz	x8, LBB0_14
	b	LBB0_7
LBB0_16:
	mov	x0, x22
	bl	_pg_free
	mvn	w8, w24
	lsr	w0, w8, #31
LBB0_17:
	ldur	x8, [x29, #-112]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #192]              ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_pset,16,3                      ; @pset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\watch cannot be used with an empty query"

l_.str.1:                               ; @.str.1
	.asciz	"%c"

l_.str.2:                               ; @.str.2
	.asciz	"%s\t%s (every %gs)\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s (every %gs)\n"

	.comm	_sigint_interrupt_jmp,4,2       ; @sigint_interrupt_jmp
	.comm	_sigint_interrupt_enabled,4,2   ; @sigint_interrupt_enabled
	.comm	_cancel_pressed,8,3             ; @cancel_pressed
	.no_dead_strip	_do_watch
.subsections_via_symbols
