	.file	"extr_wps_registrar.c_wps_registrar_get_msg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"WPS: Unsupported state %d for building a message"
	.text
	.p2align 4
	.globl	wps_registrar_get_msg
	.type	wps_registrar_get_msg, @function
wps_registrar_get_msg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edx, DWORD PTR 4[rdi]
	lea	eax, -130[rdx]
	cmp	eax, 6
	ja	.L2
	lea	rdx, .L4[rip]
	mov	rbx, rdi
	mov	rbp, rsi
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	call	wps_get_dev_password@PLT
	mov	rdi, rbx
	test	eax, eax
	js	.L20
	call	wps_build_m2@PLT
	mov	r12, rax
.L12:
	mov	eax, DWORD PTR WSC_MSG[rip]
	mov	DWORD PTR 0[rbp], eax
	.p2align 4,,10
	.p2align 3
.L13:
	cmp	DWORD PTR WSC_MSG[rip], eax
	je	.L21
.L1:
	mov	rax, r12
	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
.L3:
	.cfi_restore_state
	call	wps_build_wsc_ack@PLT
	mov	r12, rax
	mov	eax, DWORD PTR WSC_ACK[rip]
	mov	DWORD PTR 0[rbp], eax
	cmp	DWORD PTR WSC_MSG[rip], eax
	jne	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	test	r12, r12
	je	.L1
	mov	edi, DWORD PTR 8[rbx]
	call	wpabuf_free@PLT
	mov	rdi, r12
	call	wpabuf_dup@PLT
	mov	DWORD PTR 8[rbx], eax
	mov	rax, r12
	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
.L10:
	.cfi_restore_state
	call	wps_build_wsc_nack@PLT
	mov	r12, rax
	mov	eax, DWORD PTR WSC_NACK[rip]
	mov	DWORD PTR 0[rbp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	call	wps_build_m8@PLT
	mov	r12, rax
	mov	eax, DWORD PTR WSC_MSG[rip]
	mov	DWORD PTR 0[rbp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L8:
	call	wps_build_m6@PLT
	mov	r12, rax
	mov	eax, DWORD PTR WSC_MSG[rip]
	mov	DWORD PTR 0[rbp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L7:
	call	wps_build_m4@PLT
	mov	r12, rax
	mov	eax, DWORD PTR WSC_MSG[rip]
	mov	DWORD PTR 0[rbp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	call	wps_build_m2d@PLT
	mov	r12, rax
	mov	eax, DWORD PTR WSC_MSG[rip]
	mov	DWORD PTR 0[rbp], eax
	jmp	.L13
.L2:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	xor	r12d, r12d
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	rax, r12
	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
.L20:
	.cfi_restore_state
	call	wps_build_m2d@PLT
	mov	r12, rax
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	wps_registrar_get_msg, .-wps_registrar_get_msg
	.comm	WSC_NACK,4,4
	.comm	WSC_MSG,4,4
	.comm	WSC_ACK,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_registrar.c_wps_registrar_get_msg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WPS: Unsupported state %d for building a message\000"
	.text
	.align	2
	.global	wps_registrar_get_msg
	.syntax unified
	.arm
	.fpu softvfp
	.type	wps_registrar_get_msg, %function
wps_registrar_get_msg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #4]
	push	{r4, r5, r6, lr}
	sub	r3, r2, #130
	mov	r4, r0
	mov	r6, r1
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	bl	wps_build_wsc_ack
	mov	r5, r0
	ldr	r3, .L22
	ldr	r2, .L22+4
	ldr	r3, [r3]
	str	r3, [r6]
.L13:
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L20
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L10:
	bl	wps_build_wsc_nack
	ldr	r3, .L22+8
	ldr	r2, .L22+4
	ldr	r3, [r3]
	mov	r5, r0
	str	r3, [r6]
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L1
.L20:
	cmp	r5, #0
	beq	.L1
	ldr	r0, [r4, #8]
	bl	wpabuf_free
	mov	r0, r5
	bl	wpabuf_dup
	str	r0, [r4, #8]
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L9:
	bl	wps_build_m8
	ldr	r2, .L22+4
	mov	r5, r0
	ldr	r3, [r2]
	str	r3, [r6]
	b	.L13
.L8:
	bl	wps_build_m6
	ldr	r2, .L22+4
	mov	r5, r0
	ldr	r3, [r2]
	str	r3, [r6]
	b	.L13
.L7:
	bl	wps_build_m4
	ldr	r2, .L22+4
	mov	r5, r0
	ldr	r3, [r2]
	str	r3, [r6]
	b	.L13
.L6:
	bl	wps_build_m2d
	ldr	r2, .L22+4
	mov	r5, r0
	ldr	r3, [r2]
	str	r3, [r6]
	b	.L13
.L5:
	bl	wps_get_dev_password
	cmp	r0, #0
	mov	r0, r4
	blt	.L21
	bl	wps_build_m2
	mov	r5, r0
.L12:
	ldr	r2, .L22+4
	ldr	r3, [r2]
	str	r3, [r6]
	b	.L13
.L21:
	bl	wps_build_m2d
	mov	r5, r0
	b	.L12
.L2:
	ldr	r3, .L22+12
	ldr	r1, .L22+16
	ldr	r0, [r3]
	bl	wpa_printf
	mov	r5, #0
	b	.L1
.L23:
	.align	2
.L22:
	.word	WSC_ACK
	.word	WSC_MSG
	.word	WSC_NACK
	.word	MSG_DEBUG
	.word	.LC0
	.size	wps_registrar_get_msg, .-wps_registrar_get_msg
	.comm	WSC_NACK,4,4
	.comm	WSC_MSG,4,4
	.comm	WSC_ACK,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
