	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_er_set_config              ## -- Begin function wps_er_set_config
	.p2align	4, 0x90
_wps_er_set_config:                     ## @wps_er_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %rcx
	movq	%rsi, %rdx
	xorl	%esi, %esi
	callq	_wps_er_ap_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	callq	_os_free
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_os_memdup
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	$0, (%rax)
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_7:
	movl	$-1, %ebx
	jmp	LBB0_8
LBB0_5:
	movl	$-1, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wpa_printf
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS ER: AP not found for set config request"

L_.str.1:                               ## @.str.1
	.asciz	"WPS ER: Updated local AP settings based set config request"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_er_set_config              ; -- Begin function wps_er_set_config
	.p2align	2
_wps_er_set_config:                     ; @wps_er_set_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x3
	mov	x3, x2
	mov	x2, x1
	mov	x1, #0
	bl	_wps_er_ap_get
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	x0, [x0]
	bl	_os_free
	mov	x0, x19
	mov	w1, #4
	bl	_os_memdup
	str	x0, [x20]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w19, #0
	str	xzr, [x0]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	w19, #-1
	b	LBB0_7
LBB0_5:
	mov	w19, #-1
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
Lloh4:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_wpa_printf
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS ER: AP not found for set config request"

l_.str.1:                               ; @.str.1
	.asciz	"WPS ER: Updated local AP settings based set config request"

.subsections_via_symbols
