	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NatAdminConnect                ## -- Begin function NatAdminConnect
	.p2align	4, 0x90
_NatAdminConnect:                       ## @NatAdminConnect
	.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	%r8, %r12
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA1_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	shlq	$2, %r15
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testq	%r13, %r13
	movq	%r12, %r13
	je	LBB0_13
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.2:
	testq	%r14, %r14
	je	LBB0_13
## %bb.3:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_13
## %bb.4:
	testq	%r13, %r13
	je	LBB0_13
## %bb.5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_Connect
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_StartSSL
	testl	%eax, %eax
	je	LBB0_18
## %bb.7:
	movq	%r14, %rdi
	movl	$5000, %esi                     ## imm = 0x1388
	callq	_SetTimeout
	movq	%r14, %rdi
	callq	_HttpClientRecv
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:
	movq	%rax, %rbx
	movq	_SHA1_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_PackGetData2
	movq	%r15, %r12
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_FreePack
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.9:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_SecurePassword
	xorl	%eax, %eax
	callq	_NewPack
	movq	%rax, %rbx
	movq	_SHA1_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_PackAddData
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_HttpClientSend
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_FreePack
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.10:
	movq	%r14, %rdi
	callq	_HttpClientRecv
	testq	%rax, %rax
	je	LBB0_19
## %bb.11:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_GetErrorFromPack
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_FreePack
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_25
## %bb.12:
	movq	_TIMEOUT_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SetTimeout
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_StartRpcClient
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_ReleaseSock
	jmp	LBB0_23
LBB0_13:
	testq	%r13, %r13
	je	LBB0_22
## %bb.14:
	movq	_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_ERR_CONNECT_FAILED@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rax
	movq	%rax, (%r13)
	jmp	LBB0_22
LBB0_18:
	movq	_ERR_PROTOCOL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	_ERR_DISCONNECTED@GOTPCREL(%rip), %rax
LBB0_20:
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_21:
	movq	%r14, %rdi
	callq	_ReleaseSock
LBB0_22:
	xorl	%ebx, %ebx
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.24:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	%r12, (%r13)
	jmp	LBB0_21
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA1_SIZE,4,2                  ## @SHA1_SIZE
	.comm	_ERR_INTERNAL_ERROR,8,3         ## @ERR_INTERNAL_ERROR
	.comm	_ERR_CONNECT_FAILED,8,3         ## @ERR_CONNECT_FAILED
	.comm	_ERR_PROTOCOL_ERROR,8,3         ## @ERR_PROTOCOL_ERROR
	.comm	_ERR_DISCONNECTED,8,3           ## @ERR_DISCONNECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"auth_random"

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

	.comm	_ERR_NO_ERROR,8,3               ## @ERR_NO_ERROR
	.comm	_TIMEOUT_INFINITE,4,2           ## @TIMEOUT_INFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NatAdminConnect                ; -- Begin function NatAdminConnect
	.p2align	2
_NatAdminConnect:                       ; @NatAdminConnect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x4
	mov	x21, x3
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x26, _SHA1_SIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _SHA1_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x22, x9, x12
	mov	sp, x22
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	cbz	x0, LBB0_13
; %bb.1:
	cbz	x1, LBB0_13
; %bb.2:
	cbz	x2, LBB0_13
; %bb.3:
	cbz	x21, LBB0_13
; %bb.4:
	cbz	x19, LBB0_13
; %bb.5:
	mov	x0, x1
	mov	x1, x2
	bl	_Connect
	cbz	x0, LBB0_15
; %bb.6:
	mov	x20, x0
	mov	x1, #0
	mov	x2, #0
	bl	_StartSSL
	cbz	w0, LBB0_17
; %bb.7:
	mov	x0, x20
	mov	w1, #5000
	bl	_SetTimeout
	mov	x0, x20
	bl	_HttpClientRecv
	cbz	x0, LBB0_18
; %bb.8:
	mov	x24, x0
	ldr	w3, [x26]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_PackGetData2
	mov	x25, x0
	mov	x0, x24
	bl	_FreePack
	cbz	w25, LBB0_17
; %bb.9:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_SecurePassword
	bl	_NewPack
	mov	x21, x0
	ldr	w3, [x26]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_PackAddData
	mov	x0, x20
	mov	x1, x21
	bl	_HttpClientSend
	mov	x22, x0
	mov	x0, x21
	bl	_FreePack
	cbz	w22, LBB0_18
; %bb.10:
	mov	x0, x20
	bl	_HttpClientRecv
	cbz	x0, LBB0_18
; %bb.11:
	mov	x22, x0
	bl	_GetErrorFromPack
	mov	x21, x0
	mov	x0, x22
	bl	_FreePack
Lloh13:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_23
; %bb.12:
Lloh16:
	adrp	x8, _TIMEOUT_INFINITE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TIMEOUT_INFINITE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SetTimeout
	mov	x0, x20
	mov	x1, #0
	bl	_StartRpcClient
	mov	x21, x0
	mov	x0, x20
	bl	_ReleaseSock
	b	LBB0_21
LBB0_13:
	mov	x21, #0
	cbz	x19, LBB0_21
; %bb.14:
Lloh19:
	adrp	x8, _ERR_INTERNAL_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERR_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
	mov	x21, #0
Lloh21:
	adrp	x8, _ERR_CONNECT_FAILED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_CONNECT_FAILED@GOTPAGEOFF]
LBB0_16:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_21
LBB0_17:
Lloh23:
	adrp	x8, _ERR_PROTOCOL_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_PROTOCOL_ERROR@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh25:
	adrp	x8, _ERR_DISCONNECTED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERR_DISCONNECTED@GOTPAGEOFF]
LBB0_19:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_20:
	mov	x0, x20
	bl	_ReleaseSock
	mov	x21, #0
LBB0_21:
	ldur	x8, [x29, #-72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.22:
	mov	x0, x21
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_23:
	str	x21, [x19]
	b	LBB0_20
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA1_SIZE,4,2                  ; @SHA1_SIZE
	.comm	_ERR_INTERNAL_ERROR,8,3         ; @ERR_INTERNAL_ERROR
	.comm	_ERR_CONNECT_FAILED,8,3         ; @ERR_CONNECT_FAILED
	.comm	_ERR_PROTOCOL_ERROR,8,3         ; @ERR_PROTOCOL_ERROR
	.comm	_ERR_DISCONNECTED,8,3           ; @ERR_DISCONNECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"auth_random"

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

	.comm	_ERR_NO_ERROR,8,3               ; @ERR_NO_ERROR
	.comm	_TIMEOUT_INFINITE,4,2           ; @TIMEOUT_INFINITE
.subsections_via_symbols
