	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dbuf_slice_set
_intel_dbuf_slice_set:                  ## @intel_dbuf_slice_set
	.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	%edx, %r14d
	movl	%esi, %ebx
	movl	%esi, %edi
	callq	_I915_READ
	movq	_DBUF_POWER_REQUEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	orl	%eax, %ecx
	notl	%esi
	andl	%eax, %esi
	testl	%r14d, %r14d
	sete	%r15b
	cmovnel	%ecx, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$10, %edi
	callq	_udelay
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_DBUF_POWER_STATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	setne	%cl
	movl	%r15d, %eax
	orb	%cl, %al
	cmpb	$1, %al
	jne	LBB0_2
## %bb.1:
	movl	$1, %eax
	andb	%cl, %r15b
	je	LBB0_3
LBB0_2:
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBUF_POWER_REQUEST,4,2         ## @DBUF_POWER_REQUEST
	.comm	_DBUF_POWER_STATE,4,2           ## @DBUF_POWER_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DBus power %s timeout!\n"

L_.str.1:                               ## @.str.1
	.asciz	"enable"

L_.str.2:                               ## @.str.2
	.asciz	"disable"

	.no_dead_strip	_intel_dbuf_slice_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dbuf_slice_set
_intel_dbuf_slice_set:                  ; @intel_dbuf_slice_set
	.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, x2
	mov	x20, x1
	mov	x0, x1
	bl	_I915_READ
Lloh0:
	adrp	x8, _DBUF_POWER_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBUF_POWER_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w19, #0
	csel	w1, w8, w9, eq
	cset	w21, eq
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #10
	bl	_udelay
	mov	x0, x20
	bl	_I915_READ
Lloh3:
	adrp	x8, _DBUF_POWER_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBUF_POWER_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	orr	w9, w21, w8
	and	w8, w21, w8
	cmp	w9, #1
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x1, x9, x8, eq
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DBUF_POWER_REQUEST,4,2         ; @DBUF_POWER_REQUEST
	.comm	_DBUF_POWER_STATE,4,2           ; @DBUF_POWER_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DBus power %s timeout!\n"

l_.str.1:                               ; @.str.1
	.asciz	"enable"

l_.str.2:                               ; @.str.2
	.asciz	"disable"

	.no_dead_strip	_intel_dbuf_slice_set
.subsections_via_symbols
