	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_dsi_get_hw_panel_orientation
_vlv_dsi_get_hw_panel_orientation:      ## @vlv_dsi_get_hw_panel_orientation
	.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
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r13
	movq	(%rbx), %rdi
	leaq	-44(%rbp), %rsi
	callq	*(%rdi)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_intel_get_crtc_for_pipe
	movl	(%rax), %edi
	callq	_to_intel_plane
	movq	%rax, %r12
	movl	-44(%rbp), %edi
	callq	_POWER_DOMAIN_PIPE
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_intel_display_power_get_if_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %r15d
	movl	(%r12), %edi
	callq	_DSPCNTR
	movl	%eax, %edi
	callq	_I915_READ
	movq	_DISPLAY_PLANE_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_DISPPLANE_ROTATE_180@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_DRM_MODE_PANEL_ORIENTATION_NORMAL@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	je	LBB0_7
	jmp	LBB0_8
LBB0_1:
	movq	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	jne	LBB0_8
LBB0_7:
	movq	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_intel_display_power_put
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN,4,2 ## @DRM_MODE_PANEL_ORIENTATION_UNKNOWN
	.comm	_DISPLAY_PLANE_ENABLE,4,2       ## @DISPLAY_PLANE_ENABLE
	.comm	_DISPPLANE_ROTATE_180,4,2       ## @DISPPLANE_ROTATE_180
	.comm	_DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP,4,2 ## @DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP
	.comm	_DRM_MODE_PANEL_ORIENTATION_NORMAL,4,2 ## @DRM_MODE_PANEL_ORIENTATION_NORMAL
	.no_dead_strip	_vlv_dsi_get_hw_panel_orientation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_dsi_get_hw_panel_orientation
_vlv_dsi_get_hw_panel_orientation:      ; @vlv_dsi_get_hw_panel_orientation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_i915
	mov	x19, x0
	ldr	x0, [x20]
	ldr	x8, [x0]
	add	x1, sp, #12
	blr	x8
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_intel_get_crtc_for_pipe
	ldr	w0, [x0]
	bl	_to_intel_plane
	mov	x22, x0
	ldr	w0, [sp, #12]
	bl	_POWER_DOMAIN_PIPE
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_intel_display_power_get_if_enabled
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
	ldr	w0, [x22]
	bl	_DSPCNTR
	bl	_I915_READ
Lloh0:
	adrp	x8, _DISPLAY_PLANE_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISPLAY_PLANE_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DISPPLANE_ROTATE_180@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DISPPLANE_ROTATE_180@GOTPAGEOFF]
Lloh5:
	adrp	x10, _DRM_MODE_PANEL_ORIENTATION_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DRM_MODE_PANEL_ORIENTATION_UNKNOWN@GOTPAGEOFF]
Lloh7:
	adrp	x11, _DRM_MODE_PANEL_ORIENTATION_NORMAL@GOTPAGE
Lloh8:
	ldr	x11, [x11, _DRM_MODE_PANEL_ORIENTATION_NORMAL@GOTPAGEOFF]
Lloh9:
	adrp	x12, _DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP@GOTPAGE
Lloh10:
	ldr	x12, [x12, _DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w0
	csel	x9, x11, x12, eq
	tst	w8, w0
	csel	x8, x10, x9, eq
	ldr	w22, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_intel_display_power_put
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _DRM_MODE_PANEL_ORIENTATION_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRM_MODE_PANEL_ORIENTATION_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
LBB0_4:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN,4,2 ; @DRM_MODE_PANEL_ORIENTATION_UNKNOWN
	.comm	_DISPLAY_PLANE_ENABLE,4,2       ; @DISPLAY_PLANE_ENABLE
	.comm	_DISPPLANE_ROTATE_180,4,2       ; @DISPPLANE_ROTATE_180
	.comm	_DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP,4,2 ; @DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP
	.comm	_DRM_MODE_PANEL_ORIENTATION_NORMAL,4,2 ; @DRM_MODE_PANEL_ORIENTATION_NORMAL
	.no_dead_strip	_vlv_dsi_get_hw_panel_orientation
.subsections_via_symbols
