	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_rotation_to_tiler
_drm_rotation_to_tiler:                 ## @drm_rotation_to_tiler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DRM_MODE_ROTATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	cmpl	$130, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	xorl	%ecx, %ecx
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.3:
	movq	_MASK_XY_FLIP@GOTPCREL(%rip), %rax
	movq	_MASK_X_INVERT@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	_MASK_X_INVERT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_MASK_XY_FLIP@GOTPCREL(%rip), %rax
LBB0_6:
	movq	_MASK_Y_INVERT@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
LBB0_8:
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	je	LBB0_10
## %bb.9:
	movq	_MASK_X_INVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	xorl	%ecx, %eax
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	je	LBB0_12
## %bb.11:
	movq	_MASK_Y_INVERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_12:
	xorl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ## @DRM_MODE_ROTATE_MASK
	.comm	_MASK_XY_FLIP,4,2               ## @MASK_XY_FLIP
	.comm	_MASK_X_INVERT,4,2              ## @MASK_X_INVERT
	.comm	_MASK_Y_INVERT,4,2              ## @MASK_Y_INVERT
	.comm	_DRM_MODE_REFLECT_X,4,2         ## @DRM_MODE_REFLECT_X
	.comm	_DRM_MODE_REFLECT_Y,4,2         ## @DRM_MODE_REFLECT_Y
	.no_dead_strip	_drm_rotation_to_tiler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_rotation_to_tiler
_drm_rotation_to_tiler:                 ; @drm_rotation_to_tiler
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _DRM_MODE_ROTATE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ROTATE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w10, w8, w0
Lloh3:
	adrp	x9, _MASK_X_INVERT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MASK_X_INVERT@GOTPAGEOFF]
Lloh5:
	adrp	x8, _MASK_Y_INVERT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MASK_Y_INVERT@GOTPAGEOFF]
	cmp	w10, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w10, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #128
	b.ne	LBB0_8
; %bb.3:
Lloh7:
	adrp	x10, _MASK_XY_FLIP@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MASK_XY_FLIP@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	ldr	w11, [x9]
	b	LBB0_7
LBB0_4:
	ldr	w10, [x9]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x10, _MASK_XY_FLIP@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MASK_XY_FLIP@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
LBB0_6:
	ldr	w11, [x8]
LBB0_7:
	orr	w10, w11, w10
	b	LBB0_9
LBB0_8:
	mov	w10, #0
LBB0_9:
Lloh13:
	adrp	x11, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh14:
	ldr	x11, [x11, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	ldr	w9, [x9]
	tst	w11, w0
	csel	w9, wzr, w9, eq
	eor	w9, w9, w10
Lloh16:
	adrp	x10, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh17:
	ldr	x10, [x10, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	ldr	w8, [x8]
	tst	w10, w0
	csel	w8, wzr, w8, eq
	eor	w0, w9, w8
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ; @DRM_MODE_ROTATE_MASK
	.comm	_MASK_XY_FLIP,4,2               ; @MASK_XY_FLIP
	.comm	_MASK_X_INVERT,4,2              ; @MASK_X_INVERT
	.comm	_MASK_Y_INVERT,4,2              ; @MASK_Y_INVERT
	.comm	_DRM_MODE_REFLECT_X,4,2         ; @DRM_MODE_REFLECT_X
	.comm	_DRM_MODE_REFLECT_Y,4,2         ; @DRM_MODE_REFLECT_Y
	.no_dead_strip	_drm_rotation_to_tiler
.subsections_via_symbols
