	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_process_m2d
_wps_process_m2d:                       ## @wps_process_m2d
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r14), %rdx
	movq	_RECV_M2@GOTPCREL(%rip), %rax
	movl	(%r15), %edi
	cmpq	(%rax), %rdx
	jne	LBB0_1
## %bb.2:
	movl	52(%rbx), %ecx
	movl	56(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump_ascii
	movl	(%r15), %edi
	movl	44(%rbx), %ecx
	movl	48(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump_ascii
	movl	(%r15), %edi
	movl	36(%rbx), %ecx
	movl	40(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_hexdump_ascii
	movl	(%r15), %edi
	movl	28(%rbx), %ecx
	movl	32(%rbx), %edx
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_hexdump_ascii
	movl	(%r15), %edi
	movl	20(%rbx), %ecx
	movl	24(%rbx), %edx
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_hexdump_ascii
	movq	8(%r14), %rax
	movq	_RECEIVED_M2D@GOTPCREL(%rip), %r15
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.3:
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_os_memset
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_WPA_GET_BE16
	movq	%rax, -32(%rbp)
LBB0_5:
	movl	56(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	52(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	48(%rbx), %eax
	movl	%eax, -48(%rbp)
	movups	32(%rbx), %xmm0
	movups	%xmm0, -64(%rbp)
	movups	16(%rbx), %xmm0
	movups	%xmm0, -80(%rbp)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_WPA_GET_BE16
	movq	%rax, -88(%rbp)
LBB0_7:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_WPA_GET_BE16
	movq	%rax, -96(%rbp)
LBB0_9:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_WPS_EV_M2D@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-96(%rbp), %rdx
	callq	*8(%rax)
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %r15
LBB0_10:
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	_WPS_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Received M2D"

	.comm	_RECV_M2,8,3                    ## @RECV_M2
L_.str.1:                               ## @.str.1
	.asciz	"WPS: Unexpected state (%d) for receiving M2D"

	.comm	_SEND_WSC_NACK,8,3              ## @SEND_WSC_NACK
	.comm	_WPS_CONTINUE,4,2               ## @WPS_CONTINUE
L_.str.2:                               ## @.str.2
	.asciz	"WPS: Manufacturer"

L_.str.3:                               ## @.str.3
	.asciz	"WPS: Model Name"

L_.str.4:                               ## @.str.4
	.asciz	"WPS: Model Number"

L_.str.5:                               ## @.str.5
	.asciz	"WPS: Serial Number"

L_.str.6:                               ## @.str.6
	.asciz	"WPS: Device Name"

	.comm	_WPS_EV_M2D,4,2                 ## @WPS_EV_M2D
	.comm	_RECEIVED_M2D,8,3               ## @RECEIVED_M2D
	.no_dead_strip	_wps_process_m2d
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_process_m2d
_wps_process_m2d:                       ; @wps_process_m2d
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _RECV_M2@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RECV_M2@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	w0, [x21]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.1:
	ldp	w3, w2, [x20, #52]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump_ascii
	ldr	w0, [x21]
	ldp	w3, w2, [x20, #44]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump_ascii
	ldr	w0, [x21]
	ldp	w3, w2, [x20, #36]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_hexdump_ascii
	ldr	w0, [x21]
	ldp	w3, w2, [x20, #28]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_hexdump_ascii
	ldr	w0, [x21]
	ldp	w3, w2, [x20, #20]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_hexdump_ascii
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #72
	bl	_os_memset
	ldr	x0, [x20, #64]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_WPA_GET_BE16
	str	x0, [sp, #72]
LBB0_4:
	ldr	w8, [x20, #56]
	str	w8, [sp, #64]
	ldr	d0, [x20, #48]
	str	d0, [sp, #56]
	ldp	q1, q0, [x20, #16]
	stur	q0, [sp, #40]
	stur	q1, [sp, #24]
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_WPA_GET_BE16
	str	x0, [sp, #16]
LBB0_6:
	ldr	x0, [x20]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_WPA_GET_BE16
	str	x0, [sp, #8]
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _WPS_EV_M2D@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WPS_EV_M2D@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #8
	blr	x9
LBB0_9:
Lloh20:
	adrp	x8, _RECEIVED_M2D@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RECEIVED_M2D@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh24:
	adrp	x8, _SEND_WSC_NACK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SEND_WSC_NACK@GOTPAGEOFF]
LBB0_11:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh26:
	adrp	x8, _WPS_CONTINUE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WPS_CONTINUE@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Received M2D"

	.comm	_RECV_M2,8,3                    ; @RECV_M2
l_.str.1:                               ; @.str.1
	.asciz	"WPS: Unexpected state (%d) for receiving M2D"

	.comm	_SEND_WSC_NACK,8,3              ; @SEND_WSC_NACK
	.comm	_WPS_CONTINUE,4,2               ; @WPS_CONTINUE
l_.str.2:                               ; @.str.2
	.asciz	"WPS: Manufacturer"

l_.str.3:                               ; @.str.3
	.asciz	"WPS: Model Name"

l_.str.4:                               ; @.str.4
	.asciz	"WPS: Model Number"

l_.str.5:                               ; @.str.5
	.asciz	"WPS: Serial Number"

l_.str.6:                               ; @.str.6
	.asciz	"WPS: Device Name"

	.comm	_WPS_EV_M2D,4,2                 ; @WPS_EV_M2D
	.comm	_RECEIVED_M2D,8,3               ; @RECEIVED_M2D
	.no_dead_strip	_wps_process_m2d
.subsections_via_symbols
