	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_p2p_start_listen
_wil_p2p_start_listen:                  ## @wil_p2p_start_listen
	.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
	movq	%rdi, %r15
	callq	_vif_to_wil
	movq	%rax, %r14
	movl	12(%r15), %ebx
	movq	%rax, %rdi
	callq	_lockdep_assert_held
	movq	_P2P_DEFAULT_BI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_wmi_p2p_cfg
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_wil_err
	jmp	LBB0_7
LBB0_2:
	movq	_P2P_WILDCARD_SSID@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_strlen
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wmi_set_ssid
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_wmi_start_listen
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_wil_err
	movq	%r15, %rdi
	callq	_wmi_stop_discovery
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	8(%r15), %rdi
	movq	_wil_p2p_listen_expired@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%r15), %edi
	addq	$4, %r15
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_DEFAULT_BI,4,2             ## @P2P_DEFAULT_BI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi_p2p_cfg failed\n"

	.comm	_P2P_WILDCARD_SSID,4,2          ## @P2P_WILDCARD_SSID
L_.str.1:                               ## @.str.1
	.asciz	"wmi_set_ssid failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"wmi_start_listen failed\n"

	.comm	_wil_p2p_listen_expired,4,2     ## @wil_p2p_listen_expired
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_wil_p2p_start_listen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_p2p_start_listen
_wil_p2p_start_listen:                  ; @wil_p2p_start_listen
	.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	x19, x0
	bl	_vif_to_wil
	mov	x20, x0
	ldr	w21, [x19, #12]
	bl	_lockdep_assert_held
Lloh0:
	adrp	x8, _P2P_DEFAULT_BI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P2P_DEFAULT_BI@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_wmi_p2p_cfg
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wil_err
	b	LBB0_7
LBB0_2:
Lloh5:
	adrp	x21, _P2P_WILDCARD_SSID@GOTPAGE
Lloh6:
	ldr	x21, [x21, _P2P_WILDCARD_SSID@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_strlen
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x19
	bl	_wmi_set_ssid
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_wmi_start_listen
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.5:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_wil_err
	mov	x0, x19
	bl	_wmi_stop_discovery
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
	ret
LBB0_8:
	add	x0, x19, #8
Lloh11:
	adrp	x8, _wil_p2p_listen_expired@GOTPAGE
Lloh12:
	ldr	x8, [x8, _wil_p2p_listen_expired@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh14:
	adrp	x8, _jiffies@GOTPAGE
Lloh15:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh16:
	ldr	x20, [x8]
	ldr	w0, [x19], #4
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	bl	_mod_timer
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_DEFAULT_BI,4,2             ; @P2P_DEFAULT_BI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi_p2p_cfg failed\n"

	.comm	_P2P_WILDCARD_SSID,4,2          ; @P2P_WILDCARD_SSID
l_.str.1:                               ; @.str.1
	.asciz	"wmi_set_ssid failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"wmi_start_listen failed\n"

	.comm	_wil_p2p_listen_expired,4,2     ; @wil_p2p_listen_expired
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_wil_p2p_start_listen
.subsections_via_symbols
