	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$2, %edi
	jl	LBB0_1
## %bb.2:
	movq	8(%rsi), %rdi
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	callq	_PQconnectdb
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_PQstatus
	movq	_CONNECTION_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r13, %rdi
	callq	_exit_nicely
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_PQexec
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r14, %rdi
	callq	_PQclear
	movq	%r13, %rdi
	callq	_exit_nicely
LBB0_7:
	movq	%r14, %rdi
	callq	_PQclear
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_PQexec
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r14, %rdi
	callq	_PQclear
	movq	%r13, %rdi
	callq	_exit_nicely
LBB0_9:
	movq	%r14, %rdi
	callq	_PQclear
	movq	_stderr@GOTPCREL(%rip), %r15
	leaq	L_.str.7(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$4, %r14d
	jge	LBB0_17
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	%r13, %rdi
	callq	_PQsocket
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %ebx
	leaq	-44(%rbp), %rdi
	callq	_FD_ZERO
	movl	%ebx, %edi
	leaq	-44(%rbp), %rsi
	callq	_FD_SET
	incl	%ebx
	movl	%ebx, %edi
	leaq	-44(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r15), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r13, %rdi
	callq	_exit_nicely
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	callq	_PQconsumeInput
	movq	%r13, %rdi
	callq	_PQnotifies
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %edi
	movq	(%rbx), %rdx
	movl	8(%rbx), %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_PQfreemem
	incl	%r14d
	movq	%r13, %rdi
	callq	_PQconsumeInput
	movq	%r13, %rdi
	callq	_PQnotifies
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_16
LBB0_17:
	movl	(%r15), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r13, %rdi
	callq	_PQfinish
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dbname = postgres"

	.comm	_CONNECTION_OK,8,3              ## @CONNECTION_OK
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Connection to database failed: %s"

L_.str.2:                               ## @.str.2
	.asciz	"SELECT pg_catalog.set_config('search_path', '', false)"

	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
L_.str.3:                               ## @.str.3
	.asciz	"SET failed: %s"

L_.str.4:                               ## @.str.4
	.asciz	"LISTEN TBL2"

	.comm	_PGRES_COMMAND_OK,8,3           ## @PGRES_COMMAND_OK
L_.str.5:                               ## @.str.5
	.asciz	"LISTEN command failed: %s"

L_.str.6:                               ## @.str.6
	.asciz	"select() failed: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.7:                               ## @.str.7
	.asciz	"ASYNC NOTIFY of '%s' received from backend PID %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"Done.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x1, #8]
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	bl	_PQconnectdb
	mov	x19, x0
	bl	_PQstatus
Lloh2:
	adrp	x8, _CONNECTION_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONNECTION_OK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x23, _stderr@GOTPAGE
Lloh6:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	ldr	w20, [x23]
	mov	x0, x19
	bl	_PQerrorMessage
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	mov	x0, x19
	bl	_exit_nicely
LBB0_5:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_PQexec
	mov	x20, x0
	bl	_PQresultStatus
Lloh11:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	ldr	w21, [x23]
	mov	x0, x19
	bl	_PQerrorMessage
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_fprintf
	mov	x0, x20
	bl	_PQclear
	mov	x0, x19
	bl	_exit_nicely
LBB0_7:
	mov	x0, x20
	bl	_PQclear
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_PQexec
	mov	x20, x0
	bl	_PQresultStatus
Lloh18:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:
	ldr	w21, [x23]
	mov	x0, x19
	bl	_PQerrorMessage
	str	x0, [sp]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_fprintf
	mov	x0, x20
	bl	_PQclear
	mov	x0, x19
	bl	_exit_nicely
LBB0_9:
	mov	x0, x20
	bl	_PQclear
	mov	w24, #0
Lloh23:
	adrp	x25, _errno@GOTPAGE
Lloh24:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh25:
	adrp	x20, l_.str.6@PAGE
Lloh26:
	add	x20, x20, l_.str.6@PAGEOFF
Lloh27:
	adrp	x21, l_.str.7@PAGE
Lloh28:
	add	x21, x21, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w24, #4
	b.ge	LBB0_17
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	mov	x0, x19
	bl	_PQsocket
	tbnz	w0, #31, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, x0
	add	x0, sp, #28
	bl	_FD_ZERO
	add	x1, sp, #28
	mov	x0, x22
	bl	_FD_SET
	add	w0, w22, #1
	add	x1, sp, #28
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
	tbz	x0, #63, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w22, [x23]
	ldr	w0, [x25]
	bl	_strerror
	str	x0, [sp]
	mov	x0, x22
	mov	x1, x20
	bl	_fprintf
	mov	x0, x19
	bl	_exit_nicely
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_PQconsumeInput
	mov	x0, x19
	bl	_PQnotifies
	cbz	x0, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, x0
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x23]
	ldr	x8, [x22]
	ldr	w9, [x22, #8]
	stp	x8, x9, [sp]
	mov	x1, x21
	bl	_fprintf
	mov	x0, x22
	bl	_PQfreemem
	add	w24, w24, #1
	mov	x0, x19
	bl	_PQconsumeInput
	mov	x0, x19
	bl	_PQnotifies
	mov	x22, x0
	cbnz	x0, LBB0_16
	b	LBB0_10
LBB0_17:
	ldr	w0, [x23]
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
	mov	x0, x19
	bl	_PQfinish
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dbname = postgres"

	.comm	_CONNECTION_OK,8,3              ; @CONNECTION_OK
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Connection to database failed: %s"

l_.str.2:                               ; @.str.2
	.asciz	"SELECT pg_catalog.set_config('search_path', '', false)"

	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
l_.str.3:                               ; @.str.3
	.asciz	"SET failed: %s"

l_.str.4:                               ; @.str.4
	.asciz	"LISTEN TBL2"

	.comm	_PGRES_COMMAND_OK,8,3           ; @PGRES_COMMAND_OK
l_.str.5:                               ; @.str.5
	.asciz	"LISTEN command failed: %s"

l_.str.6:                               ; @.str.6
	.asciz	"select() failed: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.7:                               ; @.str.7
	.asciz	"ASYNC NOTIFY of '%s' received from backend PID %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"Done.\n"

.subsections_via_symbols
