	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_process_m7
_wps_process_m7:                        ## @wps_process_m7
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%rbx), %rdx
	movq	_RECV_M7@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_7
## %bb.1:
	cmpq	$0, 32(%rbx)
	je	LBB0_4
## %bb.2:
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_wps_registrar_skip_overlap
	testl	%eax, %eax
	je	LBB0_11
LBB0_4:
	movl	28(%r15), %esi
	movq	%rbx, %rdi
	callq	_wps_process_registrar_nonce
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movl	24(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_wps_process_authenticator
	testq	%rax, %rax
	jne	LBB0_8
## %bb.12:
	movl	16(%r15), %edx
	movl	20(%r15), %esi
	movq	%rbx, %rdi
	callq	_wps_decrypt_encr_settings
	testq	%rax, %rax
	je	LBB0_21
## %bb.13:
	movq	%rax, %r14
	movq	16(%rbx), %rax
	movl	$1, %esi
	cmpq	$0, (%rax)
	jne	LBB0_15
## %bb.14:
	xorl	%esi, %esi
	cmpq	$0, 8(%rbx)
	setne	%sil
LBB0_15:
	xorl	%edx, %edx
	cmpq	$0, 8(%r15)
	setne	%dl
	movq	%r14, %rdi
	callq	_wps_validate_m7_encr
	testq	%rax, %rax
	js	LBB0_20
## %bb.16:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wps_parse_msg
	testq	%rax, %rax
	js	LBB0_20
## %bb.17:
	movl	-60(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wps_process_key_wrap_auth
	testq	%rax, %rax
	jne	LBB0_20
## %bb.18:
	movl	-64(%rbp), %esi
	movq	%rbx, %rdi
	callq	_wps_process_e_snonce2
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wps_process_ap_settings_r
	testq	%rax, %rax
	je	LBB0_22
LBB0_20:
	movq	%r14, %rdi
	callq	_wpabuf_clear_free
	jmp	LBB0_8
LBB0_7:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_8:
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_10:
	movq	_WPS_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_WPS_CFG_MULTIPLE_PBC_DETECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_10
LBB0_21:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_22:
	movq	%r14, %rdi
	callq	_wpabuf_clear_free
	movq	_SEND_M8@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Received M7"

	.comm	_RECV_M7,8,3                    ## @RECV_M7
L_.str.1:                               ## @.str.1
	.asciz	"WPS: Unexpected state (%d) for receiving M7"

	.comm	_SEND_WSC_NACK,8,3              ## @SEND_WSC_NACK
	.comm	_WPS_CONTINUE,4,2               ## @WPS_CONTINUE
L_.str.2:                               ## @.str.2
	.asciz	"WPS: Reject negotiation due to PBC session overlap"

	.comm	_WPS_CFG_MULTIPLE_PBC_DETECTED,4,2 ## @WPS_CFG_MULTIPLE_PBC_DETECTED
L_.str.3:                               ## @.str.3
	.asciz	"WPS: Failed to decrypt Encrypted Settings attribute"

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

	.comm	_SEND_M8,8,3                    ## @SEND_M8
	.no_dead_strip	_wps_process_m7
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_process_m7
_wps_process_m7:                        ; @wps_process_m7
	.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	x21, x2
	mov	x20, 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_M7@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RECV_M7@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_wps_registrar_skip_overlap
	cbz	w0, LBB0_14
LBB0_4:
	ldr	w1, [x21, #28]
	mov	x0, x19
	bl	_wps_process_registrar_nonce
	cbnz	x0, LBB0_11
; %bb.5:
	ldr	w1, [x21, #24]
	mov	x0, x19
	mov	x2, x20
	bl	_wps_process_authenticator
	cbnz	x0, LBB0_11
; %bb.6:
	ldp	w2, w1, [x21, #16]
	mov	x0, x19
	bl	_wps_decrypt_encr_settings
	cbz	x0, LBB0_15
; %bb.7:
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.8:
	mov	w1, #1
	b	LBB0_17
LBB0_9:
	ldr	w0, [x22]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	bl	_wpa_printf
LBB0_11:
Lloh9:
	adrp	x8, _SEND_WSC_NACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEND_WSC_NACK@GOTPAGEOFF]
LBB0_12:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_13:
Lloh11:
	adrp	x8, _WPS_CONTINUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WPS_CONTINUE@GOTPAGEOFF]
Lloh13:
	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_14:
	ldr	w0, [x22]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh16:
	adrp	x8, _SEND_WSC_NACK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SEND_WSC_NACK@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh19:
	adrp	x8, _WPS_CFG_MULTIPLE_PBC_DETECTED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WPS_CFG_MULTIPLE_PBC_DETECTED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	b	LBB0_13
LBB0_15:
	ldr	w0, [x22]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_16:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w1, ne
LBB0_17:
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w2, ne
	mov	x0, x20
	bl	_wps_validate_m7_encr
	tbnz	x0, #63, LBB0_22
; %bb.18:
	ldr	w0, [x22]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	add	x1, sp, #16
	mov	x0, x20
	bl	_wps_parse_msg
	tbnz	x0, #63, LBB0_22
; %bb.19:
	ldr	w2, [sp, #20]
	mov	x0, x19
	mov	x1, x20
	bl	_wps_process_key_wrap_auth
	cbnz	x0, LBB0_22
; %bb.20:
	ldr	w1, [sp, #16]
	mov	x0, x19
	bl	_wps_process_e_snonce2
	cbnz	x0, LBB0_22
; %bb.21:
	add	x1, sp, #16
	mov	x0, x19
	bl	_wps_process_ap_settings_r
	cbz	x0, LBB0_23
LBB0_22:
	mov	x0, x20
	bl	_wpabuf_clear_free
	b	LBB0_11
LBB0_23:
	mov	x0, x20
	bl	_wpabuf_clear_free
Lloh26:
	adrp	x8, _SEND_M8@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SEND_M8@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Received M7"

	.comm	_RECV_M7,8,3                    ; @RECV_M7
l_.str.1:                               ; @.str.1
	.asciz	"WPS: Unexpected state (%d) for receiving M7"

	.comm	_SEND_WSC_NACK,8,3              ; @SEND_WSC_NACK
	.comm	_WPS_CONTINUE,4,2               ; @WPS_CONTINUE
l_.str.2:                               ; @.str.2
	.asciz	"WPS: Reject negotiation due to PBC session overlap"

	.comm	_WPS_CFG_MULTIPLE_PBC_DETECTED,4,2 ; @WPS_CFG_MULTIPLE_PBC_DETECTED
l_.str.3:                               ; @.str.3
	.asciz	"WPS: Failed to decrypt Encrypted Settings attribute"

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

	.comm	_SEND_M8,8,3                    ; @SEND_M8
	.no_dead_strip	_wps_process_m7
.subsections_via_symbols
