	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_detector_create
_channel_detector_create:               ## @channel_detector_create
	.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	%esi, %r15d
	movq	%rdi, %r12
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$24, %edi
	callq	_kmalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	movl	%r15d, 16(%r14)
	movslq	(%r12), %rdi
	shlq	$3, %rdi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	cmpl	$0, (%r12)
	je	LBB0_6
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%r13, %rdi
	callq	_pri_detector_init
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r12), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jb	LBB0_4
LBB0_6:
	addq	$8, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_list_add
	jmp	LBB0_8
LBB0_7:
	movl	4(%r12), %edi
	movq	_DFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %ecx
	callq	_ath_dbg
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_channel_detector_exit
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_DFS,4,2                        ## @DFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate channel_detector for freq=%d\n"

	.no_dead_strip	_channel_detector_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_detector_create
_channel_detector_create:               ; @channel_detector_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #24
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_INIT_LIST_HEAD
	str	w21, [x19, #16]
	ldrsw	x8, [x20]
	lsl	x0, x8, #3
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.3:
	mov	x22, #0
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x0, x8, x22
	bl	_pri_detector_init
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	str	x0, [x8, x23, lsl #3]
	add	x23, x23, #1
	ldrsw	x8, [x20]
	add	x22, x22, #4
	cmp	x23, x8
	b.lo	LBB0_4
LBB0_6:
	add	x1, x20, #8
	mov	x0, x19
	bl	_list_add
	b	LBB0_8
LBB0_7:
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x8, _DFS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DFS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	bl	_ath_dbg
	mov	x0, x20
	mov	x1, x19
	bl	_channel_detector_exit
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_DFS,4,2                        ; @DFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate channel_detector for freq=%d\n"

	.no_dead_strip	_channel_detector_create
.subsections_via_symbols
