	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_p2p_get_group_iface
_wpas_p2p_get_group_iface:              ## @wpas_p2p_get_group_iface
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %r14
	callq	_wpas_p2p_create_iface
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.8:
	movq	_WPA_IF_P2P_CLIENT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	cmpq	$0, 48(%r14)
	je	LBB0_2
## %bb.3:
	movq	40(%r14), %rbx
	movq	%r14, 32(%rbx)
	jmp	LBB0_4
LBB0_7:
	movq	_WPA_IF_P2P_GO@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpas_p2p_add_group_interface
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_wpas_p2p_init_group_interface
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rbx
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.14:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rax, 16(%rbx)
	movl	24(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%r14)
LBB0_16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wpa_dbg
	movq	$0, (%rbx)
	jmp	LBB0_17
LBB0_10:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_wpa_msg_global
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_12:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_wpa_msg_global
	movq	%r14, %rdi
	callq	_wpas_p2p_remove_pending_group_interface
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_2:
	movq	%r14, %rbx
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wpa_dbg
	movq	$0, (%rbx)
	movq	32(%rbx), %rsi
	cmpq	%rsi, %rbx
	je	LBB0_17
## %bb.5:
	movq	%rbx, %rdi
	callq	_wpas_p2p_clone_config
LBB0_17:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Use primary interface for group operations"

	.comm	_WPA_IF_P2P_GO,4,2              ## @WPA_IF_P2P_GO
	.comm	_WPA_IF_P2P_CLIENT,4,2          ## @WPA_IF_P2P_CLIENT
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"P2P: Failed to add group interface"

L_.str.2:                               ## @.str.2
	.asciz	"P2P: Failed to initialize group interface"

L_.str.3:                               ## @.str.3
	.asciz	"P2P: Use separate group interface %s"

	.no_dead_strip	_wpas_p2p_get_group_iface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_p2p_get_group_iface
_wpas_p2p_get_group_iface:              ; @wpas_p2p_get_group_iface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x0
	bl	_wpas_p2p_create_iface
	cbz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _WPA_IF_P2P_GO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPA_IF_P2P_GO@GOTPAGEOFF]
Lloh2:
	adrp	x9, _WPA_IF_P2P_CLIENT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WPA_IF_P2P_CLIENT@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpas_p2p_add_group_interface
	tbnz	x0, #63, LBB0_9
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_wpas_p2p_init_group_interface
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.3:
	cbz	w21, LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
	str	x8, [x20, #16]
	ldr	w8, [x19, #24]
	str	w8, [x20, #24]
	str	xzr, [x19, #16]
LBB0_6:
Lloh4:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh7:
	adrp	x2, l_.str.3@PAGE
Lloh8:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wpa_dbg
	str	xzr, [x20]
	b	LBB0_14
LBB0_7:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x20, [x19, #40]
	str	x19, [x20, #32]
	b	LBB0_12
LBB0_9:
Lloh9:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wpa_msg_global
	mov	x20, #0
	b	LBB0_14
LBB0_10:
Lloh14:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_wpa_msg_global
	mov	x0, x19
	bl	_wpas_p2p_remove_pending_group_interface
	b	LBB0_14
LBB0_11:
	mov	x20, x19
LBB0_12:
Lloh19:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wpa_dbg
	str	xzr, [x20]
	ldr	x1, [x20, #32]
	cmp	x20, x1
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_wpas_p2p_clone_config
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Use primary interface for group operations"

	.comm	_WPA_IF_P2P_GO,4,2              ; @WPA_IF_P2P_GO
	.comm	_WPA_IF_P2P_CLIENT,4,2          ; @WPA_IF_P2P_CLIENT
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"P2P: Failed to add group interface"

l_.str.2:                               ; @.str.2
	.asciz	"P2P: Failed to initialize group interface"

l_.str.3:                               ; @.str.3
	.asciz	"P2P: Use separate group interface %s"

	.no_dead_strip	_wpas_p2p_get_group_iface
.subsections_via_symbols
