	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_ovl_set_rotation_attrs
_dispc_ovl_set_rotation_attrs:          ## @dispc_ovl_set_rotation_attrs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%edx, %ebx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_DRM_FORMAT_YUYV@GOTPCREL(%rip), %rax
	cmpq	%r8, (%rax)
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	movq	_DRM_FORMAT_UYVY@GOTPCREL(%rip), %rax
	movl	$0, %r12d
	cmpq	%r13, (%rax)
	jne	LBB0_9
LBB0_2:
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rdx
	movq	_DRM_MODE_ROTATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	addl	$-128, %eax
	testl	%ebx, (%rdx)
	je	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	cmpl	$4, %eax
	jae	LBB0_8
## %bb.4:
	cltq
	leaq	L_switch.table.dispc_ovl_set_rotation_attrs(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	xorl	%r14d, %r14d
	cmpl	$3, %eax
	jae	LBB0_8
## %bb.6:
	cltq
	leaq	l_switch.table.dispc_ovl_set_rotation_attrs.1(%rip), %rcx
LBB0_7:
	leaq	(%rcx,%rax,4), %rax
	movl	(%rax), %r14d
LBB0_8:
	movl	%ebx, %edi
	callq	_drm_rotation_90_or_270
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_9:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_OMAP_DSS_ROT_TILER@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	movq	_DRM_FORMAT_NV12@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmovel	%r14d, %ebx
	cmpq	%r13, (%rax)
	cmovnel	%r14d, %ebx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_DISPC_OVL_ATTRIBUTES
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	$13, %ecx
	movl	$12, %r8d
	callq	_REG_FLD_MOD
	movq	_FEAT_ROWREPEATENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dispc_has_feature
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	%r14d, %edi
	callq	_DISPC_OVL_ATTRIBUTES
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	$18, %ecx
	movl	$18, %r8d
	callq	_REG_FLD_MOD
LBB0_11:
	movq	_DRM_FORMAT_NV12@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_dispc_ovl_color_mode_supported
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	xorl	%ebx, %ebx
	cmpq	%r13, (%r12)
	jne	LBB0_15
## %bb.13:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_OMAP_DSS_ROT_TILER@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_15
## %bb.14:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_drm_rotation_90_or_270
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
LBB0_15:
	movl	%r14d, %edi
	callq	_DISPC_OVL_ATTRIBUTES
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	$22, %ecx
	movl	$22, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_FLD_MOD                    ## TAILCALL
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_FORMAT_YUYV,8,3            ## @DRM_FORMAT_YUYV
	.comm	_DRM_FORMAT_UYVY,8,3            ## @DRM_FORMAT_UYVY
	.comm	_DRM_MODE_REFLECT_X,4,2         ## @DRM_MODE_REFLECT_X
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ## @DRM_MODE_ROTATE_MASK
	.comm	_DRM_FORMAT_NV12,8,3            ## @DRM_FORMAT_NV12
	.comm	_OMAP_DSS_ROT_TILER,4,2         ## @OMAP_DSS_ROT_TILER
	.comm	_FEAT_ROWREPEATENABLE,4,2       ## @FEAT_ROWREPEATENABLE
	.no_dead_strip	_dispc_ovl_set_rotation_attrs
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.dispc_ovl_set_rotation_attrs
L_switch.table.dispc_ovl_set_rotation_attrs:
	.long	1                               ## 0x1
	.long	3                               ## 0x3
	.long	0                               ## 0x0
	.long	2                               ## 0x2

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.dispc_ovl_set_rotation_attrs.1
l_switch.table.dispc_ovl_set_rotation_attrs.1:
	.long	3                               ## 0x3
	.long	1                               ## 0x1
	.long	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispc_ovl_set_rotation_attrs
_dispc_ovl_set_rotation_attrs:          ; @dispc_ovl_set_rotation_attrs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DRM_FORMAT_YUYV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_FORMAT_YUYV@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DRM_FORMAT_UYVY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_FORMAT_UYVY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x4
	ccmp	x9, x4, #4, ne
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
Lloh9:
	adrp	x8, _DRM_MODE_ROTATE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_MODE_ROTATE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w21
	sub	w8, w8, #128
	and	w9, w9, w21
	cbz	w9, LBB0_5
; %bb.2:
	cmp	w8, #4
	b.hs	LBB0_8
; %bb.3:
Lloh12:
	adrp	x9, l_switch.table.dispc_ovl_set_rotation_attrs@PAGE
Lloh13:
	add	x9, x9, l_switch.table.dispc_ovl_set_rotation_attrs@PAGEOFF
	b	LBB0_7
LBB0_4:
	mov	w25, #0
	mov	w24, #0
	b	LBB0_10
LBB0_5:
	cmp	w8, #3
	b.hs	LBB0_8
; %bb.6:
Lloh14:
	adrp	x9, l_switch.table.dispc_ovl_set_rotation_attrs.1@PAGE
Lloh15:
	add	x9, x9, l_switch.table.dispc_ovl_set_rotation_attrs.1@PAGEOFF
LBB0_7:
	add	x8, x9, w8, sxtw #2
	ldr	w25, [x8]
	b	LBB0_9
LBB0_8:
	mov	w25, #0
LBB0_9:
	mov	x0, x21
	bl	_drm_rotation_90_or_270
	cmp	x0, #0
	cset	w24, ne
LBB0_10:
Lloh16:
	adrp	x26, _DRM_FORMAT_NV12@GOTPAGE
Lloh17:
	ldr	x26, [x26, _DRM_FORMAT_NV12@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh18:
	adrp	x27, _OMAP_DSS_ROT_TILER@GOTPAGE
Lloh19:
	ldr	x27, [x27, _OMAP_DSS_ROT_TILER@GOTPAGEOFF]
	ldr	w9, [x27]
	cmp	w9, w22
	ccmp	x8, x23, #0, ne
	csinc	w25, w25, wzr, ne
	mov	x0, x20
	bl	_DISPC_OVL_ATTRIBUTES
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	mov	w3, #13
	mov	w4, #12
	bl	_REG_FLD_MOD
Lloh20:
	adrp	x8, _FEAT_ROWREPEATENABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FEAT_ROWREPEATENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dispc_has_feature
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_DISPC_OVL_ATTRIBUTES
	mov	x1, x0
	mov	x0, x19
	mov	x2, x24
	mov	w3, #18
	mov	w4, #18
	bl	_REG_FLD_MOD
LBB0_12:
	ldr	x2, [x26]
	mov	x0, x19
	mov	x1, x20
	bl	_dispc_ovl_color_mode_supported
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x8, [x26]
	ldr	w9, [x27]
	cmp	x8, x23
	ccmp	w9, w22, #0, eq
	b.eq	LBB0_16
; %bb.14:
	mov	w21, #0
	b	LBB0_17
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x21
	bl	_drm_rotation_90_or_270
	cmp	x0, #0
	cset	w21, eq
LBB0_17:
	mov	x0, x20
	bl	_DISPC_OVL_ATTRIBUTES
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	mov	w3, #22
	mov	w4, #22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_REG_FLD_MOD
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_FORMAT_YUYV,8,3            ; @DRM_FORMAT_YUYV
	.comm	_DRM_FORMAT_UYVY,8,3            ; @DRM_FORMAT_UYVY
	.comm	_DRM_MODE_REFLECT_X,4,2         ; @DRM_MODE_REFLECT_X
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ; @DRM_MODE_ROTATE_MASK
	.comm	_DRM_FORMAT_NV12,8,3            ; @DRM_FORMAT_NV12
	.comm	_OMAP_DSS_ROT_TILER,4,2         ; @OMAP_DSS_ROT_TILER
	.comm	_FEAT_ROWREPEATENABLE,4,2       ; @FEAT_ROWREPEATENABLE
	.no_dead_strip	_dispc_ovl_set_rotation_attrs
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.dispc_ovl_set_rotation_attrs
l_switch.table.dispc_ovl_set_rotation_attrs:
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.long	2                               ; 0x2

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.dispc_ovl_set_rotation_attrs.1
l_switch.table.dispc_ovl_set_rotation_attrs.1:
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.long	2                               ; 0x2

.subsections_via_symbols
