	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_rect_rotate_inv            ## -- Begin function drm_rect_rotate_inv
	.p2align	4, 0x90
_drm_rect_rotate_inv:                   ## @drm_rect_rotate_inv
	.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	%ecx, %eax
	cmpl	$130, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.3:
	movslq	%esi, %rax
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movdqu	(%rdi), %xmm1
	psubq	%xmm1, %xmm0
	movdqu	16(%rdi), %xmm1
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, 16(%rdi)
	movdqu	%xmm1, (%rdi)
	jmp	LBB0_7
LBB0_4:
	movslq	%esi, %rax
	movdqu	(%rdi), %xmm0
	movdqu	16(%rdi), %xmm1
	movq	%rax, %xmm2
	pshufd	$68, %xmm2, %xmm2               ## xmm2 = xmm2[0,1,0,1]
	psubq	%xmm1, %xmm2
	pshufd	$78, %xmm2, %xmm1               ## xmm1 = xmm2[2,3,0,1]
	movdqu	%xmm1, 16(%rdi)
	movslq	%edx, %rax
	movq	%rax, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	psubq	%xmm0, %xmm1
	pshufd	$78, %xmm1, %xmm0               ## xmm0 = xmm1[2,3,0,1]
	jmp	LBB0_6
LBB0_5:
	movslq	%edx, %rax
	movups	(%rdi), %xmm0
	movdqu	16(%rdi), %xmm1
	movups	%xmm0, 16(%rdi)
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	psubq	%xmm1, %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
LBB0_6:
	movdqu	%xmm0, (%rdi)
LBB0_7:
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, %eax
	orl	%r9d, %eax
	testl	%ecx, %eax
	je	LBB0_12
## %bb.8:
	testl	%ecx, %r9d
	je	LBB0_10
## %bb.9:
	movslq	%esi, %rax
	movdqu	16(%rdi), %xmm0
	movq	%rax, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	psubq	%xmm0, %xmm1
	pshufd	$78, %xmm1, %xmm0               ## xmm0 = xmm1[2,3,0,1]
	movdqu	%xmm0, 16(%rdi)
LBB0_10:
	testl	%ecx, %r8d
	je	LBB0_12
## %bb.11:
	movdqu	(%rdi), %xmm0
	movslq	%edx, %rax
	movq	%rax, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	psubq	%xmm0, %xmm1
	pshufd	$78, %xmm1, %xmm0               ## xmm0 = xmm1[2,3,0,1]
	movdqu	%xmm0, (%rdi)
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ## @DRM_MODE_ROTATE_MASK
	.comm	_DRM_MODE_REFLECT_X,4,2         ## @DRM_MODE_REFLECT_X
	.comm	_DRM_MODE_REFLECT_Y,4,2         ## @DRM_MODE_REFLECT_Y
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_rect_rotate_inv            ; -- Begin function drm_rect_rotate_inv
	.p2align	2
_drm_rect_rotate_inv:                   ; @drm_rect_rotate_inv
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _DRM_MODE_ROTATE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ROTATE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w3
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.3:
	sxtw	x8, w1
	dup.2d	v1, x8
	ldp	q2, q0, [x0]
	sub.2d	v1, v1, v2
	ext.16b	v1, v1, v1, #8
	str	q1, [x0, #16]
	b	LBB0_7
LBB0_4:
	mov	x8, x1
	sxtw	x8, w8
	dup.2d	v0, x8
	ldp	q2, q1, [x0]
	sub.2d	v0, v0, v1
	ext.16b	v0, v0, v0, #8
	str	q0, [x0, #16]
	sxtw	x8, w2
	dup.2d	v0, x8
	sub.2d	v0, v0, v2
	b	LBB0_6
LBB0_5:
	mov	x8, x2
	sxtw	x8, w8
	ldp	q1, q0, [x0]
	str	q1, [x0, #16]
	dup.2d	v1, x8
	sub.2d	v0, v1, v0
LBB0_6:
	ext.16b	v0, v0, v0, #8
LBB0_7:
	str	q0, [x0]
LBB0_8:
Lloh3:
	adrp	x8, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x8, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w10, w8, w9
	tst	w10, w3
	b.eq	LBB0_13
; %bb.9:
	tst	w9, w3
	b.eq	LBB0_11
; %bb.10:
                                        ; kill: def $w1 killed $w1 killed $x1 def $x1
	sxtw	x9, w1
	ldr	q0, [x0, #16]
	dup.2d	v1, x9
	sub.2d	v0, v1, v0
	ext.16b	v0, v0, v0, #8
	str	q0, [x0, #16]
LBB0_11:
	tst	w8, w3
	b.eq	LBB0_13
; %bb.12:
	ldr	q0, [x0]
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
	sxtw	x8, w2
	dup.2d	v1, x8
	sub.2d	v0, v1, v0
	ext.16b	v0, v0, v0, #8
	str	q0, [x0]
LBB0_13:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ; @DRM_MODE_ROTATE_MASK
	.comm	_DRM_MODE_REFLECT_X,4,2         ; @DRM_MODE_REFLECT_X
	.comm	_DRM_MODE_REFLECT_Y,4,2         ; @DRM_MODE_REFLECT_Y
.subsections_via_symbols
