	.file	"extr_wps_registrar.c_wps_process_m3.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"WPS: Received M3"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"WPS: Unexpected state (%d) for receiving M3"
	.align 8
.LC2:
	.string	"WPS: Reject negotiation due to PBC session overlap"
	.text
	.p2align 4
	.type	wps_process_m3, @function
wps_process_m3:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	mov	r12, rsi
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	call	wpa_printf@PLT
	mov	rdx, QWORD PTR [rbx]
	cmp	rdx, QWORD PTR RECV_M3[rip]
	jne	.L9
	cmp	QWORD PTR 24[rbx], 0
	je	.L4
	mov	rax, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax], 0
	jne	.L10
.L4:
	mov	esi, DWORD PTR 12[rbp]
	mov	rdi, rbx
	call	wps_process_registrar_nonce@PLT
	test	rax, rax
	je	.L5
.L6:
	mov	rax, QWORD PTR SEND_WSC_NACK[rip]
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR WPS_CONTINUE[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbp]
	mov	rdx, r12
	mov	rdi, rbx
	call	wps_process_authenticator@PLT
	test	rax, rax
	jne	.L6
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, rbx
	call	wps_process_e_hash1@PLT
	test	rax, rax
	jne	.L6
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rbx
	call	wps_process_e_hash2@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR SEND_M4[rip]
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR WPS_CONTINUE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	rax, QWORD PTR SEND_WSC_NACK[rip]
	mov	QWORD PTR [rbx], rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR WPS_CONTINUE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rbx
	call	wps_registrar_skip_overlap@PLT
	test	eax, eax
	jne	.L4
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC2[rip]
	call	wpa_printf@PLT
	mov	rax, QWORD PTR SEND_WSC_NACK[rip]
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR WPS_CFG_MULTIPLE_PBC_DETECTED[rip]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR WPS_CONTINUE[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	wps_process_m3, .-wps_process_m3
	.comm	WPS_CONTINUE,4,4
	.comm	WPS_CFG_MULTIPLE_PBC_DETECTED,4,4
	.comm	SEND_WSC_NACK,8,8
	.comm	SEND_M4,8,8
	.comm	RECV_M3,8,8
	.comm	MSG_DEBUG,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_m3.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WPS: Received M3\000"
	.align	2
.LC1:
	.ascii	"WPS: Unexpected state (%d) for receiving M3\000"
	.align	2
.LC2:
	.ascii	"WPS: Reject negotiation due to PBC session overlap\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wps_process_m3, %function
wps_process_m3:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r7, .L17
	mov	r6, r1
	ldr	r0, [r7]
	ldr	r1, .L17+4
	mov	r5, r2
	bl	wpa_printf
	ldr	r3, .L17+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L15
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
.L4:
	mov	r0, r4
	ldr	r1, [r5, #12]
	bl	wps_process_registrar_nonce
	cmp	r0, #0
	beq	.L5
.L6:
	ldr	r3, .L17+12
	ldr	r2, .L17+16
	ldr	r3, [r3]
	ldr	r0, [r2]
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r5, #8]
	bl	wps_process_authenticator
	cmp	r0, #0
	bne	.L6
	mov	r0, r4
	ldr	r1, [r5, #4]
	bl	wps_process_e_hash1
	cmp	r0, #0
	bne	.L6
	mov	r0, r4
	ldr	r1, [r5]
	bl	wps_process_e_hash2
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L17+20
	ldr	r2, .L17+16
	ldr	r3, [r3]
	ldr	r0, [r2]
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r0, [r7]
	ldr	r1, .L17+24
	bl	wpa_printf
	b	.L6
.L16:
	mov	r0, r4
	bl	wps_registrar_skip_overlap
	cmp	r0, #0
	bne	.L4
	ldr	r0, [r7]
	ldr	r1, .L17+28
	bl	wpa_printf
	ldr	r2, .L17+12
	ldr	r3, .L17+32
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L17+16
	stm	r4, {r1, r2}
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	MSG_DEBUG
	.word	.LC0
	.word	RECV_M3
	.word	SEND_WSC_NACK
	.word	WPS_CONTINUE
	.word	SEND_M4
	.word	.LC1
	.word	.LC2
	.word	WPS_CFG_MULTIPLE_PBC_DETECTED
	.size	wps_process_m3, .-wps_process_m3
	.comm	WPS_CONTINUE,4,4
	.comm	WPS_CFG_MULTIPLE_PBC_DETECTED,4,4
	.comm	SEND_WSC_NACK,4,4
	.comm	SEND_M4,4,4
	.comm	RECV_M3,4,4
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
