	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_pch_reset_handshake
_intel_pch_reset_handshake:             ## @intel_pch_reset_handshake
	.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	%esi, %r14d
	callq	_IS_IVYBRIDGE
	movq	_WAIT_FOR_PCH_FLR_ACK@GOTPCREL(%rip), %rcx
	movq	_WAIT_FOR_PCH_RESET_ACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	testq	%rax, %rax
	movq	_RESET_PCH_HANDSHAKE_ENABLE@GOTPCREL(%rip), %rax
	cmovel	(%rax), %ebx
	movq	_GEN7_MSG_CTL@GOTPCREL(%rip), %rax
	cmoveq	_HSW_NDE_RSTWRN_OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_I915_READ
	movl	%eax, %ecx
	orl	%ebx, %ecx
	notl	%ebx
	andl	%eax, %ebx
	testl	%r14d, %r14d
	cmovnel	%ecx, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN7_MSG_CTL,4,2               ## @GEN7_MSG_CTL
	.comm	_WAIT_FOR_PCH_FLR_ACK,4,2       ## @WAIT_FOR_PCH_FLR_ACK
	.comm	_WAIT_FOR_PCH_RESET_ACK,4,2     ## @WAIT_FOR_PCH_RESET_ACK
	.comm	_HSW_NDE_RSTWRN_OPT,4,2         ## @HSW_NDE_RSTWRN_OPT
	.comm	_RESET_PCH_HANDSHAKE_ENABLE,4,2 ## @RESET_PCH_HANDSHAKE_ENABLE
	.no_dead_strip	_intel_pch_reset_handshake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_pch_reset_handshake
_intel_pch_reset_handshake:             ; @intel_pch_reset_handshake
	.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, x1
	bl	_IS_IVYBRIDGE
Lloh0:
	adrp	x8, _WAIT_FOR_PCH_FLR_ACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WAIT_FOR_PCH_FLR_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WAIT_FOR_PCH_RESET_ACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WAIT_FOR_PCH_RESET_ACK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _RESET_PCH_HANDSHAKE_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RESET_PCH_HANDSHAKE_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _HSW_NDE_RSTWRN_OPT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _HSW_NDE_RSTWRN_OPT@GOTPAGEOFF]
Lloh11:
	adrp	x11, _GEN7_MSG_CTL@GOTPAGE
Lloh12:
	ldr	x11, [x11, _GEN7_MSG_CTL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x10, x10, x11, eq
	csel	w21, w9, w8, eq
	ldr	w20, [x10]
	mov	x0, x20
	bl	_I915_READ
	orr	w8, w0, w21
	bic	w9, w0, w21
	cmp	w19, #0
	csel	w1, w9, w8, eq
	mov	x0, x20
	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	_I915_WRITE
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN7_MSG_CTL,4,2               ; @GEN7_MSG_CTL
	.comm	_WAIT_FOR_PCH_FLR_ACK,4,2       ; @WAIT_FOR_PCH_FLR_ACK
	.comm	_WAIT_FOR_PCH_RESET_ACK,4,2     ; @WAIT_FOR_PCH_RESET_ACK
	.comm	_HSW_NDE_RSTWRN_OPT,4,2         ; @HSW_NDE_RSTWRN_OPT
	.comm	_RESET_PCH_HANDSHAKE_ENABLE,4,2 ; @RESET_PCH_HANDSHAKE_ENABLE
	.no_dead_strip	_intel_pch_reset_handshake
.subsections_via_symbols
