	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clk_mgr_helper_get_active_display_cnt ## -- Begin function clk_mgr_helper_get_active_display_cnt
	.p2align	4, 0x90
_clk_mgr_helper_get_active_display_cnt: ## @clk_mgr_helper_get_active_display_cnt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	8(%rsi), %rsi
	movq	_SIGNAL_TYPE_VIRTUAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%eax, %eax
LBB0_12:
	testb	$1, %r8b
	je	LBB0_16
## %bb.13:
	movq	(%rsi,%rdi,8), %rcx
	cmpl	$0, 8(%rcx)
	je	LBB0_15
## %bb.14:
	cmpq	%r9, (%rcx)
	jne	LBB0_16
LBB0_15:
	incl	%eax
LBB0_16:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, %edx
	andl	$-2, %edx
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%eax
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rdi
	cmpq	%rdi, %rdx
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdi,8), %rcx
	cmpl	$0, 8(%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r9, (%rcx)
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%eax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rsi,%rdi,8), %rcx
	cmpl	$0, 8(%rcx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r9, (%rcx)
	je	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGNAL_TYPE_VIRTUAL,8,3        ## @SIGNAL_TYPE_VIRTUAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clk_mgr_helper_get_active_display_cnt ; -- Begin function clk_mgr_helper_get_active_display_cnt
	.p2align	2
_clk_mgr_helper_get_active_display_cnt: ; @clk_mgr_helper_get_active_display_cnt
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w0, #0
	ldr	x9, [x1, #8]
Lloh0:
	adrp	x10, _SIGNAL_TYPE_VIRTUAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SIGNAL_TYPE_VIRTUAL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w0, w0, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	ldr	w12, [x11, #8]
	cbz	w12, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x11]
	cmp	x11, x10
	b.eq	LBB0_2
	b	LBB0_3
LBB0_6:
	ret
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGNAL_TYPE_VIRTUAL,8,3        ; @SIGNAL_TYPE_VIRTUAL
.subsections_via_symbols
