	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_wait_for_pipe_off        ## -- Begin function intel_wait_for_pipe_off
	.p2align	4, 0x90
_intel_wait_for_pipe_off:               ## @intel_wait_for_pipe_off
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	callq	_intel_pipe_to_cpu_transcoder
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	jl	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_PIPECONF
	movl	%eax, %edi
	callq	_I915_READ
	movq	_I965_PIPECONF_ACTIVE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	movl	$100, %esi
	callq	_wait_for
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
LBB0_2:
	movl	%ebx, %edi
	callq	_PIPEDSL
	movl	%eax, %r12d
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_IS_GEN2
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_DSL_LINEMASK_GEN3@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_DSL_LINEMASK_GEN2@GOTPCREL(%rip), %rax
LBB0_5:
	addq	%rbx, %r14
	movl	(%rax), %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	$5, %edi
	callq	_mdelay
	movl	%r12d, %edi
	callq	_I915_READ
	xorl	%ebx, %eax
	testl	%r15d, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_6
LBB0_8:
	movq	(%r13), %rdi
	movq	%r14, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I965_PIPECONF_ACTIVE,4,2       ## @I965_PIPECONF_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pipe_off wait timed out\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DSL_LINEMASK_GEN2,4,2          ## @DSL_LINEMASK_GEN2
	.comm	_DSL_LINEMASK_GEN3,4,2          ## @DSL_LINEMASK_GEN3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_wait_for_pipe_off        ; -- Begin function intel_wait_for_pipe_off
	.p2align	2
_intel_wait_for_pipe_off:               ; @intel_wait_for_pipe_off
	.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	x21, x0
	ldr	x0, [x0]
	bl	_intel_pipe_to_cpu_transcoder
	mov	x20, x0
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #4
	b.lt	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_PIPECONF
	bl	_I915_READ
Lloh0:
	adrp	x8, _I965_PIPECONF_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I965_PIPECONF_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, eq
	mov	w1, #100
	bl	_wait_for
	cbz	x0, LBB0_7
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #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	_WARN
LBB0_3:
	mov	x0, x19
	bl	_PIPEDSL
	mov	x19, x0
Lloh5:
	adrp	x22, _jiffies@GOTPAGE
Lloh6:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x20, [x22]
	mov	w0, #100
	bl	_msecs_to_jiffies
	add	x20, x0, x20
	mov	x0, x21
	bl	_IS_GEN2
Lloh7:
	adrp	x8, _DSL_LINEMASK_GEN3@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DSL_LINEMASK_GEN3@GOTPAGEOFF]
Lloh9:
	adrp	x9, _DSL_LINEMASK_GEN2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DSL_LINEMASK_GEN2@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w23, [x8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_I915_READ
	mov	x21, x0
	mov	w0, #5
	bl	_mdelay
	mov	x0, x19
	bl	_I915_READ
	eor	w8, w0, w21
	tst	w8, w23
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x22]
	mov	x0, x20
	bl	_time_after
	cbnz	x0, LBB0_4
LBB0_6:
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_2
LBB0_7:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_I965_PIPECONF_ACTIVE,4,2       ; @I965_PIPECONF_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pipe_off wait timed out\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DSL_LINEMASK_GEN2,4,2          ; @DSL_LINEMASK_GEN2
	.comm	_DSL_LINEMASK_GEN3,4,2          ; @DSL_LINEMASK_GEN3
.subsections_via_symbols
