	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_start_listen_cb
_wpas_start_listen_cb:                  ## @wpas_start_listen_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %r14
	movq	16(%rdi), %rbx
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.2:
	movq	$0, 40(%rbx)
	movq	%rbx, %rdi
	callq	_wpas_stop_listen
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wpas_p2p_listen_work_free      ## TAILCALL
LBB0_4:
	movq	%rdi, 40(%rbx)
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_wpa_drv_set_ap_wps_ie
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wpa_drv_probe_req_report
	testq	%rax, %rax
	js	LBB0_9
## %bb.5:
	movq	8(%r14), %rsi
	movq	%rsi, 24(%rbx)
	movl	(%r14), %edx
	movl	%edx, (%rbx)
	movq	%rbx, %rdi
	callq	_wpa_drv_remain_on_channel
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	$0, 16(%rbx)
	movq	8(%r14), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_8
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wpas_p2p_listen_work_done      ## TAILCALL
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_wpas_p2p_listen_work_done
	movq	$0, 24(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Failed to request the driver to report received Probe Request frames"

L_.str.1:                               ## @.str.1
	.asciz	"P2P: Failed to request the driver to remain on channel (%u MHz) for Listen state"

	.no_dead_strip	_wpas_start_listen_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_start_listen_cb
_wpas_start_listen_cb:                  ; @wpas_start_listen_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldp	x20, x19, [x0, #8]
	cbz	w1, LBB0_4
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	str	xzr, [x19, #40]
	mov	x0, x19
	bl	_wpas_stop_listen
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_wpas_p2p_listen_work_free
LBB0_4:
	str	x0, [x19, #40]
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_wpa_drv_set_ap_wps_ie
	mov	x0, x19
	mov	w1, #1
	bl	_wpa_drv_probe_req_report
	tbnz	x0, #63, LBB0_7
; %bb.5:
	ldr	x1, [x20, #8]
	str	x1, [x19, #24]
	ldr	w2, [x20]
	str	w2, [x19]
	mov	x0, x19
	bl	_wpa_drv_remain_on_channel
	tbnz	x0, #63, LBB0_8
; %bb.6:
	ldr	x8, [x20, #8]
	stp	x8, xzr, [x19, #8]
	b	LBB0_9
LBB0_7:
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	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_wpas_p2p_listen_work_done
LBB0_8:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_wpas_p2p_listen_work_done
	str	xzr, [x19, #24]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.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	"P2P: Failed to request the driver to report received Probe Request frames"

l_.str.1:                               ; @.str.1
	.asciz	"P2P: Failed to request the driver to remain on channel (%u MHz) for Listen state"

	.no_dead_strip	_wpas_start_listen_cb
.subsections_via_symbols
