	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ECPGsetcommit                  ## -- Begin function ECPGsetcommit
	.p2align	4, 0x90
_ECPGsetcommit:                         ## @ECPGsetcommit
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movl	%edi, %r14d
	movq	%rdx, %rdi
	callq	_ecpg_get_connection
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_ecpg_init
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movl	8(%r15), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_ecpg_log
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.2:
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	$1, %ebx
	cmpl	$0, (%r15)
	jne	LBB0_12
LBB0_6:
	leaq	L_.str.3(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmp
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:
	movl	4(%r15), %edi
	callq	_PQtransactionStatus
	movq	_PQTRANS_IDLE@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.8:
	movl	4(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_PQexec
	movq	%rax, %r12
	movl	4(%r15), %edx
	movq	_ECPG_COMPAT_PGSQL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_ecpg_check_PQresult
	movl	$0, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_3:
	movl	4(%r15), %edi
	callq	_PQtransactionStatus
	movq	_PQTRANS_IDLE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.4:
	movl	4(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_PQexec
	movq	%rax, %r12
	movl	4(%r15), %edx
	movq	_ECPG_COMPAT_PGSQL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_ecpg_check_PQresult
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_12
LBB0_10:
	movq	%r12, %rdi
	callq	_PQclear
LBB0_11:
	movl	%ebx, (%r15)
	movl	$1, %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ECPGsetcommit on line %d: action \"%s\"; connection \"%s\"\n"

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

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

	.comm	_ECPG_COMPAT_PGSQL,4,2          ## @ECPG_COMPAT_PGSQL
L_.str.3:                               ## @.str.3
	.asciz	"on"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ECPGsetcommit                  ; -- Begin function ECPGsetcommit
	.p2align	2
_ECPGsetcommit:                         ; @ECPGsetcommit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	bl	_ecpg_get_connection
	mov	x19, x0
	mov	x1, x22
	mov	x2, x20
	bl	_ecpg_init
	cbz	w0, LBB0_15
; %bb.1:
	ldr	w3, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_ecpg_log
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.2:
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strncmp
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w8, [x19]
	cbnz	w8, LBB0_14
LBB0_4:
Lloh4:
	adrp	x22, l_.str.3@PAGE
Lloh5:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strncmp
	cbnz	x0, LBB0_14
; %bb.5:
	ldr	w0, [x19, #4]
	bl	_PQtransactionStatus
Lloh6:
	adrp	x8, _PQTRANS_IDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PQTRANS_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.6:
	mov	w20, #1
	b	LBB0_13
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_PQtransactionStatus
Lloh9:
	adrp	x8, _PQTRANS_IDLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PQTRANS_IDLE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PQexec
	mov	x21, x0
	ldr	w2, [x19, #4]
Lloh14:
	adrp	x8, _ECPG_COMPAT_PGSQL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ECPG_COMPAT_PGSQL@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_ecpg_check_PQresult
	mov	x8, x0
	mov	w20, #0
	mov	w0, #0
	cbnz	w8, LBB0_12
	b	LBB0_15
LBB0_9:
	mov	w20, #0
	b	LBB0_13
LBB0_10:
	ldr	w0, [x19, #4]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_PQexec
	mov	x21, x0
	ldr	w2, [x19, #4]
Lloh19:
	adrp	x8, _ECPG_COMPAT_PGSQL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ECPG_COMPAT_PGSQL@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_ecpg_check_PQresult
	cbz	w0, LBB0_15
; %bb.11:
	mov	w20, #1
LBB0_12:
	mov	x0, x21
	bl	_PQclear
LBB0_13:
	str	w20, [x19]
LBB0_14:
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ECPGsetcommit on line %d: action \"%s\"; connection \"%s\"\n"

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

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

	.comm	_ECPG_COMPAT_PGSQL,4,2          ; @ECPG_COMPAT_PGSQL
l_.str.3:                               ; @.str.3
	.asciz	"on"

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

.subsections_via_symbols
