	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ui_main                        ## -- Begin function ui_main
	.p2align	4, 0x90
_ui_main:                               ## @ui_main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_RDP_LOGON_NORMAL@GOTPCREL(%rip), %rax
	movq	_g_password@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%esi, %esi
	cmpq	$0, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_RDP_INFO_AUTOLOGON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_2:
	orl	(%rax), %esi
	movq	_g_servername@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_g_domain@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_g_shell@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_g_directory@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	callq	_rdp_connect
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_g_width@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_g_height@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_server_depth@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bs_init
	xorl	%eax, %eax
	callq	_mi_create_window
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbp
	jmp	_mi_main_loop                   ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDP_LOGON_NORMAL,4,2           ## @RDP_LOGON_NORMAL
	.comm	_g_password,8,3                 ## @g_password
	.comm	_RDP_INFO_AUTOLOGON,4,2         ## @RDP_INFO_AUTOLOGON
	.comm	_g_servername,4,2               ## @g_servername
	.comm	_g_domain,4,2                   ## @g_domain
	.comm	_g_shell,4,2                    ## @g_shell
	.comm	_g_directory,4,2                ## @g_directory
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_g_width,4,2                    ## @g_width
	.comm	_g_height,4,2                   ## @g_height
	.comm	_g_server_depth,4,2             ## @g_server_depth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ui_main                        ; -- Begin function ui_main
	.p2align	2
_ui_main:                               ; @ui_main
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _RDP_LOGON_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDP_LOGON_NORMAL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _g_password@GOTPAGE
Lloh3:
	ldr	x9, [x9, _g_password@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	x3, [x9]
	ldr	x9, [x3]
Lloh6:
	adrp	x10, _RDP_INFO_AUTOLOGON@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RDP_INFO_AUTOLOGON@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w9, w8
Lloh9:
	adrp	x8, _g_servername@GOTPAGE
Lloh10:
	ldr	x8, [x8, _g_servername@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _g_domain@GOTPAGE
Lloh13:
	ldr	x8, [x8, _g_domain@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _g_shell@GOTPAGE
Lloh16:
	ldr	x8, [x8, _g_shell@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _g_directory@GOTPAGE
Lloh19:
	ldr	x8, [x8, _g_directory@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
Lloh21:
	adrp	x8, _FALSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh23:
	ldr	w6, [x8]
	bl	_rdp_connect
	cbz	w0, LBB0_3
; %bb.1:
Lloh24:
	adrp	x8, _g_width@GOTPAGE
Lloh25:
	ldr	x8, [x8, _g_width@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _g_height@GOTPAGE
Lloh28:
	ldr	x8, [x8, _g_height@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _g_server_depth@GOTPAGE
Lloh31:
	ldr	x8, [x8, _g_server_depth@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	bl	_bs_init
	bl	_mi_create_window
	cbz	w0, LBB0_3
; %bb.2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_mi_main_loop
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_RDP_LOGON_NORMAL,4,2           ; @RDP_LOGON_NORMAL
	.comm	_g_password,8,3                 ; @g_password
	.comm	_RDP_INFO_AUTOLOGON,4,2         ; @RDP_INFO_AUTOLOGON
	.comm	_g_servername,4,2               ; @g_servername
	.comm	_g_domain,4,2                   ; @g_domain
	.comm	_g_shell,4,2                    ; @g_shell
	.comm	_g_directory,4,2                ; @g_directory
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_g_width,4,2                    ; @g_width
	.comm	_g_height,4,2                   ; @g_height
	.comm	_g_server_depth,4,2             ; @g_server_depth
.subsections_via_symbols
