	.file	"extr_wps_enrollee.c_wps_process_r_snonce1.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"WPS: No R-SNonce1 received"
.LC1:
	.string	"WPS: R-SNonce1"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"WPS: R-Hash1 derived from R-S1 does not match with the pre-committed value"
	.align 8
.LC3:
	.string	"WPS: Registrar proved knowledge of the first half of the device password"
	.text
	.p2align 4
	.type	wps_process_r_snonce1, @function
wps_process_r_snonce1:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbx
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 88
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR SHA256_MAC_LEN[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L14:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L14
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L15
.L4:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	r13, rsp
	test	r12, r12
	je	.L16
	mov	rcx, QWORD PTR WPS_SECRET_NONCE_LEN[rip]
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	call	wpa_hexdump_key@PLT
	mov	rax, QWORD PTR WPS_SECRET_NONCE_LEN[rip]
	mov	edi, DWORD PTR 24[rbx]
	mov	QWORD PTR -112[rbp], r12
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR 32[rbx]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR WPS_PSK_LEN[rip]
	mov	QWORD PTR -72[rbp], rax
	call	wpabuf_head@PLT
	mov	edi, DWORD PTR 24[rbx]
	mov	QWORD PTR -96[rbp], rax
	call	wpabuf_len@PLT
	mov	edi, DWORD PTR 20[rbx]
	mov	QWORD PTR -64[rbp], rax
	call	wpabuf_head@PLT
	mov	edi, DWORD PTR 20[rbx]
	mov	QWORD PTR -88[rbp], rax
	call	wpabuf_len@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	edx, 4
	mov	r9, r13
	mov	esi, DWORD PTR WPS_AUTHKEY_LEN[rip]
	lea	rcx, -112[rbp]
	lea	r8, -80[rbp]
	mov	QWORD PTR -56[rbp], rax
	call	hmac_sha256_vector@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR WPS_HASH_LEN[rip]
	mov	rsi, r13
	call	os_memcmp_const@PLT
	test	rax, rax
	jne	.L17
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC3[rip]
	call	wpa_printf@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR -40[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L18
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC2[rip]
	call	wpa_printf@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR [rbx]
	mov	edx, 1
	mov	eax, DWORD PTR WPS_CFG_DEV_PASSWORD_AUTH_FAILURE[rip]
	mov	esi, 1
	mov	DWORD PTR 8[rbx], eax
	call	wps_pwd_auth_fail_event@PLT
	mov	eax, -1
	jmp	.L1
.L16:
	lea	rsi, .LC0[rip]
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wps_process_r_snonce1, .-wps_process_r_snonce1
	.comm	WPS_SECRET_NONCE_LEN,8,8
	.comm	WPS_PSK_LEN,8,8
	.comm	WPS_HASH_LEN,4,4
	.comm	WPS_CFG_DEV_PASSWORD_AUTH_FAILURE,4,4
	.comm	WPS_AUTHKEY_LEN,4,4
	.comm	SHA256_MAC_LEN,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
	.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_enrollee.c_wps_process_r_snonce1.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WPS: No R-SNonce1 received\000"
	.align	2
.LC1:
	.ascii	"WPS: R-SNonce1\000"
	.align	2
.LC2:
	.ascii	"WPS: R-Hash1 derived from R-S1 does not match with "
	.ascii	"the pre-committed value\000"
	.align	2
.LC3:
	.ascii	"WPS: Registrar proved knowledge of the first half o"
	.ascii	"f the device password\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wps_process_r_snonce1, %function
wps_process_r_snonce1:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #52
	ldr	r3, .L11
	ldr	r5, .L11+4
	ldr	r3, [r3]
	subs	r6, r1, #0
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L11+8
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r0, [r5]
	beq	.L8
	ldr	r8, .L11+12
	mov	r2, r6
	ldr	r3, [r8]
	ldr	r1, .L11+16
	bl	wpa_hexdump_key
	ldr	r3, .L11+20
	ldr	r1, [r8]
	ldr	r2, [r3]
	ldr	r3, [r4, #28]
	ldr	r0, [r4, #24]
	str	r1, [fp, #-48]
	str	r2, [fp, #-44]
	str	r6, [fp, #-64]
	str	r3, [fp, #-60]
	bl	wpabuf_head
	mov	r3, r0
	ldr	r0, [r4, #24]
	str	r3, [fp, #-56]
	bl	wpabuf_len
	mov	r3, r0
	ldr	r0, [r4, #20]
	str	r3, [fp, #-40]
	bl	wpabuf_head
	mov	r3, r0
	ldr	r0, [r4, #20]
	str	r3, [fp, #-52]
	bl	wpabuf_len
	mov	ip, r0
	ldr	r2, .L11+24
	add	r7, sp, #8
	str	r7, [sp, #4]
	sub	r3, fp, #48
	ldr	r1, [r2]
	str	r3, [sp]
	mov	r2, #4
	sub	r3, fp, #64
	ldr	r0, [r4, #16]
	str	ip, [fp, #-36]
	bl	hmac_sha256_vector
	ldr	r3, .L11+28
	mov	r1, r7
	ldr	r2, [r3]
	ldr	r0, [r4, #12]
	bl	os_memcmp_const
	subs	r6, r0, #0
	ldr	r0, [r5]
	bne	.L9
	ldr	r1, .L11+32
	bl	wpa_printf
.L1:
	ldr	r3, .L11+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r6
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L9:
	ldr	r1, .L11+36
	bl	wpa_printf
	mov	r2, #1
	ldr	r3, .L11+40
	mov	r1, r2
	ldr	r0, [r3]
	ldr	r3, [r4]
	str	r0, [r4, #8]
	ldr	r0, [r4, #4]
	bl	wps_pwd_auth_fail_event
	mvn	r6, #0
	b	.L1
.L8:
	ldr	r1, .L11+44
	bl	wpa_printf
	mvn	r6, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	SHA256_MAC_LEN
	.word	MSG_DEBUG
	.word	.LC4
	.word	WPS_SECRET_NONCE_LEN
	.word	.LC1
	.word	WPS_PSK_LEN
	.word	WPS_AUTHKEY_LEN
	.word	WPS_HASH_LEN
	.word	.LC3
	.word	.LC2
	.word	WPS_CFG_DEV_PASSWORD_AUTH_FAILURE
	.word	.LC0
	.size	wps_process_r_snonce1, .-wps_process_r_snonce1
	.comm	WPS_SECRET_NONCE_LEN,4,4
	.comm	WPS_PSK_LEN,4,4
	.comm	WPS_HASH_LEN,4,4
	.comm	WPS_CFG_DEV_PASSWORD_AUTH_FAILURE,4,4
	.comm	WPS_AUTHKEY_LEN,4,4
	.comm	SHA256_MAC_LEN,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
