	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_remain_on_channel_cb  ## -- Begin function wpas_p2p_remain_on_channel_cb
	.p2align	4, 0x90
_wpas_p2p_remain_on_channel_cb:         ## @wpas_p2p_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_1
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.2:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movl	32(%rbx), %r8d
	movl	%r14d, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:
	cmpq	%rcx, %rdx
	jne	LBB0_6
## %bb.4:
	movq	24(%rbx), %rax
	movq	(%rax), %rdi
	movl	16(%rbx), %eax
	movq	%rdx, %rsi
	movl	%eax, %edx
	callq	_p2p_listen_cb
	movq	$0, 8(%rbx)
	jmp	LBB0_5
LBB0_6:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: remain-on-channel callback (off_channel_freq=%u pending_listen_freq=%d roc_waiting_drv_freq=%d freq=%u duration=%u)"

L_.str.1:                               ## @.str.1
	.asciz	"P2P: Ignore remain-on-channel callback (off_channel_freq=%u pending_listen_freq=%d freq=%u duration=%u)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_remain_on_channel_cb  ; -- Begin function wpas_p2p_remain_on_channel_cb
	.p2align	2
_wpas_p2p_remain_on_channel_cb:         ; @wpas_p2p_remain_on_channel_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #24]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.3:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	ldp	x2, x3, [x19]
	ldr	w4, [x19, #32]
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x5, x21
	bl	_wpa_printf
	ldp	x8, x3, [x19]
	cbz	x8, LBB0_6
; %bb.4:
	cmp	x8, x3
	b.ne	LBB0_6
; %bb.5:
	ldr	x9, [x19, #24]
	ldr	x0, [x9]
	ldr	w2, [x19, #16]
	mov	x1, x8
	bl	_p2p_listen_cb
	str	xzr, [x19, #8]
	b	LBB0_1
LBB0_6:
	ldr	w0, [x22]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x8
	mov	x4, x21
	mov	x5, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_wpa_printf
	.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: remain-on-channel callback (off_channel_freq=%u pending_listen_freq=%d roc_waiting_drv_freq=%d freq=%u duration=%u)"

l_.str.1:                               ; @.str.1
	.asciz	"P2P: Ignore remain-on-channel callback (off_channel_freq=%u pending_listen_freq=%d freq=%u duration=%u)"

.subsections_via_symbols
