	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_power_well_enabled
_hsw_power_well_enabled:                ## @hsw_power_well_enabled
	.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, %r12
	movq	(%rsi), %rax
	movq	16(%rax), %r13
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rax), %ebx
	movl	%ebx, %edi
	callq	_HSW_PWR_WELL_CTL_REQ
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_HSW_PWR_WELL_CTL_STATE
	movl	%eax, %r15d
	movl	4(%r13), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$9, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	callq	_IS_GEN9_LP
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_SKL_DISP_PW_1@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	je	LBB0_4
## %bb.3:
	movq	_SKL_DISP_PW_MISC_IO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_5
LBB0_4:
	movl	(%r13), %edi
	callq	_I915_READ
	orl	%eax, %ebx
LBB0_5:
	orl	%r14d, %r15d
	notl	%ebx
	xorl	%eax, %eax
	testl	%ebx, %r15d
	sete	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SKL_DISP_PW_1,4,2              ## @SKL_DISP_PW_1
	.comm	_SKL_DISP_PW_MISC_IO,4,2        ## @SKL_DISP_PW_MISC_IO
	.no_dead_strip	_hsw_power_well_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_power_well_enabled
_hsw_power_well_enabled:                ; @hsw_power_well_enabled
	.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	x22, x0
	ldr	x8, [x1]
	ldr	x23, [x8, #16]
	ldr	w24, [x8]
	ldr	w20, [x8, #8]
	mov	x0, x20
	bl	_HSW_PWR_WELL_CTL_REQ
	mov	x19, x0
	mov	x0, x20
	bl	_HSW_PWR_WELL_CTL_STATE
	mov	x20, x0
	ldr	w0, [x23, #4]
	bl	_I915_READ
	mov	x21, x0
	mov	x0, x22
	mov	w1, #9
	bl	_IS_GEN
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_IS_GEN9_LP
	cbnz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _SKL_DISP_PW_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SKL_DISP_PW_1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SKL_DISP_PW_MISC_IO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SKL_DISP_PW_MISC_IO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w24, w8
	ccmp	w24, w9, #4, ne
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x23]
	bl	_I915_READ
	orr	w21, w0, w21
LBB0_4:
	orr	w8, w20, w19
	bics	wzr, w8, w21
	cset	w0, eq
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SKL_DISP_PW_1,4,2              ; @SKL_DISP_PW_1
	.comm	_SKL_DISP_PW_MISC_IO,4,2        ; @SKL_DISP_PW_MISC_IO
	.no_dead_strip	_hsw_power_well_enabled
.subsections_via_symbols
