	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_prepare_channel            ## -- Begin function p2p_prepare_channel
	.p2align	4, 0x90
_p2p_prepare_channel:                   ## @p2p_prepare_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
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_p2p_dbg
	movl	%ebx, %eax
	movq	%r14, %rdi
	orl	%r15d, %eax
	je	LBB0_3
## %bb.1:
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_p2p_prepare_channel_pref
	testq	%rax, %rax
	jns	LBB0_4
## %bb.2:
	movl	$-1, %r12d
	jmp	LBB0_12
LBB0_3:
	callq	_p2p_prepare_channel_best
LBB0_4:
	movq	%r13, %rbx
	leaq	8(%r14), %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_p2p_channels_dump
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.5:
	leaq	24(%r14), %rsi
	movq	%r13, %rdi
	callq	_p2p_channels_remove_freqs
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_p2p_channels_dump
	testl	%r15d, %r15d
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.9:
	movq	_P2P_DEV_FORCE_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	jmp	LBB0_12
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_p2p_channels_dump
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %r8
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
LBB0_11:
	movq	_P2P_DEV_FORCE_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	xorl	%r12d, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	16(%r14), %rsi
	movq	%r13, %rdi
	callq	_p2p_channels_union_inplace
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Prepare channel - force_freq=%u pref_freq=%u go=%d"

L_.str.1:                               ## @.str.1
	.asciz	"prepared channels"

L_.str.2:                               ## @.str.2
	.asciz	"after go/cli filter/add"

L_.str.3:                               ## @.str.3
	.asciz	"Own preference for operation channel: Operating Class %u Channel %u%s"

L_.str.4:                               ## @.str.4
	.asciz	" (forced)"

L_.str.5:                               ## @.str.5
	.space	1

	.comm	_P2P_DEV_FORCE_FREQ,4,2         ## @P2P_DEV_FORCE_FREQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_prepare_channel            ; -- Begin function p2p_prepare_channel
	.p2align	2
_p2p_prepare_channel:                   ; @p2p_prepare_channel
	.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	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	str	x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_p2p_dbg
	mov	x0, x20
	orr	w8, w23, w21
	cbz	w8, LBB0_3
; %bb.1:
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_p2p_prepare_channel_pref
	tbz	x0, #63, LBB0_4
; %bb.2:
	mov	w0, #-1
	b	LBB0_12
LBB0_3:
	bl	_p2p_prepare_channel_best
LBB0_4:
	add	x23, x20, #8
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_p2p_channels_dump
	cbz	w22, LBB0_8
; %bb.5:
	add	x1, x20, #24
	mov	x0, x23
	bl	_p2p_channels_remove_freqs
LBB0_6:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_p2p_channels_dump
	ldp	w3, w2, [x20]
Lloh6:
	adrp	x8, l_.str.4@PAGE
Lloh7:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh8:
	adrp	x9, l_.str.5@PAGE
Lloh9:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	w21, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_p2p_dbg
	cbnz	w21, LBB0_10
; %bb.7:
	mov	w0, #0
Lloh12:
	adrp	x8, _P2P_DEV_FORCE_FREQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _P2P_DEV_FORCE_FREQ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	b	LBB0_11
LBB0_8:
	cbz	w21, LBB0_13
; %bb.9:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_p2p_channels_dump
	ldp	w3, w2, [x20]
Lloh17:
	adrp	x8, l_.str.4@PAGE
Lloh18:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_p2p_dbg
LBB0_10:
	mov	w0, #0
Lloh21:
	adrp	x8, _P2P_DEV_FORCE_FREQ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _P2P_DEV_FORCE_FREQ@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
LBB0_11:
	str	w8, [x19]
LBB0_12:
	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_13:
	ldr	x1, [x20, #16]
	mov	x0, x23
	bl	_p2p_channels_union_inplace
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Prepare channel - force_freq=%u pref_freq=%u go=%d"

l_.str.1:                               ; @.str.1
	.asciz	"prepared channels"

l_.str.2:                               ; @.str.2
	.asciz	"after go/cli filter/add"

l_.str.3:                               ; @.str.3
	.asciz	"Own preference for operation channel: Operating Class %u Channel %u%s"

l_.str.4:                               ; @.str.4
	.asciz	" (forced)"

l_.str.5:                               ; @.str.5
	.space	1

	.comm	_P2P_DEV_FORCE_FREQ,4,2         ; @P2P_DEV_FORCE_FREQ
.subsections_via_symbols
