	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_wait_ddi_buf_idle
_intel_wait_ddi_buf_idle:               ## @intel_wait_ddi_buf_idle
	.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
	movl	%esi, %edi
	callq	_DDI_BUF_CTL
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_udelay
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_DDI_BUF_IS_IDLE@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.1:
	movl	$1, %edi
	callq	_udelay
	movl	%ebx, %edi
	callq	_I915_READ
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.2:
	movl	$1, %edi
	callq	_udelay
	movl	%ebx, %edi
	callq	_I915_READ
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.3:
	movl	$1, %edi
	callq	_udelay
	movl	%ebx, %edi
	callq	_I915_READ
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.4:
	movl	$1, %edi
	callq	_udelay
	movl	%ebx, %edi
	callq	_I915_READ
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.5:
	movl	$1, %edi
	callq	_udelay
	movl	%ebx, %edi
	callq	_I915_READ
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.6:
	movl	$1, %edi
	callq	_udelay
	movl	%ebx, %edi
	callq	_I915_READ
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.7:
	movl	$1, %edi
	callq	_udelay
	movl	%ebx, %edi
	callq	_I915_READ
	testl	%eax, (%r15)
	je	LBB0_9
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%r14d, %edi
	callq	_port_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DDI_BUF_IS_IDLE,4,2            ## @DDI_BUF_IS_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout waiting for DDI BUF %c idle bit\n"

	.no_dead_strip	_intel_wait_ddi_buf_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_wait_ddi_buf_idle
_intel_wait_ddi_buf_idle:               ; @intel_wait_ddi_buf_idle
	.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
	mov	x0, x1
	bl	_DDI_BUF_CTL
	mov	x20, x0
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_I915_READ
Lloh0:
	adrp	x21, _DDI_BUF_IS_IDLE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DDI_BUF_IS_IDLE@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_8
; %bb.1:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_I915_READ
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_8
; %bb.2:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_I915_READ
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_8
; %bb.3:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_I915_READ
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_8
; %bb.4:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_I915_READ
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_8
; %bb.5:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_I915_READ
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_8
; %bb.6:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_I915_READ
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_I915_READ
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_9
LBB0_8:
	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
	ret
LBB0_9:
	mov	x0, x19
	bl	_port_name
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	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	_DRM_ERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DDI_BUF_IS_IDLE,4,2            ; @DDI_BUF_IS_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout waiting for DDI BUF %c idle bit\n"

	.no_dead_strip	_intel_wait_ddi_buf_idle
.subsections_via_symbols
