	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_ovl_set_scaling_uv
_dispc_ovl_set_scaling_uv:              ## @dispc_ovl_set_scaling_uv
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	48(%rbp), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	40(%rbp), %r15d
	movl	24(%rbp), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	cmpq	%rdx, %r8
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %r9
	setne	-42(%rbp)                       ## 1-byte Folded Spill
	movq	_OMAP_DSS_WB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_drm_format_info
	movq	%rax, %r12
	movq	_FEAT_HANDLE_UV_SEPARATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rbx
	movq	%r13, %rdi
	callq	_dispc_has_feature
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_2
## %bb.5:
	subq	$8, %rsp
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, %ebx
	movl	%r14d, %esi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r8
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	pushq	%r12
	pushq	%r15
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_dispc_ovl_set_accu_uv
	addq	$32, %rsp
	leal	-128(%r15), %eax
	cmpl	$2, %eax
	jae	LBB0_6
## %bb.11:
	movl	%r12d, %edi
	callq	_drm_rotation_90_or_270
	movq	%r13, %rdx
	testl	%eax, %eax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	jne	LBB0_15
## %bb.12:
	cmpl	%ebx, -48(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.14:
	movq	%r13, %rdx
	addq	%r13, %rdx
	jmp	LBB0_15
LBB0_2:
	movq	_OMAP_DSS_WB@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_3
LBB0_19:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$130, %r15d
	jne	LBB0_20
## %bb.7:
	cmpl	%ebx, -48(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.10:
	movl	%ebx, %r11d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %rdx
	jmp	LBB0_9
LBB0_3:
	movl	%r14d, %edi
	callq	_DISPC_OVL_ATTRIBUTES2
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	$8, %ecx
	movl	$8, %r8d
	jmp	LBB0_4
LBB0_20:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
LBB0_8:
	movl	%ebx, %r11d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	sarq	%rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	sarq	%rdx
LBB0_9:
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movb	-42(%rbp), %dil                 ## 1-byte Reload
	movb	-41(%rbp), %bl                  ## 1-byte Reload
	jmp	LBB0_16
LBB0_13:
	movq	%r13, %rdx
	sarq	%rdx
LBB0_15:
	movl	%ebx, %r11d
	cmpq	%rcx, %r9
	setne	%dil
	cmpq	%r13, %r14
	setne	%bl
	movq	_DRM_MODE_ROTATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	setne	%al
	orb	%al, %bl
	orb	%al, %dil
LBB0_16:
	cmpq	%r14, %rdx
	setne	%al
	orb	%bl, %al
	movq	%r14, %r8
	movzbl	%al, %r14d
	cmpq	%r9, %rcx
	setne	%al
	orb	%dil, %al
	movzbl	%al, %r13d
	movq	_DISPC_COLOR_COMPONENT_UV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r11d, %ebx
	movl	%r11d, %esi
	pushq	%rax
	pushq	%r12
	pushq	%r10
	callq	_dispc_ovl_set_scale_param
	addq	$32, %rsp
	movq	_OMAP_DSS_WB@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_18
## %bb.17:
	movl	%ebx, %edi
	callq	_DISPC_OVL_ATTRIBUTES2
	movl	%r13d, %edx
	orl	%r14d, %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$8, %ecx
	movl	$8, %r8d
	callq	_REG_FLD_MOD
LBB0_18:
	movl	%ebx, %edi
	callq	_DISPC_OVL_ATTRIBUTES
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	movl	$5, %ecx
	movl	$5, %r8d
	callq	_REG_FLD_MOD
	movl	%ebx, %edi
	callq	_DISPC_OVL_ATTRIBUTES
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	movl	$6, %ecx
	movl	$6, %r8d
LBB0_4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_FLD_MOD                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_DSS_WB,4,2                ## @OMAP_DSS_WB
	.comm	_FEAT_HANDLE_UV_SEPARATE,4,2    ## @FEAT_HANDLE_UV_SEPARATE
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ## @DRM_MODE_ROTATE_MASK
	.comm	_DRM_MODE_ROTATE_0,4,2          ## @DRM_MODE_ROTATE_0
	.comm	_DISPC_COLOR_COMPONENT_UV,4,2   ## @DISPC_COLOR_COMPONENT_UV
	.no_dead_strip	_dispc_ovl_set_scaling_uv
.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_scaling_uv
_dispc_ovl_set_scaling_uv:              ; @dispc_ovl_set_scaling_uv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	w7, [sp, #28]                   ; 4-byte Folded Spill
	mov	x28, x6
	mov	x22, x5
	mov	x23, x4
	mov	x25, x3
	mov	x26, x2
	mov	x20, x1
	mov	x19, x0
	ldp	w27, w24, [x29, #20]
	cmp	x4, x2
	cset	w9, ne
	cmp	x5, x3
	cset	w8, ne
	stp	w8, w9, [sp, #16]               ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _OMAP_DSS_WB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP_DSS_WB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	mov	x0, x27
	bl	_drm_format_info
	mov	x21, x0
Lloh3:
	adrp	x8, _FEAT_HANDLE_UV_SEPARATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FEAT_HANDLE_UV_SEPARATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dispc_has_feature
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.2:
	str	w24, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x26
	mov	x3, x25
	mov	x4, x23
	mov	x5, x22
	mov	x6, x28
	mov	x7, x27
	bl	_dispc_ovl_set_accu_uv
	sub	w8, w27, #128
	cmp	w8, #2
	b.hs	LBB0_6
; %bb.3:
	mov	x0, x24
	bl	_drm_rotation_90_or_270
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w8, w20
	lsl	x8, x26, #1
	asr	x9, x26, #1
	csel	x8, x8, x9, eq
	cmp	w0, #0
	csel	x2, x26, x8, ne
	cmp	x22, x25
	cset	w8, ne
	cmp	x23, x26
	cset	w9, ne
Lloh6:
	adrp	x10, _DRM_MODE_ROTATE_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DRM_MODE_ROTATE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
	and	w10, w10, w24
Lloh11:
	ldr	w11, [x11]
	cmp	w10, w11
	cset	w10, ne
	orr	w9, w9, w10
	orr	w10, w8, w10
	b	LBB0_8
LBB0_4:
Lloh12:
	adrp	x8, _OMAP_DSS_WB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OMAP_DSS_WB@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_11
LBB0_5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	cmp	w27, #130
	b.ne	LBB0_13
; %bb.7:
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w8, w20
	lsl	x8, x25, #1
	lsl	x9, x26, #1
	asr	x10, x25, #1
	asr	x11, x26, #1
	csel	x25, x8, x10, eq
	csel	x2, x9, x11, eq
	ldp	w10, w9, [sp, #16]              ; 8-byte Folded Reload
LBB0_8:
	cmp	x2, x23
	cset	w8, ne
	orr	w27, w8, w9
	cmp	x25, x22
	cset	w8, ne
	orr	w26, w8, w10
Lloh15:
	adrp	x8, _DISPC_COLOR_COMPONENT_UV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DISPC_COLOR_COMPONENT_UV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x25
	mov	x4, x23
	mov	x5, x22
	ldr	w6, [sp, #28]                   ; 4-byte Folded Reload
	mov	x7, x24
	bl	_dispc_ovl_set_scale_param
Lloh18:
	adrp	x8, _OMAP_DSS_WB@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OMAP_DSS_WB@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_DISPC_OVL_ATTRIBUTES2
	mov	x1, x0
	orr	w2, w26, w27
	mov	x0, x19
	mov	w3, #8
	mov	w4, #8
	bl	_REG_FLD_MOD
LBB0_10:
	mov	x0, x20
	bl	_DISPC_OVL_ATTRIBUTES
	mov	x1, x0
	mov	x0, x19
	mov	x2, x27
	mov	w3, #5
	mov	w4, #5
	bl	_REG_FLD_MOD
	mov	x0, x20
	bl	_DISPC_OVL_ATTRIBUTES
	mov	x1, x0
	mov	x0, x19
	mov	x2, x26
	mov	w3, #6
	mov	w4, #6
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_DISPC_OVL_ATTRIBUTES2
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	mov	w3, #8
	mov	w4, #8
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_REG_FLD_MOD
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_BUG
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DSS_WB,4,2                ; @OMAP_DSS_WB
	.comm	_FEAT_HANDLE_UV_SEPARATE,4,2    ; @FEAT_HANDLE_UV_SEPARATE
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ; @DRM_MODE_ROTATE_MASK
	.comm	_DRM_MODE_ROTATE_0,4,2          ; @DRM_MODE_ROTATE_0
	.comm	_DISPC_COLOR_COMPONENT_UV,4,2   ; @DISPC_COLOR_COMPONENT_UV
	.no_dead_strip	_dispc_ovl_set_scaling_uv
.subsections_via_symbols
