	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetConnectionType              ## -- Begin function GetConnectionType
	.p2align	4, 0x90
_GetConnectionType:                     ## @GetConnectionType
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -1088(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_lstrlen
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_lstrlen
	movl	%eax, %ebx
	addl	%r13d, %ebx
	movq	%r12, %rdi
	callq	_lstrlen
	addl	%ebx, %eax
	cmpl	$253, %eax
	jle	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	leaq	-1072(%rbp), %r13
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	callq	_wsprintf
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	leaq	-1088(%rbp), %r8
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_RegOpenKeyEx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.3:
	movq	-1088(%rbp), %r14
	leaq	L_.str.3(%rip), %rdi
	callq	__T
	xorl	%ebx, %ebx
	leaq	-1092(%rbp), %rcx
	leaq	-1076(%rbp), %r9
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_RegQueryValueEx
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.4:
	movq	_ProcessHeap@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	-1076(%rbp), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %r14
	movl	(%r13), %edi
	movl	-1076(%rbp), %edx
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	-1088(%rbp), %rbx
	leaq	L_.str.3(%rip), %rdi
	callq	__T
	leaq	-1092(%rbp), %rcx
	leaq	-1076(%rbp), %r9
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_RegQueryValueEx
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_CharToOem
	movq	%r15, %rbx
	jmp	LBB0_10
LBB0_6:
	movl	(%r13), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
	jmp	LBB0_13
LBB0_8:
	movl	(%r13), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_HeapFree
LBB0_10:
	movl	(%r13), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
LBB0_11:
	movq	-1088(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_RegCloseKey
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rax
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\"

L_.str.1:                               ## @.str.1
	.asciz	"\\Connection"

L_.str.2:                               ## @.str.2
	.asciz	"%s%s%s"

	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
L_.str.3:                               ## @.str.3
	.asciz	"Name"

	.comm	_ProcessHeap,4,2                ## @ProcessHeap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetConnectionType              ; -- Begin function GetConnectionType
	.p2align	2
_GetConnectionType:                     ; @GetConnectionType
	.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
	sub	sp, sp, #1056
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	xzr, [sp, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x21, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	mov	x22, x0
	mov	x0, x21
	bl	_lstrlen
	mov	x19, x0
	mov	x0, x20
	bl	_lstrlen
	add	w23, w0, w19
	mov	x0, x22
	bl	_lstrlen
	mov	x19, #0
	add	w8, w23, w0
	cmp	w8, #253
	b.gt	LBB0_10
; %bb.1:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__T
	mov	x1, x0
	add	x0, sp, #24
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	bl	_wsprintf
Lloh9:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	add	x1, sp, #24
	add	x4, sp, #16
	mov	w2, #0
	bl	_RegOpenKeyEx
Lloh15:
	adrp	x22, _ERROR_SUCCESS@GOTPAGE
Lloh16:
	ldr	x22, [x22, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	ldr	x19, [sp, #16]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__T
	mov	x1, x0
	add	x3, sp, #12
	add	x5, sp, #8
	mov	x0, x19
	mov	x2, #0
	mov	x4, #0
	bl	_RegQueryValueEx
	mov	x19, #0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
Lloh19:
	adrp	x23, _ProcessHeap@GOTPAGE
Lloh20:
	ldr	x23, [x23, _ProcessHeap@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w2, [sp, #8]
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_12
; %bb.4:
	mov	x20, x0
	ldr	w0, [x23]
	ldr	w2, [sp, #8]
	mov	w1, #0
	bl	_HeapAlloc
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.5:
	ldr	x21, [sp, #16]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__T
	mov	x1, x0
	add	x3, sp, #12
	add	x5, sp, #8
	mov	x0, x21
	mov	x2, #0
	mov	x4, x20
	bl	_RegQueryValueEx
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_CharToOem
	b	LBB0_15
LBB0_7:
	mov	x19, #0
LBB0_8:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_10
LBB0_9:
	bl	_RegCloseKey
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.11:
	mov	x0, x19
	add	sp, sp, #1056
	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
LBB0_12:
	mov	x19, #0
	b	LBB0_10
LBB0_13:
	ldr	w0, [x23]
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
	b	LBB0_10
LBB0_14:
	ldr	w0, [x23]
	mov	w1, #0
	mov	x2, x19
	bl	_HeapFree
	mov	x19, #0
LBB0_15:
	ldr	w0, [x23]
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
	ldr	x0, [sp, #16]
	cbnz	x0, LBB0_9
	b	LBB0_10
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\"

l_.str.1:                               ; @.str.1
	.asciz	"\\Connection"

l_.str.2:                               ; @.str.2
	.asciz	"%s%s%s"

	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
l_.str.3:                               ; @.str.3
	.asciz	"Name"

	.comm	_ProcessHeap,4,2                ; @ProcessHeap
.subsections_via_symbols
