	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ECPGtrans                      ## -- Begin function ECPGtrans
	.p2align	4, 0x90
_ECPGtrans:                             ## @ECPGtrans
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	%rsi, %rdi
	callq	_ecpg_get_connection
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_ecpg_init
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	testq	%r13, %r13
	je	LBB0_13
## %bb.2:
	movq	(%r13), %rcx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_ecpg_log
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.3:
	callq	_PQtransactionStatus
	movq	_PQTRANS_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.4:
	cmpl	$0, 16(%r13)
	je	LBB0_5
LBB0_11:
	movq	8(%r13), %rdi
	movq	%r15, %rsi
	callq	_PQexec
	movq	%rax, %r15
	movq	8(%r13), %rdx
	movq	_ECPG_COMPAT_PGSQL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_ecpg_check_PQresult
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movq	%r15, %rdi
	callq	_PQclear
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rcx
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_ecpg_log
LBB0_14:
	movl	$1, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	$15, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	$17, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	8(%r13), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_PQexec
	movq	%rax, %rbx
	movq	8(%r13), %rdx
	movq	_ECPG_COMPAT_PGSQL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ecpg_check_PQresult
	testl	%eax, %eax
	je	LBB0_15
## %bb.10:
	movq	%rbx, %rdi
	callq	_PQclear
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ECPGtrans on line %d: action \"%s\"; connection \"%s\"\n"

L_.str.1:                               ## @.str.1
	.asciz	"null"

	.comm	_PQTRANS_IDLE,8,3               ## @PQTRANS_IDLE
L_.str.2:                               ## @.str.2
	.asciz	"begin"

L_.str.3:                               ## @.str.3
	.asciz	"start"

L_.str.4:                               ## @.str.4
	.asciz	"commit prepared"

L_.str.5:                               ## @.str.5
	.asciz	"rollback prepared"

L_.str.6:                               ## @.str.6
	.asciz	"begin transaction"

	.comm	_ECPG_COMPAT_PGSQL,4,2          ## @ECPG_COMPAT_PGSQL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ECPGtrans                      ; -- Begin function ECPGtrans
	.p2align	2
_ECPGtrans:                             ; @ECPGtrans
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ecpg_get_connection
	mov	x21, x0
	mov	x1, x22
	mov	x2, x19
	bl	_ecpg_init
	cbz	w0, LBB0_9
; %bb.1:
	cbz	x21, LBB0_7
; %bb.2:
	ldr	x3, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_ecpg_log
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_8
; %bb.3:
	bl	_PQtransactionStatus
Lloh2:
	adrp	x8, _PQTRANS_IDLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PQTRANS_IDLE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x23, _ECPG_COMPAT_PGSQL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ECPG_COMPAT_PGSQL@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_10
LBB0_5:
	ldr	x0, [x21, #8]
	mov	x1, x20
	bl	_PQexec
	mov	x20, x0
	ldr	x2, [x21, #8]
	ldr	w3, [x23]
	mov	x1, x19
	bl	_ecpg_check_PQresult
	cbz	w0, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_PQclear
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_ecpg_log
LBB0_8:
	mov	w0, #1
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #5
	bl	_strncmp
	cbz	x0, LBB0_5
; %bb.11:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w2, #5
	bl	_strncmp
	cbz	x0, LBB0_5
; %bb.12:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #15
	bl	_strncmp
	cbz	x0, LBB0_5
; %bb.13:
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	w2, #17
	bl	_strncmp
	cbz	x0, LBB0_5
; %bb.14:
	ldr	x0, [x21, #8]
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_PQexec
	mov	x22, x0
	ldr	x2, [x21, #8]
	ldr	w3, [x23]
	mov	x1, x19
	bl	_ecpg_check_PQresult
	cbz	w0, LBB0_9
; %bb.15:
	mov	x0, x22
	bl	_PQclear
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ECPGtrans on line %d: action \"%s\"; connection \"%s\"\n"

l_.str.1:                               ; @.str.1
	.asciz	"null"

	.comm	_PQTRANS_IDLE,8,3               ; @PQTRANS_IDLE
l_.str.2:                               ; @.str.2
	.asciz	"begin"

l_.str.3:                               ; @.str.3
	.asciz	"start"

l_.str.4:                               ; @.str.4
	.asciz	"commit prepared"

l_.str.5:                               ; @.str.5
	.asciz	"rollback prepared"

l_.str.6:                               ; @.str.6
	.asciz	"begin transaction"

	.comm	_ECPG_COMPAT_PGSQL,4,2          ; @ECPG_COMPAT_PGSQL
.subsections_via_symbols
