	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CncPasswordDlg                 ## -- Begin function CncPasswordDlg
	.p2align	4, 0x90
_CncPasswordDlg:                        ## @CncPasswordDlg
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.2:
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_CncConnect
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_NewPack
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	callq	_PackAddStr
	movl	24(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackAddInt
	movq	(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackAddStr
	movq	8(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackAddStr
	movq	16(%r14), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackAddStr
	movl	64(%r14), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackAddInt
	movq	32(%r14), %rdx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackAddBool
	movq	56(%r14), %rdx
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackAddBool
	movq	48(%r14), %rdx
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackAddBool
	movq	40(%r14), %rdx
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackAddBool
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_SendPack
	movq	%rbx, %rdi
	callq	_FreePack
	movl	$24, %edi
	callq	_ZeroMalloc
	movq	%r13, %rbx
	movq	%rax, %r13
	movq	%r12, 16(%rax)
	movq	%rbx, 8(%rax)
	xorl	%eax, %eax
	callq	_NewEvent
	movl	%eax, 4(%r13)
	movq	_CncConnectErrorDlgHaltThread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_NewThread
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_RecvPack
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	leaq	L_.str.11(%rip), %rsi
	movq	%rax, %rdi
	callq	_PackGetBool
	movq	%rax, %r15
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackGetBool
	movq	%rax, 40(%r14)
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackGetBool
	movq	%rax, 32(%r14)
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackGetInt
	movl	%eax, 24(%r14)
	movq	(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	$8, %ecx
	callq	_PackGetStr
	movq	8(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	$8, %ecx
	callq	_PackGetStr
	movq	%rbx, %rdi
	callq	_FreePack
LBB0_6:
	movl	$1, (%r13)
	movl	4(%r13), %edi
	callq	_Set
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_WaitThread
	movl	4(%r13), %edi
	callq	_ReleaseEvent
	movq	%r13, %rdi
	callq	_Free
	movq	%r12, %rdi
	callq	_ReleaseThread
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_Disconnect
	movq	%rbx, %rdi
	callq	_ReleaseSock
	jmp	LBB0_7
LBB0_3:
	movl	(%r12), %esi
	movl	4(%r12), %edi
	callq	_Wait
	movl	$1, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"function"

L_.str.1:                               ## @.str.1
	.asciz	"password_dialog"

L_.str.2:                               ## @.str.2
	.asciz	"Type"

L_.str.3:                               ## @.str.3
	.asciz	"Username"

L_.str.4:                               ## @.str.4
	.asciz	"Password"

L_.str.5:                               ## @.str.5
	.asciz	"ServerName"

L_.str.6:                               ## @.str.6
	.asciz	"RetryIntervalSec"

L_.str.7:                               ## @.str.7
	.asciz	"ProxyServer"

L_.str.8:                               ## @.str.8
	.asciz	"AdminMode"

L_.str.9:                               ## @.str.9
	.asciz	"ShowNoSavePassword"

L_.str.10:                              ## @.str.10
	.asciz	"NoSavePassword"

	.comm	_CncConnectErrorDlgHaltThread,4,2 ## @CncConnectErrorDlgHaltThread
L_.str.11:                              ## @.str.11
	.asciz	"ok"

	.comm	_INFINITE,4,2                   ## @INFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CncPasswordDlg                 ; -- Begin function CncPasswordDlg
	.p2align	2
_CncPasswordDlg:                        ; @CncPasswordDlg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w23, #0
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x21, x0
	bl	_CncConnect
	cbz	x0, LBB0_5
; %bb.3:
	mov	x19, x0
	bl	_NewPack
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_PackAddStr
	ldr	w2, [x20, #24]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_PackAddInt
	ldr	x2, [x20]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_PackAddStr
	ldr	x2, [x20, #8]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_PackAddStr
	ldr	x2, [x20, #16]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_PackAddStr
	ldr	w2, [x20, #64]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_PackAddInt
	ldr	x2, [x20, #32]
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_PackAddBool
	ldr	x2, [x20, #56]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_PackAddBool
	ldr	x2, [x20, #48]
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x22
	bl	_PackAddBool
	ldr	x2, [x20, #40]
Lloh20:
	adrp	x1, l_.str.10@PAGE
Lloh21:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x22
	bl	_PackAddBool
	mov	x0, x19
	mov	x1, x22
	bl	_SendPack
	mov	x0, x22
	bl	_FreePack
	mov	w0, #24
	bl	_ZeroMalloc
	mov	x22, x0
	stp	x19, x21, [x0, #8]
	bl	_NewEvent
	str	w0, [x22, #4]
Lloh22:
	adrp	x8, _CncConnectErrorDlgHaltThread@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CncConnectErrorDlgHaltThread@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_NewThread
	mov	x21, x0
	mov	x0, x19
	bl	_RecvPack
	cbz	x0, LBB0_6
; %bb.4:
	mov	x24, x0
Lloh25:
	adrp	x1, l_.str.11@PAGE
Lloh26:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_PackGetBool
	mov	x23, x0
Lloh27:
	adrp	x1, l_.str.10@PAGE
Lloh28:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x24
	bl	_PackGetBool
	str	x0, [x20, #40]
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x24
	bl	_PackGetBool
	str	x0, [x20, #32]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_PackGetInt
	str	w0, [x20, #24]
	ldr	x2, [x20]
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	mov	w3, #8
	bl	_PackGetStr
	ldr	x2, [x20, #8]
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x24
	mov	w3, #8
	bl	_PackGetStr
	mov	x0, x24
	bl	_FreePack
	b	LBB0_7
LBB0_5:
	ldp	w1, w0, [x21]
	bl	_Wait
	mov	w23, #1
	b	LBB0_8
LBB0_6:
	mov	w23, #0
LBB0_7:
	mov	w8, #1
	str	w8, [x22]
	ldr	w0, [x22, #4]
	bl	_Set
Lloh37:
	adrp	x8, _INFINITE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_WaitThread
	ldr	w0, [x22, #4]
	bl	_ReleaseEvent
	mov	x0, x22
	bl	_Free
	mov	x0, x21
	bl	_ReleaseThread
	mov	x0, x19
	bl	_Disconnect
	mov	x0, x19
	bl	_ReleaseSock
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"function"

l_.str.1:                               ; @.str.1
	.asciz	"password_dialog"

l_.str.2:                               ; @.str.2
	.asciz	"Type"

l_.str.3:                               ; @.str.3
	.asciz	"Username"

l_.str.4:                               ; @.str.4
	.asciz	"Password"

l_.str.5:                               ; @.str.5
	.asciz	"ServerName"

l_.str.6:                               ; @.str.6
	.asciz	"RetryIntervalSec"

l_.str.7:                               ; @.str.7
	.asciz	"ProxyServer"

l_.str.8:                               ; @.str.8
	.asciz	"AdminMode"

l_.str.9:                               ; @.str.9
	.asciz	"ShowNoSavePassword"

l_.str.10:                              ; @.str.10
	.asciz	"NoSavePassword"

	.comm	_CncConnectErrorDlgHaltThread,4,2 ; @CncConnectErrorDlgHaltThread
l_.str.11:                              ; @.str.11
	.asciz	"ok"

	.comm	_INFINITE,4,2                   ; @INFINITE
.subsections_via_symbols
