	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_p2p_join_scan_req
_wpas_p2p_join_scan_req:                ## @wpas_p2p_join_scan_req
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	$0, -40(%rbp)
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_os_memset
	movl	$1, -88(%rbp)
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rax
	movq	%r12, 8(%rax)
	movq	%rbx, (%rax)
	movl	64(%r15), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_os_memcpy
	jmp	LBB0_4
LBB0_3:
	movq	_P2P_WILDCARD_SSID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	_P2P_WILDCARD_SSID_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, (%r15)
	movq	56(%r15), %rax
	leaq	4(%rax), %rsi
	movl	$1, 4(%rax)
	movq	_DEV_PW_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %edx
	movq	_WPS_REQ_ENROLLEE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_wps_build_probe_req_ie
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.8:
	jle	LBB0_10
LBB0_9:
	movl	%r14d, -40(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -80(%rbp)
LBB0_10:
	movq	40(%r15), %rax
	movl	(%rax), %edi
	callq	_p2p_scan_ie_buf_len
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_wpabuf_len
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_wpabuf_put_buf
	movq	%r12, %rdi
	callq	_wpabuf_free
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_wpas_get_bands
	movq	40(%r15), %rcx
	movl	(%rcx), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_p2p_scan_ie
	movl	$1, -72(%rbp)
	movq	%r14, %rdi
	callq	_wpabuf_head
	movl	%eax, -56(%rbp)
	movq	%r14, %rdi
	callq	_wpabuf_len
	movq	%rax, -64(%rbp)
	cmpq	$0, 16(%r15)
	je	LBB0_14
## %bb.13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$1, -68(%rbp)
LBB0_14:
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	callq	_wpa_drv_scan
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movq	%r14, %rdi
	callq	_wpabuf_free
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_wpas_p2p_join_scan@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movl	(%rbx), %edx
	movl	$1, %edi
	xorl	%esi, %esi
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	movq	%r15, %rdi
	callq	_wpas_p2p_check_join_scan_limit
	jmp	LBB0_17
LBB0_7:
	movq	40(%r15), %rax
	movl	(%rax), %edi
	movl	48(%r15), %esi
	callq	_p2p_get_oper_freq
	movl	%eax, %r14d
	testl	%eax, %eax
	jg	LBB0_9
	jmp	LBB0_10
LBB0_11:
	movq	%r12, %rdi
	callq	_wpabuf_free
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_wpas_p2p_scan_res_join
	jmp	LBB0_17
LBB0_15:
	leaq	32(%r15), %rdi
	callq	_os_get_reltime
	movq	_wpas_p2p_scan_res_join@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movl	$1, 8(%r15)
	movq	$0, 16(%r15)
	movq	%r14, %rdi
	callq	_wpabuf_free
LBB0_17:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_WILDCARD_SSID,8,3          ## @P2P_WILDCARD_SSID
	.comm	_P2P_WILDCARD_SSID_LEN,8,3      ## @P2P_WILDCARD_SSID_LEN
	.comm	_DEV_PW_DEFAULT,4,2             ## @DEV_PW_DEFAULT
	.comm	_WPS_REQ_ENROLLEE,4,2           ## @WPS_REQ_ENROLLEE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Request driver to clear scan cache due to local BSS flush"

L_.str.1:                               ## @.str.1
	.asciz	"P2P: Failed to start scan for join - try again later"

	.comm	_wpas_p2p_join_scan,4,2         ## @wpas_p2p_join_scan
	.no_dead_strip	_wpas_p2p_join_scan_req
.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_scan_req
_wpas_p2p_join_scan_req:                ; @wpas_p2p_join_scan_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_os_memset
	mov	w8, #1
	str	w8, [sp, #16]
	cbz	x22, LBB0_3
; %bb.1:
	cbz	x21, LBB0_3
; %bb.2:
	ldr	x8, [sp, #56]
	stp	x21, x22, [x8]
	ldr	w0, [x19, #64]
	mov	x1, x22
	mov	x2, x21
	bl	_os_memcpy
	b	LBB0_4
LBB0_3:
	mov	x21, #0
Lloh0:
	adrp	x8, _P2P_WILDCARD_SSID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P2P_WILDCARD_SSID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [sp, #56]
Lloh3:
	adrp	x10, _P2P_WILDCARD_SSID_LEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _P2P_WILDCARD_SSID_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	stp	x10, x8, [x9]
LBB0_4:
	str	x21, [x19]
	ldr	x1, [x19, #56]
	mov	w8, #1
	ldr	w2, [x1]
	str	w8, [x1, #4]!
Lloh6:
	adrp	x8, _DEV_PW_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEV_PW_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _WPS_REQ_ENROLLEE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WPS_REQ_ENROLLEE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	w4, #0
	mov	x5, #0
	bl	_wps_build_probe_req_ie
	cbz	x0, LBB0_15
; %bb.5:
	mov	x21, x0
	cbz	w20, LBB0_13
; %bb.6:
	cmp	w20, #1
	b.lt	LBB0_8
LBB0_7:
	str	w20, [sp, #8]
	add	x8, sp, #8
	str	x8, [sp, #24]
LBB0_8:
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	bl	_p2p_scan_ie_buf_len
	mov	x20, x0
	mov	x0, x21
	bl	_wpabuf_len
	add	x0, x0, x20
	bl	_wpabuf_alloc
	cbz	x0, LBB0_14
; %bb.9:
	mov	x20, x0
	mov	x1, x21
	bl	_wpabuf_put_buf
	mov	x0, x21
	bl	_wpabuf_free
	add	x1, sp, #8
	mov	x0, x19
	bl	_wpas_get_bands
	mov	x3, x0
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, #0
	bl	_p2p_scan_ie
	mov	w22, #1
	str	w22, [sp, #32]
	mov	x0, x20
	bl	_wpabuf_head
	str	w0, [sp, #48]
	mov	x0, x20
	bl	_wpabuf_len
	str	x0, [sp, #40]
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w0, [x21]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	str	w22, [sp, #36]
LBB0_11:
	add	x1, sp, #16
	mov	x0, x19
	bl	_wpa_drv_scan
	cbz	w0, LBB0_16
; %bb.12:
	mov	x0, x20
	bl	_wpabuf_free
	ldr	w0, [x21]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh18:
	adrp	x20, _wpas_p2p_join_scan@GOTPAGE
Lloh19:
	ldr	x20, [x20, _wpas_p2p_join_scan@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	ldr	w2, [x20]
	mov	w0, #1
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
	mov	x0, x19
	bl	_wpas_p2p_check_join_scan_limit
	b	LBB0_17
LBB0_13:
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	ldr	w1, [x19, #48]
	bl	_p2p_get_oper_freq
	mov	x20, x0
	cmp	w0, #0
	b.gt	LBB0_7
	b	LBB0_8
LBB0_14:
	mov	x0, x21
	bl	_wpabuf_free
LBB0_15:
	mov	x0, x19
	mov	x1, #0
	bl	_wpas_p2p_scan_res_join
	b	LBB0_17
LBB0_16:
	add	x0, x19, #32
	bl	_os_get_reltime
Lloh20:
	adrp	x8, _wpas_p2p_scan_res_join@GOTPAGE
Lloh21:
	ldr	x8, [x8, _wpas_p2p_scan_res_join@GOTPAGEOFF]
	mov	w9, #1
	str	w9, [x19, #8]
	stp	xzr, x8, [x19, #16]
	mov	x0, x20
	bl	_wpabuf_free
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_WILDCARD_SSID,8,3          ; @P2P_WILDCARD_SSID
	.comm	_P2P_WILDCARD_SSID_LEN,8,3      ; @P2P_WILDCARD_SSID_LEN
	.comm	_DEV_PW_DEFAULT,4,2             ; @DEV_PW_DEFAULT
	.comm	_WPS_REQ_ENROLLEE,4,2           ; @WPS_REQ_ENROLLEE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Request driver to clear scan cache due to local BSS flush"

l_.str.1:                               ; @.str.1
	.asciz	"P2P: Failed to start scan for join - try again later"

	.comm	_wpas_p2p_join_scan,4,2         ; @wpas_p2p_join_scan
	.no_dead_strip	_wpas_p2p_join_scan_req
.subsections_via_symbols
