	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_random
_select_random:                         ## @select_random
	.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, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	L_.str(%rip), %r8
	leaq	-48(%rbp), %rcx
	movq	%rdx, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	$1, %r9d
	callq	_apr_dbd_select
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rbx
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_2:
	movq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$5, %r8d
	callq	_apr_dbd_get_row
	leaq	L_.str.2(%rip), %r15
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	movq	%r15, %rbx
	jmp	LBB0_19
LBB0_4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_apr_dbd_num_cols
	testl	%eax, %eax
	movq	%r15, %rbx
	jle	LBB0_10
## %bb.5:
	leaq	L_.str.5(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%r15d
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_apr_dbd_num_cols
	cmpl	%eax, %r15d
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_apr_dbd_get_entry
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_9
LBB0_10:
	movq	_stdout@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str.6(%rip), %rdi
	callq	_fputs
	movq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %r8d
	callq	_apr_dbd_get_row
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.11:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.7(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_printf
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_apr_dbd_num_cols
	testl	%eax, %eax
	jle	LBB0_17
## %bb.12:
	leaq	L_.str.5(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%ebx
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_apr_dbd_num_cols
	cmpl	%eax, %ebx
	jge	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_apr_dbd_get_entry
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_16
LBB0_17:
	movl	(%r15), %esi
	leaq	L_.str.6(%rip), %rdi
	callq	_fputs
	movq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$11, %r8d
	callq	_apr_dbd_get_row
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.18:
	movl	$-1, %r13d
	leaq	L_.str.8(%rip), %rbx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_19:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_apr_dbd_error
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_20:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT * FROM apr_dbd_test ORDER BY col1, col2"

L_.str.1:                               ## @.str.1
	.asciz	"Select failed: %s"

L_.str.2:                               ## @.str.2
	.asciz	"get_row failed: %s"

L_.str.3:                               ## @.str.3
	.asciz	"ROW 5:\t"

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

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

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

	.comm	_stdout,4,2                     ## @stdout
L_.str.7:                               ## @.str.7
	.asciz	"ROW 1:\t"

L_.str.8:                               ## @.str.8
	.asciz	"Oops!  get_row out of range but thinks it succeeded!\n%s\n"

	.no_dead_strip	_select_random
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_random
_select_random:                         ; @select_random
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x4, l_.str@PAGE
Lloh1:
	add	x4, x4, l_.str@PAGEOFF
	add	x3, sp, #24
	mov	x0, x2
	mov	x1, x21
	mov	x2, x19
	mov	w5, #1
	bl	_apr_dbd_select
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_2:
	ldr	x2, [sp, #24]
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x21
	mov	w4, #5
	bl	_apr_dbd_get_row
	cbnz	w0, LBB0_10
; %bb.3:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_apr_dbd_num_cols
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.4:
	mov	w22, #0
Lloh6:
	adrp	x23, l_.str.4@PAGE
Lloh7:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh8:
	adrp	x24, l_.str.5@PAGE
Lloh9:
	add	x24, x24, l_.str.5@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x0, [sp]
	mov	x0, x24
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_printf
	add	w22, w22, #1
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_apr_dbd_num_cols
	cmp	w22, w0
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [sp, #16]
	mov	x0, x20
	mov	x2, x22
	bl	_apr_dbd_get_entry
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	b	LBB0_6
LBB0_9:
Lloh10:
	adrp	x25, _stdout@GOTPAGE
Lloh11:
	ldr	x25, [x25, _stdout@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_fputs
	ldr	x2, [sp, #24]
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x21
	mov	w4, #1
	bl	_apr_dbd_get_row
	cbz	w0, LBB0_14
LBB0_10:
	mov	x2, x0
Lloh14:
	adrp	x21, l_.str.2@PAGE
Lloh15:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_11:
	mov	x22, x0
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_apr_dbd_error
	str	x0, [sp]
	mov	x0, x21
	bl	_printf
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
Lloh16:
	adrp	x0, l_.str.7@PAGE
Lloh17:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_apr_dbd_num_cols
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.15:
	mov	w22, #0
Lloh18:
	adrp	x23, l_.str.4@PAGE
Lloh19:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh20:
	adrp	x24, l_.str.5@PAGE
Lloh21:
	add	x24, x24, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	str	x0, [sp]
	mov	x0, x24
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	bl	_printf
	add	w22, w22, #1
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_apr_dbd_num_cols
	cmp	w22, w0
	b.ge	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [sp, #16]
	mov	x0, x20
	mov	x2, x22
	bl	_apr_dbd_get_entry
	cbnz	x0, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x23
	b	LBB0_17
LBB0_20:
	ldr	w1, [x25]
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_fputs
	ldr	x2, [sp, #24]
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x21
	mov	w4, #11
	bl	_apr_dbd_get_row
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.21:
	mov	x2, x0
	mov	w22, #-1
Lloh24:
	adrp	x21, l_.str.8@PAGE
Lloh25:
	add	x21, x21, l_.str.8@PAGEOFF
	b	LBB0_12
LBB0_22:
	mov	w22, #0
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT * FROM apr_dbd_test ORDER BY col1, col2"

l_.str.1:                               ; @.str.1
	.asciz	"Select failed: %s"

l_.str.2:                               ; @.str.2
	.asciz	"get_row failed: %s"

l_.str.3:                               ; @.str.3
	.asciz	"ROW 5:\t"

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

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

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

	.comm	_stdout,4,2                     ; @stdout
l_.str.7:                               ; @.str.7
	.asciz	"ROW 1:\t"

l_.str.8:                               ; @.str.8
	.asciz	"Oops!  get_row out of range but thinks it succeeded!\n%s\n"

	.no_dead_strip	_select_random
.subsections_via_symbols
