	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_group_where_peer_is_client
_match_group_where_peer_is_client:      ## @match_group_where_peer_is_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	24(%rsi), %rax
	movl	(%rax), %esi
	callq	_p2p_group_is_client_connected
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_p2p_group_get_config
	movl	16(%r12), %edi
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_wpas_get_p2p_go_iface
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	movq	(%r12), %rdi
	movl	8(%r12), %esi
	incl	%esi
	movl	$8, %edx
	callq	_os_realloc_array
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, (%r12)
	movq	(%r15), %rcx
	movslq	8(%r12), %rdx
	movq	%rcx, (%rax,%rdx,8)
	leal	1(%rdx), %eax
	movl	%eax, 8(%r12)
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_match_group_where_peer_is_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_group_where_peer_is_client
_match_group_where_peer_is_client:      ; @match_group_where_peer_is_client
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #24]
	ldr	w1, [x8]
	bl	_p2p_group_is_client_connected
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_p2p_group_get_config
	ldr	w8, [x19, #16]
	ldp	w2, w1, [x0]
	mov	x0, x8
	bl	_wpas_get_p2p_go_iface
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	x0, [x19]
	ldr	w8, [x19, #8]
	add	w1, w8, #1
	mov	w2, #8
	bl	_os_realloc_array
	cbz	x0, LBB0_6
; %bb.3:
	str	x0, [x19]
	ldr	x8, [x20]
	ldrsw	x9, [x19, #8]
	str	x8, [x0, x9, lsl #3]
	add	w8, w9, #1
	str	w8, [x19, #8]
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_match_group_where_peer_is_client
.subsections_via_symbols
