	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_dbuf_disable
_icl_dbuf_disable:                      ## @icl_dbuf_disable
	.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	%rdi, %r14
	movq	_DBUF_CTL_S1@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_DBUF_POWER_REQUEST@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movq	_DBUF_CTL_S2@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	(%r12), %edi
	callq	_POSTING_READ
	movl	$10, %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_I915_READ
	movq	_DBUF_POWER_STATE@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	jne	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	callq	_I915_READ
	testl	%eax, (%rbx)
	je	LBB0_2
LBB0_3:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_2:
	movl	$1, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBUF_CTL_S1,4,2                ## @DBUF_CTL_S1
	.comm	_DBUF_POWER_REQUEST,4,2         ## @DBUF_POWER_REQUEST
	.comm	_DBUF_CTL_S2,4,2                ## @DBUF_CTL_S2
	.comm	_DBUF_POWER_STATE,4,2           ## @DBUF_POWER_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DBuf power disable timeout!\n"

	.no_dead_strip	_icl_dbuf_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_dbuf_disable
_icl_dbuf_disable:                      ; @icl_dbuf_disable
	.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	x19, x0
Lloh0:
	adrp	x22, _DBUF_CTL_S1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DBUF_CTL_S1@GOTPAGEOFF]
	ldr	w20, [x22]
	mov	x0, x20
	bl	_I915_READ
Lloh2:
	adrp	x23, _DBUF_POWER_REQUEST@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DBUF_POWER_REQUEST@GOTPAGEOFF]
	ldr	w8, [x23]
	bic	w1, w0, w8
	mov	x0, x20
	bl	_I915_WRITE
Lloh4:
	adrp	x21, _DBUF_CTL_S2@GOTPAGE
Lloh5:
	ldr	x21, [x21, _DBUF_CTL_S2@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	x0, x20
	bl	_I915_READ
	ldr	w8, [x23]
	bic	w1, w0, w8
	mov	x0, x20
	bl	_I915_WRITE
	ldr	w0, [x21]
	bl	_POSTING_READ
	mov	w0, #10
	bl	_udelay
	ldr	w0, [x22]
	bl	_I915_READ
Lloh6:
	adrp	x20, _DBUF_POWER_STATE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _DBUF_POWER_STATE@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x21]
	bl	_I915_READ
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_3
LBB0_2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	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	_DRM_ERROR
LBB0_3:
	mov	w8, #1
	str	w8, [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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DBUF_CTL_S1,4,2                ; @DBUF_CTL_S1
	.comm	_DBUF_POWER_REQUEST,4,2         ; @DBUF_POWER_REQUEST
	.comm	_DBUF_CTL_S2,4,2                ; @DBUF_CTL_S2
	.comm	_DBUF_POWER_STATE,4,2           ; @DBUF_POWER_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DBuf power disable timeout!\n"

	.no_dead_strip	_icl_dbuf_disable
.subsections_via_symbols
