	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_process_wsc_msg
_wps_process_wsc_msg:                   ## @wps_process_wsc_msg
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_wps_parse_msg
	testq	%rax, %rax
	js	LBB0_11
## %bb.1:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	cmpl	$131, (%rax)
	jne	LBB0_8
LBB0_3:
	movq	%r15, %rdi
	callq	_wps_validate_m1
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wps_process_m1
	movl	%eax, %ebx
LBB0_5:
	movq	_WPS_CONTINUE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_13
## %bb.6:
	movl	(%r14), %edi
	callq	_wpabuf_free
	movq	%r15, %rdi
	callq	_wpabuf_dup
	movl	%eax, (%r14)
	jmp	LBB0_13
LBB0_7:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_WPS_CONTINUE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movl	28(%r14), %edi
	movq	_WPS_NONCE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_14
LBB0_10:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_11:
	movq	_WPS_FAILURE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	ja	LBB0_20
## %bb.15:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:
	movq	%r15, %rdi
	callq	_wps_validate_m7
	testl	%eax, %eax
	js	LBB0_11
## %bb.17:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wps_process_m7
	movl	%eax, %ebx
	movq	_WPS_FAILURE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_19
## %bb.18:
	movl	24(%r14), %eax
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
LBB0_19:
	movq	16(%r14), %rdi
	movl	12(%r14), %edx
	movl	4(%r14), %r8d
	movl	8(%r14), %ecx
	movl	$128, %esi
	jmp	LBB0_29
LBB0_20:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_21:
	movq	%r15, %rdi
	callq	_wps_validate_m5
	testl	%eax, %eax
	js	LBB0_11
## %bb.22:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wps_process_m5
	movl	%eax, %ebx
	movq	_WPS_FAILURE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_24
## %bb.23:
	movl	24(%r14), %eax
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
LBB0_24:
	movq	16(%r14), %rdi
	movl	12(%r14), %edx
	movl	4(%r14), %r8d
	movl	8(%r14), %ecx
	movl	$129, %esi
	jmp	LBB0_29
LBB0_25:
	movq	%r15, %rdi
	callq	_wps_validate_m3
	testl	%eax, %eax
	js	LBB0_11
## %bb.26:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wps_process_m3
	movl	%eax, %ebx
	movq	_WPS_FAILURE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_28
## %bb.27:
	movl	24(%r14), %eax
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
LBB0_28:
	movq	16(%r14), %rdi
	movl	12(%r14), %edx
	movl	4(%r14), %r8d
	movl	8(%r14), %ecx
	movl	$130, %esi
LBB0_29:
	callq	_wps_fail_event
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_21
	.long	L0_0_set_25
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_WPS_CONTINUE,4,2               ## @WPS_CONTINUE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Received WSC_MSG"

	.comm	_WPS_FAILURE,4,2                ## @WPS_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"WPS: No Message Type attribute"

	.comm	_SEND_WSC_NACK,4,2              ## @SEND_WSC_NACK
	.comm	_WPS_NONCE_LEN,4,2              ## @WPS_NONCE_LEN
L_.str.2:                               ## @.str.2
	.asciz	"WPS: Mismatch in registrar nonce"

L_.str.3:                               ## @.str.3
	.asciz	"WPS: Unsupported Message Type %d"

	.comm	_UPNP_WPS_WLANEVENT_TYPE_EAP,4,2 ## @UPNP_WPS_WLANEVENT_TYPE_EAP
	.no_dead_strip	_wps_process_wsc_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_process_wsc_msg
_wps_process_wsc_msg:                   ; @wps_process_wsc_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.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
	add	x1, sp, #8
	mov	x0, x20
	bl	_wps_parse_msg
	tbnz	x0, #63, LBB0_12
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w8, [x8]
	cmp	w8, #131
	b.ne	LBB0_8
LBB0_3:
	mov	x0, x20
	bl	_wps_validate_m1
	tbnz	w0, #31, LBB0_12
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_wps_process_m1
	mov	x21, x0
LBB0_5:
Lloh4:
	adrp	x8, _WPS_CONTINUE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WPS_CONTINUE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_14
; %bb.6:
	ldr	w0, [x19]
	bl	_wpabuf_free
	mov	x0, x20
	bl	_wpabuf_dup
	str	w0, [x19]
	b	LBB0_14
LBB0_7:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh9:
	adrp	x8, _SEND_WSC_NACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEND_WSC_NACK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh12:
	adrp	x8, _WPS_CONTINUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WPS_CONTINUE@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_10
; %bb.9:
	ldr	w0, [x19, #28]
Lloh14:
	adrp	x8, _WPS_NONCE_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WPS_NONCE_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_os_memcmp
	cbz	x0, LBB0_15
LBB0_10:
	ldr	w0, [x21]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_wpa_printf
LBB0_12:
Lloh19:
	adrp	x8, _WPS_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WPS_FAILURE@GOTPAGEOFF]
LBB0_13:
	ldr	w21, [x8]
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_21
; %bb.16:
Lloh21:
	adrp	x8, lJTI0_0@PAGE
Lloh22:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_17:
	mov	x0, x20
	bl	_wps_validate_m7
	tbnz	w0, #31, LBB0_12
; %bb.18:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_wps_process_m7
	mov	x21, x0
Lloh23:
	adrp	x8, _WPS_FAILURE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WPS_FAILURE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_20
; %bb.19:
	ldr	w8, [x19, #24]
Lloh26:
	adrp	x9, _SEND_WSC_NACK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SEND_WSC_NACK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
LBB0_20:
	ldr	x0, [x19, #16]
	ldp	w3, w2, [x19, #8]
	ldr	w4, [x19, #4]
	mov	w1, #128
	b	LBB0_30
LBB0_21:
	ldr	w0, [x21]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_22:
	mov	x0, x20
	bl	_wps_validate_m5
	tbnz	w0, #31, LBB0_12
; %bb.23:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_wps_process_m5
	mov	x21, x0
Lloh31:
	adrp	x8, _WPS_FAILURE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _WPS_FAILURE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_25
; %bb.24:
	ldr	w8, [x19, #24]
Lloh34:
	adrp	x9, _SEND_WSC_NACK@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SEND_WSC_NACK@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
LBB0_25:
	ldr	x0, [x19, #16]
	ldp	w3, w2, [x19, #8]
	ldr	w4, [x19, #4]
	mov	w1, #129
	b	LBB0_30
LBB0_26:
	mov	x0, x20
	bl	_wps_validate_m3
	tbnz	w0, #31, LBB0_12
; %bb.27:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_wps_process_m3
	mov	x21, x0
Lloh37:
	adrp	x8, _WPS_FAILURE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _WPS_FAILURE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_29
; %bb.28:
	ldr	w8, [x19, #24]
Lloh40:
	adrp	x9, _SEND_WSC_NACK@GOTPAGE
Lloh41:
	ldr	x9, [x9, _SEND_WSC_NACK@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
LBB0_29:
	ldr	x0, [x19, #16]
	ldp	w3, w2, [x19, #8]
	ldr	w4, [x19, #4]
	mov	w1, #130
LBB0_30:
	bl	_wps_fail_event
	b	LBB0_5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_26-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.comm	_WPS_CONTINUE,4,2               ; @WPS_CONTINUE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Received WSC_MSG"

	.comm	_WPS_FAILURE,4,2                ; @WPS_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"WPS: No Message Type attribute"

	.comm	_SEND_WSC_NACK,4,2              ; @SEND_WSC_NACK
	.comm	_WPS_NONCE_LEN,4,2              ; @WPS_NONCE_LEN
l_.str.2:                               ; @.str.2
	.asciz	"WPS: Mismatch in registrar nonce"

l_.str.3:                               ; @.str.3
	.asciz	"WPS: Unsupported Message Type %d"

	.comm	_UPNP_WPS_WLANEVENT_TYPE_EAP,4,2 ; @UPNP_WPS_WLANEVENT_TYPE_EAP
	.no_dead_strip	_wps_process_wsc_msg
.subsections_via_symbols
