	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_create_collation16     ## -- Begin function sqlite3_create_collation16
	.p2align	4, 0x90
_sqlite3_create_collation16:            ## @sqlite3_create_collation16
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%rdi), %edi
	callq	_sqlite3_mutex_enter
	xorl	%edi, %edi
	cmpl	$0, 4(%rbx)
	sete	%dil
	callq	_assert
	movq	_SQLITE_UTF16NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$-1, %edx
	callq	_sqlite3Utf16to8
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
	movq	%r15, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_createCollation
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sqlite3DbFree
LBB0_2:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_sqlite3ApiExit
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_sqlite3_mutex_leave
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_UTF16NATIVE,4,2         ## @SQLITE_UTF16NATIVE
	.comm	_SQLITE_MISUSE_BKPT,4,2         ## @SQLITE_MISUSE_BKPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_create_collation16     ; -- Begin function sqlite3_create_collation16
	.p2align	2
_sqlite3_create_collation16:            ; @sqlite3_create_collation16
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_sqlite3_mutex_enter
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
Lloh3:
	adrp	x8, _SQLITE_UTF16NATIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_UTF16NATIVE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #-1
	bl	_sqlite3Utf16to8
	cbz	x0, LBB0_2
; %bb.1:
	mov	x24, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	w5, #0
	bl	_createCollation
	mov	x20, x0
	mov	x0, x19
	mov	x1, x24
	bl	_sqlite3DbFree
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_sqlite3ApiExit
	mov	x20, x0
	ldr	w0, [x19]
	bl	_sqlite3_mutex_leave
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_UTF16NATIVE,4,2         ; @SQLITE_UTF16NATIVE
	.comm	_SQLITE_MISUSE_BKPT,4,2         ; @SQLITE_MISUSE_BKPT
.subsections_via_symbols
