	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_crtc_max_vblank_count
_intel_crtc_max_vblank_count:           ## @intel_crtc_max_vblank_count
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_i915
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_I965GM
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %r15d
	movq	_INTEL_OUTPUT_TVOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	xorl	%ebx, %ebx
	testl	%r15d, %eax
	jne	LBB0_5
LBB0_2:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	movl	$-1, %ebx
	cmpl	$4, %eax
	jg	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_IS_G4X
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	xorl	%ecx, %ecx
	cmpl	$3, %eax
	movl	$16777215, %ebx                 ## imm = 0xFFFFFF
	cmovll	%ecx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_TVOUT,4,2         ## @INTEL_OUTPUT_TVOUT
	.no_dead_strip	_intel_crtc_max_vblank_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_crtc_max_vblank_count
_intel_crtc_max_vblank_count:           ; @intel_crtc_max_vblank_count
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_to_i915
	mov	x19, x0
	bl	_IS_I965GM
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w20, [x20]
Lloh0:
	adrp	x8, _INTEL_OUTPUT_TVOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_TVOUT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #4
	b.gt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_IS_G4X
	cbz	x0, LBB0_6
LBB0_5:
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_INTEL_GEN
	mov	w8, #16777215
	cmp	w0, #2
	csel	w0, w8, wzr, gt
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_TVOUT,4,2         ; @INTEL_OUTPUT_TVOUT
	.no_dead_strip	_intel_crtc_max_vblank_count
.subsections_via_symbols
