	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_psr2_config_valid
_intel_psr2_config_valid:               ## @intel_psr2_config_valid
	.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	%rsi, %r15
	callq	_dp_to_i915
	cmpl	$0, 4(%rax)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
LBB0_15:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_16
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_4:
	movq	%rax, %rbx
	movl	16(%r15), %r14d
	movl	20(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	movl	$2304, %r12d                    ## imm = 0x900
	movl	$4096, %r13d                    ## imm = 0x1000
	cmpl	$9, %eax
	jg	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_IS_GEN
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movl	$3640, %r13d                    ## imm = 0xE38
	cmovel	%ecx, %r13d
	movl	$2304, %r12d                    ## imm = 0x900
	cmovel	%ecx, %r12d
LBB0_7:
	cmpl	%r13d, %r14d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jg	LBB0_9
## %bb.8:
	cmpl	%r12d, %edx
	jg	LBB0_9
## %bb.10:
	movl	(%rbx), %ecx
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_16
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpq	$0, (%r15)
	je	LBB0_13
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_15
LBB0_13:
	movl	$1, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PSR2 cannot be enabled since DSC is enabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"PSR2 not enabled, resolution %dx%d > max supported %dx%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"PSR2 not enabled, hdisplay(%d) not multiple of %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"PSR2 not enabled because it would inhibit pipe CRC calculation\n"

	.no_dead_strip	_intel_psr2_config_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_psr2_config_valid
_intel_psr2_config_valid:               ; @intel_psr2_config_valid
	.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	x19, x1
	bl	_dp_to_i915
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_13
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_3:
	mov	x20, x0
	ldp	w21, w22, [x19, #16]
	bl	_INTEL_GEN
	cmp	w0, #9
	b.le	LBB0_5
; %bb.4:
	mov	w23, #2304
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_IS_GEMINILAKE
	mov	w23, #2304
	cbz	x0, LBB0_10
LBB0_6:
	mov	w8, #4096
	cmp	w21, w8
	b.gt	LBB0_11
LBB0_7:
	cmp	w22, w23
	b.gt	LBB0_11
; %bb.8:
	ldr	w8, [x20]
	sdiv	w9, w21, w8
	msub	w9, w9, w8, w21
	cbz	w9, LBB0_15
; %bb.9:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x21, x8, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x0, x20
	mov	w1, #9
	bl	_IS_GEN
	cmp	x0, #0
	mov	w8, #3640
	csel	w8, wzr, w8, eq
	csel	w23, wzr, w23, eq
	cmp	w21, w8
	b.le	LBB0_7
LBB0_11:
	stp	x8, x23, [sp, #16]
	stp	x21, x22, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_12:
	bl	_DRM_DEBUG_KMS
LBB0_13:
	mov	w0, #0
LBB0_14:
	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_15:
	ldr	x8, [x19]
	cbz	x8, LBB0_17
; %bb.16:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_17:
	mov	w0, #1
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PSR2 cannot be enabled since DSC is enabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"PSR2 not enabled, resolution %dx%d > max supported %dx%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"PSR2 not enabled, hdisplay(%d) not multiple of %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"PSR2 not enabled because it would inhibit pipe CRC calculation\n"

	.no_dead_strip	_intel_psr2_config_valid
.subsections_via_symbols
