	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function createCollation
_createCollation:                       ## @createCollation
	.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	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	16(%rdi), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movq	_SQLITE_UTF16@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpl	%r15d, (%r14)
	sete	%dil
	callq	_testcase
	movq	_SQLITE_UTF16_ALIGNED@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpl	%r15d, (%rbx)
	sete	%dil
	callq	_testcase
	cmpl	%r15d, (%rbx)
	movq	_SQLITE_UTF16NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r15d, %r12d
	cmovel	%eax, %r12d
	cmpl	%r15d, (%r14)
	cmovel	%eax, %r12d
	movq	_SQLITE_UTF8@GOTPCREL(%rip), %rax
	movq	_SQLITE_MISUSE_BKPT@GOTPCREL(%rip), %rbx
	cmpl	(%rax), %r12d
	jl	LBB0_22
## %bb.1:
	movq	_SQLITE_UTF16BE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jg	LBB0_22
## %bb.2:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%r13, %r14
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_sqlite3FindCollSeq
	testq	%rax, %rax
	je	LBB0_19
## %bb.3:
	movq	%rax, %r13
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.4:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.5:
	movq	_SQLITE_BUSY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_sqlite3ErrorWithMsg
	jmp	LBB0_22
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_sqlite3ExpirePreparedStatements
	movq	_SQLITE_UTF16_ALIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	8(%r13), %eax
	cmpl	%r12d, %eax
	jne	LBB0_19
## %bb.7:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_sqlite3HashFind
	movl	8(%rax), %ecx
	movl	8(%r13), %edx
	cmpl	%edx, %ecx
	je	LBB0_8
## %bb.11:
	cmpl	%edx, 40(%rax)
	je	LBB0_12
LBB0_15:
	cmpl	%edx, 72(%rax)
	je	LBB0_16
	jmp	LBB0_19
LBB0_8:
	movq	16(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:
	movq	24(%rax), %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	*%rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%r13), %ecx
LBB0_10:
	movq	$0, (%rax)
	movl	%ecx, %edx
	cmpl	%edx, 40(%rax)
	jne	LBB0_15
LBB0_12:
	movq	48(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:
	movq	56(%rax), %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	*%rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%r13), %edx
LBB0_14:
	movq	$0, 32(%rax)
	cmpl	%edx, 72(%rax)
	jne	LBB0_19
LBB0_16:
	movq	80(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.17:
	movq	88(%rax), %rdi
	movq	%rax, %r13
	callq	*%rcx
	movq	%r13, %rax
LBB0_18:
	movq	$0, 64(%rax)
LBB0_19:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_sqlite3FindCollSeq
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 24(%rax)
	movq	%rbx, 16(%rax)
	movq	_SQLITE_UTF16_ALIGNED@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	orl	%r12d, %r15d
	movl	%r15d, 8(%rax)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_sqlite3Error
	jmp	LBB0_22
LBB0_20:
	movq	_SQLITE_NOMEM_BKPT@GOTPCREL(%rip), %rbx
LBB0_22:
	movl	(%rbx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_UTF16,4,2               ## @SQLITE_UTF16
	.comm	_SQLITE_UTF16_ALIGNED,4,2       ## @SQLITE_UTF16_ALIGNED
	.comm	_SQLITE_UTF16NATIVE,4,2         ## @SQLITE_UTF16NATIVE
	.comm	_SQLITE_UTF8,4,2                ## @SQLITE_UTF8
	.comm	_SQLITE_UTF16BE,4,2             ## @SQLITE_UTF16BE
	.comm	_SQLITE_MISUSE_BKPT,4,2         ## @SQLITE_MISUSE_BKPT
	.comm	_SQLITE_BUSY,4,2                ## @SQLITE_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to delete/modify collation sequence due to active statements"

	.comm	_SQLITE_NOMEM_BKPT,4,2          ## @SQLITE_NOMEM_BKPT
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_createCollation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function createCollation
_createCollation:                       ; @createCollation
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x5
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_sqlite3_mutex_held
	bl	_assert
Lloh0:
	adrp	x25, _SQLITE_UTF16@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SQLITE_UTF16@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, w21
	cset	w0, eq
	bl	_testcase
Lloh2:
	adrp	x28, _SQLITE_UTF16_ALIGNED@GOTPAGE
Lloh3:
	ldr	x28, [x28, _SQLITE_UTF16_ALIGNED@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, w21
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x25]
	ldr	w9, [x28]
	cmp	w9, w21
	ccmp	w8, w21, #4, ne
Lloh4:
	adrp	x8, _SQLITE_UTF16NATIVE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_UTF16NATIVE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	csel	w25, w8, w21, eq
Lloh7:
	adrp	x8, _SQLITE_UTF8@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SQLITE_UTF8@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SQLITE_UTF16BE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SQLITE_UTF16BE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w25, w8
	ccmp	w25, w9, #0, ge
	b.le	LBB0_2
; %bb.1:
Lloh13:
	adrp	x20, _SQLITE_MISUSE_BKPT@GOTPAGE
Lloh14:
	ldr	x20, [x20, _SQLITE_MISUSE_BKPT@GOTPAGEOFF]
	b	LBB0_23
LBB0_2:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	w3, #0
	bl	_sqlite3FindCollSeq
	cbz	x0, LBB0_20
; %bb.3:
	mov	x26, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_20
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh15:
	adrp	x20, _SQLITE_BUSY@GOTPAGE
Lloh16:
	ldr	x20, [x20, _SQLITE_BUSY@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sqlite3ErrorWithMsg
	b	LBB0_23
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_sqlite3ExpirePreparedStatements
	ldr	w8, [x26, #8]
	ldr	w9, [x28]
	bic	w8, w8, w9
	cmp	w8, w25
	b.ne	LBB0_20
; %bb.7:
	mov	x0, x19
	mov	x1, x24
	bl	_sqlite3HashFind
	mov	x27, x0
	ldr	w9, [x0, #8]
	ldr	w8, [x26, #8]
	cmp	w9, w8
	b.ne	LBB0_12
; %bb.8:
	ldr	x8, [x27, #16]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x0, [x27, #24]
	blr	x8
	ldr	w8, [x26, #8]
	b	LBB0_11
LBB0_10:
	mov	x8, x9
LBB0_11:
	str	xzr, [x27]
LBB0_12:
	ldr	w9, [x27, #40]
	cmp	w9, w8
	b.ne	LBB0_16
; %bb.13:
	ldr	x9, [x27, #48]
	cbz	x9, LBB0_15
; %bb.14:
	ldr	x0, [x27, #56]
	blr	x9
	ldr	w8, [x26, #8]
LBB0_15:
	str	xzr, [x27, #32]
LBB0_16:
	ldr	w9, [x27, #72]
	cmp	w9, w8
	b.ne	LBB0_20
; %bb.17:
	ldr	x8, [x27, #80]
	cbz	x8, LBB0_19
; %bb.18:
	ldr	x0, [x27, #88]
	blr	x8
LBB0_19:
	str	xzr, [x27, #64]
LBB0_20:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	w3, #1
	bl	_sqlite3FindCollSeq
	cbz	x0, LBB0_22
; %bb.21:
	str	x23, [x0]
	stp	x20, x22, [x0, #16]
	ldr	w8, [x28]
	and	w8, w8, w21
	orr	w8, w8, w25
	str	w8, [x0, #8]
Lloh19:
	adrp	x20, _SQLITE_OK@GOTPAGE
Lloh20:
	ldr	x20, [x20, _SQLITE_OK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sqlite3Error
	b	LBB0_23
LBB0_22:
Lloh21:
	adrp	x20, _SQLITE_NOMEM_BKPT@GOTPAGE
Lloh22:
	ldr	x20, [x20, _SQLITE_NOMEM_BKPT@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_UTF16,4,2               ; @SQLITE_UTF16
	.comm	_SQLITE_UTF16_ALIGNED,4,2       ; @SQLITE_UTF16_ALIGNED
	.comm	_SQLITE_UTF16NATIVE,4,2         ; @SQLITE_UTF16NATIVE
	.comm	_SQLITE_UTF8,4,2                ; @SQLITE_UTF8
	.comm	_SQLITE_UTF16BE,4,2             ; @SQLITE_UTF16BE
	.comm	_SQLITE_MISUSE_BKPT,4,2         ; @SQLITE_MISUSE_BKPT
	.comm	_SQLITE_BUSY,4,2                ; @SQLITE_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to delete/modify collation sequence due to active statements"

	.comm	_SQLITE_NOMEM_BKPT,4,2          ; @SQLITE_NOMEM_BKPT
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_createCollation
.subsections_via_symbols
