	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hsw_crtc_state_ips_capable     ## -- Begin function hsw_crtc_state_ips_capable
	.p2align	4, 0x90
_hsw_crtc_state_ips_capable:            ## @hsw_crtc_state_ips_capable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_to_i915
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_hsw_crtc_supports_ips
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_i915_modparams@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.2:
	cmpl	$24, (%r12)
	jg	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	imull	$95, (%r15), %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	cmpl	%eax, 4(%r12)
	jg	LBB0_6
LBB0_5:
	movl	$1, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_modparams,4,2             ## @i915_modparams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hsw_crtc_state_ips_capable     ; -- Begin function hsw_crtc_state_ips_capable
	.p2align	2
_hsw_crtc_state_ips_capable:            ; @hsw_crtc_state_ips_capable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_to_intel_crtc
	mov	x21, x0
	ldr	w0, [x0]
	bl	_to_i915
	mov	x20, x0
	mov	x0, x21
	bl	_hsw_crtc_supports_ips
Lloh0:
	adrp	x8, _i915_modparams@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i915_modparams@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #24
	b.gt	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_IS_BROADWELL
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w8, [x19, #4]
	ldr	w9, [x20]
	mov	w10, #95
	mul	w9, w9, w10
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	cmp	w8, w9
	b.le	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_modparams,4,2             ; @i915_modparams
.subsections_via_symbols
