	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecpg_check_PQresult            ## -- Begin function ecpg_check_PQresult
	.p2align	4, 0x90
_ecpg_check_PQresult:                   ## @ecpg_check_PQresult
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movl	%esi, %r12d
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	_PQresultStatus
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_7
## %bb.3:
	movl	$1, %r14d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	%rbx, %rdi
	callq	_PQresultErrorMessage
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ecpg_log
	jmp	LBB0_8
LBB0_1:
	movq	%r15, %rdi
	callq	_PQerrorMessage
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ecpg_log
	movl	%r12d, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	callq	_ecpg_raise_backend
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_ecpg_log
LBB0_8:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	callq	_ecpg_raise_backend
	jmp	LBB0_9
LBB0_4:
	movq	_ECPG_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ECPG_SQLSTATE_ECPG_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movl	%r12d, %edi
	xorl	%ecx, %ecx
	callq	_ecpg_raise
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_ecpg_log
	movq	%r15, %rdi
	callq	_PQendcopy
LBB0_9:
	movq	%rbx, %rdi
	callq	_PQclear
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ecpg_check_PQresult on line %d: no result - %s"

	.comm	_ECPG_EMPTY,4,2                 ## @ECPG_EMPTY
	.comm	_ECPG_SQLSTATE_ECPG_INTERNAL_ERROR,4,2 ## @ECPG_SQLSTATE_ECPG_INTERNAL_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"ecpg_check_PQresult on line %d: bad response - %s"

L_.str.2:                               ## @.str.2
	.asciz	"ecpg_check_PQresult on line %d: COPY IN data transfer in progress\n"

L_.str.3:                               ## @.str.3
	.asciz	"ecpg_check_PQresult on line %d: unknown execution status type\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecpg_check_PQresult            ; -- Begin function ecpg_check_PQresult
	.p2align	2
_ecpg_check_PQresult:                   ; @ecpg_check_PQresult
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_PQresultStatus
	sub	w8, w0, #128
	cmp	w8, #7
	b.hi	LBB0_5
; %bb.2:
	mov	w0, #1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	x0, x19
	bl	_PQresultErrorMessage
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_PQerrorMessage
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_ecpg_log
	mov	x0, x21
	mov	x1, #0
	mov	x2, x20
	mov	x3, x22
	bl	_ecpg_raise_backend
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_6:
	mov	x1, x21
	bl	_ecpg_log
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	bl	_ecpg_raise_backend
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _ECPG_EMPTY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECPG_EMPTY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _ECPG_SQLSTATE_ECPG_INTERNAL_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ECPG_SQLSTATE_ECPG_INTERNAL_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, #0
	bl	_ecpg_raise
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_ecpg_log
	mov	x0, x20
	bl	_PQendcopy
LBB0_9:
	mov	x0, x19
	bl	_PQclear
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ecpg_check_PQresult on line %d: no result - %s"

	.comm	_ECPG_EMPTY,4,2                 ; @ECPG_EMPTY
	.comm	_ECPG_SQLSTATE_ECPG_INTERNAL_ERROR,4,2 ; @ECPG_SQLSTATE_ECPG_INTERNAL_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"ecpg_check_PQresult on line %d: bad response - %s"

l_.str.2:                               ; @.str.2
	.asciz	"ecpg_check_PQresult on line %d: COPY IN data transfer in progress\n"

l_.str.3:                               ; @.str.3
	.asciz	"ecpg_check_PQresult on line %d: unknown execution status type\n"

.subsections_via_symbols
