	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ECPGdisconnect                 ## -- Begin function ECPGdisconnect
	.p2align	4, 0x90
_ECPGdisconnect:                        ## @ECPGdisconnect
	.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
	movq	%rsi, %r12
	movl	%edi, %r14d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ECPGget_sqlca
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%r12, %rdi
	callq	_ecpg_get_connection_nr
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_ecpg_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_ecpg_finish
	movl	$1, %r15d
	jmp	LBB0_8
LBB0_1:
	movq	_ECPG_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	callq	_ecpg_raise
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	callq	_ecpg_init_sqlca
	movq	_all_connections@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$1, %r15d
	testq	%rdi, %rdi
	je	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	callq	_ecpg_finish
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ALL"

	.comm	_all_connections,8,3            ## @all_connections
	.comm	_connections_mutex,4,2          ## @connections_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ECPGdisconnect                 ; -- Begin function ECPGdisconnect
	.p2align	2
_ECPGdisconnect:                        ; @ECPGdisconnect
	.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	x20, x1
	mov	x19, x0
	bl	_ECPGget_sqlca
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_ecpg_get_connection_nr
	mov	x21, x0
	mov	x1, x20
	mov	x2, x19
	bl	_ecpg_init
	cbz	w0, LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_ecpg_finish
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _ECPG_OUT_OF_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ECPG_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, #0
	bl	_ecpg_raise
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	mov	x0, x21
	bl	_ecpg_init_sqlca
Lloh8:
	adrp	x8, _all_connections@GOTPAGE
Lloh9:
	ldr	x8, [x8, _all_connections@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	cbz	x0, LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x0]
	bl	_ecpg_finish
	mov	x0, x19
	cbnz	x19, LBB0_6
LBB0_7:
	mov	w0, #1
LBB0_8:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ALL"

	.comm	_all_connections,8,3            ; @all_connections
	.comm	_connections_mutex,4,2          ; @connections_mutex
.subsections_via_symbols
