	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_wait_for_power_well_disable
_hsw_wait_for_power_well_disable:       ## @hsw_wait_for_power_well_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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	16(%rax), %r13
	movl	8(%rax), %r12d
	movl	(%r13), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_HSW_PWR_WELL_CTL_STATE
	testl	%ebx, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_hsw_power_well_requesters
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	movl	$1, %esi
	callq	_wait_for
	movq	(%r14), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$1, %edx
	movl	%ebx, %ecx
	shrl	%ecx
	andl	$1, %ecx
	movl	%ebx, %r8d
	shrl	$2, %r8d
	andl	$1, %r8d
	shrl	$3, %ebx
	andl	$1, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
LBB0_1:
	movl	$1, %edi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_for                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s forced on (bios:%d driver:%d kvmr:%d debug:%d)\n"

	.no_dead_strip	_hsw_wait_for_power_well_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_wait_for_power_well_disable
_hsw_wait_for_power_well_disable:       ; @hsw_wait_for_power_well_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, x1
	mov	x20, x0
	ldr	x8, [x1]
	ldr	x21, [x8, #16]
	ldr	w22, [x8, #8]
	ldr	w0, [x21]
	bl	_I915_READ
	mov	x23, x0
	mov	x0, x22
	bl	_HSW_PWR_WELL_CTL_STATE
	tst	w0, w23
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_hsw_power_well_requesters
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	mov	w1, #1
	bl	_wait_for
	ldr	x8, [x19]
	ldr	w1, [x8]
	and	w2, w20, #0x1
	ubfx	w3, w20, #1, #1
	ubfx	w4, w20, #2, #1
	ubfx	w5, w20, #3, #1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	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_DEBUG_KMS
LBB0_2:
	mov	w0, #1
	mov	w1, #1
	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	_wait_for
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s forced on (bios:%d driver:%d kvmr:%d debug:%d)\n"

	.no_dead_strip	_hsw_wait_for_power_well_disable
.subsections_via_symbols
