	.file	"extr_wps_validate.c_wps_validate_auth_type.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"WPS-STRICT: Authentication Type attribute missing"
	.align 8
.LC1:
	.string	"WPS-STRICT: Invalid Authentication Type attribute value 0x%04x"
	.text
	.p2align 4
	.type	wps_validate_auth_type, @function
wps_validate_auth_type:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	test	rdi, rdi
	je	.L11
	call	WPA_GET_BE16@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR WPS_AUTH_TYPES[rip]
	not	eax
	test	eax, r12d
	jne	.L8
	test	r12d, r12d
	je	.L8
	mov	edi, r12d
	call	num_bits_set@PLT
	cmp	eax, 1
	jle	.L7
	mov	eax, DWORD PTR WPS_AUTH_WPAPSK[rip]
	or	eax, DWORD PTR WPS_AUTH_WPA2PSK[rip]
	cmp	eax, r12d
	jne	.L8
.L7:
	xor	eax, eax
.L1:
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	test	esi, esi
	je	.L7
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR MSG_INFO[rip]
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	wps_validate_auth_type, .-wps_validate_auth_type
	.comm	WPS_AUTH_WPAPSK,4,4
	.comm	WPS_AUTH_WPA2PSK,4,4
	.comm	WPS_AUTH_TYPES,4,4
	.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_validate.c_wps_validate_auth_type.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WPS-STRICT: Authentication Type attribute missing\000"
	.align	2
.LC1:
	.ascii	"WPS-STRICT: Invalid Authentication Type attribute v"
	.ascii	"alue 0x%04x\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wps_validate_auth_type, %function
wps_validate_auth_type:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	push	{r4, lr}
	beq	.L10
	bl	WPA_GET_BE16
	ldr	r3, .L11
	mov	r4, r0
	ldr	r3, [r3]
	bics	r3, r0, r3
	movne	r3, #1
	moveq	r3, #0
	cmp	r0, #0
	moveq	r3, #1
	cmp	r3, #0
	bne	.L7
	bl	num_bits_set
	cmp	r0, #1
	ble	.L6
	ldr	r3, .L11+4
	ldr	r2, .L11+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	cmp	r3, r4
	bne	.L7
.L6:
	mov	r0, #0
	pop	{r4, pc}
.L10:
	cmp	r1, #0
	beq	.L6
	ldr	r3, .L11+12
	ldr	r1, .L11+16
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r0, #0
	pop	{r4, pc}
.L7:
	ldr	r3, .L11+12
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L11+20
	bl	wpa_printf
	mvn	r0, #0
	pop	{r4, pc}
.L12:
	.align	2
.L11:
	.word	WPS_AUTH_TYPES
	.word	WPS_AUTH_WPAPSK
	.word	WPS_AUTH_WPA2PSK
	.word	MSG_INFO
	.word	.LC0
	.word	.LC1
	.size	wps_validate_auth_type, .-wps_validate_auth_type
	.comm	WPS_AUTH_WPAPSK,4,4
	.comm	WPS_AUTH_WPA2PSK,4,4
	.comm	WPS_AUTH_TYPES,4,4
	.comm	MSG_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
