	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecpg_freeStmtCacheEntry
_ecpg_freeStmtCacheEntry:               ## @ecpg_freeStmtCacheEntry
	.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	_stmtCacheEntries@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	$-1, %ebx
	testq	%r15, %r15
	je	LBB0_8
## %bb.1:
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %r12
	movq	(%r15,%r12,8), %rax
	cmpb	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	leaq	(%r15,%r12,8), %r14
	movl	16(%r15,%r12,8), %edi
	callq	_ecpg_get_connection
	movq	%rax, %r13
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	leaq	-72(%rbp), %rdx
	movq	%rax, %rsi
	callq	_ecpg_find_prepared_statement
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-72(%rbp), %rcx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movq	%rax, %r8
	callq	_deallocate_one
	testl	%eax, %eax
	je	LBB0_8
LBB0_5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movb	$0, (%rax)
	movq	8(%r15,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	leaq	(%r15,%r12,8), %rbx
	addq	$8, %rbx
	callq	_ecpg_free
	movq	$0, (%rbx)
LBB0_7:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_8
LBB0_2:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stmtCacheEntries,8,3           ## @stmtCacheEntries
	.no_dead_strip	_ecpg_freeStmtCacheEntry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecpg_freeStmtCacheEntry
_ecpg_freeStmtCacheEntry:               ; @ecpg_freeStmtCacheEntry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
Lloh0:
	adrp	x8, _stmtCacheEntries@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stmtCacheEntries@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	cbz	x23, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	w8, #24
	smaddl	x24, w2, w8, x23
	ldr	x8, [x24]
	ldrb	w8, [x8]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x20, x1
	mov	x21, x0
	sxtw	x25, w19
	mov	w8, #24
	madd	x8, x25, x8, x23
	ldr	w0, [x8, #16]
	bl	_ecpg_get_connection
	mov	x22, x0
	ldr	x0, [x24]
	add	x2, sp, #8
	mov	x1, x22
	bl	_ecpg_find_prepared_statement
	cbz	x0, LBB0_4
; %bb.3:
	mov	x4, x0
	ldr	x3, [sp, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_deallocate_one
	cbz	w0, LBB0_6
LBB0_4:
	ldr	x8, [x24]
	strb	wzr, [x8]
	mov	w8, #24
	madd	x20, x25, x8, x23
	ldr	x0, [x20, #8]!
	cbz	x0, LBB0_8
; %bb.5:
	bl	_ecpg_free
	str	xzr, [x20]
	b	LBB0_8
LBB0_6:
	mov	w19, #-1
	b	LBB0_8
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_stmtCacheEntries,8,3           ; @stmtCacheEntries
	.no_dead_strip	_ecpg_freeStmtCacheEntry
.subsections_via_symbols
