	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_set_listen_channel         ## -- Begin function p2p_set_listen_channel
	.p2align	4, 0x90
_p2p_set_listen_channel:                ## @p2p_set_listen_channel
	.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
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_p2p_channel_to_freq
	movl	$-1, %r15d
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	testq	%r14, %r14
	jne	LBB0_4
## %bb.2:
	movq	32(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_p2p_dbg
	movq	(%rbx), %rax
	movq	_P2P_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	32(%rbx), %rax
	movq	%r13, 16(%rax)
	movq	%r12, 8(%rax)
	movq	%r14, (%rax)
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
	movq	%r13, 24(%rbx)
	movq	%r12, 16(%rbx)
	movq	%r14, 8(%rbx)
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Listen channel was previously configured - do not override based on optimization"

L_.str.1:                               ## @.str.1
	.asciz	"Set Listen channel: reg_class %u channel %u"

	.comm	_P2P_IDLE,8,3                   ## @P2P_IDLE
L_.str.2:                               ## @.str.2
	.asciz	"Defer setting listen channel"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_set_listen_channel         ; -- Begin function p2p_set_listen_channel
	.p2align	2
_p2p_set_listen_channel:                ; @p2p_set_listen_channel
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	bl	_p2p_channel_to_freq
	tbnz	x0, #63, LBB0_4
; %bb.1:
	cbnz	x19, LBB0_5
; %bb.2:
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_p2p_dbg
LBB0_4:
	mov	w0, #-1
	b	LBB0_8
LBB0_5:
	stp	x22, x21, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_p2p_dbg
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _P2P_IDLE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _P2P_IDLE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	ldr	x8, [x20, #32]
	stp	x21, x22, [x8, #8]
	str	x19, [x8]
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_p2p_dbg
	mov	w0, #0
	stp	x21, x22, [x20, #16]
	str	x19, [x20, #8]
LBB0_8:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Listen channel was previously configured - do not override based on optimization"

l_.str.1:                               ; @.str.1
	.asciz	"Set Listen channel: reg_class %u channel %u"

	.comm	_P2P_IDLE,8,3                   ; @P2P_IDLE
l_.str.2:                               ; @.str.2
	.asciz	"Defer setting listen channel"

.subsections_via_symbols
