	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_find_shared_dpll
_intel_find_shared_dpll:                ## @intel_find_shared_dpll
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	8(%rsi), %edi
	callq	_to_i915
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_intel_atomic_get_shared_dpll_state
	cmpl	%r15d, %ebx
	jbe	LBB0_2
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_2:
	movl	%r15d, %r12d
	movq	%rax, %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	cmoveq	%rsi, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%r12d, %ebx
	ja	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	%ebx, %ebx
	movq	%rbx, %r15
	shlq	$4, %r15
	leaq	(%rax,%r15), %rsi
	cmpq	$0, (%rdi,%r15)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%r15), %rsi
	addq	$8, %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_memcmp
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:
	addq	%r15, %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movq	(%rdi), %r8
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r15), %r9d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_11
LBB0_8:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_11:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CRTC:%d:%s] sharing existing %s (crtc mask 0x%08x, active %x)\n"

L_.str.1:                               ## @.str.1
	.asciz	"[CRTC:%d:%s] allocated %s\n"

	.no_dead_strip	_intel_find_shared_dpll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_find_shared_dpll
_intel_find_shared_dpll:                ; @intel_find_shared_dpll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x4
	mov	x25, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x1, #8]
	bl	_to_i915
	mov	x23, x0
	mov	x0, x21
	bl	_intel_atomic_get_shared_dpll_state
	cmp	w25, w20
	b.ls	LBB0_2
; %bb.1:
	mov	x21, #0
	b	LBB0_10
LBB0_2:
	mov	x24, x0
	mov	x21, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x21, #0
	csel	x21, x25, x21, eq
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w25, w26, #1
	cmp	w25, w20
	b.hi	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x23]
	mov	w26, w25
	lsl	x8, x26, #4
	add	x25, x27, x8
	add	x28, x24, x8
	ldr	x8, [x28]
	cbz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x24, x26, lsl #4
	add	x1, x8, #8
	mov	x0, x22
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_4
; %bb.7:
	ldp	w2, w1, [x19]
	ldr	x8, [x25]
	ldr	w3, [x8]
	ldr	x8, [x28]
	add	x9, x27, x26, lsl #4
	ldr	w9, [x9, #8]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x21, x25
	b	LBB0_10
LBB0_8:
	cbz	x21, LBB0_10
; %bb.9:
	ldp	w2, w1, [x19]
	ldr	x8, [x21]
	ldr	w3, [x8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CRTC:%d:%s] sharing existing %s (crtc mask 0x%08x, active %x)\n"

l_.str.1:                               ; @.str.1
	.asciz	"[CRTC:%d:%s] allocated %s\n"

	.no_dead_strip	_intel_find_shared_dpll
.subsections_via_symbols
