	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_validate_m5                ## -- Begin function wps_validate_m5
	.p2align	4, 0x90
_wps_validate_m5:                       ## @wps_validate_m5
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	leaq	-56(%rbp), %rsi
	callq	_wps_parse_msg
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	cmpq	$0, -48(%rbp)
	setne	%bl
	movl	-24(%rbp), %edi
	movl	$1, %esi
	callq	_wps_validate_version
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	movl	-28(%rbp), %edi
	movl	$1, %esi
	callq	_wps_validate_msg_type
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movl	-32(%rbp), %edi
	movl	$1, %esi
	callq	_wps_validate_registrar_nonce
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edi
	movl	$1, %edx
	callq	_wps_validate_encr_settings
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movb	%bl, %r14b
	movq	-48(%rbp), %rdi
	movl	%r14d, %esi
	callq	_wps_validate_version2
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movl	-56(%rbp), %edi
	movl	$1, %esi
	callq	_wps_validate_authenticator
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_12
LBB0_1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_13:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS-STRICT: No TLVs in M5"

L_.str.1:                               ## @.str.1
	.asciz	"WPS-STRICT: Failed to parse attributes in M5"

L_.str.2:                               ## @.str.2
	.asciz	"WPS-STRICT: Invalid M5"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_validate_m5                ; -- Begin function wps_validate_m5
	.p2align	2
_wps_validate_m5:                       ; @wps_validate_m5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_9
; %bb.1:
	add	x1, sp, #8
	bl	_wps_parse_msg
	tbnz	x0, #63, LBB0_10
; %bb.2:
	ldr	x8, [sp, #16]
	cmp	x8, #0
	cset	w19, ne
	ldr	w0, [sp, #40]
	mov	w1, #1
	bl	_wps_validate_version
	cbnz	x0, LBB0_8
; %bb.3:
	ldr	w0, [sp, #36]
	mov	w1, #1
	bl	_wps_validate_msg_type
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	w0, [sp, #32]
	mov	w1, #1
	bl	_wps_validate_registrar_nonce
	cbnz	x0, LBB0_8
; %bb.5:
	ldp	w1, w0, [sp, #24]
	mov	w2, #1
	bl	_wps_validate_encr_settings
	cbnz	x0, LBB0_8
; %bb.6:
	ldr	x0, [sp, #16]
	mov	x1, x19
	bl	_wps_validate_version2
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w0, [sp, #8]
	mov	w1, #1
	bl	_wps_validate_authenticator
	cbz	x0, LBB0_12
LBB0_8:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	bl	_wpa_printf
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS-STRICT: No TLVs in M5"

l_.str.1:                               ; @.str.1
	.asciz	"WPS-STRICT: Failed to parse attributes in M5"

l_.str.2:                               ; @.str.2
	.asciz	"WPS-STRICT: Invalid M5"

.subsections_via_symbols
