	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_update_config   ## -- Begin function wpa_supplicant_update_config
	.p2align	4, 0x90
_wpa_supplicant_update_config:          ## @wpa_supplicant_update_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movl	(%rcx), %eax
	movq	_CFG_CHANGED_COUNTRY@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_6
## %bb.1:
	movq	8(%rcx), %rsi
	movb	(%rsi), %dl
	testb	%dl, %dl
	je	LBB0_6
## %bb.2:
	movb	1(%rsi), %sil
	testb	%sil, %sil
	je	LBB0_6
## %bb.3:
	movb	%dl, -11(%rbp)
	movb	%sil, -10(%rbp)
	movb	$0, -9(%rbp)
	leaq	-11(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wpa_drv_set_country
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-11(%rbp), %rdx
	callq	_wpa_printf
LBB0_5:
	movq	(%rbx), %rcx
	movl	(%rcx), %eax
LBB0_6:
	movq	_CFG_CHANGED_EXT_PW_BACKEND@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_wpas_init_ext_pw
	movq	(%rbx), %rcx
	movl	(%rcx), %eax
LBB0_8:
	movq	_CFG_CHANGED_SCHED_SCAN_PLANS@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_10
## %bb.9:
	movl	24(%rcx), %esi
	movq	%rbx, %rdi
	callq	_wpas_sched_scan_plans_set
	movq	(%rbx), %rax
	movl	(%rax), %eax
LBB0_10:
	movq	_CFG_CHANGED_WOWLAN_TRIGGERS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.11:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wpa_drv_get_capa
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wpas_set_wowlan_triggers
	testq	%rax, %rax
	jns	LBB0_14
## %bb.13:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	16(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
LBB0_14:
	movq	(%rbx), %rax
	movl	(%rax), %eax
LBB0_15:
	movq	_CFG_CHANGED_DISABLE_BTM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_wpa_supplicant_set_default_scan_ies
LBB0_17:
	movq	%rbx, %rdi
	callq	_wpas_p2p_update_config
	movq	(%rbx), %rax
	movl	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_CHANGED_COUNTRY,4,2        ## @CFG_CHANGED_COUNTRY
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set country code '%s'"

	.comm	_CFG_CHANGED_EXT_PW_BACKEND,4,2 ## @CFG_CHANGED_EXT_PW_BACKEND
	.comm	_CFG_CHANGED_SCHED_SCAN_PLANS,4,2 ## @CFG_CHANGED_SCHED_SCAN_PLANS
	.comm	_CFG_CHANGED_WOWLAN_TRIGGERS,4,2 ## @CFG_CHANGED_WOWLAN_TRIGGERS
L_.str.1:                               ## @.str.1
	.asciz	"Failed to update wowlan_triggers to '%s'"

	.comm	_CFG_CHANGED_DISABLE_BTM,4,2    ## @CFG_CHANGED_DISABLE_BTM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_update_config   ; -- Begin function wpa_supplicant_update_config
	.p2align	2
_wpa_supplicant_update_config:          ; @wpa_supplicant_update_config
	.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, x0
	ldr	x9, [x0]
	ldr	w8, [x9]
Lloh0:
	adrp	x10, _CFG_CHANGED_COUNTRY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CFG_CHANGED_COUNTRY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_6
; %bb.1:
	ldr	x11, [x9, #8]
	ldrb	w10, [x11]
	cbz	w10, LBB0_6
; %bb.2:
	ldrb	w11, [x11, #1]
	cbz	w11, LBB0_6
; %bb.3:
	strb	w10, [sp, #13]
	strb	w11, [sp, #14]
	strb	wzr, [sp, #15]
	add	x1, sp, #13
	mov	x0, x19
	bl	_wpa_drv_set_country
	tbz	x0, #63, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #13
	bl	_wpa_printf
LBB0_5:
	ldr	x9, [x19]
	ldr	w8, [x9]
LBB0_6:
Lloh8:
	adrp	x10, _CFG_CHANGED_EXT_PW_BACKEND@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CFG_CHANGED_EXT_PW_BACKEND@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_wpas_init_ext_pw
	ldr	x9, [x19]
	ldr	w8, [x9]
LBB0_8:
Lloh11:
	adrp	x10, _CFG_CHANGED_SCHED_SCAN_PLANS@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CFG_CHANGED_SCHED_SCAN_PLANS@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w1, [x9, #24]
	mov	x0, x19
	bl	_wpas_sched_scan_plans_set
	ldr	x8, [x19]
	ldr	w8, [x8]
LBB0_10:
Lloh14:
	adrp	x9, _CFG_CHANGED_WOWLAN_TRIGGERS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CFG_CHANGED_WOWLAN_TRIGGERS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:
	add	x1, sp, #8
	mov	x0, x19
	bl	_wpa_drv_get_capa
	cbnz	w0, LBB0_14
; %bb.12:
	add	x1, sp, #8
	mov	x0, x19
	bl	_wpas_set_wowlan_triggers
	tbz	x0, #63, LBB0_14
; %bb.13:
Lloh17:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x2, [x8, #16]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_14:
	ldr	x8, [x19]
	ldr	w8, [x8]
LBB0_15:
Lloh22:
	adrp	x9, _CFG_CHANGED_DISABLE_BTM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CFG_CHANGED_DISABLE_BTM@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_wpa_supplicant_set_default_scan_ies
LBB0_17:
	mov	x0, x19
	bl	_wpas_p2p_update_config
	ldr	x8, [x19]
	str	wzr, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_CHANGED_COUNTRY,4,2        ; @CFG_CHANGED_COUNTRY
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set country code '%s'"

	.comm	_CFG_CHANGED_EXT_PW_BACKEND,4,2 ; @CFG_CHANGED_EXT_PW_BACKEND
	.comm	_CFG_CHANGED_SCHED_SCAN_PLANS,4,2 ; @CFG_CHANGED_SCHED_SCAN_PLANS
	.comm	_CFG_CHANGED_WOWLAN_TRIGGERS,4,2 ; @CFG_CHANGED_WOWLAN_TRIGGERS
l_.str.1:                               ; @.str.1
	.asciz	"Failed to update wowlan_triggers to '%s'"

	.comm	_CFG_CHANGED_DISABLE_BTM,4,2    ; @CFG_CHANGED_DISABLE_BTM
.subsections_via_symbols
