	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_wps_success           ## -- Begin function wpas_p2p_wps_success
	.p2align	4, 0x90
_wpas_p2p_wps_success:                  ## @wpas_p2p_wps_success
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$0, 24(%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	32(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.4:
	movq	(%r12), %rax
	movq	_WPAS_MODE_INFRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	20(%r13), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_os_memcpy
	movl	8(%r12), %ecx
	movl	12(%r12), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_wpas_p2p_persistent_group
	movq	8(%r13), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_p2p_clear_provisioning_info
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
LBB0_6:
	movq	_wpas_p2p_group_formation_timeout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	16(%r13), %esi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movl	$1, (%r13)
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	(%r12), %rax
	movq	_WPAS_MODE_INFRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_P2P_MAX_INITIAL_CONN_WAIT_GO@GOTPCREL(%rip), %rbx
	cmoveq	_P2P_MAX_INITIAL_CONN_WAIT@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	(%rbx), %ecx
	movq	%r13, %rdi
	callq	_wpa_dbg
	movl	(%rbx), %edi
	movl	(%r15), %edx
	movl	16(%r13), %ecx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	movl	$0, (%r13)
LBB0_8:
	movq	8(%r13), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	movq	%r14, %rsi
	callq	_p2p_wps_success_cb
LBB0_10:
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_wpas_group_formation_completed
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.2:
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Ignore WPS success event - P2P provisioning not in progress"

	.comm	_WPAS_MODE_INFRA,8,3            ## @WPAS_MODE_INFRA
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_wpas_p2p_group_formation_timeout,4,2 ## @wpas_p2p_group_formation_timeout
L_.str.1:                               ## @.str.1
	.asciz	"P2P: Re-start group formation timeout (%d seconds) as client for initial connection"

	.comm	_P2P_MAX_INITIAL_CONN_WAIT,4,2  ## @P2P_MAX_INITIAL_CONN_WAIT
L_.str.2:                               ## @.str.2
	.asciz	"P2P: Re-start group formation timeout (%d seconds) as GO for initial connection"

	.comm	_P2P_MAX_INITIAL_CONN_WAIT_GO,4,2 ## @P2P_MAX_INITIAL_CONN_WAIT_GO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_wps_success           ; -- Begin function wpas_p2p_wps_success
	.p2align	2
_wpas_p2p_wps_success:                  ; @wpas_p2p_wps_success
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #32]
Lloh3:
	adrp	x23, _WPAS_MODE_INFRA@GOTPAGE
Lloh4:
	ldr	x23, [x23, _WPAS_MODE_INFRA@GOTPAGEOFF]
	cbz	x22, LBB0_4
; %bb.2:
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x24, sp
Lloh5:
	adrp	x12, _ETH_ALEN@GOTPAGE
Lloh6:
	ldr	x12, [x12, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w1, [x19, #20]
	ldr	w2, [x12]
	mov	x0, x21
	bl	_os_memcpy
	ldp	w3, w2, [x22, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_wpas_p2p_persistent_group
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_p2p_clear_provisioning_info
	mov	sp, x24
LBB0_4:
Lloh9:
	adrp	x21, _wpas_p2p_group_formation_timeout@GOTPAGE
Lloh10:
	ldr	x21, [x21, _wpas_p2p_group_formation_timeout@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x19, #16]
	mov	x2, #0
	bl	_eloop_cancel_timeout
	mov	w8, #1
	str	w8, [x19]
	cbz	x22, LBB0_6
; %bb.5:
	ldr	x8, [x22]
	ldr	x9, [x23]
Lloh11:
	adrp	x10, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x10]
Lloh14:
	adrp	x10, _P2P_MAX_INITIAL_CONN_WAIT_GO@GOTPAGE
Lloh15:
	ldr	x10, [x10, _P2P_MAX_INITIAL_CONN_WAIT_GO@GOTPAGEOFF]
Lloh16:
	adrp	x11, _P2P_MAX_INITIAL_CONN_WAIT@GOTPAGE
Lloh17:
	ldr	x11, [x11, _P2P_MAX_INITIAL_CONN_WAIT@GOTPAGEOFF]
	cmp	x8, x9
	csel	x22, x11, x10, eq
Lloh18:
	adrp	x8, l_.str.2@PAGE
Lloh19:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh20:
	adrp	x9, l_.str.1@PAGE
Lloh21:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x2, x9, x8, eq
	ldr	w3, [x22]
	mov	x0, x19
	bl	_wpa_dbg
	ldr	w0, [x22]
	ldr	w2, [x21]
	ldr	w3, [x19, #16]
	mov	w1, #0
	mov	x4, #0
	bl	_eloop_register_timeout
	str	wzr, [x19]
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x20
	bl	_p2p_wps_success_cb
LBB0_8:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_wpas_group_formation_completed
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.9:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh25:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wpa_printf
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Ignore WPS success event - P2P provisioning not in progress"

	.comm	_WPAS_MODE_INFRA,8,3            ; @WPAS_MODE_INFRA
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_wpas_p2p_group_formation_timeout,4,2 ; @wpas_p2p_group_formation_timeout
l_.str.1:                               ; @.str.1
	.asciz	"P2P: Re-start group formation timeout (%d seconds) as client for initial connection"

	.comm	_P2P_MAX_INITIAL_CONN_WAIT,4,2  ; @P2P_MAX_INITIAL_CONN_WAIT
l_.str.2:                               ; @.str.2
	.asciz	"P2P: Re-start group formation timeout (%d seconds) as GO for initial connection"

	.comm	_P2P_MAX_INITIAL_CONN_WAIT_GO,4,2 ; @P2P_MAX_INITIAL_CONN_WAIT_GO
.subsections_via_symbols
