	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	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, %r14
	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	%r14, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	movq	%r14, %rdi
	callq	_exit_nicely
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_PQexec
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_PQclear
	movq	%r14, %rdi
	callq	_exit_nicely
LBB0_7:
	movq	%rbx, %rdi
	callq	_PQclear
	leaq	L_.str.4(%rip), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str.5(%rip), %rsi
	leaq	-48(%rbp), %r8
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	$1
	pushq	$0
	callq	_PQexecParams
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_9
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.6(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_PQclear
	movq	%r14, %rdi
	callq	_exit_nicely
LBB0_9:
	movq	%rbx, %rdi
	callq	_show_binary_results
	movq	%rbx, %rdi
	callq	_PQclear
	movl	$2, %edi
	callq	_htonl
	movl	%eax, -52(%rbp)
	leaq	-52(%rbp), %rax
	movq	%rax, -48(%rbp)
	movl	$4, -60(%rbp)
	movl	$1, -56(%rbp)
	leaq	-56(%rbp), %rax
	leaq	L_.str.7(%rip), %rsi
	leaq	-48(%rbp), %r8
	leaq	-60(%rbp), %r9
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	pushq	$1
	pushq	%rax
	callq	_PQexecParams
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	cmpq	(%r12), %rax
	je	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.6(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_PQclear
	movq	%r14, %rdi
	callq	_exit_nicely
LBB0_11:
	movq	%rbx, %rdi
	callq	_show_binary_results
	movq	%rbx, %rdi
	callq	_PQclear
	movq	%r14, %rdi
	callq	_PQfinish
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.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	"SET search_path = testlibpq3"

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

L_.str.4:                               ## @.str.4
	.asciz	"joe's place"

L_.str.5:                               ## @.str.5
	.asciz	"SELECT * FROM test1 WHERE t = $1"

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

L_.str.7:                               ## @.str.7
	.asciz	"SELECT * FROM test1 WHERE i = $1::int4"

.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, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x1, #8]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	bl	_PQconnectdb
	mov	x19, x0
	bl	_PQstatus
Lloh5:
	adrp	x8, _CONNECTION_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONNECTION_OK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x22, _stderr@GOTPAGE
Lloh9:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	ldr	w20, [x22]
	mov	x0, x19
	bl	_PQerrorMessage
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	mov	x0, x19
	bl	_exit_nicely
LBB0_5:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_PQexec
	mov	x20, x0
	bl	_PQresultStatus
Lloh14:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	ldr	w21, [x22]
	mov	x0, x19
	bl	_PQerrorMessage
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	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
Lloh19:
	adrp	x8, l_.str.4@PAGE
Lloh20:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [sp, #16]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w24, #1
	add	x4, sp, #16
	mov	x0, x19
	mov	w2, #1
	mov	x3, #0
	mov	x5, #0
	mov	x6, #0
	mov	w7, #1
	bl	_PQexecParams
	mov	x20, x0
	bl	_PQresultStatus
Lloh23:
	adrp	x23, _PGRES_TUPLES_OK@GOTPAGE
Lloh24:
	ldr	x23, [x23, _PGRES_TUPLES_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:
	ldr	w21, [x22]
	mov	x0, x19
	bl	_PQerrorMessage
	mov	x2, x0
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_fprintf
	mov	x0, x20
	bl	_PQclear
	mov	x0, x19
	bl	_exit_nicely
LBB0_9:
	mov	x0, x20
	bl	_show_binary_results
	mov	x0, x20
	bl	_PQclear
	mov	w0, #2
	bl	_htonl
	stp	w0, w24, [sp, #4]
	add	x8, sp, #4
	str	x8, [sp, #16]
	mov	w8, #4
	str	w8, [sp, #12]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x4, sp, #16
	add	x5, sp, #12
	add	x6, sp, #8
	mov	x0, x19
	mov	w2, #1
	mov	x3, #0
	mov	w7, #1
	bl	_PQexecParams
	mov	x20, x0
	bl	_PQresultStatus
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:
	ldr	w21, [x22]
	mov	x0, x19
	bl	_PQerrorMessage
	mov	x2, x0
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_fprintf
	mov	x0, x20
	bl	_PQclear
	mov	x0, x19
	bl	_exit_nicely
LBB0_11:
	mov	x0, x20
	bl	_show_binary_results
	mov	x0, x20
	bl	_PQclear
	mov	x0, x19
	bl	_PQfinish
	ldr	x8, [sp, #24]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.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	"SET search_path = testlibpq3"

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

l_.str.4:                               ; @.str.4
	.asciz	"joe's place"

l_.str.5:                               ; @.str.5
	.asciz	"SELECT * FROM test1 WHERE t = $1"

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

l_.str.7:                               ; @.str.7
	.asciz	"SELECT * FROM test1 WHERE i = $1::int4"

.subsections_via_symbols
