	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_transactions
_test_transactions:                     ## @test_transactions
	.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
	subq	$24, %rsp
	.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, %r12
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_apr_dbd_transaction_start
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_apr_dbd_error
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_14
LBB0_3:
	leaq	L_.str.2(%rip), %rcx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_apr_dbd_query
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_apr_dbd_error
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_apr_dbd_transaction_end
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-44(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.5(%rip), %rcx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_apr_dbd_query
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_str.16(%rip), %rdi
	callq	_puts
LBB0_7:
	leaq	L_.str.7(%rip), %rcx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_apr_dbd_query
	leaq	L_.str.8(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_apr_dbd_transaction_end
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_apr_dbd_error
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_2
LBB0_9:
	leaq	L_str.17(%rip), %rdi
	callq	_puts
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_select_sequential
	leaq	L_str.18(%rip), %rdi
	callq	_puts
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_apr_dbd_transaction_start
	testl	%eax, %eax
	jne	LBB0_1
## %bb.10:
	leaq	L_.str.12(%rip), %rcx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_apr_dbd_query
	testl	%eax, %eax
	jne	LBB0_4
## %bb.11:
	movl	-44(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.13(%rip), %rcx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_apr_dbd_query
	leaq	L_.str.14(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_apr_dbd_transaction_end
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r13d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_apr_dbd_error
	leaq	L_.str.9(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	%r13d, %ebx
	jmp	LBB0_14
LBB0_13:
	leaq	L_str.19(%rip), %rdi
	callq	_puts
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_select_sequential
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Start transaction failed!\n%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"UPDATE apr_dbd_test SET col2 = 'failed'"

L_.str.3:                               ## @.str.3
	.asciz	"Update failed: '%s'\n"

L_.str.4:                               ## @.str.4
	.asciz	"%d rows updated\n"

L_.str.5:                               ## @.str.5
	.asciz	"INSERT INTO apr_dbd_test1 (col3) values (3)"

L_.str.7:                               ## @.str.7
	.asciz	"INSERT INTO apr_dbd_test values ('zzz', 'aaa', 3)"

L_.str.8:                               ## @.str.8
	.asciz	"Valid insert returned %d.  Should be nonzero (fail) because transaction is bad\n"

L_.str.9:                               ## @.str.9
	.asciz	"End transaction failed!\n%s\n"

L_.str.12:                              ## @.str.12
	.asciz	"UPDATE apr_dbd_test SET col2 = 'success'"

L_.str.13:                              ## @.str.13
	.asciz	"INSERT INTO apr_dbd_test values ('aaa', 'zzz', 3)"

L_.str.14:                              ## @.str.14
	.asciz	"Valid insert returned %d.  Should be zero (OK)\n"

L_str:                                  ## @str
	.asciz	"Transaction 1"

L_str.16:                               ## @str.16
	.asciz	"Oops, invalid op succeeded but shouldn't!"

L_str.17:                               ## @str.17
	.asciz	"Transaction ended (should be rollback) - viewing table\nA column of \"failed\" indicates transaction failed (no rollback)"

L_str.18:                               ## @str.18
	.asciz	"Transaction 2"

L_str.19:                               ## @str.19
	.asciz	"Transaction ended (should be commit) - viewing table"

	.no_dead_strip	_test_transactions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_transactions
_test_transactions:                     ; @test_transactions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp, #16]
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_apr_dbd_transaction_start
	cbz	w0, LBB0_3
LBB0_1:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_apr_dbd_error
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_2:
	bl	_printf
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x3, l_.str.2@PAGE
Lloh5:
	add	x3, x3, l_.str.2@PAGEOFF
	add	x2, sp, #28
	mov	x0, x19
	mov	x1, x21
	bl	_apr_dbd_query
	cbz	w0, LBB0_6
LBB0_4:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_apr_dbd_error
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x2, [sp, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_apr_dbd_transaction_end
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	w8, [sp, #28]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
Lloh10:
	adrp	x3, l_.str.5@PAGE
Lloh11:
	add	x3, x3, l_.str.5@PAGEOFF
	add	x2, sp, #28
	mov	x0, x19
	mov	x1, x21
	bl	_apr_dbd_query
	cbnz	w0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x0, l_str.16@PAGE
Lloh13:
	add	x0, x0, l_str.16@PAGEOFF
	bl	_puts
LBB0_8:
Lloh14:
	adrp	x3, l_.str.7@PAGE
Lloh15:
	add	x3, x3, l_.str.7@PAGEOFF
	add	x2, sp, #28
	mov	x0, x19
	mov	x1, x21
	bl	_apr_dbd_query
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.8@PAGE
Lloh17:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	ldr	x2, [sp, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_apr_dbd_transaction_end
	cbz	w0, LBB0_11
; %bb.9:
	mov	x22, x0
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_apr_dbd_error
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.9@PAGE
Lloh19:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_2
LBB0_11:
Lloh20:
	adrp	x0, l_str.17@PAGE
Lloh21:
	add	x0, x0, l_str.17@PAGEOFF
	bl	_puts
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_select_sequential
Lloh22:
	adrp	x0, l_str.18@PAGE
Lloh23:
	add	x0, x0, l_str.18@PAGEOFF
	bl	_puts
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_apr_dbd_transaction_start
	cbnz	w0, LBB0_1
; %bb.12:
Lloh24:
	adrp	x3, l_.str.12@PAGE
Lloh25:
	add	x3, x3, l_.str.12@PAGEOFF
	add	x2, sp, #28
	mov	x0, x19
	mov	x1, x21
	bl	_apr_dbd_query
	cbnz	w0, LBB0_4
; %bb.13:
	ldr	w8, [sp, #28]
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
Lloh28:
	adrp	x3, l_.str.13@PAGE
Lloh29:
	add	x3, x3, l_.str.13@PAGEOFF
	add	x2, sp, #28
	mov	x0, x19
	mov	x1, x21
	bl	_apr_dbd_query
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh30:
	adrp	x0, l_.str.14@PAGE
Lloh31:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_printf
	ldr	x2, [sp, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_apr_dbd_transaction_end
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.14:
Lloh32:
	adrp	x0, l_str.19@PAGE
Lloh33:
	add	x0, x0, l_str.19@PAGEOFF
	bl	_puts
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_select_sequential
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Start transaction failed!\n%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"UPDATE apr_dbd_test SET col2 = 'failed'"

l_.str.3:                               ; @.str.3
	.asciz	"Update failed: '%s'\n"

l_.str.4:                               ; @.str.4
	.asciz	"%d rows updated\n"

l_.str.5:                               ; @.str.5
	.asciz	"INSERT INTO apr_dbd_test1 (col3) values (3)"

l_.str.7:                               ; @.str.7
	.asciz	"INSERT INTO apr_dbd_test values ('zzz', 'aaa', 3)"

l_.str.8:                               ; @.str.8
	.asciz	"Valid insert returned %d.  Should be nonzero (fail) because transaction is bad\n"

l_.str.9:                               ; @.str.9
	.asciz	"End transaction failed!\n%s\n"

l_.str.12:                              ; @.str.12
	.asciz	"UPDATE apr_dbd_test SET col2 = 'success'"

l_.str.13:                              ; @.str.13
	.asciz	"INSERT INTO apr_dbd_test values ('aaa', 'zzz', 3)"

l_.str.14:                              ; @.str.14
	.asciz	"Valid insert returned %d.  Should be zero (OK)\n"

l_str:                                  ; @str
	.asciz	"Transaction 1"

l_str.16:                               ; @str.16
	.asciz	"Oops, invalid op succeeded but shouldn't!"

l_str.17:                               ; @str.17
	.asciz	"Transaction ended (should be rollback) - viewing table\nA column of \"failed\" indicates transaction failed (no rollback)"

l_str.18:                               ; @str.18
	.asciz	"Transaction 2"

l_str.19:                               ; @str.19
	.asciz	"Transaction ended (should be commit) - viewing table"

	.no_dead_strip	_test_transactions
.subsections_via_symbols
