	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_p2p_group_add ## -- Begin function wpas_dbus_handler_p2p_group_add
	.p2align	4, 0x90
_wpas_dbus_handler_p2p_group_add:       ## @wpas_dbus_handler_p2p_group_add
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-116(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_dbus_message_iter_init
	xorl	%r12d, %r12d
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wpa_dbus_dict_open_read
	movl	$0, %r13d
	testl	%eax, %eax
	je	LBB0_20
## %bb.1:
	leaq	-52(%rbp), %rdi
	callq	_wpa_dbus_dict_has_dict_entry
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	-52(%rbp), %r14
	leaq	-104(%rbp), %r15
	leaq	L_.str(%rip), %r13
	movq	_DBUS_TYPE_OBJECT_PATH@GOTPCREL(%rip), %rbx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-88(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_wpa_dbus_dict_entry_clear
	movq	%r14, %rdi
	callq	_wpa_dbus_dict_has_dict_entry
	testq	%rax, %rax
	je	LBB0_24
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wpa_dbus_dict_get_entry
	testl	%eax, %eax
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-104(%rbp), %rdi
	movq	%r13, %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rax
	movq	_DBUS_TYPE_BOOLEAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-104(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rax
	movq	_DBUS_TYPE_INT32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-84(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jg	LBB0_4
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-104(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-80(%rbp), %edi
	callq	_os_strdup
	movq	%rax, %r12
	jmp	LBB0_4
LBB0_14:
	movq	16(%r14), %rax
	movq	(%rax), %r14
	xorl	%edx, %edx
	xorl	%esi, %esi
LBB0_15:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_wpas_p2p_group_add
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_19
## %bb.31:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_17:
	leaq	-104(%rbp), %rdi
	callq	_wpa_dbus_dict_entry_clear
	xorl	%r13d, %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_18:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_19:
	xorl	%r13d, %r13d
LBB0_20:
	movq	%r15, %rdi
	xorl	%esi, %esi
LBB0_21:
	callq	_wpas_dbus_error_invalid_args
LBB0_22:
	movq	%rax, %rbx
LBB0_23:
	movq	%r12, %rdi
	callq	_os_free
	movq	%r13, %rdi
	callq	_os_free
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax), %r14
	testq	%r12, %r12
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_32
## %bb.25:
	movq	_WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	callq	_wpas_dbus_new_decompose_object_path
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_30
## %bb.26:
	cmpq	$0, -72(%rbp)
	je	LBB0_30
## %bb.27:
	movq	8(%r14), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.28:
	movq	%r13, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoul
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_33
LBB0_30:
	movq	%r15, %rdi
	movq	%r12, %rsi
	jmp	LBB0_21
LBB0_32:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_15
LBB0_33:
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_wpa_config_get_network
	testq	%rax, %rax
	je	LBB0_20
## %bb.34:
	cmpl	$2, (%rax)
	jne	LBB0_20
## %bb.35:
	subq	$8, %rsp
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_wpas_p2p_group_add_persistent
	addq	$64, %rsp
	testq	%rax, %rax
	je	LBB0_23
## %bb.36:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_wpas_dbus_error_unknown_error
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"persistent"

	.comm	_DBUS_TYPE_BOOLEAN,8,3          ## @DBUS_TYPE_BOOLEAN
L_.str.1:                               ## @.str.1
	.asciz	"frequency"

	.comm	_DBUS_TYPE_INT32,8,3            ## @DBUS_TYPE_INT32
L_.str.2:                               ## @.str.2
	.asciz	"persistent_group_object"

	.comm	_DBUS_TYPE_OBJECT_PATH,8,3      ## @DBUS_TYPE_OBJECT_PATH
	.comm	_WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART,4,2 ## @WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Failed to reinvoke a persistent group"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_p2p_group_add ; -- Begin function wpas_dbus_handler_p2p_group_add
	.p2align	2
_wpas_dbus_handler_p2p_group_add:       ; @wpas_dbus_handler_p2p_group_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x22, x1
	mov	x19, x0
	add	x1, sp, #72
	bl	_dbus_message_iter_init
	add	x0, sp, #72
	add	x1, sp, #76
	mov	x2, #0
	bl	_wpa_dbus_dict_open_read
	cbz	w0, LBB0_16
; %bb.1:
	add	x0, sp, #76
	bl	_wpa_dbus_dict_has_dict_entry
	mov	w21, #0
	mov	w23, #0
	cbz	x0, LBB0_14
; %bb.2:
	mov	x20, #0
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
Lloh2:
	adrp	x27, _DBUS_TYPE_BOOLEAN@GOTPAGE
Lloh3:
	ldr	x27, [x27, _DBUS_TYPE_BOOLEAN@GOTPAGEOFF]
Lloh4:
	adrp	x25, l_.str.1@PAGE
Lloh5:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh6:
	adrp	x28, _DBUS_TYPE_OBJECT_PATH@GOTPAGE
Lloh7:
	ldr	x28, [x28, _DBUS_TYPE_OBJECT_PATH@GOTPAGEOFF]
Lloh8:
	adrp	x26, l_.str.2@PAGE
Lloh9:
	add	x26, x26, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w23, [sp, #56]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #40
	bl	_wpa_dbus_dict_entry_clear
	add	x0, sp, #76
	bl	_wpa_dbus_dict_has_dict_entry
	cbz	x0, LBB0_23
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #76
	add	x1, sp, #40
	bl	_wpa_dbus_dict_get_entry
	cbz	w0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #40]
	mov	x1, x24
	bl	_os_strcmp
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #48]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #40]
	mov	x1, x25
	bl	_os_strcmp
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #48]
Lloh10:
	adrp	x9, _DBUS_TYPE_INT32@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DBUS_TYPE_INT32@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w21, [sp, #60]
	cmp	w21, #1
	b.ge	LBB0_4
	b	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #40]
	mov	x1, x26
	bl	_os_strcmp
	cbnz	x0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #48]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #64]
	bl	_os_strdup
	mov	x20, x0
	b	LBB0_4
LBB0_14:
	ldr	x8, [x22, #16]
	ldr	x24, [x8]
LBB0_15:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x21
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_wpas_p2p_group_add
	cbz	x0, LBB0_29
LBB0_16:
	mov	x20, #0
	b	LBB0_18
LBB0_17:
	add	x0, sp, #40
	bl	_wpa_dbus_dict_entry_clear
LBB0_18:
	mov	x22, #0
LBB0_19:
	mov	x0, x19
	mov	x1, #0
LBB0_20:
	bl	_wpas_dbus_error_invalid_args
LBB0_21:
	mov	x19, x0
LBB0_22:
	mov	x0, x20
	bl	_os_free
	mov	x0, x22
	bl	_os_free
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_23:
	ldr	x8, [x22, #16]
	ldr	x24, [x8]
	cbz	x20, LBB0_15
; %bb.24:
Lloh13:
	adrp	x8, _WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x20
	bl	_wpas_dbus_new_decompose_object_path
	mov	x22, x0
	ldr	x8, [sp, #32]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_28
; %bb.25:
	ldr	x8, [x24, #8]
	ldr	x1, [x8]
	cbz	x1, LBB0_28
; %bb.26:
	mov	x0, x22
	bl	_os_strcmp
	cbnz	x0, LBB0_28
; %bb.27:
	ldr	x0, [sp, #32]
	mov	x1, #0
	mov	w2, #10
	bl	_strtoul
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _EINVAL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_30
LBB0_28:
	mov	x0, x19
	mov	x1, x20
	b	LBB0_20
LBB0_29:
	mov	x19, #0
	mov	x20, #0
	mov	x22, #0
	b	LBB0_22
LBB0_30:
	mov	x1, x0
	ldr	w0, [x24]
	bl	_wpa_config_get_network
	cbz	x0, LBB0_19
; %bb.31:
	mov	x1, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_19
; %bb.32:
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	mov	x0, x24
	mov	w2, #0
	mov	x3, x21
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_wpas_p2p_group_add_persistent
	cbz	x0, LBB0_34
; %bb.33:
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wpas_dbus_error_unknown_error
	b	LBB0_21
LBB0_34:
	mov	x19, #0
	b	LBB0_22
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"persistent"

	.comm	_DBUS_TYPE_BOOLEAN,8,3          ; @DBUS_TYPE_BOOLEAN
l_.str.1:                               ; @.str.1
	.asciz	"frequency"

	.comm	_DBUS_TYPE_INT32,8,3            ; @DBUS_TYPE_INT32
l_.str.2:                               ; @.str.2
	.asciz	"persistent_group_object"

	.comm	_DBUS_TYPE_OBJECT_PATH,8,3      ; @DBUS_TYPE_OBJECT_PATH
	.comm	_WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART,4,2 ; @WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Failed to reinvoke a persistent group"

.subsections_via_symbols
