	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AddStmtToCache
_AddStmtToCache:                        ## @AddStmtToCache
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_stmtCacheEntries@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jne	LBB0_2
## %bb.1:
	movq	_stmtCacheArraySize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	leal	(%rax,%rax,4), %edi
	movl	%r15d, %esi
	callq	_ecpg_alloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_13
LBB0_2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_HashStmt
	movq	_stmtCacheEntPerBucket@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.3:
	movq	(%r13), %r8
	movslq	%eax, %rsi
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%r8,%rsi,8), %rsi
	movl	%eax, %edi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%eax
	addq	$40, %rsi
	movl	%r14d, %edi
	decl	%ecx
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rsi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rsi), %rbx
	movslq	%edi, %rdx
	leaq	(%rdx,%rdx,4), %rdx
	movl	%eax, %r14d
	cmpq	(%r8,%rdx,8), %rbx
	jl	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edi, %r14d
	jmp	LBB0_4
LBB0_9:
	movl	%eax, %r14d
LBB0_10:
	movl	%r15d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_ecpg_freeStmtCacheEntry
	testq	%rax, %rax
	js	LBB0_13
## %bb.11:
	movq	(%r13), %r13
	movslq	%r14d, %rax
	leaq	(%rax,%rax,4), %rbx
	movl	%r15d, 8(%r13,%rbx,8)
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_ecpg_strdup
	movl	%eax, 32(%r13,%rbx,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r13,%rbx,8)
	movq	$0, (%r13,%rbx,8)
	movq	24(%r13,%rbx,8), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy
	jmp	LBB0_14
LBB0_13:
	movl	$-1, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stmtCacheEntries,8,3           ## @stmtCacheEntries
	.comm	_stmtCacheArraySize,4,2         ## @stmtCacheArraySize
	.comm	_stmtCacheEntPerBucket,4,2      ## @stmtCacheEntPerBucket
	.no_dead_strip	_AddStmtToCache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AddStmtToCache
_AddStmtToCache:                        ; @AddStmtToCache
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _stmtCacheEntries@GOTPAGE
Lloh1:
	ldr	x25, [x25, _stmtCacheEntries@GOTPAGEOFF]
	ldr	x8, [x25]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stmtCacheArraySize@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stmtCacheArraySize@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	lsl	w0, w8, #3
	mov	x1, x22
	bl	_ecpg_alloc
	str	x0, [x25]
	cbz	x0, LBB0_9
LBB0_2:
	mov	x0, x21
	bl	_HashStmt
Lloh5:
	adrp	x8, _stmtCacheEntPerBucket@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stmtCacheEntPerBucket@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x9, [x25]
	mov	w10, #40
	smaddl	x11, w0, w10, x9
	mov	x24, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, #24]
	ldr	w12, [x12]
	cbz	w12, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x11], #40
	smull	x13, w24, w10
	ldr	x13, [x9, x13]
	cmp	x12, x13
	csel	w24, w0, w24, lt
	add	w0, w0, #1
	subs	w8, w8, #1
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x24, x0
LBB0_7:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_ecpg_freeStmtCacheEntry
	tbnz	x0, #63, LBB0_9
; %bb.8:
	ldr	x8, [x25]
	mov	w9, #40
	smaddl	x23, w24, w9, x8
	str	w22, [x23, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_ecpg_strdup
	str	w0, [x23, #32]
	str	x20, [x23, #16]
	str	xzr, [x23]
	ldr	x0, [x23, #24]
	mov	x1, x19
	mov	w2, #8
	bl	_memcpy
	b	LBB0_10
LBB0_9:
	mov	w24, #-1
LBB0_10:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_stmtCacheEntries,8,3           ; @stmtCacheEntries
	.comm	_stmtCacheArraySize,4,2         ; @stmtCacheArraySize
	.comm	_stmtCacheEntPerBucket,4,2      ; @stmtCacheEntPerBucket
	.no_dead_strip	_AddStmtToCache
.subsections_via_symbols
