	.file	"extr_wps_registrar.c_wps_process_ap_settings_r.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"WPS: Received old AP configuration from AP"
	.align 8
.LC1:
	.string	"WPS: Update AP configuration based on new settings"
	.text
	.p2align 4
	.type	wps_process_ap_settings_r, @function
wps_process_ap_settings_r:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 32[rdi]
	cmp	QWORD PTR 8[rax], 0
	jne	.L1
	cmp	QWORD PTR 48[rdi], 0
	je	.L14
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rsi
	mov	rsi, rbp
	call	wps_process_ap_settings@PLT
	test	rax, rax
	js	.L5
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC0[rip]
	call	wpa_printf@PLT
	cmp	QWORD PTR 40[rbp], 0
	jne	.L15
	mov	rdi, rbp
	call	wps_build_ap_cred@PLT
	mov	r12, rax
	test	rax, rax
	je	.L5
	mov	rdi, rax
	call	wpabuf_head@PLT
	mov	rdi, r12
	mov	QWORD PTR 8[rbp], rax
	call	wpabuf_len@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR 24[rbp]
	test	rax, rax
	je	.L6
	mov	edi, DWORD PTR 16[rbp]
	mov	rsi, rbp
	call	rax
	mov	rdi, r12
	mov	r12d, 1
	call	wpabuf_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r12d, -1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC1[rip]
	call	wpa_printf@PLT
	mov	rsi, QWORD PTR 40[rbp]
	mov	rdi, rbp
	call	wps_cred_update@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	wps_sta_cred_cb@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, r12
	mov	r12d, 1
	mov	QWORD PTR 0[rbp], 0
	call	wpabuf_free@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	wps_process_ap_settings_r, .-wps_process_ap_settings_r
	.comm	MSG_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_wps_registrar.c_wps_process_ap_settings_r.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WPS: Received old AP configuration from AP\000"
	.align	2
.LC1:
	.ascii	"WPS: Update AP configuration based on new settings\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wps_process_ap_settings_r, %function
wps_process_ap_settings_r:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #16]
	push	{r4, r5, r6, lr}
	ldr	r5, [r3, #4]
	cmp	r5, #0
	movne	r5, #0
	bne	.L1
	ldr	r3, [r0, #24]
	mov	r4, r0
	cmp	r3, #0
	beq	.L13
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	mov	r0, r1
	mov	r1, r4
	bl	wps_process_ap_settings
	cmp	r0, #0
	blt	.L5
	ldr	r6, .L15
	ldr	r1, .L15+4
	ldr	r0, [r6]
	bl	wpa_printf
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L14
	mov	r0, r4
	bl	wps_build_ap_cred
	subs	r6, r0, #0
	beq	.L5
	bl	wpabuf_head
	mov	r3, r0
	mov	r0, r6
	str	r3, [r4, #4]
	bl	wpabuf_len
	ldr	r3, [r4, #12]
	str	r0, [r4]
	cmp	r3, #0
	beq	.L6
	mov	r1, r4
	ldr	r0, [r4, #8]
	blx	r3
	mov	r0, r6
	bl	wpabuf_free
	mov	r5, #1
	b	.L1
.L5:
	mvn	r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r0, [r6]
	ldr	r1, .L15+8
	bl	wpa_printf
	mov	r0, r4
	ldr	r1, [r4, #20]
	bl	wps_cred_update
	b	.L1
.L6:
	mov	r0, r4
	bl	wps_sta_cred_cb
	str	r5, [r4, #4]
	str	r5, [r4]
	mov	r0, r6
	bl	wpabuf_free
	mov	r5, #1
	b	.L1
.L16:
	.align	2
.L15:
	.word	MSG_INFO
	.word	.LC0
	.word	.LC1
	.size	wps_process_ap_settings_r, .-wps_process_ap_settings_r
	.comm	MSG_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
