	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_select_config
_wpa_supplicant_select_config:          ## @wpa_supplicant_select_config
	.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	%r12
	pushq	%rbx
	subq	$352, %rsp                      ## imm = 0x160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_SSID_MAX_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	16(%rbx), %rax
	cmpl	$1, (%rax)
	jne	LBB0_7
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	callq	_wpa_supplicant_update_current_bss
	movq	(%rbx), %rax
	xorl	%r14d, %r14d
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wpa_drv_get_ssid
	testl	%eax, %eax
	js	LBB0_18
## %bb.4:
	movl	%eax, %r12d
	movq	(%rbx), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	12(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_16
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_wpa_ssid_txt
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_msg
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wpa_dbg
	movq	%rbx, %rdi
	callq	_wpa_supplicant_get_ssid
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_wpas_network_disabled
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	(%r15), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_14
LBB0_10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wpa_msg
	jmp	LBB0_15
LBB0_11:
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	callq	_disallowed_bssid
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movl	12(%r14), %esi
	movq	(%r14), %rdx
	movq	%rbx, %rdi
	callq	_disallowed_ssid
	testq	%rax, %rax
	je	LBB0_19
LBB0_13:
	movl	(%r15), %esi
	leaq	L_.str.5(%rip), %rdx
LBB0_14:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wpa_dbg
LBB0_15:
	movl	$-1, %r14d
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_30
## %bb.17:
	movl	%r14d, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wpa_msg
	jmp	LBB0_16
LBB0_19:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wpas_temp_disabled
	movl	(%r15), %esi
	testl	%eax, %eax
	jle	LBB0_21
## %bb.20:
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_dbg
	jmp	LBB0_15
LBB0_21:
	leaq	L_.str.7(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wpa_dbg
	movl	8(%r14), %edi
	callq	_wpa_key_mgmt_wpa_any
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	$320, -376(%rbp)                ## imm = 0x140
	leaq	-368(%rbp), %rcx
	leaq	-376(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_wpa_supplicant_set_suites
	testq	%rax, %rax
	jns	LBB0_25
## %bb.23:
	movl	(%r15), %esi
	leaq	L_.str.8(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wpa_dbg
	jmp	LBB0_25
LBB0_24:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wpa_supplicant_set_non_wpa_policy
LBB0_25:
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_28
## %bb.26:
	cmpq	%r14, %r15
	je	LBB0_28
## %bb.27:
	movl	8(%rbx), %edi
	callq	_eapol_sm_invalidate_cached_session
	movq	(%rbx), %r15
LBB0_28:
	movq	%r14, (%rbx)
	movq	%rbx, %rdi
	callq	_wpa_supplicant_update_current_bss
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_wpa_supplicant_rsn_supp_set_config
	movq	%rbx, %rdi
	callq	_wpa_supplicant_initiate_eapol
	xorl	%r14d, %r14d
	cmpq	(%rbx), %r15
	je	LBB0_16
## %bb.29:
	movq	%rbx, %rdi
	callq	_wpas_notify_network_changed
	jmp	LBB0_16
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSID_MAX_LEN,4,2               ## @SSID_MAX_LEN
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read SSID from driver"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Driver-initiated BSS selection changed the SSID to %s"

L_.str.2:                               ## @.str.2
	.asciz	"Select network based on association information"

L_.str.3:                               ## @.str.3
	.asciz	"No network configuration found for the current AP"

L_.str.4:                               ## @.str.4
	.asciz	"Selected network is disabled"

L_.str.5:                               ## @.str.5
	.asciz	"Selected BSS is disallowed"

L_.str.6:                               ## @.str.6
	.asciz	"Selected network is temporarily disabled for %d second(s)"

L_.str.7:                               ## @.str.7
	.asciz	"Network configuration found for the current AP"

L_.str.8:                               ## @.str.8
	.asciz	"Could not set WPA suites"

	.no_dead_strip	_wpa_supplicant_select_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_select_config
_wpa_supplicant_select_config:          ; @wpa_supplicant_select_config
	.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, #336
	mov	x19, sp
	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]
Lloh3:
	adrp	x8, _SSID_MAX_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSID_MAX_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_wpa_supplicant_update_current_bss
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_wpa_drv_get_ssid
	tbnz	w0, #31, LBB0_15
; %bb.4:
	mov	w22, w0
	ldr	x8, [x20]
	ldr	x9, [x8]
	cmp	x9, x22
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x8, #12]
	mov	x0, x21
	mov	x2, x22
	bl	_os_memcmp
	cbz	x0, LBB0_17
LBB0_6:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_wpa_ssid_txt
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	bl	_wpa_msg
	add	sp, sp, #16
LBB0_7:
Lloh13:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_wpa_dbg
	mov	x0, x20
	bl	_wpa_supplicant_get_ssid
	cbz	x0, LBB0_10
; %bb.8:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_wpas_network_disabled
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w1, [x22]
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_10:
Lloh19:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_wpa_msg
	mov	w0, #-1
	b	LBB0_17
LBB0_11:
	ldr	w1, [x20, #12]
	mov	x0, x20
	bl	_disallowed_bssid
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	w1, [x21, #12]
	ldr	x2, [x21]
	mov	x0, x20
	bl	_disallowed_ssid
	cbz	x0, LBB0_19
LBB0_13:
	ldr	w1, [x22]
Lloh24:
	adrp	x2, l_.str.5@PAGE
Lloh25:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_14:
	mov	x0, x20
	bl	_wpa_dbg
	mov	w0, #-1
	b	LBB0_17
LBB0_15:
Lloh26:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str@PAGE
Lloh30:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wpa_msg
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.18:
	sub	sp, x29, #48
	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_19:
	mov	x0, x20
	mov	x1, x21
	bl	_wpas_temp_disabled
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w1, [x22]
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.20:
	str	x0, [sp, #-16]!
Lloh34:
	adrp	x2, l_.str.6@PAGE
Lloh35:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_wpa_dbg
	add	sp, sp, #16
	mov	w0, #-1
	b	LBB0_17
LBB0_21:
Lloh36:
	adrp	x2, l_.str.7@PAGE
Lloh37:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_wpa_dbg
	ldr	w0, [x21, #8]
	bl	_wpa_key_mgmt_wpa_any
	cbz	x0, LBB0_24
; %bb.22:
	mov	w8, #320
	str	x8, [x19]
	add	x3, x19, #8
	add	x4, x19, #0
	mov	x0, x20
	mov	x1, #0
	mov	x2, x21
	bl	_wpa_supplicant_set_suites
	tbz	x0, #63, LBB0_25
; %bb.23:
	ldr	w1, [x22]
Lloh38:
	adrp	x2, l_.str.8@PAGE
Lloh39:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_wpa_dbg
	b	LBB0_25
LBB0_24:
	mov	x0, x20
	mov	x1, x21
	bl	_wpa_supplicant_set_non_wpa_policy
LBB0_25:
	ldr	x22, [x20]
	cbz	x22, LBB0_28
; %bb.26:
	cmp	x22, x21
	b.eq	LBB0_28
; %bb.27:
	ldr	w0, [x20, #8]
	bl	_eapol_sm_invalidate_cached_session
	ldr	x22, [x20]
LBB0_28:
	str	x21, [x20]
	mov	x0, x20
	bl	_wpa_supplicant_update_current_bss
	ldr	x1, [x20]
	mov	x0, x20
	bl	_wpa_supplicant_rsn_supp_set_config
	mov	x0, x20
	bl	_wpa_supplicant_initiate_eapol
	ldr	x8, [x20]
	cmp	x22, x8
	b.eq	LBB0_16
; %bb.29:
	mov	x0, x20
	bl	_wpas_notify_network_changed
	b	LBB0_16
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_SSID_MAX_LEN,4,2               ; @SSID_MAX_LEN
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read SSID from driver"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Driver-initiated BSS selection changed the SSID to %s"

l_.str.2:                               ; @.str.2
	.asciz	"Select network based on association information"

l_.str.3:                               ; @.str.3
	.asciz	"No network configuration found for the current AP"

l_.str.4:                               ; @.str.4
	.asciz	"Selected network is disabled"

l_.str.5:                               ; @.str.5
	.asciz	"Selected BSS is disallowed"

l_.str.6:                               ; @.str.6
	.asciz	"Selected network is temporarily disabled for %d second(s)"

l_.str.7:                               ; @.str.7
	.asciz	"Network configuration found for the current AP"

l_.str.8:                               ; @.str.8
	.asciz	"Could not set WPA suites"

	.no_dead_strip	_wpa_supplicant_select_config
.subsections_via_symbols
