	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecpg_register_prepared_stmt    ## -- Begin function ecpg_register_prepared_stmt
	.p2align	4, 0x90
_ecpg_register_prepared_stmt:           ## @ecpg_register_prepared_stmt
	.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	%rdi, %r13
	movq	40(%rdi), %rbx
	movq	$0, -48(%rbp)
	movl	(%rdi), %r15d
	movq	8(%rdi), %rdi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_ecpg_find_prepared_statement
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ECPG_COMPAT_PGSQL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-48(%rbp), %rcx
	movl	%r15d, %edi
	movq	%rbx, %rdx
	movq	%rax, %r8
	callq	_deallocate_one
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movl	$32, %edi
	movl	%r15d, %esi
	callq	_ecpg_alloc
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$48, %edi
	movl	%r15d, %esi
	callq	_ecpg_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	%r15d, (%rbx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 40(%rbx)
	movq	32(%r13), %rdi
	movl	%r15d, %esi
	callq	_ecpg_strdup
	movq	%rax, 32(%rbx)
	movq	$0, 16(%rbx)
	movl	$0, 24(%rbx)
	movq	8(%r13), %rdi
	movl	%r15d, %esi
	callq	_ecpg_strdup
	movq	%rax, 24(%r12)
	movq	%rbx, 16(%r12)
	movl	$1, (%r12)
	movq	(%r14), %rax
	movq	%rax, 8(%r12)
	movq	%r12, (%r14)
	movl	$1, %r14d
	jmp	LBB0_7
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_5:
	movq	%r12, %rdi
	callq	_ecpg_free
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECPG_COMPAT_PGSQL,4,2          ## @ECPG_COMPAT_PGSQL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecpg_register_prepared_stmt    ; -- Begin function ecpg_register_prepared_stmt
	.p2align	2
_ecpg_register_prepared_stmt:           ; @ecpg_register_prepared_stmt
	.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	x20, x0
	ldr	x19, [x0, #40]
	str	xzr, [sp, #8]
	ldr	w21, [x0]
	ldr	x0, [x0, #8]
	add	x2, sp, #8
	mov	x1, x19
	bl	_ecpg_find_prepared_statement
	cbz	x0, LBB0_2
; %bb.1:
	mov	x4, x0
Lloh0:
	adrp	x8, _ECPG_COMPAT_PGSQL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECPG_COMPAT_PGSQL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x3, [sp, #8]
	mov	x0, x21
	mov	x2, x19
	bl	_deallocate_one
	cbz	w0, LBB0_6
LBB0_2:
	mov	w0, #32
	mov	x1, x21
	bl	_ecpg_alloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
	mov	w0, #48
	mov	x1, x21
	bl	_ecpg_alloc
	cbz	x0, LBB0_5
; %bb.4:
	mov	x23, x0
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	str	w21, [x23]
	str	x19, [x23, #40]
	ldr	x0, [x20, #32]
	mov	x1, x21
	bl	_ecpg_strdup
	str	x0, [x23, #32]
	str	xzr, [x23, #16]
	str	wzr, [x23, #24]
	ldr	x0, [x20, #8]
	mov	x1, x21
	bl	_ecpg_strdup
	str	x0, [x22, #24]
	mov	w0, #1
	str	w0, [x22]
	ldr	x8, [x19]
	stp	x8, x23, [x22, #8]
	str	x22, [x19]
	b	LBB0_6
LBB0_5:
	mov	x0, x22
	bl	_ecpg_free
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ECPG_COMPAT_PGSQL,4,2          ; @ECPG_COMPAT_PGSQL
.subsections_via_symbols
