	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_set_auxdata            ## -- Begin function sqlite3_set_auxdata
	.p2align	4, 0x90
_sqlite3_set_auxdata:                   ## @sqlite3_set_auxdata
	.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	%rdx, %r14
	testl	%esi, %esi
	js	LBB0_10
## %bb.1:
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %r13d
	cmpl	%r12d, %r13d
	jle	LBB0_4
	jmp	LBB0_6
LBB0_2:
	xorl	%r13d, %r13d
LBB0_4:
	movl	%r12d, %edx
	shll	$4, %edx
	addl	$24, %edx
	movq	16(%r15), %rdi
	movq	%rbx, %rsi
	callq	_sqlite3DbRealloc
	testq	%rax, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_10
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, 8(%r15)
	movslq	%r13d, %rdi
	leal	1(%r12), %r13d
	movl	%r13d, %edx
	subl	%edi, %edx
	shlq	$4, %rdi
	addq	8(%rax), %rdi
	shll	$4, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	%r13d, (%rbx)
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
LBB0_6:
	movq	8(%rbx), %r15
	movl	%r12d, %ebx
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %r12
	movq	(%r15,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	movq	8(%r15,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	callq	*%rax
LBB0_9:
	movq	%r14, (%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15,%rbx)
	jmp	LBB0_11
LBB0_10:
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_set_auxdata            ; -- Begin function sqlite3_set_auxdata
	.p2align	2
_sqlite3_set_auxdata:                   ; @sqlite3_set_auxdata
	.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
	tbnz	w1, #31, LBB0_10
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	x22, [x21, #8]
	cbz	x22, LBB0_3
; %bb.2:
	ldr	w23, [x22]
	cmp	w23, w20
	b.le	LBB0_4
	b	LBB0_6
LBB0_3:
	mov	w23, #0
LBB0_4:
	lsl	w8, w20, #4
	add	w2, w8, #24
	ldr	x0, [x21, #16]
	mov	x1, x22
	bl	_sqlite3DbRealloc
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x0, LBB0_10
; %bb.5:
	mov	x22, x0
	str	x0, [x21, #8]
	ldr	x8, [x0, #8]
	add	x0, x8, w23, sxtw #4
	add	w24, w20, #1
	sub	w8, w24, w23
	lsl	w2, w8, #4
	mov	w1, #0
	bl	_memset
	str	w24, [x22]
	ldr	w8, [x21]
	str	w8, [x22, #16]
LBB0_6:
	ldr	x21, [x22, #8]
	mov	w22, w20
	add	x20, x21, w20, uxtw #4
	ldr	x0, [x20]
	cbz	x0, LBB0_9
; %bb.7:
	add	x8, x21, x22, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.8:
	blr	x8
LBB0_9:
	str	x19, [x20]
	add	x8, x21, x22, lsl #4
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	str	x0, [x8, #8]
	b	LBB0_12
LBB0_10:
	cbz	x3, LBB0_12
; %bb.11:
	mov	x0, x19
	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
	br	x3
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
