	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_pctrl_is_function_valid
_mtk_pctrl_is_function_valid:           ## @mtk_pctrl_is_function_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movq	8(%rcx), %rcx
	shlq	$4, %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, 8(%rcx,%rdi)
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rdi
	cmpq	%rdi, %rax
	jne	LBB0_2
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbp
	retq
LBB0_3:
	movq	(%rcx,%rdi), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.4:
	cmpq	$0, 8(%rcx)
	je	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 24(%rcx)
	leaq	16(%rcx), %rcx
	jne	LBB0_6
	jmp	LBB0_10
LBB0_7:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mtk_pctrl_is_function_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_pctrl_is_function_valid
_mtk_pctrl_is_function_valid:           ; @mtk_pctrl_is_function_valid
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x9, [x9, #8]
	add	x9, x9, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, x1
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_2
	b	LBB0_8
LBB0_4:
	ldur	x8, [x9, #-8]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	cmp	x9, x2
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x8, #24]
	add	x8, x8, #16
	cbnz	x9, LBB0_6
LBB0_8:
	mov	w0, #0
	ret
LBB0_9:
	mov	w0, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mtk_pctrl_is_function_valid
.subsections_via_symbols
