	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_process_wsc_nack
_wps_process_wsc_nack:                  ## @wps_process_wsc_nack
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r15), %r12d
	movq	_SEND_WSC_NACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wps_parse_msg
	testq	%rax, %rax
	js	LBB0_21
## %bb.1:
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	(%rax), %rdx
	movq	_WPS_WSC_NACK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.6:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movl	28(%r15), %edi
	movq	_WPS_NONCE_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_21
LBB0_5:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_21:
	movq	_WPS_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movl	24(%r15), %edi
	movl	(%rbx), %edx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_12:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.14:
	callq	_WPA_GET_BE16
	movq	%rax, %r14
	movl	(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	addl	$-128, %r12d
	cmpl	$3, %r12d
	ja	LBB0_21
## %bb.15:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_18:
	movq	16(%r15), %rdi
	movq	_WPS_M6@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_13:
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_3
LBB0_17:
	movq	16(%r15), %rdi
	movq	_WPS_M4@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_16:
	movq	16(%r15), %rdi
	movq	_WPS_M2@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	16(%r15), %rdi
	movq	_WPS_M8@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %esi
	movl	4(%r15), %r8d
	movl	8(%r15), %ecx
	movq	%r14, %rdx
	callq	_wps_fail_event
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Received WSC_NACK"

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

	.comm	_WPS_WSC_NACK,8,3               ## @WPS_WSC_NACK
L_.str.2:                               ## @.str.2
	.asciz	"WPS: Invalid Message Type %d"

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

L_.str.4:                               ## @.str.4
	.asciz	"WPS: Mismatch in enrollee nonce"

L_.str.5:                               ## @.str.5
	.asciz	"WPS: No Configuration Error attribute in WSC_NACK"

L_.str.6:                               ## @.str.6
	.asciz	"WPS: Enrollee terminated negotiation with Configuration Error %d"

	.comm	_WPS_M2,4,2                     ## @WPS_M2
	.comm	_WPS_M4,4,2                     ## @WPS_M4
	.comm	_WPS_M6,4,2                     ## @WPS_M6
	.comm	_WPS_M8,4,2                     ## @WPS_M8
	.no_dead_strip	_wps_process_wsc_nack
.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_nack
_wps_process_wsc_nack:                  ; @wps_process_wsc_nack
	.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, 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	w22, [x19]
Lloh4:
	adrp	x8, _SEND_WSC_NACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SEND_WSC_NACK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19]
	add	x1, sp, #16
	mov	x0, x20
	bl	_wps_parse_msg
	tbnz	x0, #63, LBB0_9
; %bb.1:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _WPS_WSC_NACK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WPS_WSC_NACK@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x1, [sp, #40]
	cbz	x1, LBB0_5
; %bb.4:
	ldr	w0, [x19, #28]
Lloh10:
	adrp	x20, _WPS_NONCE_LEN@GOTPAGE
Lloh11:
	ldr	x20, [x20, _WPS_NONCE_LEN@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_os_memcmp
	cbz	x0, LBB0_10
LBB0_5:
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	w0, [x21]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	w0, [x21]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	bl	_wpa_printf
LBB0_9:
Lloh18:
	adrp	x8, _WPS_FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WPS_FAILURE@GOTPAGEOFF]
Lloh20:
	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:
	ldr	x1, [sp, #32]
	cbz	x1, LBB0_12
; %bb.11:
	ldr	w0, [x19, #24]
	ldr	w2, [x20]
	bl	_os_memcmp
	cbz	x0, LBB0_13
LBB0_12:
	ldr	w0, [x21]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_13:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_17
; %bb.14:
	bl	_WPA_GET_BE16
	mov	x20, x0
	ldr	w0, [x21]
	str	x20, [sp]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_9
; %bb.15:
Lloh25:
	adrp	x9, lJTI0_0@PAGE
Lloh26:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_16
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_16:
	ldr	x0, [x19, #16]
Lloh27:
	adrp	x8, _WPS_M6@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WPS_M6@GOTPAGEOFF]
	b	LBB0_21
LBB0_17:
	ldr	w0, [x21]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_8
LBB0_18:
	ldr	x0, [x19, #16]
Lloh31:
	adrp	x8, _WPS_M4@GOTPAGE
Lloh32:
	ldr	x8, [x8, _WPS_M4@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:
	ldr	x0, [x19, #16]
Lloh33:
	adrp	x8, _WPS_M2@GOTPAGE
Lloh34:
	ldr	x8, [x8, _WPS_M2@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
	ldr	x0, [x19, #16]
Lloh35:
	adrp	x8, _WPS_M8@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WPS_M8@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x8]
	ldp	w4, w3, [x19, #4]
	mov	x2, x20
	bl	_wps_fail_event
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_18-LBB0_16)>>2
	.byte	(LBB0_19-LBB0_16)>>2
	.byte	(LBB0_20-LBB0_16)>>2
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Received WSC_NACK"

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

	.comm	_WPS_WSC_NACK,8,3               ; @WPS_WSC_NACK
l_.str.2:                               ; @.str.2
	.asciz	"WPS: Invalid Message Type %d"

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

l_.str.4:                               ; @.str.4
	.asciz	"WPS: Mismatch in enrollee nonce"

l_.str.5:                               ; @.str.5
	.asciz	"WPS: No Configuration Error attribute in WSC_NACK"

l_.str.6:                               ; @.str.6
	.asciz	"WPS: Enrollee terminated negotiation with Configuration Error %d"

	.comm	_WPS_M2,4,2                     ; @WPS_M2
	.comm	_WPS_M4,4,2                     ; @WPS_M4
	.comm	_WPS_M6,4,2                     ; @WPS_M6
	.comm	_WPS_M8,4,2                     ; @WPS_M8
	.no_dead_strip	_wps_process_wsc_nack
.subsections_via_symbols
