	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_rot_ctrl
_to_rot_ctrl:                           ## @to_rot_ctrl
	.cfi_startproc
## %bb.0:
	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
	movl	%edi, %ebx
	movq	_DRM_MODE_ROTATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	addl	$-128, %eax
	xorl	%ecx, %ecx
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.to_rot_ctrl(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	callq	_L_ROT
	movl	%eax, %ecx
LBB0_2:
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movq	_L_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%ecx, %eax
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	je	LBB0_6
## %bb.5:
	movq	_L_VFLIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_6:
	orl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ## @DRM_MODE_ROTATE_MASK
	.comm	_L_ROT_R0,4,2                   ## @L_ROT_R0
	.comm	_L_ROT_R90,4,2                  ## @L_ROT_R90
	.comm	_L_ROT_R180,4,2                 ## @L_ROT_R180
	.comm	_L_ROT_R270,4,2                 ## @L_ROT_R270
	.comm	_DRM_MODE_REFLECT_X,4,2         ## @DRM_MODE_REFLECT_X
	.comm	_L_HFLIP,4,2                    ## @L_HFLIP
	.comm	_DRM_MODE_REFLECT_Y,4,2         ## @DRM_MODE_REFLECT_Y
	.comm	_L_VFLIP,4,2                    ## @L_VFLIP
	.no_dead_strip	_to_rot_ctrl
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.to_rot_ctrl
l_switch.table.to_rot_ctrl:
	.quad	_L_ROT_R90
	.quad	_L_ROT_R270
	.quad	_L_ROT_R180
	.quad	_L_ROT_R0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_rot_ctrl
_to_rot_ctrl:                           ; @to_rot_ctrl
	.cfi_startproc
; %bb.0:
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _DRM_MODE_ROTATE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ROTATE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, l_switch.table.to_rot_ctrl@PAGE
Lloh4:
	add	x9, x9, l_switch.table.to_rot_ctrl@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w0, [x8]
	bl	_L_ROT
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
Lloh5:
	adrp	x8, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _L_HFLIP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _L_HFLIP@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w8, w19
	csel	w8, wzr, w9, eq
	orr	w8, w8, w0
Lloh11:
	adrp	x9, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
Lloh13:
	adrp	x10, _L_VFLIP@GOTPAGE
Lloh14:
	ldr	x10, [x10, _L_VFLIP@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ; @DRM_MODE_ROTATE_MASK
	.comm	_L_ROT_R0,4,2                   ; @L_ROT_R0
	.comm	_L_ROT_R90,4,2                  ; @L_ROT_R90
	.comm	_L_ROT_R180,4,2                 ; @L_ROT_R180
	.comm	_L_ROT_R270,4,2                 ; @L_ROT_R270
	.comm	_DRM_MODE_REFLECT_X,4,2         ; @DRM_MODE_REFLECT_X
	.comm	_L_HFLIP,4,2                    ; @L_HFLIP
	.comm	_DRM_MODE_REFLECT_Y,4,2         ; @DRM_MODE_REFLECT_Y
	.comm	_L_VFLIP,4,2                    ; @L_VFLIP
	.no_dead_strip	_to_rot_ctrl
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.to_rot_ctrl
l_switch.table.to_rot_ctrl:
	.quad	_L_ROT_R90
	.quad	_L_ROT_R270
	.quad	_L_ROT_R180
	.quad	_L_ROT_R0

.subsections_via_symbols
