	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_enable_shared_dpll       ## -- Begin function intel_enable_shared_dpll
	.p2align	4, 0x90
_intel_enable_shared_dpll:              ## @intel_enable_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r13
	movl	4(%rax), %edi
	callq	_to_i915
	movq	%rax, %r14
	movq	(%rbx), %r15
	movq	%r13, %rdi
	callq	_drm_crtc_mask
	movl	%eax, %r12d
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r15), %ebx
	xorl	%edi, %edi
	movl	16(%r15), %eax
	andl	%r12d, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movl	(%r15), %edi
	andl	%r12d, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	orl	(%r15), %r12d
	movl	%r12d, (%r15)
	movq	8(%r15), %rax
	movl	8(%rax), %esi
	movl	4(%r15), %ecx
	movl	(%r13), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	4(%r15), %edi
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	testl	%edi, %edi
	sete	%al
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_assert_shared_dpll_enabled
	jmp	LBB0_6
LBB0_5:
	callq	_WARN_ON
	movq	8(%r15), %rax
	movl	8(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movl	$1, 4(%r15)
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enable %s (active %x, on? %d) for crtc %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"enabling %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_enable_shared_dpll       ; -- Begin function intel_enable_shared_dpll
	.p2align	2
_intel_enable_shared_dpll:              ; @intel_enable_shared_dpll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_intel_crtc
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x19, x0
	ldr	x20, [x20]
	mov	x0, x21
	bl	_drm_crtc_mask
	mov	x22, x0
	cmp	x20, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	mov	x0, x19
	bl	_mutex_lock
	ldr	w23, [x20]
	ldr	w8, [x20, #16]
	tst	w8, w22
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_7
; %bb.3:
	ldr	w8, [x20]
	and	w0, w8, w22
	bl	_WARN_ON
	cbnz	x0, LBB0_7
; %bb.4:
	ldp	w8, w9, [x20]
	orr	w8, w8, w22
	str	w8, [x20]
	ldr	x10, [x20, #8]
	ldr	w1, [x10, #8]
	ldr	w10, [x21]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w0, [x20, #4]
	cbz	w23, LBB0_6
; %bb.5:
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x19
	mov	x1, x20
	bl	_assert_shared_dpll_enabled
	b	LBB0_7
LBB0_6:
	bl	_WARN_ON
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable %s (active %x, on? %d) for crtc %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"enabling %s\n"

.subsections_via_symbols
