	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_p2p_add_persistent_group_client
_wpas_p2p_add_persistent_group_client:  ## @wpas_p2p_add_persistent_group_client
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_27
## %bb.1:
	movq	(%r14), %rax
	movq	_WPAS_MODE_P2P_GO@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_27
## %bb.2:
	cmpl	$0, 56(%r14)
	je	LBB0_27
## %bb.3:
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_27
## %bb.4:
	movq	%rsi, %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	48(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_27
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, 8(%rbx)
	jne	LBB0_26
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_26
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rdx
	cmpq	16(%r14), %rdx
	jne	LBB0_26
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%rbx), %rdi
	movq	40(%r14), %rsi
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_26
## %bb.9:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.10:
	movl	$1, %r13d
	movl	$2, %r14d
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	-1(%r13), %rax
	cmpq	24(%rbx), %rax
	jae	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-2(%r14), %r15
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, %rax
	imulq	%r15, %rax
	leaq	(%rdi,%rax,4), %rdi
	movq	%r12, %rsi
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	32(%rbx), %rdi
	incq	%r13
	addq	$2, %r14
	testq	%rdi, %rdi
	jne	LBB0_11
LBB0_16:
	xorl	%edi, %edi
LBB0_17:
	movq	24(%rbx), %rsi
	movq	_P2P_MAX_STORED_CLIENTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rsi
	jae	LBB0_20
## %bb.18:
	incl	%esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	addl	%edx, %edx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_os_realloc_array
	testq	%rax, %rax
	je	LBB0_27
## %bb.19:
	movq	%rax, %r14
	movq	(%r13), %rdx
	movq	24(%rbx), %rax
	imulq	%rdx, %rax
	leaq	(%r14,%rax,8), %rdi
	movq	%r12, %rsi
	callq	_os_memcpy
	movq	(%r13), %rdx
	movq	24(%rbx), %rax
	imulq	%rdx, %rax
	leaq	(%r14,%rax,8), %rax
	leaq	(%rax,%rdx,4), %rdi
	movl	$255, %esi
	callq	_os_memset
	movq	%r14, 32(%rbx)
	incq	24(%rbx)
	jmp	LBB0_23
LBB0_20:
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.21:
	movq	_ETH_ALEN@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	leaq	(%rdi,%rdx,8), %rax
	leal	(%rsi,%rsi), %ecx
	addl	$-2, %ecx
	imull	%ecx, %edx
	movq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memmove
	movq	24(%rbx), %rax
	leaq	(%rax,%rax), %rdi
	addq	$-2, %rdi
	jmp	LBB0_22
LBB0_13:
	movq	24(%rbx), %rax
	cmpq	%r13, %rax
	je	LBB0_27
## %bb.14:
	movq	32(%rbx), %rcx
	movq	_ETH_ALEN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	imulq	%rdx, %r15
	leaq	(%rcx,%r15,4), %rdi
	imulq	%rdx, %r14
	leaq	(%rcx,%r14,4), %rsi
	subl	%r13d, %eax
	imull	%eax, %edx
	addl	%edx, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memmove
	movq	24(%rbx), %rax
	leaq	(%rax,%rax), %rdi
	addq	$-2, %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r14
LBB0_22:
	movq	(%r14), %rdx
	imulq	%rdx, %rdi
	shlq	$2, %rdi
	addq	32(%rbx), %rdi
	movq	%r12, %rsi
	callq	_os_memcpy
	movq	24(%rbx), %rax
	addq	%rax, %rax
	addq	$-2, %rax
	movq	(%r14), %rdx
	imulq	%rdx, %rax
	shlq	$2, %rax
	addq	32(%rbx), %rax
	leaq	(%rax,%rdx,4), %rdi
	movl	$255, %esi
	callq	_os_memset
LBB0_23:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_27
## %bb.24:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_wpa_config_write
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPAS_MODE_P2P_GO,8,3           ## @WPAS_MODE_P2P_GO
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_P2P_MAX_STORED_CLIENTS,4,2     ## @P2P_MAX_STORED_CLIENTS
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Failed to update configuration"

	.no_dead_strip	_wpas_p2p_add_persistent_group_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_p2p_add_persistent_group_client
_wpas_p2p_add_persistent_group_client:  ; @wpas_p2p_add_persistent_group_client
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_26
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x23, _WPAS_MODE_P2P_GO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WPAS_MODE_P2P_GO@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.2:
	ldr	w8, [x20, #56]
	cbz	w8, LBB0_26
; %bb.3:
	ldr	x8, [x0, #24]
	ldr	x21, [x8]
	ldr	x8, [x21]
	ldr	x22, [x8, #8]
	cbz	x22, LBB0_26
; %bb.4:
	mov	x19, x1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x22, [x22, #48]
	cbz	x22, LBB0_26
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22, #8]
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x22, #16]
	ldr	x8, [x20, #16]
	cmp	x2, x8
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x22, #40]
	ldr	x1, [x20, #40]
	bl	_os_memcmp
	cbnz	x0, LBB0_5
; %bb.10:
	ldr	x0, [x22, #32]
Lloh2:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	cbz	x0, LBB0_15
; %bb.11:
	mov	w20, #1
	mov	w24, #2
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sub	x8, x20, #1
	ldr	x9, [x22, #24]
	cmp	x8, x9
	b.hs	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	x25, x24, #2
	ldr	x2, [x23]
	mul	x8, x2, x25
	add	x0, x0, x8, lsl #2
	mov	x1, x19
	bl	_os_memcmp
	cbz	x0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x22, #32]
	add	x20, x20, #1
	add	x24, x24, #2
	cbnz	x0, LBB0_12
LBB0_15:
	ldr	x8, [x22, #24]
Lloh4:
	adrp	x9, _P2P_MAX_STORED_CLIENTS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _P2P_MAX_STORED_CLIENTS@GOTPAGEOFF]
Lloh6:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_18
; %bb.16:
	add	w1, w8, #1
	ldr	w8, [x23]
	lsl	w2, w8, #1
	bl	_os_realloc_array
	cbz	x0, LBB0_26
; %bb.17:
	mov	x20, x0
	ldr	x8, [x22, #24]
	ldr	x2, [x23]
	mul	x8, x8, x2
	add	x0, x0, x8, lsl #3
	mov	x1, x19
	bl	_os_memcpy
	ldr	x8, [x22, #24]
	ldr	x2, [x23]
	mul	x8, x8, x2
	add	x8, x20, x8, lsl #3
	add	x0, x8, x2, lsl #2
	mov	w1, #255
	bl	_os_memset
	ldr	x8, [x22, #24]
	add	x8, x8, #1
	stp	x8, x20, [x22, #24]
	b	LBB0_23
LBB0_18:
	cbz	x0, LBB0_23
; %bb.19:
	ldr	x9, [x23]
	add	x1, x0, x9, lsl #3
	lsl	w8, w8, #1
	sub	w8, w8, #2
	mul	w2, w9, w8
	b	LBB0_22
LBB0_20:
	ldr	x8, [x22, #24]
	cmp	x8, x20
	b.eq	LBB0_26
; %bb.21:
	ldr	x9, [x22, #32]
	ldr	x10, [x23]
	mul	x11, x10, x25
	add	x0, x9, x11, lsl #2
	mul	x11, x10, x24
	add	x1, x9, x11, lsl #2
	sub	w8, w8, w20
	mul	w8, w8, w10
	lsl	w2, w8, #1
LBB0_22:
	bl	_os_memmove
	ldp	x9, x8, [x22, #24]
	lsl	x9, x9, #1
	sub	x9, x9, #2
	ldr	x2, [x23]
	mul	x9, x9, x2
	add	x0, x8, x9, lsl #2
	mov	x1, x19
	bl	_os_memcpy
	ldp	x9, x8, [x22, #24]
	lsl	x9, x9, #1
	sub	x9, x9, #2
	ldr	x2, [x23]
	mul	x9, x9, x2
	add	x8, x8, x9, lsl #2
	add	x0, x8, x2, lsl #2
	mov	w1, #255
	bl	_os_memset
LBB0_23:
	ldr	x1, [x21]
	ldr	x8, [x1]
	cbz	x8, LBB0_26
; %bb.24:
	ldr	w0, [x21, #8]
	bl	_wpa_config_write
	cbz	x0, LBB0_26
; %bb.25:
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wpa_printf
LBB0_26:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WPAS_MODE_P2P_GO,8,3           ; @WPAS_MODE_P2P_GO
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_P2P_MAX_STORED_CLIENTS,4,2     ; @P2P_MAX_STORED_CLIENTS
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Failed to update configuration"

	.no_dead_strip	_wpas_p2p_add_persistent_group_client
.subsections_via_symbols
