	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_validate_auth_type
_wps_validate_auth_type:                ## @wps_validate_auth_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.4:
	callq	_WPA_GET_BE16
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movq	_WPS_AUTH_TYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ebx, %eax
	jne	LBB0_8
## %bb.6:
	movl	%ebx, %edi
	callq	_num_bits_set
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jl	LBB0_10
## %bb.7:
	movq	_WPS_AUTH_WPAPSK@GOTPCREL(%rip), %rcx
	movq	_WPS_AUTH_WPA2PSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	cmpl	%edx, %ebx
	je	LBB0_10
LBB0_8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_1:
	testl	%esi, %esi
	je	LBB0_2
## %bb.3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS-STRICT: Authentication Type attribute missing"

	.comm	_WPS_AUTH_TYPES,4,2             ## @WPS_AUTH_TYPES
	.comm	_WPS_AUTH_WPAPSK,4,2            ## @WPS_AUTH_WPAPSK
	.comm	_WPS_AUTH_WPA2PSK,4,2           ## @WPS_AUTH_WPA2PSK
L_.str.1:                               ## @.str.1
	.asciz	"WPS-STRICT: Invalid Authentication Type attribute value 0x%04x"

	.no_dead_strip	_wps_validate_auth_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_validate_auth_type
_wps_validate_auth_type:                ; @wps_validate_auth_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_6
; %bb.1:
	bl	_WPA_GET_BE16
	mov	x19, x0
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _WPS_AUTH_TYPES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPS_AUTH_TYPES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w19, w8
	cbnz	w8, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_num_bits_set
	cmp	w0, #2
	b.lt	LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _WPS_AUTH_WPAPSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPS_AUTH_WPAPSK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _WPS_AUTH_WPA2PSK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WPS_AUTH_WPA2PSK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w19, w8
	b.eq	LBB0_9
LBB0_5:
Lloh9:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
	cbz	w1, LBB0_9
; %bb.7:
Lloh14:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS-STRICT: Authentication Type attribute missing"

	.comm	_WPS_AUTH_TYPES,4,2             ; @WPS_AUTH_TYPES
	.comm	_WPS_AUTH_WPAPSK,4,2            ; @WPS_AUTH_WPAPSK
	.comm	_WPS_AUTH_WPA2PSK,4,2           ; @WPS_AUTH_WPA2PSK
l_.str.1:                               ; @.str.1
	.asciz	"WPS-STRICT: Invalid Authentication Type attribute value 0x%04x"

	.no_dead_strip	_wps_validate_auth_type
.subsections_via_symbols
