	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_p2p_invite   ## -- Begin function wpas_dbus_handler_p2p_invite
	.p2align	4, 0x90
_wpas_dbus_handler_p2p_invite:          ## @wpas_dbus_handler_p2p_invite
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -72(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_wpa_dbus_p2p_check_enabled
	testl	%eax, %eax
	je	LBB0_30
## %bb.1:
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	leaq	-148(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dbus_message_iter_init
	xorl	%r13d, %r13d
	leaq	-76(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wpa_dbus_dict_open_read
	movl	$0, %ebx
	movl	$0, %r14d
	testl	%eax, %eax
	je	LBB0_26
## %bb.2:
	leaq	-76(%rbp), %rdi
	callq	_wpa_dbus_dict_has_dict_entry
	testq	%rax, %rax
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.3:
	leaq	-76(%rbp), %r14
	leaq	-136(%rbp), %r15
	leaq	L_.str(%rip), %r12
	movq	_DBUS_TYPE_OBJECT_PATH@GOTPCREL(%rip), %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	-120(%rbp), %edi
	callq	_os_strdup
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 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_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wpa_dbus_dict_get_entry
	testl	%eax, %eax
	je	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-136(%rbp), %rdi
	movq	%r12, %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-128(%rbp), %rax
	cmpq	(%rbx), %rax
	je	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-136(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-128(%rbp), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-120(%rbp), %edi
	callq	_os_strdup
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	jmp	LBB0_5
LBB0_12:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_13:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_parse_peer_object_path
	testq	%rax, %rax
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	js	LBB0_24
## %bb.14:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	-144(%rbp), %r14                ## 8-byte Reload
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	movq	%rbx, %rsi
	callq	_p2p_peer_known
	testl	%eax, %eax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_32
## %bb.15:
	movq	16(%r14), %rax
	movq	(%rax), %rbx
	testl	%r13d, %r13d
	je	LBB0_33
## %bb.16:
	movq	_WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-112(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_wpas_dbus_new_decompose_object_path
	movq	%rax, %r13
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_21
## %bb.17:
	cmpq	$0, -112(%rbp)
	je	LBB0_21
## %bb.18:
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.19:
	movq	%r13, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	-112(%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_36
LBB0_21:
	movq	%r12, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	jmp	LBB0_27
LBB0_22:
	leaq	-136(%rbp), %rdi
	callq	_wpa_dbus_dict_entry_clear
LBB0_23:
	xorl	%r13d, %r13d
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_24:
	xorl	%r13d, %r13d
	movq	-88(%rbp), %r15                 ## 8-byte Reload
LBB0_25:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_26:
	movq	%r12, %rdi
	xorl	%esi, %esi
LBB0_27:
	callq	_wpas_dbus_error_invalid_args
LBB0_28:
	movq	%rax, -72(%rbp)
LBB0_29:
	movq	%r13, %rdi
	callq	_os_free
	movq	%rbx, %rdi
	callq	_os_free
	movq	%r14, %rdi
	callq	_os_free
LBB0_30:
	movq	-72(%rbp), %rax
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_40
## %bb.31:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_26
LBB0_33:
	movl	(%rbx), %esi
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_wpas_p2p_invite_group
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_35
## %bb.34:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_wpas_dbus_error_unknown_error
	movq	%rax, -72(%rbp)
	xorl	%r13d, %r13d
LBB0_35:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_36:
	movl	4(%rbx), %edi
	movl	%eax, %esi
	callq	_wpa_config_get_network
	testq	%rax, %rax
	je	LBB0_25
## %bb.37:
	cmpl	$2, (%rax)
	jne	LBB0_25
## %bb.38:
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_wpas_p2p_invite
	addq	$48, %rsp
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jns	LBB0_29
## %bb.39:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_wpas_dbus_error_unknown_error
	jmp	LBB0_28
LBB0_40:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"peer"

	.comm	_DBUS_TYPE_OBJECT_PATH,8,3      ## @DBUS_TYPE_OBJECT_PATH
L_.str.1:                               ## @.str.1
	.asciz	"persistent_group_object"

	.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.2:                               ## @.str.2
	.asciz	"Failed to reinvoke a persistent group"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to join to an active group"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_p2p_invite   ; -- Begin function wpas_dbus_handler_p2p_invite
	.p2align	2
_wpas_dbus_handler_p2p_invite:          ; @wpas_dbus_handler_p2p_invite
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #64
	mov	x23, x1
	mov	x19, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	xzr, [x29, #-104]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	sub	x2, x29, #104
	mov	x0, x1
	mov	x1, x19
	mov	x3, #0
	bl	_wpa_dbus_p2p_check_enabled
	cbz	w0, LBB0_29
; %bb.1:
	sub	x1, x29, #108
	mov	x0, x19
	bl	_dbus_message_iter_init
	sub	x0, x29, #108
	sub	x1, x29, #92
	mov	x2, #0
	bl	_wpa_dbus_dict_open_read
	cbz	w0, LBB0_12
; %bb.2:
	sub	x0, x29, #92
	bl	_wpa_dbus_dict_has_dict_entry
	cbz	x0, LBB0_13
; %bb.3:
	mov	w27, #0
	mov	x20, #0
	mov	x21, #0
Lloh8:
	adrp	x24, l_.str@PAGE
Lloh9:
	add	x24, x24, l_.str@PAGEOFF
Lloh10:
	adrp	x28, _DBUS_TYPE_OBJECT_PATH@GOTPAGE
Lloh11:
	ldr	x28, [x28, _DBUS_TYPE_OBJECT_PATH@GOTPAGEOFF]
Lloh12:
	adrp	x25, l_.str.1@PAGE
Lloh13:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldur	w0, [x29, #-120]
	bl	_os_strdup
	mov	x20, x0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x0, x29, #136
	bl	_wpa_dbus_dict_entry_clear
	sub	x0, x29, #92
	bl	_wpa_dbus_dict_has_dict_entry
	cbz	x0, LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #92
	sub	x1, x29, #136
	bl	_wpa_dbus_dict_get_entry
	cbz	w0, LBB0_24
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x0, [x29, #-136]
	mov	x1, x24
	bl	_os_strcmp
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x8, [x29, #-128]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldur	x0, [x29, #-136]
	mov	x1, x25
	bl	_os_strcmp
	cbnz	x0, LBB0_23
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldur	x8, [x29, #-128]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldur	w0, [x29, #-120]
	bl	_os_strdup
	mov	x21, x0
	mov	w27, #1
	b	LBB0_5
LBB0_12:
	mov	x21, #0
	mov	x23, #0
	mov	x20, #0
	b	LBB0_25
LBB0_13:
	mov	x21, #0
	mov	x20, #0
	mov	w27, #0
LBB0_14:
	mov	x0, x20
	mov	x1, x22
	bl	_parse_peer_object_path
	tbnz	x0, #63, LBB0_24
; %bb.15:
	ldr	x8, [x23, #16]
	ldr	w0, [x8, #8]
	mov	x1, x22
	bl	_p2p_peer_known
	cbz	w0, LBB0_24
; %bb.16:
	ldr	x8, [x23, #16]
	ldr	x24, [x8]
	cbz	w27, LBB0_31
; %bb.17:
Lloh14:
	adrp	x8, _WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	sub	x2, x29, #144
	mov	x0, x21
	bl	_wpas_dbus_new_decompose_object_path
	mov	x23, x0
	cbz	x0, LBB0_22
; %bb.18:
	ldur	x8, [x29, #-144]
	cbz	x8, LBB0_22
; %bb.19:
	ldr	x8, [x24, #8]
	ldr	x1, [x8]
	cbz	x1, LBB0_22
; %bb.20:
	mov	x0, x23
	bl	_os_strcmp
	cbnz	x0, LBB0_22
; %bb.21:
	ldur	x0, [x29, #-144]
	mov	x1, #0
	mov	w2, #10
	bl	_strtoul
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _EINVAL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_34
LBB0_22:
	mov	x0, x19
	mov	x1, x21
	b	LBB0_26
LBB0_23:
	sub	x0, x29, #136
	bl	_wpa_dbus_dict_entry_clear
LBB0_24:
	mov	x23, #0
LBB0_25:
	mov	x0, x19
	mov	x1, #0
LBB0_26:
	bl	_wpas_dbus_error_invalid_args
LBB0_27:
	stur	x0, [x29, #-104]
LBB0_28:
	mov	x0, x23
	bl	_os_free
	mov	x0, x21
	bl	_os_free
	mov	x0, x20
	bl	_os_free
LBB0_29:
	ldur	x0, [x29, #-104]
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.30:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	ldr	w1, [x24]
	mov	x0, x24
	mov	x2, x22
	mov	x3, #0
	bl	_wpas_p2p_invite_group
	cbz	x0, LBB0_33
; %bb.32:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wpas_dbus_error_unknown_error
	mov	x23, #0
	b	LBB0_27
LBB0_33:
	mov	x23, #0
	b	LBB0_28
LBB0_34:
	mov	x1, x0
	ldr	w0, [x24, #4]
	bl	_wpa_config_get_network
	cbz	x0, LBB0_25
; %bb.35:
	mov	x2, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_25
; %bb.36:
	sub	sp, sp, #16
	str	wzr, [sp, #8]
	str	xzr, [sp]
	mov	x0, x24
	mov	x1, x22
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_wpas_p2p_invite
	add	sp, sp, #16
	tbz	x0, #63, LBB0_28
; %bb.37:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_wpas_dbus_error_unknown_error
	b	LBB0_27
LBB0_38:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"peer"

	.comm	_DBUS_TYPE_OBJECT_PATH,8,3      ; @DBUS_TYPE_OBJECT_PATH
l_.str.1:                               ; @.str.1
	.asciz	"persistent_group_object"

	.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.2:                               ; @.str.2
	.asciz	"Failed to reinvoke a persistent group"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to join to an active group"

.subsections_via_symbols
