	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_get_next_prog_freq
_p2p_get_next_prog_freq:                ## @p2p_get_next_prog_freq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %r9
	movq	8(%rax), %r11
	testq	%r9, %r9
	je	LBB0_9
## %bb.1:
	movq	8(%r14), %r8
	movb	$1, %r15b
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%r9, %rdx
	setb	%r15b
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	leaq	(%rdx,%rdx,2), %rax
	cmpq	%r8, 16(%r11,%rax,8)
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r11,%rax,8), %r10
	testq	%r10, %r10
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r11,%rax,8), %rcx
	movq	(%r14), %rdi
	movq	%r10, %rax
	negq	%rax
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdi, -8(%rcx,%rsi,8)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	leaq	(%rax,%rsi), %rbx
	incq	%rbx
	incq	%rsi
	cmpq	$1, %rbx
	jne	LBB0_5
	jmp	LBB0_7
LBB0_8:
	testb	$1, %r15b
	je	LBB0_9
## %bb.10:
	leaq	1(%rdx), %rax
	xorl	%ecx, %ecx
	cmpq	%r9, %rax
	cmoveq	%rcx, %rax
	cmpq	%r10, %rsi
	cmovneq	%rdx, %rax
	cmoveq	%rcx, %rsi
	leaq	(%rax,%rax,2), %rax
	shlq	$3, %rsi
	addq	8(%r11,%rax,8), %rsi
	leaq	(%r11,%rax,8), %r11
	addq	$16, %r11
	jmp	LBB0_11
LBB0_9:
	movq	8(%r11), %rsi
	addq	$16, %r11
LBB0_11:
	movq	(%rsi), %r12
	movq	(%r11), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_p2p_channel_to_freq
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_p2p_dbg
	movq	%rbx, 8(%r14)
	movq	%r12, (%r14)
	leal	-2412(%r15), %ecx
	cmpl	$50, %ecx
	ja	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	movabsq	$1125899940397057, %rdx         ## imm = 0x4000002000001
	btq	%rcx, %rdx
	jb	LBB0_14
LBB0_13:
	movl	%r15d, %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Next progressive search channel: reg_class %u channel %u -> %d MHz"

	.no_dead_strip	_p2p_get_next_prog_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_get_next_prog_freq
_p2p_get_next_prog_freq:                ; @p2p_get_next_prog_freq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x8, [x0, #16]
	ldp	x9, x8, [x8]
	cbz	x9, LBB0_10
; %bb.1:
	mov	x10, #0
	ldr	x11, [x19, #8]
	mov	w13, #1
	mov	w12, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	cset	w13, lo
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mul	x14, x10, x12
	add	x14, x8, x14
	ldr	x14, [x14, #16]
	cmp	x14, x11
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	x14, x10, x12
	ldr	x15, [x8, x14]
	cbz	x15, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
	mul	x16, x10, x12
	add	x16, x8, x16
	ldr	x16, [x16, #8]
	ldr	x17, [x19]
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x16, x14, lsl #3]
	cmp	x0, x17
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x14, x14, #1
	cmp	x15, x14
	b.ne	LBB0_6
	b	LBB0_2
LBB0_8:
	tbz	w13, #0, LBB0_10
; %bb.9:
	sub	x11, x15, #1
	add	x12, x10, #1
	cmp	x12, x9
	csinc	x9, xzr, x10, eq
	cmp	x11, x14
	csel	x9, x9, x10, eq
	csinc	x10, xzr, x14, eq
	mov	w11, #24
	madd	x8, x9, x11, x8
	add	x9, x8, #16
	ldr	x8, [x8, #8]
	add	x8, x8, x10, lsl #3
	b	LBB0_11
LBB0_10:
	add	x9, x8, #16
	ldr	x8, [x8, #8]
LBB0_11:
	ldr	x21, [x8]
	ldr	x22, [x9]
	mov	x0, x22
	mov	x1, x21
	bl	_p2p_channel_to_freq
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_p2p_dbg
	stp	x21, x22, [x19]
	sub	w8, w20, #2412
	cmp	w8, #50
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #1
	movk	x9, #512, lsl #16
	movk	x9, #4, lsl #48
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	b.eq	LBB0_13
; %bb.12:
	mov	w20, #0
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Next progressive search channel: reg_class %u channel %u -> %d MHz"

	.no_dead_strip	_p2p_get_next_prog_freq
.subsections_via_symbols
