	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_rotation_simplify          ## -- Begin function drm_rotation_simplify
	.p2align	4, 0x90
_drm_rotation_simplify:                 ## @drm_rotation_simplify
	.cfi_startproc
## %bb.0:
	movl	%edi, %eax
	notl	%esi
	testl	%edi, %esi
	je	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rcx
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	xorl	%eax, %edx
	movq	_DRM_MODE_REFLECT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%edx, %ebx
	movq	_DRM_MODE_ROTATE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	bsfl	%edx, %eax
	addl	$2, %eax
	andl	$3, %eax
	testl	%edx, %edx
	movl	$1, %edi
	cmovnel	%eax, %edi
	callq	_BIT
	orl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
LBB0_2:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_REFLECT_X,4,2         ## @DRM_MODE_REFLECT_X
	.comm	_DRM_MODE_REFLECT_Y,4,2         ## @DRM_MODE_REFLECT_Y
	.comm	_DRM_MODE_REFLECT_MASK,4,2      ## @DRM_MODE_REFLECT_MASK
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ## @DRM_MODE_ROTATE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_rotation_simplify          ; -- Begin function drm_rotation_simplify
	.p2align	2
_drm_rotation_simplify:                 ; @drm_rotation_simplify
	.cfi_startproc
; %bb.0:
	bics	wzr, w0, w1
	b.eq	LBB0_2
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _DRM_MODE_REFLECT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_MODE_REFLECT_MASK@GOTPAGEOFF]
	eor	w8, w8, w0
Lloh8:
	ldr	w9, [x9]
	and	w19, w8, w9
Lloh9:
	adrp	x9, _DRM_MODE_ROTATE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DRM_MODE_ROTATE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ands	w8, w8, w9
	rbit	w8, w8
	clz	w8, w8
	add	w8, w8, #2
	and	w8, w8, #0x3
	csinc	w0, w8, wzr, ne
	bl	_BIT
	orr	w0, w19, w0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_REFLECT_X,4,2         ; @DRM_MODE_REFLECT_X
	.comm	_DRM_MODE_REFLECT_Y,4,2         ; @DRM_MODE_REFLECT_Y
	.comm	_DRM_MODE_REFLECT_MASK,4,2      ; @DRM_MODE_REFLECT_MASK
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ; @DRM_MODE_ROTATE_MASK
.subsections_via_symbols
