	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __gen6_gt_force_wake_get
___gen6_gt_force_wake_get:              ## @__gen6_gt_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_IS_HASWELL
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_FORCEWAKE_ACK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FORCEWAKE_ACK_HSW@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ_NOTRACE
	notl	%eax
	andl	$1, %eax
	movq	_FORCEWAKE_ACK_TIMEOUT_MS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_wait_for_atomic
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_5:
	movq	_FORCEWAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FORCEWAKE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_I915_WRITE_NOTRACE
	movq	_ECOBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_POSTING_READ
	movl	%ebx, %edi
	callq	_I915_READ_NOTRACE
	andl	$1, %eax
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_wait_for_atomic
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___gen6_gt_wait_for_thread_c0   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FORCEWAKE_ACK_HSW,4,2          ## @FORCEWAKE_ACK_HSW
	.comm	_FORCEWAKE_ACK,4,2              ## @FORCEWAKE_ACK
	.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,4,2                  ## @FORCEWAKE
	.comm	_FORCEWAKE_KERNEL,4,2           ## @FORCEWAKE_KERNEL
	.comm	_ECOBUS,4,2                     ## @ECOBUS
L_.str.1:                               ## @.str.1
	.asciz	"Timed out waiting for forcewake to ack request.\n"

	.no_dead_strip	___gen6_gt_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 __gen6_gt_force_wake_get
___gen6_gt_force_wake_get:              ; @__gen6_gt_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
	ldr	w0, [x0]
	bl	_IS_HASWELL
Lloh0:
	adrp	x8, _FORCEWAKE_ACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORCEWAKE_ACK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FORCEWAKE_ACK_HSW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FORCEWAKE_ACK_HSW@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ_NOTRACE
	mvn	w8, w0
	and	w0, w8, #0x1
Lloh4:
	adrp	x21, _FORCEWAKE_ACK_TIMEOUT_MS@GOTPAGE
Lloh5:
	ldr	x21, [x21, _FORCEWAKE_ACK_TIMEOUT_MS@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_wait_for_atomic
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
Lloh8:
	adrp	x8, _FORCEWAKE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FORCEWAKE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _FORCEWAKE_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FORCEWAKE_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_I915_WRITE_NOTRACE
Lloh14:
	adrp	x8, _ECOBUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ECOBUS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_POSTING_READ
	mov	x0, x20
	bl	_I915_READ_NOTRACE
	and	w0, w0, #0x1
	ldr	w1, [x21]
	bl	_wait_for_atomic
	cbz	x0, LBB0_4
; %bb.3:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FORCEWAKE_ACK_HSW,4,2          ; @FORCEWAKE_ACK_HSW
	.comm	_FORCEWAKE_ACK,4,2              ; @FORCEWAKE_ACK
	.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,4,2                  ; @FORCEWAKE
	.comm	_FORCEWAKE_KERNEL,4,2           ; @FORCEWAKE_KERNEL
	.comm	_ECOBUS,4,2                     ; @ECOBUS
l_.str.1:                               ; @.str.1
	.asciz	"Timed out waiting for forcewake to ack request.\n"

	.no_dead_strip	___gen6_gt_force_wake_get
.subsections_via_symbols
