	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_cursor_base
_intel_cursor_base:                     ## @intel_cursor_base
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_i915
	movq	%rax, %r12
	movq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_intel_fb_obj
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_INTEL_INFO
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movl	(%rax), %r15d
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_intel_plane_ggtt_offset
	movl	%eax, %r15d
LBB0_3:
	movq	32(%rbx), %rax
	addl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_HAS_GMCH
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_DRM_MODE_ROTATE_180@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:
	movl	8(%rbx), %eax
	imull	4(%rbx), %eax
	decl	%eax
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	imull	(%rcx), %eax
	addl	%eax, %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_ROTATE_180,4,2        ## @DRM_MODE_ROTATE_180
	.no_dead_strip	_intel_cursor_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_cursor_base
_intel_cursor_base:                     ; @intel_cursor_base
	.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, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
	bl	_to_i915
	mov	x21, x0
	ldr	x20, [x19, #16]
	mov	x0, x20
	bl	_intel_fb_obj
	mov	x22, x0
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_intel_plane_ggtt_offset
LBB0_3:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	add	w22, w0, w8
	mov	x0, x21
	bl	_HAS_GMCH
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _DRM_MODE_ROTATE_180@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_ROTATE_180@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldp	w8, w9, [x19, #4]
	mul	w8, w9, w8
	sub	w8, w8, #1
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	w9, [x9]
	madd	w22, w9, w8, w22
LBB0_6:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_ROTATE_180,4,2        ; @DRM_MODE_ROTATE_180
	.no_dead_strip	_intel_cursor_base
.subsections_via_symbols
