	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_allowed_dc_mask
_get_allowed_dc_mask:                   ## @get_allowed_dc_mask
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_2
## %bb.1:
	movq	_DC_STATE_EN_DC9@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$2, %r12d
	jmp	LBB0_7
LBB0_2:
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_IS_GEN
	movl	$2, %r12d
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_IS_GEN9_BC
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_IS_GEN9_LP
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%al
	je	LBB0_6
## %bb.5:
	movq	_DC_STATE_EN_DC9@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_6:
	movb	%al, %r12b
LBB0_7:
	movq	_i915_modparams@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	cmovel	%eax, %r12d
	testl	%r14d, %r14d
	js	LBB0_10
## %bb.8:
	cmpl	%r14d, %r12d
	jl	LBB0_10
## %bb.9:
	movl	%r14d, %r12d
	jmp	LBB0_15
LBB0_10:
	cmpl	$-1, %r14d
	je	LBB0_15
## %bb.11:
	cmpl	$2, %r14d
	jg	LBB0_14
## %bb.12:
	cmpl	%r14d, %r12d
	jge	LBB0_14
## %bb.13:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_DRM_ERROR
LBB0_15:
	movl	$0, %ebx
	cmpl	$2, %r12d
	jb	LBB0_17
## %bb.16:
	movq	_DC_STATE_EN_UPTO_DC6@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_17:
	orl	%r13d, %ebx
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.18:
	movq	_DC_STATE_EN_UPTO_DC5@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_19:
	orl	%r12d, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_STATE_EN_DC9,4,2            ## @DC_STATE_EN_DC9
	.comm	_i915_modparams,4,2             ## @i915_modparams
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adjusting requested max DC state (%d->%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected value for enable_dc (%d)\n"

	.comm	_DC_STATE_EN_UPTO_DC6,4,2       ## @DC_STATE_EN_UPTO_DC6
	.comm	_DC_STATE_EN_UPTO_DC5,4,2       ## @DC_STATE_EN_UPTO_DC5
L_.str.2:                               ## @.str.2
	.asciz	"Allowed DC state mask %02x\n"

	.no_dead_strip	_get_allowed_dc_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_allowed_dc_mask
_get_allowed_dc_mask:                   ; @get_allowed_dc_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DC_STATE_EN_DC9@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DC_STATE_EN_DC9@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	mov	w1, #10
	bl	_IS_GEN
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_IS_GEN9_BC
	cbz	x0, LBB0_15
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	w8, #2
LBB0_6:
Lloh3:
	adrp	x9, _i915_modparams@GOTPAGE
Lloh4:
	ldr	x9, [x9, _i915_modparams@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, #0
	csel	w21, wzr, w8, eq
	tbnz	w19, #31, LBB0_9
; %bb.7:
	cmp	w21, w19
	b.lt	LBB0_9
; %bb.8:
	mov	x21, x19
	b	LBB0_14
LBB0_9:
	cmn	w19, #1
	b.eq	LBB0_14
; %bb.10:
	cmp	w19, #2
	b.gt	LBB0_13
; %bb.11:
	cmp	w21, w19
	b.ge	LBB0_13
; %bb.12:
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_KMS
	b	LBB0_14
LBB0_13:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DRM_ERROR
LBB0_14:
Lloh10:
	adrp	x8, _DC_STATE_EN_UPTO_DC6@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DC_STATE_EN_UPTO_DC6@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w21, #1
	csel	w8, w8, wzr, hi
	orr	w8, w8, w20
Lloh13:
	adrp	x9, _DC_STATE_EN_UPTO_DC5@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DC_STATE_EN_UPTO_DC5@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w21, #0
	csel	w9, wzr, w9, eq
	orr	w19, w8, w9
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	mov	x0, x20
	bl	_IS_GEN9_LP
	cmp	x0, #0
	cset	w8, ne
Lloh18:
	adrp	x9, _DC_STATE_EN_DC9@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DC_STATE_EN_DC9@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	csel	w20, wzr, w9, eq
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_STATE_EN_DC9,4,2            ; @DC_STATE_EN_DC9
	.comm	_i915_modparams,4,2             ; @i915_modparams
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adjusting requested max DC state (%d->%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected value for enable_dc (%d)\n"

	.comm	_DC_STATE_EN_UPTO_DC6,4,2       ; @DC_STATE_EN_UPTO_DC6
	.comm	_DC_STATE_EN_UPTO_DC5,4,2       ; @DC_STATE_EN_UPTO_DC5
l_.str.2:                               ; @.str.2
	.asciz	"Allowed DC state mask %02x\n"

	.no_dead_strip	_get_allowed_dc_mask
.subsections_via_symbols
