	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_getter_p2p_peer_groups ## -- Begin function wpas_dbus_getter_p2p_peer_groups
	.p2align	4, 0x90
_wpas_dbus_getter_p2p_peer_groups:      ## @wpas_dbus_getter_p2p_peer_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movq	(%rcx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	8(%rcx), %esi
	xorl	%edx, %edx
	callq	_p2p_get_peer_found
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_os_memset
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	movl	(%r13), %esi
	callq	_wpas_get_p2p_client_iface
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r15
	movl	$1, %edi
	movl	$8, %esi
	callq	_os_calloc
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	8(%r15), %ecx
	movl	%ecx, (%rax)
	movl	$1, -88(%rbp)
LBB0_5:
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)
	movq	%r13, -64(%rbp)
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_match_group_where_peer_is_client@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	callq	_p2p_loop_on_all_groups
	cmpq	$0, -72(%rbp)
	je	LBB0_6
LBB0_9:
	movq	_DBUS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_dbus_set_error_const
	jmp	LBB0_10
LBB0_1:
	movq	_DBUS_ERROR_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_dbus_set_error
	movl	(%r15), %r12d
	jmp	LBB0_11
LBB0_6:
	movq	-80(%rbp), %rdx
	movq	_DBUS_TYPE_OBJECT_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.8:
	movl	-88(%rbp), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_wpas_dbus_simple_array_property_getter
	movl	%eax, %r12d
LBB0_10:
	movq	-80(%rbp), %rdi
	callq	_os_free
LBB0_11:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_wpas_dbus_simple_array_property_getter
	movl	%eax, %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_DBUS_ERROR_FAILED,4,2          ## @DBUS_ERROR_FAILED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find peer"

	.comm	_match_group_where_peer_is_client,4,2 ## @match_group_where_peer_is_client
	.comm	_DBUS_TYPE_OBJECT_PATH,4,2      ## @DBUS_TYPE_OBJECT_PATH
	.comm	_DBUS_ERROR_NO_MEMORY,4,2       ## @DBUS_ERROR_NO_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"no memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_getter_p2p_peer_groups ; -- Begin function wpas_dbus_getter_p2p_peer_groups
	.p2align	2
_wpas_dbus_getter_p2p_peer_groups:      ; @wpas_dbus_getter_p2p_peer_groups
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
Lloh0:
	adrp	x24, _FALSE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
	ldr	w20, [x24]
	ldr	x8, [x3]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w1, [x3, #8]
	mov	w2, #0
	bl	_p2p_get_peer_found
	cbz	x0, LBB0_6
; %bb.1:
	mov	x23, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_os_memset
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	ldr	w1, [x23]
	bl	_wpas_get_p2p_client_iface
	cbz	x0, LBB0_4
; %bb.2:
	mov	x24, x0
	mov	w25, #1
	mov	w0, #1
	mov	w1, #8
	bl	_os_calloc
	str	x0, [sp, #16]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x24, #8]
	str	w8, [x0]
	str	w25, [sp, #8]
LBB0_4:
	ldr	x8, [x22]
	stp	x23, x8, [sp, #32]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _match_group_where_peer_is_client@GOTPAGE
Lloh3:
	ldr	x8, [x8, _match_group_where_peer_is_client@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_p2p_loop_on_all_groups
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _DBUS_ERROR_NO_MEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DBUS_ERROR_NO_MEMORY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dbus_set_error_const
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _DBUS_ERROR_FAILED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DBUS_ERROR_FAILED@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dbus_set_error
	ldr	w20, [x24]
	b	LBB0_10
LBB0_7:
	ldr	x2, [sp, #16]
Lloh15:
	adrp	x8, _DBUS_TYPE_OBJECT_PATH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DBUS_TYPE_OBJECT_PATH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	cbz	x2, LBB0_11
; %bb.8:
	ldr	w3, [sp, #8]
	mov	x0, x21
	mov	x4, x19
	bl	_wpas_dbus_simple_array_property_getter
	mov	x20, x0
LBB0_9:
	ldr	x0, [sp, #16]
	bl	_os_free
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	mov	x0, x21
	mov	w3, #0
	mov	x4, x19
	bl	_wpas_dbus_simple_array_property_getter
	mov	x20, x0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_DBUS_ERROR_FAILED,4,2          ; @DBUS_ERROR_FAILED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find peer"

	.comm	_match_group_where_peer_is_client,4,2 ; @match_group_where_peer_is_client
	.comm	_DBUS_TYPE_OBJECT_PATH,4,2      ; @DBUS_TYPE_OBJECT_PATH
	.comm	_DBUS_ERROR_NO_MEMORY,4,2       ; @DBUS_ERROR_NO_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"no memory"

.subsections_via_symbols
