	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_transform_set_scaler
_dce_transform_set_scaler:              ## @dce_transform_set_scaler
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_TO_DCE_TRANSFORM
	movq	%rax, %rbx
	movq	_LB_MEMORY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LB_MEMORY_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LB_MEMORY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	16(%rbx), %r9d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_REG_SET_2
	movq	_SCL_F_SHARP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_REG_WRITE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_program_overscan
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_setup_scaling_configuration
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$0, -40(%rbp)
	leaq	-40(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_calculate_inits
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_program_scl_ratios_inits
	movl	12(%r14), %edi
	movl	20(%r14), %esi
	callq	_get_filter_coeffs_16p
	movq	%rax, %r15
	movl	8(%r14), %edi
	movl	16(%r14), %esi
	callq	_get_filter_coeffs_16p
	movq	%rax, %r12
	movq	8(%rbx), %rax
	cmpq	%rax, %r15
	jne	LBB0_4
## %bb.3:
	cmpq	(%rbx), %r12
	je	LBB0_1
LBB0_4:
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_SCL_VERT_FILTER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCL_V_2TAP_HARDCODE_COEF_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_REG_SET
LBB0_6:
	movl	12(%r14), %esi
	movq	_FILTER_TYPE_RGB_Y_VERTICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_program_multi_taps_filter
	movl	12(%r14), %esi
	movq	_FILTER_TYPE_ALPHA_VERTICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_program_multi_taps_filter
	cmpq	$0, (%rbx)
	jne	LBB0_8
## %bb.7:
	movq	_SCL_HORZ_FILTER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCL_H_2TAP_HARDCODE_COEF_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_REG_SET
LBB0_8:
	movl	8(%r14), %esi
	movq	_FILTER_TYPE_RGB_Y_HORIZONTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_program_multi_taps_filter
	movl	8(%r14), %esi
	movq	_FILTER_TYPE_ALPHA_HORIZONTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_program_multi_taps_filter
	movq	%r15, 8(%rbx)
	movq	%r12, (%rbx)
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_program_viewport
	movq	_SCL_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCL_COEF_UPDATE_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	jmp	LBB0_9
LBB0_1:
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_program_viewport
LBB0_9:
	movq	_LB_DATA_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALPHA_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	callq	_REG_UPDATE
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LB_MEMORY_CTRL,4,2             ## @LB_MEMORY_CTRL
	.comm	_LB_MEMORY_CONFIG,4,2           ## @LB_MEMORY_CONFIG
	.comm	_LB_MEMORY_SIZE,4,2             ## @LB_MEMORY_SIZE
	.comm	_SCL_F_SHARP_CONTROL,4,2        ## @SCL_F_SHARP_CONTROL
	.comm	_SCL_VERT_FILTER_CONTROL,4,2    ## @SCL_VERT_FILTER_CONTROL
	.comm	_SCL_V_2TAP_HARDCODE_COEF_EN,4,2 ## @SCL_V_2TAP_HARDCODE_COEF_EN
	.comm	_FILTER_TYPE_RGB_Y_VERTICAL,4,2 ## @FILTER_TYPE_RGB_Y_VERTICAL
	.comm	_FILTER_TYPE_ALPHA_VERTICAL,4,2 ## @FILTER_TYPE_ALPHA_VERTICAL
	.comm	_SCL_HORZ_FILTER_CONTROL,4,2    ## @SCL_HORZ_FILTER_CONTROL
	.comm	_SCL_H_2TAP_HARDCODE_COEF_EN,4,2 ## @SCL_H_2TAP_HARDCODE_COEF_EN
	.comm	_FILTER_TYPE_RGB_Y_HORIZONTAL,4,2 ## @FILTER_TYPE_RGB_Y_HORIZONTAL
	.comm	_FILTER_TYPE_ALPHA_HORIZONTAL,4,2 ## @FILTER_TYPE_ALPHA_HORIZONTAL
	.comm	_SCL_UPDATE,4,2                 ## @SCL_UPDATE
	.comm	_SCL_COEF_UPDATE_COMPLETE,4,2   ## @SCL_COEF_UPDATE_COMPLETE
	.comm	_LB_DATA_FORMAT,4,2             ## @LB_DATA_FORMAT
	.comm	_ALPHA_EN,4,2                   ## @ALPHA_EN
	.no_dead_strip	_dce_transform_set_scaler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_transform_set_scaler
_dce_transform_set_scaler:              ; @dce_transform_set_scaler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	bl	_TO_DCE_TRANSFORM
	mov	x20, x0
Lloh0:
	adrp	x8, _LB_MEMORY_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LB_MEMORY_CTRL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LB_MEMORY_CONFIG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LB_MEMORY_CONFIG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	ldr	w2, [x9]
Lloh6:
	adrp	x8, _LB_MEMORY_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LB_MEMORY_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	ldr	w5, [x20, #16]
	mov	w1, #0
	mov	w3, #0
	bl	_REG_SET_2
Lloh9:
	adrp	x8, _SCL_F_SHARP_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCL_F_SHARP_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_REG_WRITE
	mov	x0, x20
	mov	x1, x19
	bl	_program_overscan
	mov	x0, x20
	mov	x1, x19
	bl	_setup_scaling_configuration
	cbz	w0, LBB0_8
; %bb.1:
	str	wzr, [sp, #8]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_calculate_inits
	add	x1, sp, #8
	mov	x0, x20
	bl	_program_scl_ratios_inits
	ldr	w0, [x19, #12]
	ldr	w1, [x19, #20]
	bl	_get_filter_coeffs_16p
	mov	x21, x0
	ldr	w0, [x19, #8]
	ldr	w1, [x19, #16]
	bl	_get_filter_coeffs_16p
	mov	x22, x0
	ldr	x8, [x20, #8]
	cmp	x21, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x9, [x20]
	cmp	x22, x9
	b.eq	LBB0_8
LBB0_3:
	cbnz	x8, LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _SCL_VERT_FILTER_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCL_VERT_FILTER_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _SCL_V_2TAP_HARDCODE_COEF_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SCL_V_2TAP_HARDCODE_COEF_EN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #0
	bl	_REG_SET
LBB0_5:
	ldr	w1, [x19, #12]
Lloh18:
	adrp	x8, _FILTER_TYPE_RGB_Y_VERTICAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FILTER_TYPE_RGB_Y_VERTICAL@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_program_multi_taps_filter
	ldr	w1, [x19, #12]
Lloh21:
	adrp	x8, _FILTER_TYPE_ALPHA_VERTICAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FILTER_TYPE_ALPHA_VERTICAL@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_program_multi_taps_filter
	ldr	x8, [x20]
	cbnz	x8, LBB0_7
; %bb.6:
Lloh24:
	adrp	x8, _SCL_HORZ_FILTER_CONTROL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SCL_HORZ_FILTER_CONTROL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _SCL_H_2TAP_HARDCODE_COEF_EN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SCL_H_2TAP_HARDCODE_COEF_EN@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #0
	bl	_REG_SET
LBB0_7:
	ldr	w1, [x19, #8]
Lloh30:
	adrp	x8, _FILTER_TYPE_RGB_Y_HORIZONTAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FILTER_TYPE_RGB_Y_HORIZONTAL@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_program_multi_taps_filter
	ldr	w1, [x19, #8]
Lloh33:
	adrp	x8, _FILTER_TYPE_ALPHA_HORIZONTAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FILTER_TYPE_ALPHA_HORIZONTAL@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_program_multi_taps_filter
	stp	x22, x21, [x20]
	add	x1, x19, #4
	mov	x0, x20
	bl	_program_viewport
Lloh36:
	adrp	x8, _SCL_UPDATE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SCL_UPDATE@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _SCL_COEF_UPDATE_COMPLETE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SCL_COEF_UPDATE_COMPLETE@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_REG_UPDATE
	b	LBB0_9
LBB0_8:
	add	x1, x19, #4
	mov	x0, x20
	bl	_program_viewport
LBB0_9:
Lloh42:
	adrp	x8, _LB_DATA_FORMAT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _LB_DATA_FORMAT@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x8, _ALPHA_EN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ALPHA_EN@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	ldr	w2, [x19]
	bl	_REG_UPDATE
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_LB_MEMORY_CTRL,4,2             ; @LB_MEMORY_CTRL
	.comm	_LB_MEMORY_CONFIG,4,2           ; @LB_MEMORY_CONFIG
	.comm	_LB_MEMORY_SIZE,4,2             ; @LB_MEMORY_SIZE
	.comm	_SCL_F_SHARP_CONTROL,4,2        ; @SCL_F_SHARP_CONTROL
	.comm	_SCL_VERT_FILTER_CONTROL,4,2    ; @SCL_VERT_FILTER_CONTROL
	.comm	_SCL_V_2TAP_HARDCODE_COEF_EN,4,2 ; @SCL_V_2TAP_HARDCODE_COEF_EN
	.comm	_FILTER_TYPE_RGB_Y_VERTICAL,4,2 ; @FILTER_TYPE_RGB_Y_VERTICAL
	.comm	_FILTER_TYPE_ALPHA_VERTICAL,4,2 ; @FILTER_TYPE_ALPHA_VERTICAL
	.comm	_SCL_HORZ_FILTER_CONTROL,4,2    ; @SCL_HORZ_FILTER_CONTROL
	.comm	_SCL_H_2TAP_HARDCODE_COEF_EN,4,2 ; @SCL_H_2TAP_HARDCODE_COEF_EN
	.comm	_FILTER_TYPE_RGB_Y_HORIZONTAL,4,2 ; @FILTER_TYPE_RGB_Y_HORIZONTAL
	.comm	_FILTER_TYPE_ALPHA_HORIZONTAL,4,2 ; @FILTER_TYPE_ALPHA_HORIZONTAL
	.comm	_SCL_UPDATE,4,2                 ; @SCL_UPDATE
	.comm	_SCL_COEF_UPDATE_COMPLETE,4,2   ; @SCL_COEF_UPDATE_COMPLETE
	.comm	_LB_DATA_FORMAT,4,2             ; @LB_DATA_FORMAT
	.comm	_ALPHA_EN,4,2                   ; @ALPHA_EN
	.no_dead_strip	_dce_transform_set_scaler
.subsections_via_symbols
