	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_select_network  ## -- Begin function wpa_supplicant_select_network
	.p2align	4, 0x90
_wpa_supplicant_select_network:         ## @wpa_supplicant_select_network
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	64(%r14), %rax
	xorl	%r15d, %r15d
	cmpq	%r12, %rax
	je	LBB0_7
## %bb.3:
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	(%r14), %rax
	movq	_WPA_AUTHENTICATING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.5:
	movl	$1, 8(%r14)
LBB0_6:
	movq	_WLAN_REASON_DEAUTH_LEAVING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpa_supplicant_deauthenticate
	movl	$100000, %r15d                  ## imm = 0x186A0
LBB0_7:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_wpas_clear_temp_disabled
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
LBB0_8:
	movq	72(%r14), %rax
	movq	(%rax), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	32(%rbx), %rbx
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rbx), %r13d
	cmpl	$2, %r13d
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%r12, %r12
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r12), %rcx
	xorl	%eax, %eax
	cmpq	8(%rbx), %rcx
	setne	%al
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, (%rbx)
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_wpas_clear_temp_disabled
	movl	(%rbx), %eax
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%eax, %r13d
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wpas_notify_network_enabled_changed
	jmp	LBB0_19
LBB0_20:
	testq	%r12, %r12
	je	LBB0_25
## %bb.21:
	movq	64(%r14), %rax
	cmpq	%r12, %rax
	jne	LBB0_26
## %bb.22:
	testq	%rax, %rax
	je	LBB0_26
## %bb.23:
	movq	(%r14), %rax
	movq	_WPA_AUTHENTICATING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_24
LBB0_26:
	movq	%r12, 64(%r14)
	movl	56(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_eapol_sm_notify_config
	movq	16(%r12), %rax
	movq	_WPAS_MODE_MESH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	cmoveq	%r12, %rbx
	movq	%rbx, 24(%r14)
	movq	48(%r14), %rdi
	callq	_os_free
	movq	$0, 48(%r14)
	movl	$0, 40(%r14)
	movl	$1, 12(%r14)
	movq	$0, 32(%r14)
	movq	$0, 24(%r12)
	cmpq	$0, 24(%r14)
	jne	LBB0_28
	jmp	LBB0_27
LBB0_25:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movl	$0, 40(%r14)
	movl	$1, 12(%r14)
LBB0_27:
	movq	%r14, %rdi
	callq	_wpa_supplicant_fast_associate
	cmpl	$1, %eax
	je	LBB0_29
LBB0_28:
	movq	_NORMAL_SCAN_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	callq	_wpas_scan_reset_sched_scan
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_wpa_supplicant_req_scan
LBB0_29:
	testq	%r12, %r12
	je	LBB0_30
## %bb.31:
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpas_notify_network_selected   ## TAILCALL
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_AUTHENTICATING,8,3         ## @WPA_AUTHENTICATING
	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ## @WLAN_REASON_DEAUTH_LEAVING
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Already associated with the selected network - do nothing"

	.comm	_WPAS_MODE_MESH,8,3             ## @WPAS_MODE_MESH
	.comm	_NORMAL_SCAN_REQ,4,2            ## @NORMAL_SCAN_REQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_select_network  ; -- Begin function wpa_supplicant_select_network
	.p2align	2
_wpa_supplicant_select_network:         ; @wpa_supplicant_select_network
	.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
	mov	x19, x1
	mov	x20, x0
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x20, #64]
	cmp	x8, x19
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_4
; %bb.2:
	mov	w21, #0
	b	LBB0_7
LBB0_3:
	mov	w21, #0
	b	LBB0_8
LBB0_4:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _WPA_AUTHENTICATING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_AUTHENTICATING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_6:
Lloh3:
	adrp	x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpa_supplicant_deauthenticate
	mov	w21, #34464
	movk	w21, #1, lsl #16
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_wpas_clear_temp_disabled
LBB0_8:
	ldr	x8, [x20, #72]
	ldr	x22, [x8]
	cbnz	x22, LBB0_14
LBB0_9:
	cbz	x19, LBB0_22
; %bb.10:
	ldr	x8, [x20, #64]
	cmp	x8, x19
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_12
; %bb.11:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _WPA_AUTHENTICATING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WPA_AUTHENTICATING@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_28
LBB0_12:
	str	x19, [x20, #64]
	ldr	w0, [x20, #56]
	mov	x1, #0
	mov	x2, #0
	bl	_eapol_sm_notify_config
Lloh9:
	adrp	x8, _WPAS_MODE_MESH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WPAS_MODE_MESH@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh11:
	ldr	x8, [x8]
	cmp	x9, x8
	csel	x8, x19, xzr, eq
	str	x8, [x20, #24]
	ldr	x0, [x20, #48]
	bl	_os_free
	str	xzr, [x20, #48]
	str	wzr, [x20, #40]
	mov	w8, #1
	str	w8, [x20, #12]
	str	xzr, [x20, #32]
	str	xzr, [x19, #24]
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_24
	b	LBB0_23
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x22, [x22, #32]
	cbz	x22, LBB0_9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x22]
	cmp	w23, #2
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cbz	x19, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	cset	w8, ne
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w8, #0
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	str	w8, [x22]
	cmp	w23, #0
	ccmp	w8, #0, #0, ne
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_wpas_clear_temp_disabled
	ldr	w8, [x22]
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	w23, w8
	b.eq	LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_wpas_notify_network_enabled_changed
	b	LBB0_13
LBB0_22:
	stp	xzr, xzr, [x20, #24]
	str	wzr, [x20, #40]
	mov	w8, #1
	str	w8, [x20, #12]
LBB0_23:
	mov	x0, x20
	bl	_wpa_supplicant_fast_associate
	cmp	w0, #1
	b.eq	LBB0_25
LBB0_24:
Lloh12:
	adrp	x8, _NORMAL_SCAN_REQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NORMAL_SCAN_REQ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x20
	bl	_wpas_scan_reset_sched_scan
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_wpa_supplicant_req_scan
LBB0_25:
	cbz	x19, LBB0_27
; %bb.26:
	mov	x0, x20
	mov	x1, x19
	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
	b	_wpas_notify_network_selected
LBB0_27:
	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_28:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_wpa_printf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_AUTHENTICATING,8,3         ; @WPA_AUTHENTICATING
	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ; @WLAN_REASON_DEAUTH_LEAVING
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Already associated with the selected network - do nothing"

	.comm	_WPAS_MODE_MESH,8,3             ; @WPAS_MODE_MESH
	.comm	_NORMAL_SCAN_REQ,4,2            ; @NORMAL_SCAN_REQ
.subsections_via_symbols
