	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_reload_configuration ## -- Begin function wpa_supplicant_reload_configuration
	.p2align	4, 0x90
_wpa_supplicant_reload_configuration:   ## @wpa_supplicant_reload_configuration
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	72(%rdi), %rdi
	movl	$-1, %r15d
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.1:
	xorl	%esi, %esi
	callq	_wpa_config_read
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	%r14, %rsi
	callq	_wpa_config_read
	testq	%rax, %rax
	je	LBB0_12
LBB0_4:
	movl	$-1, (%r14)
	movq	16(%r14), %rdi
	movq	40(%rbx), %rax
	movq	16(%rax), %rsi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.5:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.6:
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_14
LBB0_10:
	movq	32(%rbx), %rdi
	movb	$1, %r15b
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.11:
	callq	_wpa_supplicant_ctrl_iface_deinit
	movq	$0, 32(%rbx)
	jmp	LBB0_15
LBB0_8:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	72(%rbx), %rcx
	jmp	LBB0_13
LBB0_9:
	testq	%rsi, %rsi
	setne	%al
	testq	%rdi, %rdi
	setne	%cl
	cmpb	%al, %cl
	jne	LBB0_10
LBB0_14:
	xorl	%r15d, %r15d
LBB0_15:
	movl	52(%rbx), %edi
	callq	_eapol_sm_invalidate_cached_session
	cmpq	$0, 56(%rbx)
	je	LBB0_19
## %bb.16:
	movq	(%rbx), %rax
	movq	_WPA_AUTHENTICATING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_18
## %bb.17:
	movl	$1, 8(%rbx)
LBB0_18:
	movq	_WLAN_REASON_DEAUTH_LEAVING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpa_supplicant_deauthenticate
LBB0_19:
	movq	16(%rbx), %rdi
	callq	_wpa_key_mgmt_wpa_psk
	testq	%rax, %rax
	je	LBB0_29
LBB0_20:
	movl	52(%rbx), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_eapol_sm_notify_eap_success
LBB0_21:
	movl	52(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_eapol_sm_notify_config
	movl	48(%rbx), %edi
	xorl	%esi, %esi
	callq	_wpa_sm_set_config
	movl	48(%rbx), %edi
	xorl	%esi, %esi
	callq	_wpa_sm_pmksa_cache_flush
	movl	48(%rbx), %edi
	movq	40(%rbx), %rax
	movl	8(%rax), %esi
	callq	_wpa_sm_set_fast_reauth
	movl	48(%rbx), %edi
	callq	_rsn_preauth_deinit
	movq	40(%rbx), %rdi
	movl	4(%rdi), %r12d
	callq	_wpa_config_free
	movq	%r14, 40(%rbx)
	cmpl	4(%r14), %r12d
	je	LBB0_23
## %bb.22:
	movq	%rbx, %rdi
	callq	_wpas_notify_ap_scan_changed
LBB0_23:
	testb	%r15b, %r15b
	je	LBB0_25
## %bb.24:
	movq	%rbx, %rdi
	callq	_wpa_supplicant_ctrl_iface_init
	movq	%rax, 32(%rbx)
LBB0_25:
	movq	%rbx, %rdi
	callq	_wpa_supplicant_update_config
	movq	%rbx, %rdi
	callq	_wpa_supplicant_clear_status
	movq	%rbx, %rdi
	callq	_wpa_supplicant_enabled_networks
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movl	$1, 24(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_wpa_supplicant_req_scan
LBB0_27:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_wpa_dbg
	xorl	%r15d, %r15d
	jmp	LBB0_28
LBB0_29:
	movq	16(%rbx), %rax
	movq	_WPA_KEY_MGMT_OWE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.30:
	movq	_WPA_KEY_MGMT_DPP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
	jmp	LBB0_20
LBB0_12:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	64(%rbx), %rcx
LBB0_13:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_wpa_msg
LBB0_28:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to parse the configuration file '%s' - exiting"

	.comm	_WPA_AUTHENTICATING,8,3         ## @WPA_AUTHENTICATING
	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ## @WLAN_REASON_DEAUTH_LEAVING
	.comm	_WPA_KEY_MGMT_OWE,8,3           ## @WPA_KEY_MGMT_OWE
	.comm	_WPA_KEY_MGMT_DPP,8,3           ## @WPA_KEY_MGMT_DPP
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Reconfiguration completed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_reload_configuration ; -- Begin function wpa_supplicant_reload_configuration
	.p2align	2
_wpa_supplicant_reload_configuration:   ; @wpa_supplicant_reload_configuration
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x0, [x0, #72]
	cbz	x0, LBB0_29
; %bb.1:
	mov	x1, #0
	bl	_wpa_config_read
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x20
	bl	_wpa_config_read
	cbz	x0, LBB0_27
LBB0_4:
	mov	w8, #-1
	str	w8, [x20]
	ldr	x0, [x20, #16]
	ldr	x8, [x19, #40]
	ldr	x1, [x8, #16]
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	b.ne	LBB0_8
; %bb.5:
	cmp	x1, #0
	cset	w8, ne
	cmp	x0, #0
	cset	w9, ne
	cmp	w9, w8
	b.ne	LBB0_9
LBB0_6:
	mov	w21, #0
	b	LBB0_12
LBB0_7:
Lloh0:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x3, [x19, #72]
	b	LBB0_28
LBB0_8:
	bl	_os_strcmp
	cbz	x0, LBB0_6
LBB0_9:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_wpa_supplicant_ctrl_iface_deinit
	str	xzr, [x19, #32]
LBB0_11:
	mov	w21, #1
LBB0_12:
	ldr	w0, [x19, #52]
	bl	_eapol_sm_invalidate_cached_session
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_16
; %bb.13:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _WPA_AUTHENTICATING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WPA_AUTHENTICATING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_15
; %bb.14:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_15:
Lloh6:
	adrp	x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_supplicant_deauthenticate
LBB0_16:
	ldr	x0, [x19, #16]
	bl	_wpa_key_mgmt_wpa_psk
	cbz	x0, LBB0_25
LBB0_17:
	ldr	w0, [x19, #52]
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_eapol_sm_notify_eap_success
LBB0_18:
	ldr	w0, [x19, #52]
	mov	x1, #0
	mov	x2, #0
	bl	_eapol_sm_notify_config
	ldr	w0, [x19, #48]
	mov	x1, #0
	bl	_wpa_sm_set_config
	ldr	w0, [x19, #48]
	mov	x1, #0
	bl	_wpa_sm_pmksa_cache_flush
	ldr	w0, [x19, #48]
	ldr	x8, [x19, #40]
	ldr	w1, [x8, #8]
	bl	_wpa_sm_set_fast_reauth
	ldr	w0, [x19, #48]
	bl	_rsn_preauth_deinit
	ldr	x0, [x19, #40]
	ldr	w22, [x0, #4]
	bl	_wpa_config_free
	str	x20, [x19, #40]
	ldr	w8, [x20, #4]
	cmp	w22, w8
	b.eq	LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_wpas_notify_ap_scan_changed
LBB0_20:
	cbz	w21, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_wpa_supplicant_ctrl_iface_init
	str	x0, [x19, #32]
LBB0_22:
	mov	x0, x19
	bl	_wpa_supplicant_update_config
	mov	x0, x19
	bl	_wpa_supplicant_clear_status
	mov	x0, x19
	bl	_wpa_supplicant_enabled_networks
	cbz	x0, LBB0_24
; %bb.23:
	mov	w8, #1
	str	w8, [x19, #24]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_wpa_supplicant_req_scan
LBB0_24:
Lloh12:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wpa_dbg
	mov	w0, #0
	b	LBB0_30
LBB0_25:
	ldr	x8, [x19, #16]
Lloh17:
	adrp	x9, _WPA_KEY_MGMT_OWE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _WPA_KEY_MGMT_OWE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.26:
Lloh20:
	adrp	x9, _WPA_KEY_MGMT_DPP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WPA_KEY_MGMT_DPP@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
	b	LBB0_17
LBB0_27:
Lloh23:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x3, [x19, #64]
LBB0_28:
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_msg
LBB0_29:
	mov	w0, #-1
LBB0_30:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to parse the configuration file '%s' - exiting"

	.comm	_WPA_AUTHENTICATING,8,3         ; @WPA_AUTHENTICATING
	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ; @WLAN_REASON_DEAUTH_LEAVING
	.comm	_WPA_KEY_MGMT_OWE,8,3           ; @WPA_KEY_MGMT_OWE
	.comm	_WPA_KEY_MGMT_DPP,8,3           ; @WPA_KEY_MGMT_DPP
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Reconfiguration completed"

.subsections_via_symbols
