	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toggleSelectOrder
_toggleSelectOrder:                     ## @toggleSelectOrder
	.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	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	$0, -152(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-152(%rbp), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	movq	-152(%rbp), %rdi
	callq	_sqlite3_step
	movq	_SQLITE_ROW@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	-152(%rbp), %rdi
	xorl	%esi, %esi
	callq	_sqlite3_column_int
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
LBB0_2:
	movq	-152(%rbp), %rdi
	callq	_sqlite3_finalize
	leaq	L_.str.1(%rip), %rdx
	leaq	-144(%rbp), %r15
	movl	$100, %edi
	movq	%r15, %rsi
	movl	%ebx, %ecx
	callq	_sqlite3_snprintf
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sqlite3_exec
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$136, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PRAGMA reverse_unordered_selects"

	.comm	_SQLITE_ROW,8,3                 ## @SQLITE_ROW
L_.str.1:                               ## @.str.1
	.asciz	"PRAGMA reverse_unordered_selects(%d)"

	.no_dead_strip	_toggleSelectOrder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toggleSelectOrder
_toggleSelectOrder:                     ; @toggleSelectOrder
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	w2, #-1
	mov	w4, #0
	bl	_sqlite3_prepare_v2
	ldr	x0, [sp, #8]
	bl	_sqlite3_step
Lloh5:
	adrp	x8, _SQLITE_ROW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_ROW@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_sqlite3_column_int
	cmp	w0, #0
	cset	w20, eq
	b	LBB0_3
LBB0_2:
	mov	w20, #1
LBB0_3:
	ldr	x0, [sp, #8]
	bl	_sqlite3_finalize
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x1, sp, #20
	mov	w0, #100
	mov	x3, x20
	bl	_sqlite3_snprintf
	add	x1, sp, #20
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_sqlite3_exec
	ldur	x8, [x29, #-24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PRAGMA reverse_unordered_selects"

	.comm	_SQLITE_ROW,8,3                 ; @SQLITE_ROW
l_.str.1:                               ; @.str.1
	.asciz	"PRAGMA reverse_unordered_selects(%d)"

	.no_dead_strip	_toggleSelectOrder
.subsections_via_symbols
