	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_ext_listen                 ## -- Begin function p2p_ext_listen
	.p2align	4, 0x90
_p2p_ext_listen:                        ## @p2p_ext_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	%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	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	%edx, %esi
	ja	LBB0_6
## %bb.1:
	movl	%r12d, %eax
	orl	%ebx, %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	ja	LBB0_6
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	testl	%r12d, %r12d
	jne	LBB0_6
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	testl	%r12d, %r12d
	jne	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_p2p_dbg
	movl	$-1, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_p2p_ext_listen_timeout@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_p2p_dbg
	movl	%ebx, (%r14)
	movl	%r12d, 4(%r14)
	movzwl	%r12w, %eax
	shrl	$3, %eax
	imull	$8389, %eax, %edi               ## imm = 0x20C5
	shrl	$20, %edi
	movl	%edi, 8(%r14)
	imull	$1000, %edi, %eax               ## imm = 0x3E8
	subl	%eax, %r12d
	movzwl	%r12w, %eax
	imull	$1000, %eax, %esi               ## imm = 0x3E8
	movl	%esi, 12(%r14)
	movl	(%r13), %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
	movq	$0, (%r14)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Extended Listen Timing request: period=%u interval=%u"

	.comm	_p2p_ext_listen_timeout,4,2     ## @p2p_ext_listen_timeout
L_.str.1:                               ## @.str.1
	.asciz	"Disabling Extended Listen Timing"

L_.str.2:                               ## @.str.2
	.asciz	"Enabling Extended Listen Timing: period %u msec, interval %u msec"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_ext_listen                 ; -- Begin function p2p_ext_listen
	.p2align	2
_p2p_ext_listen:                        ; @p2p_ext_listen
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	w1, w2
	b.hi	LBB0_6
; %bb.1:
	orr	w8, w20, w21
	lsr	w8, w8, #16
	cbnz	w8, LBB0_6
; %bb.2:
	cbnz	w21, LBB0_4
; %bb.3:
	cbnz	w20, LBB0_6
LBB0_4:
	cbz	w21, LBB0_8
; %bb.5:
	cbnz	w20, LBB0_8
LBB0_6:
	stp	x21, x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	mov	w0, #-1
LBB0_7:
	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_8:
Lloh2:
	adrp	x22, _p2p_ext_listen_timeout@GOTPAGE
Lloh3:
	ldr	x22, [x22, _p2p_ext_listen_timeout@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	cbz	w20, LBB0_10
; %bb.9:
	mov	x8, x20
	mov	x9, x21
	stp	x9, x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	stp	w21, w20, [x19]
	ubfx	w8, w20, #3, #13
	mov	w9, #8389
	mul	w8, w8, w9
	lsr	w0, w8, #20
	mov	w8, #1000
	msub	w9, w0, w8, w20
	and	w9, w9, #0xffff
	mul	w1, w9, w8
	stp	w0, w1, [x19, #8]
	ldr	w2, [x22]
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
	mov	w0, #0
	b	LBB0_7
LBB0_10:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Extended Listen Timing request: period=%u interval=%u"

	.comm	_p2p_ext_listen_timeout,4,2     ; @p2p_ext_listen_timeout
l_.str.1:                               ; @.str.1
	.asciz	"Disabling Extended Listen Timing"

l_.str.2:                               ; @.str.2
	.asciz	"Enabling Extended Listen Timing: period %u msec, interval %u msec"

.subsections_via_symbols
