	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdp_connect                    ## -- Begin function rdp_connect
	.p2align	4, 0x90
_rdp_connect:                           ## @rdp_connect
	.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	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movl	16(%rbp), %r8d
	movq	_False@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	_g_username@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_sec_connect
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movl	(%r14), %edx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_rdp_send_logon_info
	movq	_g_rdp_shareid@GOTPCREL(%rip), %rbx
	movq	_True@GOTPCREL(%rip), %rax
	cmpl	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rax, %r15
LBB0_9:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	-48(%rbp), %r14
	leaq	-44(%rbp), %r13
	movq	_g_redirect@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_g_network_error@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_rdp_loop
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%r12)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_4
LBB0_8:
	movq	_True@GOTPCREL(%rip), %r15
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_False,4,2                      ## @False
	.comm	_g_username,4,2                 ## @g_username
	.comm	_g_rdp_shareid,4,2              ## @g_rdp_shareid
	.comm	_g_network_error,8,3            ## @g_network_error
	.comm	_g_redirect,8,3                 ## @g_redirect
	.comm	_True,4,2                       ## @True
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdp_connect                    ; -- Begin function rdp_connect
	.p2align	2
_rdp_connect:                           ; @rdp_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
Lloh0:
	adrp	x24, _False@GOTPAGE
Lloh1:
	ldr	x24, [x24, _False@GOTPAGEOFF]
	ldr	w8, [x24]
	stp	wzr, w8, [sp, #8]
Lloh2:
	adrp	x25, _g_username@GOTPAGE
Lloh3:
	ldr	x25, [x25, _g_username@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x4, x6
	bl	_sec_connect
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w2, [x25]
	mov	x0, x23
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_rdp_send_logon_info
Lloh4:
	adrp	x19, _g_rdp_shareid@GOTPAGE
Lloh5:
	ldr	x19, [x19, _g_rdp_shareid@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.2:
Lloh6:
	adrp	x24, _True@GOTPAGE
Lloh7:
	ldr	x24, [x24, _True@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x24]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
Lloh8:
	adrp	x20, _g_network_error@GOTPAGE
Lloh9:
	ldr	x20, [x20, _g_network_error@GOTPAGEOFF]
Lloh10:
	adrp	x24, _False@GOTPAGE
Lloh11:
	ldr	x24, [x24, _False@GOTPAGEOFF]
Lloh12:
	adrp	x22, _g_redirect@GOTPAGE
Lloh13:
	ldr	x22, [x22, _g_redirect@GOTPAGEOFF]
Lloh14:
	adrp	x21, _True@GOTPAGE
Lloh15:
	ldr	x21, [x21, _True@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_rdp_loop
	cbz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	ldr	w9, [x19]
	cmp	x8, #0
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_5
; %bb.8:
	mov	x24, x21
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_False,4,2                      ; @False
	.comm	_g_username,4,2                 ; @g_username
	.comm	_g_rdp_shareid,4,2              ; @g_rdp_shareid
	.comm	_g_network_error,8,3            ; @g_network_error
	.comm	_g_redirect,8,3                 ; @g_redirect
	.comm	_True,4,2                       ; @True
.subsections_via_symbols
