	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlv_wait_port_ready            ## -- Begin function vlv_wait_port_ready
	.p2align	4, 0x90
_vlv_wait_port_ready:                   ## @vlv_wait_port_ready
	.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	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_6
## %bb.3:
	movq	_DPLL_PORTB_READY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_DPLL
	movl	%eax, %r13d
	jmp	LBB0_7
LBB0_5:
	movq	_DPLL_PORTD_READY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DPIO_PHY_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_7
LBB0_4:
	movq	_DPLL_PORTC_READY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_DPLL
	movl	%eax, %r13d
	shll	$4, %r15d
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_BUG
                                        ## implicit-def: $ebx
                                        ## implicit-def: $r13d
LBB0_7:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_intel_de_wait_for_register
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	(%r14), %edi
	callq	_port_name
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_I915_READ
	andl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPLL_PORTB_READY_MASK,4,2      ## @DPLL_PORTB_READY_MASK
	.comm	_DPLL_PORTC_READY_MASK,4,2      ## @DPLL_PORTC_READY_MASK
	.comm	_DPLL_PORTD_READY_MASK,4,2      ## @DPLL_PORTD_READY_MASK
	.comm	_DPIO_PHY_STATUS,4,2            ## @DPIO_PHY_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timed out waiting for port %c ready: got 0x%x, expected 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlv_wait_port_ready            ; -- Begin function vlv_wait_port_ready
	.p2align	2
_vlv_wait_port_ready:                   ; @vlv_wait_port_ready
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _DPLL_PORTB_READY_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPLL_PORTB_READY_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	w0, #0
	bl	_DPLL
	mov	x23, x0
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _DPLL_PORTD_READY_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPLL_PORTD_READY_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _DPIO_PHY_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPIO_PHY_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _DPLL_PORTC_READY_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPLL_PORTC_READY_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	mov	w0, #0
	bl	_DPLL
	mov	x23, x0
	lsl	w19, w19, #4
	b	LBB0_7
LBB0_6:
	bl	_BUG
                                        ; implicit-def: $w22
                                        ; implicit-def: $w23
LBB0_7:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x19
	mov	w4, #1000
	bl	_intel_de_wait_for_register
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x20]
	bl	_port_name
	mov	x20, x0
	mov	x0, x23
	bl	_I915_READ
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	and	w3, w0, w22
	mov	w0, #1
	mov	x2, x20
	mov	x4, x19
	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_9:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DPLL_PORTB_READY_MASK,4,2      ; @DPLL_PORTB_READY_MASK
	.comm	_DPLL_PORTC_READY_MASK,4,2      ; @DPLL_PORTC_READY_MASK
	.comm	_DPLL_PORTD_READY_MASK,4,2      ; @DPLL_PORTD_READY_MASK
	.comm	_DPIO_PHY_STATUS,4,2            ; @DPIO_PHY_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timed out waiting for port %c ready: got 0x%x, expected 0x%x\n"

.subsections_via_symbols
