	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_process_m8
_wps_process_m8:                        ## @wps_process_m8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r12), %rdx
	movq	_RECV_M8@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_4
## %bb.1:
	movl	36(%r14), %esi
	movq	%r12, %rdi
	callq	_wps_process_enrollee_nonce
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	32(%r14), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_wps_process_authenticator
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:
	movq	8(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.8:
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.9:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_WPS_CFG_SETUP_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	jmp	LBB0_5
LBB0_4:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_5:
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	_WPS_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	24(%r14), %edx
	movl	28(%r14), %esi
	movq	%r12, %rdi
	callq	_wps_decrypt_encr_settings
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	%rax, %r15
	movq	8(%r12), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, (%r14)
	setne	%dl
	movq	%r15, %rdi
	callq	_wps_validate_m8_encr
	testq	%rax, %rax
	js	LBB0_16
## %bb.12:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_wps_parse_msg
	testq	%rax, %rax
	js	LBB0_16
## %bb.13:
	movl	-60(%rbp), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wps_process_key_wrap_auth
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:
	movl	-64(%rbp), %esi
	movl	-72(%rbp), %ecx
	movl	-68(%rbp), %edx
	xorl	%r8d, %r8d
	cmpq	$0, (%r14)
	setne	%r8b
	movq	%r12, %rdi
	callq	_wps_process_creds
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	xorl	%ecx, %ecx
	cmpq	$0, (%r14)
	setne	%cl
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_wps_process_ap_settings_e
	testq	%rax, %rax
	je	LBB0_18
LBB0_16:
	movq	%r15, %rdi
	callq	_wpabuf_clear_free
	jmp	LBB0_5
LBB0_17:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_5
LBB0_18:
	movq	%r15, %rdi
	callq	_wpabuf_clear_free
	movq	_WPS_MSG_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Received M8"

	.comm	_RECV_M8,8,3                    ## @RECV_M8
L_.str.1:                               ## @.str.1
	.asciz	"WPS: Unexpected state (%d) for receiving M8"

	.comm	_SEND_WSC_NACK,8,3              ## @SEND_WSC_NACK
	.comm	_WPS_CONTINUE,4,2               ## @WPS_CONTINUE
L_.str.2:                               ## @.str.2
	.asciz	"WPS: AP Setup is locked - refuse registration of a new Registrar"

	.comm	_WPS_CFG_SETUP_LOCKED,4,2       ## @WPS_CFG_SETUP_LOCKED
L_.str.3:                               ## @.str.3
	.asciz	"WPS: Failed to decrypted Encrypted Settings attribute"

L_.str.4:                               ## @.str.4
	.asciz	"WPS: Processing decrypted Encrypted Settings attribute"

	.comm	_WPS_MSG_DONE,8,3               ## @WPS_MSG_DONE
	.no_dead_strip	_wps_process_m8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_process_m8
_wps_process_m8:                        ; @wps_process_m8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _RECV_M8@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RECV_M8@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	w1, [x20, #36]
	mov	x0, x19
	bl	_wps_process_enrollee_nonce
	cbnz	x0, LBB0_8
; %bb.2:
	ldr	w1, [x20, #32]
	mov	x0, x19
	mov	x2, x21
	bl	_wps_process_authenticator
	cbnz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cbz	w9, LBB0_10
; %bb.4:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	w0, [x22]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh9:
	adrp	x8, _WPS_CFG_SETUP_LOCKED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WPS_CFG_SETUP_LOCKED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_8
LBB0_6:
	ldr	w0, [x22]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_wpa_printf
LBB0_8:
Lloh14:
	adrp	x8, _SEND_WSC_NACK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SEND_WSC_NACK@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh16:
	adrp	x8, _WPS_CONTINUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WPS_CONTINUE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldp	w2, w1, [x20, #24]
	mov	x0, x19
	bl	_wps_decrypt_encr_settings
	cbz	x0, LBB0_17
; %bb.11:
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w2, ne
	bl	_wps_validate_m8_encr
	tbnz	x0, #63, LBB0_16
; %bb.12:
	ldr	w0, [x22]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	add	x1, sp, #8
	mov	x0, x21
	bl	_wps_parse_msg
	tbnz	x0, #63, LBB0_16
; %bb.13:
	ldr	w2, [sp, #28]
	mov	x0, x19
	mov	x1, x21
	bl	_wps_process_key_wrap_auth
	cbnz	x0, LBB0_16
; %bb.14:
	ldp	w2, w1, [sp, #20]
	ldr	w3, [sp, #16]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w4, ne
	mov	x0, x19
	bl	_wps_process_creds
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w3, ne
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_wps_process_ap_settings_e
	cbz	x0, LBB0_18
LBB0_16:
	mov	x0, x21
	bl	_wpabuf_clear_free
	b	LBB0_8
LBB0_17:
	ldr	w0, [x22]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_18:
	mov	x0, x21
	bl	_wpabuf_clear_free
Lloh23:
	adrp	x8, _WPS_MSG_DONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WPS_MSG_DONE@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Received M8"

	.comm	_RECV_M8,8,3                    ; @RECV_M8
l_.str.1:                               ; @.str.1
	.asciz	"WPS: Unexpected state (%d) for receiving M8"

	.comm	_SEND_WSC_NACK,8,3              ; @SEND_WSC_NACK
	.comm	_WPS_CONTINUE,4,2               ; @WPS_CONTINUE
l_.str.2:                               ; @.str.2
	.asciz	"WPS: AP Setup is locked - refuse registration of a new Registrar"

	.comm	_WPS_CFG_SETUP_LOCKED,4,2       ; @WPS_CFG_SETUP_LOCKED
l_.str.3:                               ; @.str.3
	.asciz	"WPS: Failed to decrypted Encrypted Settings attribute"

l_.str.4:                               ; @.str.4
	.asciz	"WPS: Processing decrypted Encrypted Settings attribute"

	.comm	_WPS_MSG_DONE,8,3               ; @WPS_MSG_DONE
	.no_dead_strip	_wps_process_m8
.subsections_via_symbols
