	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmain                          ## -- Begin function wmain
	.p2align	4, 0x90
_wmain:                                 ## @wmain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_ConInitStdStreams
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_ParseCmdline
	movl	$-1, %ebx
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	leaq	-20(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	callq	_OpenWlanAdapter
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_bScan@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.4:
	movl	-20(%rbp), %edi
	callq	_WlanScan
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_6
LBB0_2:
	movq	_StdOut@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDS_NO_WLAN_ADAPTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ConResPuts
	jmp	LBB0_13
LBB0_7:
	movq	_bDisconnect@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movl	-20(%rbp), %edi
	leaq	-24(%rbp), %rsi
	callq	_WlanDisconnect
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_6
LBB0_9:
	movq	_bConnect@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	-20(%rbp), %edi
	je	LBB0_11
## %bb.10:
	callq	_WlanConnect
	testl	%eax, %eax
	je	LBB0_6
LBB0_12:
	movl	-20(%rbp), %edi
	callq	_CloseHandle
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_11:
	callq	_WlanPrintCurrentStatus
	testl	%eax, %eax
	jne	LBB0_12
LBB0_6:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
	callq	_DoFormatMessage
	movl	-20(%rbp), %edi
	callq	_CloseHandle
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_StdOut,4,2                     ## @StdOut
	.comm	_IDS_NO_WLAN_ADAPTER,4,2        ## @IDS_NO_WLAN_ADAPTER
	.comm	_bScan,8,3                      ## @bScan
	.comm	_bDisconnect,8,3                ## @bDisconnect
	.comm	_bConnect,8,3                   ## @bConnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmain                          ; -- Begin function wmain
	.p2align	2
_wmain:                                 ; @wmain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_ConInitStdStreams
	mov	x0, x20
	mov	x1, x19
	bl	_ParseCmdline
	cbz	w0, LBB0_9
; %bb.1:
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_OpenWlanAdapter
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _bScan@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bScan@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_WlanScan
	cbz	w0, LBB0_8
LBB0_4:
	ldr	w0, [sp, #12]
	bl	_CloseHandle
	mov	w0, #0
	b	LBB0_10
LBB0_5:
Lloh3:
	adrp	x8, _StdOut@GOTPAGE
Lloh4:
	ldr	x8, [x8, _StdOut@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _IDS_NO_WLAN_ADAPTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDS_NO_WLAN_ADAPTER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ConResPuts
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x8, _bDisconnect@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bDisconnect@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.7:
	ldr	w0, [sp, #12]
	add	x1, sp, #8
	bl	_WlanDisconnect
	cbnz	w0, LBB0_4
LBB0_8:
	bl	_GetLastError
	bl	_DoFormatMessage
	ldr	w0, [sp, #12]
	bl	_CloseHandle
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
Lloh12:
	adrp	x8, _bConnect@GOTPAGE
Lloh13:
	ldr	x8, [x8, _bConnect@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w0, [sp, #12]
	cbz	x8, LBB0_13
; %bb.12:
	bl	_WlanConnect
	cbnz	w0, LBB0_4
	b	LBB0_8
LBB0_13:
	bl	_WlanPrintCurrentStatus
	cbnz	w0, LBB0_4
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_StdOut,4,2                     ; @StdOut
	.comm	_IDS_NO_WLAN_ADAPTER,4,2        ; @IDS_NO_WLAN_ADAPTER
	.comm	_bScan,8,3                      ; @bScan
	.comm	_bDisconnect,8,3                ; @bDisconnect
	.comm	_bConnect,8,3                   ; @bConnect
.subsections_via_symbols
