	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function odbc_handle_rollback
_odbc_handle_rollback:                  ## @odbc_handle_rollback
	.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	%rdi, %r15
	movq	8(%rdi), %r13
	movq	_SQL_HANDLE_DBC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rsi
	movq	_SQL_ROLLBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_SQLEndTran
	movq	_SQL_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_pdo_odbc_drv_error
	movq	_SQL_SUCCESS_WITH_INFO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	(%rax), %rbx
	jne	LBB0_6
LBB0_2:
	movl	$1, %r14d
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.3:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movq	_SQL_ATTR_AUTOCOMMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SQL_AUTOCOMMIT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SQL_IS_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_SQLSetConnectAttr
	cmpq	(%r12), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_pdo_odbc_drv_error
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQL_HANDLE_DBC,4,2             ## @SQL_HANDLE_DBC
	.comm	_SQL_ROLLBACK,4,2               ## @SQL_ROLLBACK
	.comm	_SQL_SUCCESS,8,3                ## @SQL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SQLEndTran: Rollback"

	.comm	_SQL_SUCCESS_WITH_INFO,8,3      ## @SQL_SUCCESS_WITH_INFO
	.comm	_SQL_ATTR_AUTOCOMMIT,4,2        ## @SQL_ATTR_AUTOCOMMIT
	.comm	_SQL_AUTOCOMMIT_ON,8,3          ## @SQL_AUTOCOMMIT_ON
	.comm	_SQL_IS_INTEGER,4,2             ## @SQL_IS_INTEGER
L_.str.1:                               ## @.str.1
	.asciz	"SQLSetConnectAttr AUTOCOMMIT = ON"

	.no_dead_strip	_odbc_handle_rollback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function odbc_handle_rollback
_odbc_handle_rollback:                  ; @odbc_handle_rollback
	.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	x19, x0
Lloh0:
	adrp	x8, _SQL_HANDLE_DBC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQL_HANDLE_DBC@GOTPAGEOFF]
	ldr	x22, [x0, #8]
Lloh2:
	ldr	w0, [x8]
	ldr	x1, [x22]
Lloh3:
	adrp	x8, _SQL_ROLLBACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQL_ROLLBACK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_SQLEndTran
Lloh6:
	adrp	x21, _SQL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SQL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pdo_odbc_drv_error
Lloh10:
	adrp	x8, _SQL_SUCCESS_WITH_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQL_SUCCESS_WITH_INFO@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_7
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x0, [x22]
	cbz	x0, LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _SQL_ATTR_AUTOCOMMIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SQL_ATTR_AUTOCOMMIT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _SQL_AUTOCOMMIT_ON@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SQL_AUTOCOMMIT_ON@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _SQL_IS_INTEGER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SQL_IS_INTEGER@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	bl	_SQLSetConnectAttr
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_5:
	mov	w0, #1
	b	LBB0_8
LBB0_6:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pdo_odbc_drv_error
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SQL_HANDLE_DBC,4,2             ; @SQL_HANDLE_DBC
	.comm	_SQL_ROLLBACK,4,2               ; @SQL_ROLLBACK
	.comm	_SQL_SUCCESS,8,3                ; @SQL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SQLEndTran: Rollback"

	.comm	_SQL_SUCCESS_WITH_INFO,8,3      ; @SQL_SUCCESS_WITH_INFO
	.comm	_SQL_ATTR_AUTOCOMMIT,4,2        ; @SQL_ATTR_AUTOCOMMIT
	.comm	_SQL_AUTOCOMMIT_ON,8,3          ; @SQL_AUTOCOMMIT_ON
	.comm	_SQL_IS_INTEGER,4,2             ; @SQL_IS_INTEGER
l_.str.1:                               ; @.str.1
	.asciz	"SQLSetConnectAttr AUTOCOMMIT = ON"

	.no_dead_strip	_odbc_handle_rollback
.subsections_via_symbols
