	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_check_pref_chan_no_recv
_p2p_check_pref_chan_no_recv:           ## @p2p_check_pref_chan_no_recv
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_p2p_dbg
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.1:
	leaq	8(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	jae	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	(%r14,%r12,4), %ebx
	movl	%ebx, %edi
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	callq	_p2p_freq_to_channel
	testq	%rax, %rax
	js	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rcx
	movq	8(%r15), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rdx,%rsi,8), %rcx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_7:
	movq	-72(%rbp), %rax
	movq	%rax, 24(%r13)
	movq	%rcx, 16(%r13)
	movq	(%r13), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_os_memcpy
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_p2p_dbg
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
LBB0_10:
	addq	$40, %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	"Peer didn't provide a preferred frequency list, see if any of our preferred channels are supported by peer device"

L_.str.1:                               ## @.str.1
	.asciz	"Freq %d MHz is a preferred channel and is also supported by peer, use it as the operating channel"

L_.str.2:                               ## @.str.2
	.asciz	"None of our preferred channels are supported by peer!"

	.no_dead_strip	_p2p_check_pref_chan_no_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_check_pref_chan_no_recv
_p2p_check_pref_chan_no_recv:           ; @p2p_check_pref_chan_no_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x5
	mov	x20, x4
	mov	x21, x3
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_p2p_dbg
	cbz	w23, LBB0_9
; %bb.1:
	mov	x24, #0
	add	x22, x19, #8
	mov	w25, w23
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	cmp	x24, x25
	b.hs	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w23, [x20, x24, lsl #2]
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x23
	bl	_p2p_freq_to_channel
	tbnz	x0, #63, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #16]
	ldr	x10, [x21, #8]
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10]
	cmp	x9, x11
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_6
	b	LBB0_2
LBB0_8:
	ldr	x8, [sp, #24]
	stp	x9, x8, [x19, #16]
	ldr	x1, [x19]
	mov	x0, x22
	mov	w2, #4
	bl	_os_memcpy
	str	x23, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_p2p_dbg
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Peer didn't provide a preferred frequency list, see if any of our preferred channels are supported by peer device"

l_.str.1:                               ; @.str.1
	.asciz	"Freq %d MHz is a preferred channel and is also supported by peer, use it as the operating channel"

l_.str.2:                               ; @.str.2
	.asciz	"None of our preferred channels are supported by peer!"

	.no_dead_strip	_p2p_check_pref_chan_no_recv
.subsections_via_symbols
