	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_p2p_join_start
_wpas_p2p_join_start:                   ## @wpas_p2p_join_start
	.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, %r15
	movl	%esi, %r13d
	movq	%rdi, %r12
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_wpas_p2p_get_group_iface
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	cmpq	%r12, %rax
	je	LBB0_4
## %bb.3:
	movq	80(%r14), %rdi
	movq	80(%r12), %rsi
	movl	$8, %edx
	callq	_os_memcpy
	movl	72(%r12), %eax
	movl	%eax, 72(%r14)
LBB0_4:
	cmpq	64(%r12), %r14
	jne	LBB0_6
## %bb.5:
	movq	56(%r12), %rax
	movq	%r14, (%rax)
LBB0_6:
	movl	$1, (%r14)
	movl	48(%r12), %eax
	movl	%eax, 48(%r14)
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_os_memset
	movq	-48(%rbp), %rdi
	movq	40(%r12), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	callq	_os_memcpy
	movq	-56(%rbp), %rdi
	movq	24(%r12), %rsi
	movq	(%rbx), %rdx
	callq	_os_memcpy
	movl	32(%r12), %eax
	movl	%eax, -64(%rbp)
	testl	%r13d, %r13d
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_10
## %bb.7:
	testq	%r15, %r15
	je	LBB0_10
## %bb.8:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	movl	%r13d, -88(%rbp)
	movq	%rbx, -80(%rbp)
	movq	-72(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_os_memcpy
	jmp	LBB0_16
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_20
LBB0_10:
	movq	24(%r12), %rsi
	testq	%r15, %r15
	je	LBB0_14
## %bb.11:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.12:
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_wpa_bss_get
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movq	%rbx, -80(%rbp)
	movq	-72(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_wpa_ssid_txt
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_16
LBB0_14:
	movq	%r12, %rdi
	callq	_wpa_bss_get_bssid_latest
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	movl	(%r13), %eax
	movl	%eax, -88(%rbp)
	movq	8(%r13), %rdx
	movq	%rdx, -80(%rbp)
	movq	-72(%rbp), %rdi
	movq	16(%r13), %rsi
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r13), %r15d
	movq	16(%r13), %rdi
	movq	8(%r13), %rsi
	callq	_wpa_ssid_txt
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_16:
	cmpq	$0, 16(%r12)
	jne	LBB0_18
## %bb.17:
	cmpq	$0, 8(%r12)
	je	LBB0_19
LBB0_18:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r12, %rdi
	callq	_wpa_drv_cancel_remain_on_channel
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
LBB0_19:
	leaq	-88(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wpas_start_wps_enrollee
	movq	_wpas_p2p_group_formation_timeout@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movl	(%r14), %edx
	movl	$60, %edi
	xorl	%esi, %esi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
LBB0_20:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Join target GO operating frequency from BSS table: %d MHz (SSID %s)"

L_.str.1:                               ## @.str.1
	.asciz	"P2P: Join target GO (SSID %s)"

L_.str.2:                               ## @.str.2
	.asciz	"P2P: Cancel remain-on-channel prior to starting client"

	.comm	_wpas_p2p_group_formation_timeout,4,2 ## @wpas_p2p_group_formation_timeout
	.no_dead_strip	_wpas_p2p_join_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_p2p_join_start
_wpas_p2p_join_start:                   ; @wpas_p2p_join_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #0
	bl	_wpas_p2p_get_group_iface
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	cmp	x0, x19
	b.eq	LBB0_3
; %bb.2:
	ldr	x0, [x20, #80]
	ldr	x1, [x19, #80]
	mov	w2, #8
	bl	_os_memcpy
	ldr	w8, [x19, #72]
	str	w8, [x20, #72]
LBB0_3:
	ldr	x8, [x19, #64]
	cmp	x20, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x19, #56]
	str	x20, [x8]
LBB0_5:
	mov	w8, #1
	str	w8, [x20]
	ldr	w8, [x19, #48]
	str	w8, [x20, #48]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_os_memset
	ldr	x0, [sp, #56]
	ldr	x1, [x19, #40]
Lloh0:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldr	x2, [x24]
	bl	_os_memcpy
	ldr	x0, [sp, #48]
	ldr	x1, [x19, #24]
	ldr	x2, [x24]
	bl	_os_memcpy
	ldr	w8, [x19, #32]
	str	w8, [sp, #40]
Lloh2:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	cbz	w23, LBB0_10
; %bb.6:
	cbz	x22, LBB0_10
; %bb.7:
	cbz	x21, LBB0_10
; %bb.8:
	str	w23, [sp, #16]
	str	x21, [sp, #24]
	ldr	x0, [sp, #32]
	mov	x1, x22
	mov	x2, x21
	bl	_os_memcpy
	b	LBB0_17
LBB0_9:
	mov	w0, #-1
	b	LBB0_21
LBB0_10:
	ldr	x1, [x19, #24]
	cbz	x22, LBB0_14
; %bb.11:
	cbz	x21, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_wpa_bss_get
	mov	x23, x0
	cbnz	x0, LBB0_15
; %bb.13:
	str	x21, [sp, #24]
	ldr	x0, [sp, #32]
	mov	x1, x22
	mov	x2, x21
	bl	_os_memcpy
	ldr	w23, [x24]
	mov	x0, x22
	mov	x1, x21
	bl	_wpa_ssid_txt
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	b	LBB0_16
LBB0_14:
	mov	x0, x19
	bl	_wpa_bss_get_bssid_latest
	mov	x23, x0
	cbz	x0, LBB0_17
LBB0_15:
	ldr	w8, [x23]
	str	w8, [sp, #16]
	ldp	x2, x1, [x23, #8]
	str	x2, [sp, #24]
	ldr	x0, [sp, #32]
	bl	_os_memcpy
	ldr	w21, [x24]
	ldp	x1, x0, [x23, #8]
	ldr	w22, [x23]
	bl	_wpa_ssid_txt
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
LBB0_16:
	bl	_wpa_printf
LBB0_17:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_19
; %bb.18:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
LBB0_19:
	ldr	w0, [x24]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_wpa_drv_cancel_remain_on_channel
	stp	xzr, xzr, [x19, #8]
LBB0_20:
	add	x1, sp, #16
	mov	x0, x20
	bl	_wpas_start_wps_enrollee
Lloh10:
	adrp	x20, _wpas_p2p_group_formation_timeout@GOTPAGE
Lloh11:
	ldr	x20, [x20, _wpas_p2p_group_formation_timeout@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	ldr	w2, [x20]
	mov	w0, #60
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
	mov	w0, #0
LBB0_21:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Join target GO operating frequency from BSS table: %d MHz (SSID %s)"

l_.str.1:                               ; @.str.1
	.asciz	"P2P: Join target GO (SSID %s)"

l_.str.2:                               ; @.str.2
	.asciz	"P2P: Cancel remain-on-channel prior to starting client"

	.comm	_wpas_p2p_group_formation_timeout,4,2 ; @wpas_p2p_group_formation_timeout
	.no_dead_strip	_wpas_p2p_join_start
.subsections_via_symbols
