	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_overload_function      ## -- Begin function sqlite3_overload_function
	.p2align	4, 0x90
_sqlite3_overload_function:             ## @sqlite3_overload_function
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_sqlite3_mutex_enter
	movq	_SQLITE_UTF8@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3FindFunction
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_sqlite3_mutex_leave
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	addq	$8, %rsp
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	callq	_sqlite3_mprintf
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movl	(%r13), %ecx
	movq	_sqlite3InvalidFunction@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	_sqlite3_free@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%rax, %r8
	pushq	%rbx
	pushq	$0
	pushq	$0
	callq	_sqlite3_create_function_v2
	addq	$40, %rsp
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_UTF8,4,2                ## @SQLITE_UTF8
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
	.comm	_sqlite3InvalidFunction,4,2     ## @sqlite3InvalidFunction
	.comm	_sqlite3_free,4,2               ## @sqlite3_free
	.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_overload_function      ; -- Begin function sqlite3_overload_function
	.p2align	2
_sqlite3_overload_function:             ; @sqlite3_overload_function
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_sqlite3_mutex_enter
Lloh0:
	adrp	x23, _SQLITE_UTF8@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SQLITE_UTF8@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #0
	bl	_sqlite3FindFunction
	mov	x22, x0
	ldr	w0, [x21]
	bl	_sqlite3_mutex_leave
	cbz	x22, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_sqlite3_mprintf
	cbz	x0, LBB0_6
; %bb.4:
	mov	x4, x0
	ldr	w3, [x23]
Lloh4:
	adrp	x8, _sqlite3InvalidFunction@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sqlite3InvalidFunction@GOTPAGEOFF]
Lloh6:
	ldr	w5, [x8]
Lloh7:
	adrp	x8, _sqlite3_free@GOTPAGE
Lloh8:
	ldr	x8, [x8, _sqlite3_free@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w6, #0
	mov	w7, #0
	bl	_sqlite3_create_function_v2
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh10:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_UTF8,4,2                ; @SQLITE_UTF8
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
	.comm	_sqlite3InvalidFunction,4,2     ; @sqlite3InvalidFunction
	.comm	_sqlite3_free,4,2               ; @sqlite3_free
	.comm	_SQLITE_MISUSE_BKPT,4,2         ; @SQLITE_MISUSE_BKPT
.subsections_via_symbols
