	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ECPGset_var                    ## -- Begin function ECPGset_var
	.p2align	4, 0x90
_ECPGset_var:                           ## @ECPGset_var
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_ECPGget_sqlca
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rdi
	callq	_ecpg_init_sqlca
	movq	_ivlist@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rax)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
LBB0_8:
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movl	%ebx, (%rax)
	movq	%r15, 16(%rax)
	movq	(%r12), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, (%r12)
	jmp	LBB0_12
LBB0_1:
	movq	_ECPG_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_2:
	movq	_ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ecpg_raise                     ## TAILCALL
LBB0_6:
	movq	%r15, 16(%rax)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	callq	_ECPGget_sqlca
	movq	%rax, %rbx
	movq	_ECPG_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.10:
	movl	%esi, 12(%rbx)
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strncpy
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	movl	%r14d, %ecx
	callq	_snprintf
	movl	(%rbx), %edi
	callq	_strlen
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ECPGfree_auto_mem              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ECPG_OUT_OF_MEMORY,4,2         ## @ECPG_OUT_OF_MEMORY
	.comm	_ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY,4,2 ## @ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY
	.comm	_ivlist,8,3                     ## @ivlist
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"YE001"

L_.str.1:                               ## @.str.1
	.asciz	"out of memory on line %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ECPGset_var                    ; -- Begin function ECPGset_var
	.p2align	2
_ECPGset_var:                           ; @ECPGset_var
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ECPGget_sqlca
	cbz	x0, LBB0_6
; %bb.1:
	bl	_ecpg_init_sqlca
Lloh0:
	adrp	x22, _ivlist@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ivlist@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	cmp	w9, w21
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
LBB0_4:
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	cbz	x0, LBB0_10
; %bb.5:
	str	w21, [x0]
	ldr	x8, [x22]
	stp	x8, x20, [x0, #8]
	str	x0, [x22]
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _ECPG_OUT_OF_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ECPG_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh4:
	adrp	x9, _ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	ldr	w2, [x9]
LBB0_7:
	mov	x0, x19
	mov	x3, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ecpg_raise
LBB0_8:
	str	x20, [x8, #16]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	_ECPGget_sqlca
Lloh8:
	adrp	x8, _ECPG_OUT_OF_MEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECPG_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	cbz	x0, LBB0_12
; %bb.11:
	mov	x20, x0
	str	w1, [x0, #12]
	ldr	w0, [x0, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strncpy
	ldr	w0, [x20]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	mov	x3, x19
	bl	_snprintf
	ldr	w0, [x20]
	bl	_strlen
	str	w0, [x20, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ECPGfree_auto_mem
LBB0_12:
Lloh15:
	adrp	x8, _ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ECPG_OUT_OF_MEMORY,4,2         ; @ECPG_OUT_OF_MEMORY
	.comm	_ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY,4,2 ; @ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY
	.comm	_ivlist,8,3                     ; @ivlist
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"YE001"

l_.str.1:                               ; @.str.1
	.asciz	"out of memory on line %d"

.subsections_via_symbols
