	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_cancel_remain_on_channel_cb ## -- Begin function wpas_p2p_cancel_remain_on_channel_cb
	.p2align	4, 0x90
_wpas_p2p_cancel_remain_on_channel_cb:  ## @wpas_p2p_cancel_remain_on_channel_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	(%rdi), %r12
	callq	_offchannel_pending_action_tx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r12, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	callq	_wpas_p2p_listen_work_done
	movq	16(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_1
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.2:
	movq	(%r15), %rax
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	subq	8(%r15), %rax
	movq	%rax, (%r15)
LBB0_4:
	movl	%r14d, %esi
	callq	_p2p_listen_end
	testq	%rax, %rax
	jg	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	callq	_offchannel_pending_action_tx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	cmpq	$0, (%r15)
	jle	LBB0_7
## %bb.9:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r15), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpas_p2p_listen_start          ## TAILCALL
LBB0_7:
	movq	16(%r15), %rax
	movq	(%rax), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_p2p_stop_listen                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Cancel remain-on-channel callback (p2p_long_listen=%d ms pending_action_tx=%p)"

L_.str.1:                               ## @.str.1
	.asciz	"P2P: Continuing long Listen state"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_cancel_remain_on_channel_cb ; -- Begin function wpas_p2p_cancel_remain_on_channel_cb
	.p2align	2
_wpas_p2p_cancel_remain_on_channel_cb:  ; @wpas_p2p_cancel_remain_on_channel_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w21, [x22]
	ldr	x23, [x0]
	bl	_offchannel_pending_action_tx
	stp	x23, x0, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_wpa_printf
	mov	x0, x19
	bl	_wpas_p2p_listen_work_done
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	ldr	x0, [x8]
	cbz	x0, LBB0_1
; %bb.3:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	x9, [x19, #8]
	sub	x8, x8, x9
	str	x8, [x19]
LBB0_5:
	mov	x1, x20
	bl	_p2p_listen_end
	cmp	x0, #0
	b.gt	LBB0_1
; %bb.6:
	mov	x0, x19
	bl	_offchannel_pending_action_tx
	cbnz	x0, LBB0_1
; %bb.7:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.8:
	ldr	w0, [x22]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x1, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_wpas_p2p_listen_start
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_p2p_stop_listen
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Cancel remain-on-channel callback (p2p_long_listen=%d ms pending_action_tx=%p)"

l_.str.1:                               ; @.str.1
	.asciz	"P2P: Continuing long Listen state"

.subsections_via_symbols
