	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_enable_gui_idle_interrupt
_si_enable_gui_idle_interrupt:          ## @si_enable_gui_idle_interrupt
	.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, %ebx
	movq	%rdi, %r14
	movq	_CP_INT_CNTL_RING0@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32
	movq	_CNTX_BUSY_INT_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CNTX_EMPTY_INT_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.6:
	orl	%eax, %esi
	orl	%ecx, %esi
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_1:
	orl	%esi, %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_WREG32
	movq	_DB_DEPTH_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.2:
	movq	_RLC_BUSY_STATUS@GOTPCREL(%rip), %rax
	movq	_GFX_POWER_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_GFX_CLOCK_STATUS@GOTPCREL(%rip), %r12
	orl	(%r12), %r13d
	movq	_GFX_LS_STATUS@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	xorl	%ebx, %ebx
	movq	_RLC_STAT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_RREG32
	andl	%r13d, %eax
	movq	_GFX_POWER_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r12), %ecx
	cmpl	%ecx, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_3
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_INT_CNTL_RING0,4,2          ## @CP_INT_CNTL_RING0
	.comm	_CNTX_BUSY_INT_ENABLE,4,2       ## @CNTX_BUSY_INT_ENABLE
	.comm	_CNTX_EMPTY_INT_ENABLE,4,2      ## @CNTX_EMPTY_INT_ENABLE
	.comm	_DB_DEPTH_INFO,4,2              ## @DB_DEPTH_INFO
	.comm	_RLC_BUSY_STATUS,4,2            ## @RLC_BUSY_STATUS
	.comm	_GFX_POWER_STATUS,4,2           ## @GFX_POWER_STATUS
	.comm	_GFX_CLOCK_STATUS,4,2           ## @GFX_CLOCK_STATUS
	.comm	_GFX_LS_STATUS,4,2              ## @GFX_LS_STATUS
	.comm	_RLC_STAT,4,2                   ## @RLC_STAT
	.no_dead_strip	_si_enable_gui_idle_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_enable_gui_idle_interrupt
_si_enable_gui_idle_interrupt:          ; @si_enable_gui_idle_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _CP_INT_CNTL_RING0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CP_INT_CNTL_RING0@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32
Lloh2:
	adrp	x8, _CNTX_BUSY_INT_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CNTX_BUSY_INT_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CNTX_EMPTY_INT_ENABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CNTX_EMPTY_INT_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cbz	w20, LBB0_2
; %bb.1:
	orr	w8, w8, w0
	orr	w1, w8, w9
	ldr	w0, [x21]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_WREG32
LBB0_2:
	orr	w8, w9, w8
	bic	w1, w0, w8
	ldr	w0, [x21]
	bl	_WREG32
Lloh8:
	adrp	x8, _DB_DEPTH_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DB_DEPTH_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_RREG32
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w20, #0
Lloh11:
	adrp	x8, _RLC_BUSY_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RLC_BUSY_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x21, _GFX_POWER_STATUS@GOTPAGE
Lloh15:
	ldr	x21, [x21, _GFX_POWER_STATUS@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh16:
	adrp	x22, _GFX_CLOCK_STATUS@GOTPAGE
Lloh17:
	ldr	x22, [x22, _GFX_CLOCK_STATUS@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _GFX_LS_STATUS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GFX_LS_STATUS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w23, w8, w9
Lloh21:
	adrp	x24, _RLC_STAT@GOTPAGE
Lloh22:
	ldr	x24, [x24, _RLC_STAT@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_RREG32
	and	w8, w0, w23
	ldr	w9, [x22]
	ldr	w10, [x21]
	orr	w9, w10, w9
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_4
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_INT_CNTL_RING0,4,2          ; @CP_INT_CNTL_RING0
	.comm	_CNTX_BUSY_INT_ENABLE,4,2       ; @CNTX_BUSY_INT_ENABLE
	.comm	_CNTX_EMPTY_INT_ENABLE,4,2      ; @CNTX_EMPTY_INT_ENABLE
	.comm	_DB_DEPTH_INFO,4,2              ; @DB_DEPTH_INFO
	.comm	_RLC_BUSY_STATUS,4,2            ; @RLC_BUSY_STATUS
	.comm	_GFX_POWER_STATUS,4,2           ; @GFX_POWER_STATUS
	.comm	_GFX_CLOCK_STATUS,4,2           ; @GFX_CLOCK_STATUS
	.comm	_GFX_LS_STATUS,4,2              ; @GFX_LS_STATUS
	.comm	_RLC_STAT,4,2                   ; @RLC_STAT
	.no_dead_strip	_si_enable_gui_idle_interrupt
.subsections_via_symbols
