	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_force_wake_get
_vlv_force_wake_get:                    ## @vlv_force_wake_get
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_FORCEWAKE_ACK_VLV@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_READ_NOTRACE
	notl	%eax
	andl	$1, %eax
	movq	_FORCEWAKE_ACK_TIMEOUT_MS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_wait_for_atomic
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_2:
	movq	_FORCEWAKE_VLV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_FORCEWAKE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE_NOTRACE
	movl	(%r15), %edi
	callq	_I915_READ_NOTRACE
	andl	$1, %eax
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_wait_for_atomic
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___gen6_gt_wait_for_thread_c0   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FORCEWAKE_ACK_VLV,4,2          ## @FORCEWAKE_ACK_VLV
	.comm	_FORCEWAKE_ACK_TIMEOUT_MS,4,2   ## @FORCEWAKE_ACK_TIMEOUT_MS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timed out waiting for forcewake old ack to clear.\n"

	.comm	_FORCEWAKE_VLV,4,2              ## @FORCEWAKE_VLV
	.comm	_FORCEWAKE_KERNEL,4,2           ## @FORCEWAKE_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Timed out waiting for forcewake to ack request.\n"

	.no_dead_strip	_vlv_force_wake_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_force_wake_get
_vlv_force_wake_get:                    ; @vlv_force_wake_get
	.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, x0
Lloh0:
	adrp	x21, _FORCEWAKE_ACK_VLV@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FORCEWAKE_ACK_VLV@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_I915_READ_NOTRACE
	mvn	w8, w0
	and	w0, w8, #0x1
Lloh2:
	adrp	x22, _FORCEWAKE_ACK_TIMEOUT_MS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FORCEWAKE_ACK_TIMEOUT_MS@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_wait_for_atomic
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
Lloh6:
	adrp	x8, _FORCEWAKE_VLV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FORCEWAKE_VLV@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _FORCEWAKE_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FORCEWAKE_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE_NOTRACE
	ldr	w0, [x21]
	bl	_I915_READ_NOTRACE
	and	w0, w0, #0x1
	ldr	w1, [x22]
	bl	_wait_for_atomic
	cbz	x0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_4:
	mov	x0, x19
	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
	b	___gen6_gt_wait_for_thread_c0
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FORCEWAKE_ACK_VLV,4,2          ; @FORCEWAKE_ACK_VLV
	.comm	_FORCEWAKE_ACK_TIMEOUT_MS,4,2   ; @FORCEWAKE_ACK_TIMEOUT_MS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timed out waiting for forcewake old ack to clear.\n"

	.comm	_FORCEWAKE_VLV,4,2              ; @FORCEWAKE_VLV
	.comm	_FORCEWAKE_KERNEL,4,2           ; @FORCEWAKE_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Timed out waiting for forcewake to ack request.\n"

	.no_dead_strip	_vlv_force_wake_get
.subsections_via_symbols
