	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_disable_ddi_buf
_intel_disable_ddi_buf:                 ## @intel_disable_ddi_buf
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r15d
	movl	%r15d, %edi
	callq	_DDI_BUF_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r13d
	movq	_DDI_BUF_CTL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%r13d, %r12d
	je	LBB0_2
## %bb.1:
	movq	%r14, %rbx
	movl	%r12d, %r14d
	notl	%r14d
	andl	%r13d, %r14d
	movl	%r15d, %edi
	callq	_DDI_BUF_CTL
	movl	%eax, %edi
	movl	%r14d, %esi
	movq	%rbx, %r14
	callq	_I915_WRITE
LBB0_2:
	movl	%r15d, %edi
	callq	_DP_TP_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movq	_DP_TP_CTL_ENABLE@GOTPCREL(%rip), %rcx
	movq	_DP_TP_CTL_LINK_TRAIN_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_DP_TP_CTL_LINK_TRAIN_PAT1@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_DP_TP_CTL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_intel_ddi_disable_fec_state
	testl	%r13d, %r12d
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_wait_ddi_buf_idle        ## TAILCALL
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DDI_BUF_CTL_ENABLE,4,2         ## @DDI_BUF_CTL_ENABLE
	.comm	_DP_TP_CTL_ENABLE,4,2           ## @DP_TP_CTL_ENABLE
	.comm	_DP_TP_CTL_LINK_TRAIN_MASK,4,2  ## @DP_TP_CTL_LINK_TRAIN_MASK
	.comm	_DP_TP_CTL_LINK_TRAIN_PAT1,4,2  ## @DP_TP_CTL_LINK_TRAIN_PAT1
	.no_dead_strip	_intel_disable_ddi_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_disable_ddi_buf
_intel_disable_ddi_buf:                 ; @intel_disable_ddi_buf
	.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	x21, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x19, x0
	ldr	w20, [x22]
	mov	x0, x20
	bl	_DDI_BUF_CTL
	bl	_I915_READ
Lloh0:
	adrp	x8, _DDI_BUF_CTL_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DDI_BUF_CTL_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w24, w8, w0
	b.eq	LBB0_2
; %bb.1:
	bic	w23, w0, w8
	mov	x0, x20
	bl	_DDI_BUF_CTL
	mov	x1, x23
	bl	_I915_WRITE
LBB0_2:
	mov	x0, x20
	bl	_DP_TP_CTL
	bl	_I915_READ
Lloh3:
	adrp	x8, _DP_TP_CTL_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_TP_CTL_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DP_TP_CTL_LINK_TRAIN_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DP_TP_CTL_LINK_TRAIN_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh9:
	adrp	x9, _DP_TP_CTL_LINK_TRAIN_PAT1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DP_TP_CTL_LINK_TRAIN_PAT1@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w23, w8, w9
	mov	x0, x20
	bl	_DP_TP_CTL
	mov	x1, x23
	bl	_I915_WRITE
	mov	x0, x22
	mov	x1, x21
	bl	_intel_ddi_disable_fec_state
	cbz	w24, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	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	_intel_wait_ddi_buf_idle
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DDI_BUF_CTL_ENABLE,4,2         ; @DDI_BUF_CTL_ENABLE
	.comm	_DP_TP_CTL_ENABLE,4,2           ; @DP_TP_CTL_ENABLE
	.comm	_DP_TP_CTL_LINK_TRAIN_MASK,4,2  ; @DP_TP_CTL_LINK_TRAIN_MASK
	.comm	_DP_TP_CTL_LINK_TRAIN_PAT1,4,2  ; @DP_TP_CTL_LINK_TRAIN_PAT1
	.no_dead_strip	_intel_disable_ddi_buf
.subsections_via_symbols
