	.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	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_wps_parse_msg
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movl	24(%r14), %edi
	movq	_WPS_NONCE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_4:
	movq	_WPS_FAILURE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movl	(%rax), %edx
	leal	-128(%rdx), %eax
	cmpl	$4, %eax
	ja	LBB0_15
## %bb.9:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	%r15, %rdi
	callq	_wps_validate_m8
	testl	%eax, %eax
	js	LBB0_4
## %bb.11:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wps_process_m8
	movl	%eax, %ebx
	movq	_WPS_FAILURE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_13
## %bb.12:
	movl	20(%r14), %eax
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_30
LBB0_13:
	movl	16(%r14), %edi
	movl	12(%r14), %edx
	movl	4(%r14), %r8d
	movl	8(%r14), %ecx
	movl	$128, %esi
	jmp	LBB0_24
LBB0_14:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_WPS_CONTINUE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_4
LBB0_16:
	movq	%r15, %rdi
	callq	_wps_validate_m6
	testl	%eax, %eax
	js	LBB0_4
## %bb.17:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wps_process_m6
	movl	%eax, %ebx
	movq	_WPS_FAILURE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_19
## %bb.18:
	movl	20(%r14), %eax
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_30
LBB0_19:
	movl	16(%r14), %edi
	movl	12(%r14), %edx
	movl	4(%r14), %r8d
	movl	8(%r14), %ecx
	movl	$129, %esi
	jmp	LBB0_24
LBB0_20:
	movq	%r15, %rdi
	callq	_wps_validate_m4
	testl	%eax, %eax
	js	LBB0_4
## %bb.21:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wps_process_m4
	movl	%eax, %ebx
	movq	_WPS_FAILURE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_23
## %bb.22:
	movl	20(%r14), %eax
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_30
LBB0_23:
	movl	16(%r14), %edi
	movl	12(%r14), %edx
	movl	4(%r14), %r8d
	movl	8(%r14), %ecx
	movl	$130, %esi
LBB0_24:
	callq	_wps_fail_event
	jmp	LBB0_30
LBB0_25:
	movq	%r15, %rdi
	callq	_wps_validate_m2d
	testl	%eax, %eax
	js	LBB0_4
## %bb.26:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wps_process_m2d
	jmp	LBB0_29
LBB0_27:
	movq	%r15, %rdi
	callq	_wps_validate_m2
	testl	%eax, %eax
	js	LBB0_4
## %bb.28:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wps_process_m2
LBB0_29:
	movl	%eax, %ebx
LBB0_30:
	movq	_WPS_CONTINUE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
## %bb.31:
	movq	-40(%rbp), %rax
	cmpl	$131, (%rax)
	je	LBB0_6
## %bb.32:
	movl	(%r14), %edi
	callq	_wpabuf_free
	movq	%r15, %rdi
	callq	_wpabuf_dup
	movl	%eax, (%r14)
	jmp	LBB0_6
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_16
	.long	L0_0_set_20
	.long	L0_0_set_25
	.long	L0_0_set_27
	.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
	.comm	_WPS_NONCE_LEN,4,2              ## @WPS_NONCE_LEN
L_.str.1:                               ## @.str.1
	.asciz	"WPS: Mismatch in enrollee nonce"

L_.str.2:                               ## @.str.2
	.asciz	"WPS: No Message Type attribute"

	.comm	_SEND_WSC_NACK,4,2              ## @SEND_WSC_NACK
L_.str.3:                               ## @.str.3
	.asciz	"WPS: Unsupported Message Type %d"

	.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, #16
	mov	x0, x20
	bl	_wps_parse_msg
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_3
; %bb.2:
	ldr	w0, [x19, #24]
Lloh4:
	adrp	x8, _WPS_NONCE_LEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WPS_NONCE_LEN@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_os_memcmp
	cbz	x0, LBB0_8
LBB0_3:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	bl	_wpa_printf
LBB0_5:
Lloh9:
	adrp	x8, _WPS_FAILURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WPS_FAILURE@GOTPAGEOFF]
LBB0_6:
	ldr	w21, [x8]
LBB0_7:
	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_8:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_15
; %bb.9:
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_16
; %bb.10:
Lloh11:
	adrp	x8, lJTI0_0@PAGE
Lloh12:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
	mov	x0, x20
	bl	_wps_validate_m8
	tbnz	w0, #31, LBB0_5
; %bb.12:
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x20
	bl	_wps_process_m8
	mov	x21, x0
Lloh13:
	adrp	x8, _WPS_FAILURE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WPS_FAILURE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [x19, #20]
Lloh16:
	adrp	x9, _SEND_WSC_NACK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SEND_WSC_NACK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_31
LBB0_14:
	ldp	w2, w0, [x19, #12]
	ldp	w4, w3, [x19, #4]
	mov	w1, #128
	b	LBB0_25
LBB0_15:
	ldr	w0, [x21]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh21:
	adrp	x8, _SEND_WSC_NACK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SEND_WSC_NACK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh24:
	adrp	x8, _WPS_CONTINUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WPS_CONTINUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_16:
	ldr	w0, [x21]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_17:
	mov	x0, x20
	bl	_wps_validate_m6
	tbnz	w0, #31, LBB0_5
; %bb.18:
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x20
	bl	_wps_process_m6
	mov	x21, x0
Lloh28:
	adrp	x8, _WPS_FAILURE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WPS_FAILURE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_20
; %bb.19:
	ldr	w8, [x19, #20]
Lloh31:
	adrp	x9, _SEND_WSC_NACK@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SEND_WSC_NACK@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_31
LBB0_20:
	ldp	w2, w0, [x19, #12]
	ldp	w4, w3, [x19, #4]
	mov	w1, #129
	b	LBB0_25
LBB0_21:
	mov	x0, x20
	bl	_wps_validate_m4
	tbnz	w0, #31, LBB0_5
; %bb.22:
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x20
	bl	_wps_process_m4
	mov	x21, x0
Lloh34:
	adrp	x8, _WPS_FAILURE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WPS_FAILURE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_24
; %bb.23:
	ldr	w8, [x19, #20]
Lloh37:
	adrp	x9, _SEND_WSC_NACK@GOTPAGE
Lloh38:
	ldr	x9, [x9, _SEND_WSC_NACK@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_31
LBB0_24:
	ldp	w2, w0, [x19, #12]
	ldp	w4, w3, [x19, #4]
	mov	w1, #130
LBB0_25:
	bl	_wps_fail_event
	b	LBB0_31
LBB0_26:
	mov	x0, x20
	bl	_wps_validate_m2d
	tbnz	w0, #31, LBB0_5
; %bb.27:
	add	x1, sp, #16
	mov	x0, x19
	bl	_wps_process_m2d
	b	LBB0_30
LBB0_28:
	mov	x0, x20
	bl	_wps_validate_m2
	tbnz	w0, #31, LBB0_5
; %bb.29:
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x20
	bl	_wps_process_m2
LBB0_30:
	mov	x21, x0
LBB0_31:
Lloh40:
	adrp	x8, _WPS_CONTINUE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _WPS_CONTINUE@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_7
; %bb.32:
	ldr	x8, [sp, #16]
	ldr	w8, [x8]
	cmp	w8, #131
	b.eq	LBB0_7
; %bb.33:
	ldr	w0, [x19]
	bl	_wpabuf_free
	mov	x0, x20
	bl	_wpabuf_dup
	str	w0, [x19]
	b	LBB0_7
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, 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_11-LBB0_11)>>2
	.byte	(LBB0_17-LBB0_11)>>2
	.byte	(LBB0_21-LBB0_11)>>2
	.byte	(LBB0_26-LBB0_11)>>2
	.byte	(LBB0_28-LBB0_11)>>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
	.comm	_WPS_NONCE_LEN,4,2              ; @WPS_NONCE_LEN
l_.str.1:                               ; @.str.1
	.asciz	"WPS: Mismatch in enrollee nonce"

l_.str.2:                               ; @.str.2
	.asciz	"WPS: No Message Type attribute"

	.comm	_SEND_WSC_NACK,4,2              ; @SEND_WSC_NACK
l_.str.3:                               ; @.str.3
	.asciz	"WPS: Unsupported Message Type %d"

	.no_dead_strip	_wps_process_wsc_msg
.subsections_via_symbols
