	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_wps_update_config         ## -- Begin function wpas_wps_update_config
	.p2align	4, 0x90
_wpas_wps_update_config:                ## @wpas_wps_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_CFG_CHANGED_CONFIG_METHODS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.3:
	movl	40(%rax), %edi
	callq	_wps_config_methods_str2bin
	movl	%eax, %edi
	movl	%eax, (%rbx)
	movq	_WPS_CONFIG_DISPLAY@GOTPCREL(%rip), %rax
	movq	_WPS_CONFIG_LABEL@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	movl	%edi, %eax
	notl	%eax
	testl	%eax, %ecx
	jne	LBB0_5
## %bb.4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	(%r15), %edi
	notl	%edi
	andl	(%rbx), %edi
	movl	%edi, (%rbx)
	jmp	LBB0_5
LBB0_2:
	movl	(%rbx), %edi
LBB0_5:
	callq	_wps_fix_config_methods
	movl	%eax, (%rbx)
	movl	%eax, 4(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movq	_CFG_CHANGED_DEVICE_TYPE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:
	movl	40(%rbx), %edi
	movl	36(%rax), %esi
	movq	_WPS_DEV_TYPE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	(%r14), %rax
	movl	(%rax), %ecx
LBB0_7:
	movq	_CFG_CHANGED_SEC_DEVICE_TYPE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.8:
	movl	4(%rax), %edx
	movl	%edx, 8(%rbx)
	movl	36(%rbx), %edi
	movl	32(%rax), %esi
	movq	_WPS_DEV_TYPE_LEN@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	callq	_os_memcpy
	movq	(%r14), %rax
	movl	(%rax), %ecx
LBB0_9:
	movq	_CFG_CHANGED_VENDOR_EXTENSION@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wpas_wps_set_vendor_ext_m1
	movq	(%r14), %rax
	movl	(%rax), %ecx
LBB0_11:
	movq	_CFG_CHANGED_OS_VERSION@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_13
## %bb.12:
	movl	28(%rax), %edi
	callq	_WPA_GET_BE32
	movl	%eax, 32(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %ecx
LBB0_13:
	movq	_CFG_CHANGED_UUID@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wpas_wps_set_uuid
	movq	(%r14), %rax
	movl	(%rax), %ecx
LBB0_15:
	movq	_CFG_CHANGED_DEVICE_NAME@GOTPCREL(%rip), %rdx
	movq	_CFG_CHANGED_WPS_STRING@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%ecx, %esi
	je	LBB0_17
## %bb.16:
	movl	24(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movups	8(%rax), %xmm0
	movups	%xmm0, 12(%rbx)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_CHANGED_CONFIG_METHODS,4,2 ## @CFG_CHANGED_CONFIG_METHODS
	.comm	_WPS_CONFIG_DISPLAY,4,2         ## @WPS_CONFIG_DISPLAY
	.comm	_WPS_CONFIG_LABEL,4,2           ## @WPS_CONFIG_LABEL
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Both Label and Display config methods are not allowed at the same time"

	.comm	_CFG_CHANGED_DEVICE_TYPE,4,2    ## @CFG_CHANGED_DEVICE_TYPE
	.comm	_WPS_DEV_TYPE_LEN,4,2           ## @WPS_DEV_TYPE_LEN
	.comm	_CFG_CHANGED_SEC_DEVICE_TYPE,4,2 ## @CFG_CHANGED_SEC_DEVICE_TYPE
	.comm	_CFG_CHANGED_VENDOR_EXTENSION,4,2 ## @CFG_CHANGED_VENDOR_EXTENSION
	.comm	_CFG_CHANGED_OS_VERSION,4,2     ## @CFG_CHANGED_OS_VERSION
	.comm	_CFG_CHANGED_UUID,4,2           ## @CFG_CHANGED_UUID
	.comm	_CFG_CHANGED_DEVICE_NAME,4,2    ## @CFG_CHANGED_DEVICE_NAME
	.comm	_CFG_CHANGED_WPS_STRING,4,2     ## @CFG_CHANGED_WPS_STRING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_wps_update_config         ; -- Begin function wpas_wps_update_config
	.p2align	2
_wpas_wps_update_config:                ; @wpas_wps_update_config
	.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
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_17
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _CFG_CHANGED_CONFIG_METHODS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CFG_CHANGED_CONFIG_METHODS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x8, #40]
	bl	_wps_config_methods_str2bin
	str	w0, [x19]
Lloh3:
	adrp	x8, _WPS_CONFIG_DISPLAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPS_CONFIG_DISPLAY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x21, _WPS_CONFIG_LABEL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _WPS_CONFIG_LABEL@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
	bics	wzr, w8, w0
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w0, w9, w8
	str	w0, [x19]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
LBB0_5:
	bl	_wps_fix_config_methods
	stp	w0, w0, [x19]
	ldr	x8, [x20]
	ldr	w9, [x8]
Lloh13:
	adrp	x10, _CFG_CHANGED_DEVICE_TYPE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _CFG_CHANGED_DEVICE_TYPE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	adrp	x21, _WPS_DEV_TYPE_LEN@GOTPAGE
Lloh17:
	ldr	x21, [x21, _WPS_DEV_TYPE_LEN@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19, #40]
	ldr	w1, [x8, #36]
	ldr	w2, [x21]
	bl	_os_memcpy
	ldr	x8, [x20]
	ldr	w9, [x8]
LBB0_7:
Lloh18:
	adrp	x10, _CFG_CHANGED_SEC_DEVICE_TYPE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _CFG_CHANGED_SEC_DEVICE_TYPE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
	ldr	w9, [x8, #4]
	str	w9, [x19, #8]
	ldr	w0, [x19, #36]
	ldr	w1, [x8, #32]
	ldr	w8, [x21]
	mul	w2, w8, w9
	bl	_os_memcpy
	ldr	x8, [x20]
	ldr	w9, [x8]
LBB0_9:
Lloh21:
	adrp	x10, _CFG_CHANGED_VENDOR_EXTENSION@GOTPAGE
Lloh22:
	ldr	x10, [x10, _CFG_CHANGED_VENDOR_EXTENSION@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	bl	_wpas_wps_set_vendor_ext_m1
	ldr	x8, [x20]
	ldr	w9, [x8]
LBB0_11:
Lloh24:
	adrp	x10, _CFG_CHANGED_OS_VERSION@GOTPAGE
Lloh25:
	ldr	x10, [x10, _CFG_CHANGED_OS_VERSION@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:
	ldr	w0, [x8, #28]
	bl	_WPA_GET_BE32
	str	w0, [x19, #32]
	ldr	x8, [x20]
	ldr	w9, [x8]
LBB0_13:
Lloh27:
	adrp	x10, _CFG_CHANGED_UUID@GOTPAGE
Lloh28:
	ldr	x10, [x10, _CFG_CHANGED_UUID@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	bl	_wpas_wps_set_uuid
	ldr	x8, [x20]
	ldr	w9, [x8]
LBB0_15:
Lloh30:
	adrp	x10, _CFG_CHANGED_DEVICE_NAME@GOTPAGE
Lloh31:
	ldr	x10, [x10, _CFG_CHANGED_DEVICE_NAME@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
Lloh33:
	adrp	x11, _CFG_CHANGED_WPS_STRING@GOTPAGE
Lloh34:
	ldr	x11, [x11, _CFG_CHANGED_WPS_STRING@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	b.eq	LBB0_17
; %bb.16:
	ldr	w9, [x8, #24]
	str	w9, [x19, #28]
	ldur	q0, [x8, #8]
	stur	q0, [x19, #12]
LBB0_17:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_CHANGED_CONFIG_METHODS,4,2 ; @CFG_CHANGED_CONFIG_METHODS
	.comm	_WPS_CONFIG_DISPLAY,4,2         ; @WPS_CONFIG_DISPLAY
	.comm	_WPS_CONFIG_LABEL,4,2           ; @WPS_CONFIG_LABEL
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Both Label and Display config methods are not allowed at the same time"

	.comm	_CFG_CHANGED_DEVICE_TYPE,4,2    ; @CFG_CHANGED_DEVICE_TYPE
	.comm	_WPS_DEV_TYPE_LEN,4,2           ; @WPS_DEV_TYPE_LEN
	.comm	_CFG_CHANGED_SEC_DEVICE_TYPE,4,2 ; @CFG_CHANGED_SEC_DEVICE_TYPE
	.comm	_CFG_CHANGED_VENDOR_EXTENSION,4,2 ; @CFG_CHANGED_VENDOR_EXTENSION
	.comm	_CFG_CHANGED_OS_VERSION,4,2     ; @CFG_CHANGED_OS_VERSION
	.comm	_CFG_CHANGED_UUID,4,2           ; @CFG_CHANGED_UUID
	.comm	_CFG_CHANGED_DEVICE_NAME,4,2    ; @CFG_CHANGED_DEVICE_NAME
	.comm	_CFG_CHANGED_WPS_STRING,4,2     ; @CFG_CHANGED_WPS_STRING
.subsections_via_symbols
