	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ironlake_set_drps              ## -- Begin function ironlake_set_drps
	.p2align	4, 0x90
_ironlake_set_drps:                     ## @ironlake_set_drps
	.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
	movl	%esi, %ebx
	movq	_mchdev_lock@GOTPCREL(%rip), %rdi
	callq	_assert_spin_locked
	movq	_MEMSWCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_I915_READ16
	movq	_MEMCTL_CMD_STS@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_MEMCTL_CMD_CHFREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MEMCTL_CMD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_MEMCTL_FREQ_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movq	_MEMCTL_SFCAVM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE16
	movl	(%r14), %edi
	callq	_POSTING_READ16
	orl	(%r15), %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE16
	movl	$1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mchdev_lock,4,2                ## @mchdev_lock
	.comm	_MEMSWCTL,4,2                   ## @MEMSWCTL
	.comm	_MEMCTL_CMD_STS,4,2             ## @MEMCTL_CMD_STS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpu busy, RCS change rejected\n"

	.comm	_MEMCTL_CMD_CHFREQ,4,2          ## @MEMCTL_CMD_CHFREQ
	.comm	_MEMCTL_CMD_SHIFT,4,2           ## @MEMCTL_CMD_SHIFT
	.comm	_MEMCTL_FREQ_SHIFT,4,2          ## @MEMCTL_FREQ_SHIFT
	.comm	_MEMCTL_SFCAVM,4,2              ## @MEMCTL_SFCAVM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ironlake_set_drps              ; -- Begin function ironlake_set_drps
	.p2align	2
_ironlake_set_drps:                     ; @ironlake_set_drps
	.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, x1
Lloh0:
	adrp	x0, _mchdev_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mchdev_lock@GOTPAGEOFF]
	bl	_assert_spin_locked
Lloh2:
	adrp	x20, _MEMSWCTL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MEMSWCTL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ16
Lloh4:
	adrp	x21, _MEMCTL_CMD_STS@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MEMCTL_CMD_STS@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _MEMCTL_CMD_CHFREQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEMCTL_CMD_CHFREQ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _MEMCTL_CMD_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MEMCTL_CMD_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh14:
	adrp	x9, _MEMCTL_FREQ_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MEMCTL_FREQ_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _MEMCTL_SFCAVM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MEMCTL_SFCAVM@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w19, w8, w9
	ldr	w0, [x20]
	mov	x1, x19
	bl	_I915_WRITE16
	ldr	w0, [x20]
	bl	_POSTING_READ16
	ldr	w8, [x21]
	orr	w1, w8, w19
	ldr	w0, [x20]
	bl	_I915_WRITE16
	mov	w0, #1
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_mchdev_lock,4,2                ; @mchdev_lock
	.comm	_MEMSWCTL,4,2                   ; @MEMSWCTL
	.comm	_MEMCTL_CMD_STS,4,2             ; @MEMCTL_CMD_STS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpu busy, RCS change rejected\n"

	.comm	_MEMCTL_CMD_CHFREQ,4,2          ; @MEMCTL_CMD_CHFREQ
	.comm	_MEMCTL_CMD_SHIFT,4,2           ; @MEMCTL_CMD_SHIFT
	.comm	_MEMCTL_FREQ_SHIFT,4,2          ; @MEMCTL_FREQ_SHIFT
	.comm	_MEMCTL_SFCAVM,4,2              ; @MEMCTL_SFCAVM
.subsections_via_symbols
