	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_process_wsc_ack
_wps_process_wsc_ack:                   ## @wps_process_wsc_ack
	.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	%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
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wps_parse_msg
	movq	_WPS_FAILURE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	js	LBB0_15
## %bb.1:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	(%rax), %rdx
	movq	_WPS_WSC_ACK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.6:
	movq	-40(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movl	28(%r14), %edi
	movq	_WPS_NONCE_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_15
LBB0_5:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_15:
	movl	(%rbx), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movl	24(%r14), %edi
	movl	(%r12), %edx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_12:
	movq	(%r14), %rax
	movq	_RECV_ACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	16(%r14), %rdi
	movl	8(%r14), %esi
	callq	_wps_success_event
	movq	_WPS_FINISHED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_WPS_DONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Received WSC_ACK"

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

	.comm	_WPS_WSC_ACK,8,3                ## @WPS_WSC_ACK
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"

	.comm	_RECV_ACK,8,3                   ## @RECV_ACK
L_.str.5:                               ## @.str.5
	.asciz	"WPS: External Registrar registration completed successfully"

	.comm	_WPS_FINISHED,8,3               ## @WPS_FINISHED
	.comm	_WPS_DONE,4,2                   ## @WPS_DONE
	.no_dead_strip	_wps_process_wsc_ack
.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_ack
_wps_process_wsc_ack:                   ; @wps_process_wsc_ack
	.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_9
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _WPS_WSC_ACK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WPS_WSC_ACK@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_5
; %bb.4:
	ldr	w0, [x19, #28]
Lloh7:
	adrp	x20, _WPS_NONCE_LEN@GOTPAGE
Lloh8:
	ldr	x20, [x20, _WPS_NONCE_LEN@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_os_memcmp
	cbz	x0, LBB0_11
LBB0_5:
	ldr	w0, [x21]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	w0, [x21]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	w0, [x21]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	bl	_wpa_printf
LBB0_9:
Lloh15:
	adrp	x8, _WPS_FAILURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WPS_FAILURE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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_11:
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_13
; %bb.12:
	ldr	w0, [x19, #24]
	ldr	w2, [x20]
	bl	_os_memcmp
	cbz	x0, LBB0_14
LBB0_13:
	ldr	w0, [x21]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_14:
	ldr	x8, [x19]
Lloh19:
	adrp	x9, _RECV_ACK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RECV_ACK@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.15:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.16:
	ldr	w0, [x21]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #8]
	bl	_wps_success_event
Lloh24:
	adrp	x8, _WPS_FINISHED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WPS_FINISHED@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh27:
	adrp	x8, _WPS_DONE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WPS_DONE@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Received WSC_ACK"

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

	.comm	_WPS_WSC_ACK,8,3                ; @WPS_WSC_ACK
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"

	.comm	_RECV_ACK,8,3                   ; @RECV_ACK
l_.str.5:                               ; @.str.5
	.asciz	"WPS: External Registrar registration completed successfully"

	.comm	_WPS_FINISHED,8,3               ; @WPS_FINISHED
	.comm	_WPS_DONE,4,2                   ; @WPS_DONE
	.no_dead_strip	_wps_process_wsc_ack
.subsections_via_symbols
