	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_p2p_trigger_scan_cb
_wpas_p2p_trigger_scan_cb:              ## @wpas_p2p_trigger_scan_cb
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	16(%rdi), %r14
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$0, 8(%rbx)
	je	LBB0_8
## %bb.2:
	movq	$0, 8(%r14)
	jmp	LBB0_7
LBB0_3:
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$1, (%r15)
LBB0_5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wpa_drv_scan
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_wpa_scan_free_params
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_radio_work_done
	movq	32(%r14), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_p2p_notify_scan_trigger_status ## TAILCALL
LBB0_8:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_scan_free_params           ## TAILCALL
LBB0_6:
	movl	4(%r15), %eax
	movl	%eax, 40(%r14)
	movq	%r15, %rdi
	callq	_wpa_scan_free_params
	movq	$0, (%rbx)
	movq	32(%r14), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_p2p_notify_scan_trigger_status
	leaq	28(%r14), %rdi
	callq	_os_get_reltime
	movq	_wpas_p2p_scan_res_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	$1, (%r14)
	movq	$0, 16(%r14)
	movq	%rbx, 8(%r14)
LBB0_7:
	popq	%rbx
	popq	%r12
	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	"Request driver to clear scan cache due to local BSS flush"

	.comm	_wpas_p2p_scan_res_handler,4,2  ## @wpas_p2p_scan_res_handler
	.no_dead_strip	_wpas_p2p_trigger_scan_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_p2p_trigger_scan_cb
_wpas_p2p_trigger_scan_cb:              ; @wpas_p2p_trigger_scan_cb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	x19, [x0, #16]
	ldr	x21, [x0]
	cbz	w1, LBB0_3
; %bb.1:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_7
; %bb.2:
	str	xzr, [x19, #8]
	b	LBB0_9
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w8, #1
	str	w8, [x21]
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_wpa_drv_scan
	cbz	w0, LBB0_8
; %bb.6:
	mov	x22, x0
	mov	x0, x21
	bl	_wpa_scan_free_params
	str	xzr, [x20]
	mov	x0, x20
	bl	_radio_work_done
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	mov	x1, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_p2p_notify_scan_trigger_status
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wpa_scan_free_params
LBB0_8:
	ldr	w8, [x21, #4]
	str	w8, [x19, #40]
	mov	x0, x21
	bl	_wpa_scan_free_params
	str	xzr, [x20]
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_p2p_notify_scan_trigger_status
	add	x0, x19, #28
	bl	_os_get_reltime
Lloh5:
	adrp	x8, _wpas_p2p_scan_res_handler@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wpas_p2p_scan_res_handler@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
	stp	x20, xzr, [x19, #8]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.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"

	.comm	_wpas_p2p_scan_res_handler,4,2  ; @wpas_p2p_scan_res_handler
	.no_dead_strip	_wpas_p2p_trigger_scan_cb
.subsections_via_symbols
