	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_channels_to_freqs          ## -- Begin function p2p_channels_to_freqs
	.p2align	4, 0x90
_p2p_channels_to_freqs:                 ## @p2p_channels_to_freqs
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.1:
	movl	%edx, %r15d
	testl	%edx, %edx
	je	LBB0_22
## %bb.2:
	movq	%rsi, %r12
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	je	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %r14d
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %r8d
	movl	%r14d, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	movl	%r8d, %ecx
	cmpq	%rcx, %rax
	jae	LBB0_21
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
	leal	1(%rbx), %ecx
	cmpl	%r15d, %ecx
	je	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdi), %rcx
	leaq	(%rax,%rax,2), %rsi
	cmpl	$0, (%rcx,%rsi,8)
	je	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%r13d, %r13d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	%ebx, %r14d
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%r13
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	movl	%r14d, %ebx
	cmpq	%rax, %r13
	jae	LBB0_19
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
	leal	1(%rbx), %r14d
	cmpl	%r15d, %r14d
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	16(%rcx), %edi
	movq	8(%rcx), %rax
	movl	(%rax,%r13,4), %esi
	callq	_p2p_channel_to_freq
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%ebx, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%eax, (%r12,%rsi,4)
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_16 Depth=3
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_16
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	xorl	%ecx, %ecx
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	%eax, (%r12,%rcx,4)
	jmp	LBB0_18
LBB0_3:
	xorl	%ebx, %ebx
LBB0_21:
	movl	%ebx, %eax
	movl	$0, (%r12,%rax,4)
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_channels_to_freqs          ; -- Begin function p2p_channels_to_freqs
	.p2align	2
_p2p_channels_to_freqs:                 ; @p2p_channels_to_freqs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w24, #0
	cbz	x0, LBB0_20
; %bb.1:
	mov	x20, x2
	cbz	w2, LBB0_20
; %bb.2:
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_18
; %bb.3:
	mov	x23, #0
	mov	w24, #0
	mov	w11, #24
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	mov	w11, #24
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, uxtw
	b.hs	LBB0_19
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
	add	w9, w24, #1
	cmp	w9, w20
	b.eq	LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x21, #8]
	madd	x25, x23, x11, x9
	ldr	w10, [x25]
	cbz	w10, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, #0
	madd	x8, x23, x11, x9
	add	x27, x8, #16
	add	x28, x8, #8
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=2
	mov	x8, #0
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	str	w0, [x19, x8, lsl #2]
	mov	x24, x22
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x26, x26, #1
	ldr	w8, [x25]
	cmp	x26, x8
	b.hs	LBB0_4
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
	add	w22, w24, #1
	cmp	w22, w20
	b.eq	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w0, [x27]
	ldr	x8, [x28]
	ldr	w1, [x8, x26, lsl #2]
	bl	_p2p_channel_to_freq
	tbnz	w0, #31, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	cbz	w24, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	w8, w24
	mov	x9, x8
	mov	x10, x19
LBB0_16:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w11, [x10]
	cmp	w11, w0
	b.eq	LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=3
	add	x10, x10, #4
	subs	x9, x9, #1
	b.ne	LBB0_16
	b	LBB0_10
LBB0_18:
	mov	w24, #0
LBB0_19:
	str	wzr, [x19, w24, uxtw #2]
LBB0_20:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
