	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_remove_stale_groups
_wpas_remove_stale_groups:              ## @wpas_remove_stale_groups
	.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	%r8, %r13
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	%rsi, %rbx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_wpas_p2p_get_persistent
	movq	%rax, %r15
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_17
## %bb.1:
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	setne	%al
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	setne	%cl
	andb	%al, %cl
	testq	%r13, %r13
	setne	%al
	andb	%cl, %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movb	$1, %r12b
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r15), %ecx
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rdx
	callq	_wpa_dbg
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wpas_notify_persistent_group_removed
	movl	(%r14), %edi
	movl	32(%r15), %esi
	callq	_wpa_config_remove_network
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_wpas_p2p_get_persistent
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, (%r15)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r15), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r15), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_15
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	_WPAS_MODE_P2P_GO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, 16(%r15)
	jl	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$2, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-2(%r14), %r13
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, %rdi
	imulq	%r13, %rdi
	shlq	$2, %rdi
	addq	24(%r15), %rdi
	movq	%rbx, %rsi
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%r12
	movslq	16(%r15), %rax
	addq	$2, %r14
	cmpq	%rax, %r12
	jb	LBB0_9
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r15), %rax
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	imulq	%rcx, %r13
	leaq	(%rax,%r13,4), %rdi
	imulq	%rcx, %r14
	leaq	(%rax,%r14,4), %rsi
	movslq	16(%r15), %rax
	notq	%r12
	addq	%rax, %r12
	imulq	%rcx, %r12
	addq	%r12, %r12
	movq	%r12, %rdx
	callq	_os_memmove
	movl	16(%r15), %eax
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	decl	%eax
	movl	%eax, 16(%r15)
	jmp	LBB0_12
LBB0_15:
	movl	$1, %eax
	testb	$1, %r12b
	movl	$1, %r12d
	jne	LBB0_17
LBB0_16:
	movq	%r14, %rdi
	callq	_p2p_config_write
	movl	%r12d, %eax
LBB0_17:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_WPAS_MODE_P2P_GO,8,3           ## @WPAS_MODE_P2P_GO
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Remove stale persistent group id=%d"

	.no_dead_strip	_wpas_remove_stale_groups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_remove_stale_groups
_wpas_remove_stale_groups:              ; @wpas_remove_stale_groups
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x21, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	mov	x2, #0
	mov	w3, #0
	bl	_wpas_p2p_get_persistent
	cbz	x0, LBB0_17
; %bb.1:
	mov	x25, x0
	cmp	x24, #0
	str	x21, [sp]                       ; 8-byte Folded Spill
	ccmp	x21, #0, #4, ne
	ccmp	x20, #0, #4, ne
	cset	w26, ne
	mov	w22, #1
Lloh0:
	adrp	x27, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	adrp	x21, _WPAS_MODE_P2P_GO@GOTPAGE
Lloh3:
	ldr	x21, [x21, _WPAS_MODE_P2P_GO@GOTPAGEOFF]
Lloh4:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x28]
	ldr	w3, [x25, #32]
	mov	x0, x19
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_wpa_dbg
	mov	x0, x19
	mov	x1, x25
	bl	_wpas_notify_persistent_group_removed
	ldr	w0, [x19]
	ldr	w1, [x25, #32]
	bl	_wpa_config_remove_network
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	x2, #0
	mov	w3, #0
	bl	_wpas_p2p_get_persistent
	mov	x25, x0
	mov	w22, #0
	cbz	x0, LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cbz	w26, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	cmp	x8, x20
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x25, #48]
	ldr	x2, [x27]
	mov	x0, x24
	bl	_os_memcmp
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x25, #40]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x2, x20
	bl	_os_memcmp
	cbz	x0, LBB0_19
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25, #16]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x20
	mov	x20, x21
	mov	x28, x24
	mov	x22, #0
	mov	w21, #2
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, #24]
	sub	x24, x21, #2
	ldr	x2, [x27]
	mul	x9, x2, x24
	add	x0, x8, x9, lsl #2
	mov	x1, x23
	bl	_os_memcmp
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x22, x22, #1
	ldrsw	x8, [x25, #16]
	add	x21, x21, #2
	cmp	x22, x8
	b.lo	LBB0_11
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #24]
	ldr	x9, [x27]
	mul	x10, x9, x24
	add	x0, x8, x10, lsl #2
	mul	x10, x9, x21
	add	x1, x8, x10, lsl #2
	ldrsw	x8, [x25, #16]
	mvn	x10, x22
	add	x8, x10, x8
	mul	x8, x9, x8
	lsl	x2, x8, #1
	bl	_os_memmove
	ldr	w8, [x25, #16]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x28
	mov	x21, x20
	mov	x20, x26
	ldr	w26, [sp, #12]                  ; 4-byte Folded Reload
Lloh8:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	sub	w8, w8, #1
	str	w8, [x25, #16]
	b	LBB0_3
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	x0, x19
	bl	_p2p_config_write
	b	LBB0_18
LBB0_17:
	mov	w20, #0
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	mov	w20, #1
	tbz	w22, #0, LBB0_16
	b	LBB0_18
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_WPAS_MODE_P2P_GO,8,3           ; @WPAS_MODE_P2P_GO
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Remove stale persistent group id=%d"

	.no_dead_strip	_wpas_remove_stale_groups
.subsections_via_symbols
