	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_pselect
_test_pselect:                          ## @test_pselect
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	$0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	leaq	-64(%rbp), %r9
	movq	%rdx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_apr_dbd_prepare
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_apr_dbd_error
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movq	-64(%rbp), %r8
	leaq	L_.str.3(%rip), %rax
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	callq	_apr_dbd_pvselect
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_apr_dbd_error
	leaq	L_.str.4(%rip), %rdi
LBB0_2:
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_15:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$-1, %r8d
	callq	_apr_dbd_get_row
	testl	%eax, %eax
	je	LBB0_6
LBB0_14:
	xorl	%r15d, %r15d
	cmpl	$-1, %eax
	setne	%r15b
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str.7(%rip), %r12
	leaq	L_.str.8(%rip), %r13
	xorl	%r15d, %r15d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdi
	callq	_fputs
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leaq	-56(%rbp), %rcx
	movl	$-1, %r8d
	callq	_apr_dbd_get_row
	testl	%eax, %eax
	jne	LBB0_14
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	incl	%r15d
	leaq	L_.str.6(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_apr_dbd_num_cols
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	incl	%r14d
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_apr_dbd_num_cols
	cmpl	%eax, %r14d
	jge	LBB0_13
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_apr_dbd_get_entry
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT * FROM apr_dbd_test WHERE col3 <= %s or col1 = 'bar'"

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

L_.str.2:                               ## @.str.2
	.asciz	"Prepare statement failed!\n%s\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"Exec of prepared statement failed!\n%s\n"

L_.str.6:                               ## @.str.6
	.asciz	"ROW %d:\t"

L_.str.7:                               ## @.str.7
	.asciz	"(null)\t"

L_.str.8:                               ## @.str.8
	.asciz	"%s\t"

L_.str.9:                               ## @.str.9
	.asciz	"\n"

	.comm	_stdout,4,2                     ## @stdout
L_str:                                  ## @str
	.asciz	"Selecting rows where col3 <= 3 and bar row where it's unset.\nShould show four rows."

	.no_dead_strip	_test_pselect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_pselect
_test_pselect:                          ; @test_pselect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
Lloh2:
	adrp	x4, l_.str.1@PAGE
Lloh3:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x5, sp, #24
	mov	x0, x2
	mov	x1, x20
	mov	x2, x21
	bl	_apr_dbd_prepare
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_apr_dbd_error
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	b	LBB0_6
LBB0_2:
	ldr	x4, [sp, #24]
Lloh6:
	adrp	x6, l_.str.3@PAGE
Lloh7:
	add	x6, x6, l_.str.3@PAGEOFF
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w5, #0
	mov	x7, #0
	bl	_apr_dbd_pvselect
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_apr_dbd_error
	str	x0, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x0, l_str@PAGE
Lloh11:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x2, [sp, #16]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w4, #-1
	bl	_apr_dbd_get_row
	cbz	w0, LBB0_7
LBB0_5:
	cmn	w0, #1
	cset	w22, ne
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	mov	w26, #0
Lloh12:
	adrp	x21, l_.str.6@PAGE
Lloh13:
	add	x21, x21, l_.str.6@PAGEOFF
Lloh14:
	adrp	x22, l_.str.7@PAGE
Lloh15:
	add	x22, x22, l_.str.7@PAGEOFF
Lloh16:
	adrp	x23, l_.str.8@PAGE
Lloh17:
	add	x23, x23, l_.str.8@PAGEOFF
Lloh18:
	adrp	x27, _stdout@GOTPAGE
Lloh19:
	ldr	x27, [x27, _stdout@GOTPAGEOFF]
Lloh20:
	adrp	x24, l_.str.9@PAGE
Lloh21:
	add	x24, x24, l_.str.9@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x27]
	mov	x0, x24
	bl	_fputs
	ldr	x2, [sp, #16]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w4, #-1
	bl	_apr_dbd_get_row
	cbnz	w0, LBB0_5
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	add	w26, w26, #1
	str	x26, [sp]
	mov	x0, x21
	bl	_printf
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_apr_dbd_num_cols
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w25, #0
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	str	x0, [sp]
	mov	x0, x23
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	bl	_printf
	add	w25, w25, #1
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_apr_dbd_num_cols
	cmp	w25, w0
	b.ge	LBB0_8
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x25
	bl	_apr_dbd_get_entry
	cbnz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x22
	b	LBB0_12
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT * FROM apr_dbd_test WHERE col3 <= %s or col1 = 'bar'"

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

l_.str.2:                               ; @.str.2
	.asciz	"Prepare statement failed!\n%s\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"Exec of prepared statement failed!\n%s\n"

l_.str.6:                               ; @.str.6
	.asciz	"ROW %d:\t"

l_.str.7:                               ; @.str.7
	.asciz	"(null)\t"

l_.str.8:                               ; @.str.8
	.asciz	"%s\t"

l_.str.9:                               ; @.str.9
	.asciz	"\n"

	.comm	_stdout,4,2                     ; @stdout
l_str:                                  ; @str
	.asciz	"Selecting rows where col3 <= 3 and bar row where it's unset.\nShould show four rows."

	.no_dead_strip	_test_pselect
.subsections_via_symbols
