	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_scaling_configuration
_setup_scaling_configuration:           ## @setup_scaling_configuration
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movl	8(%rsi), %esi
	decl	%esi
	movq	_SCLV_TAP_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_SCL_H_NUM_OF_TAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	12(%rbx), %esi
	decl	%esi
	movl	(%r15), %edx
	movq	_SCL_V_NUM_OF_TAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	16(%rbx), %esi
	decl	%esi
	movl	(%r15), %edx
	movq	_SCL_H_NUM_OF_TAPS_C@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	20(%rbx), %esi
	decl	%esi
	movl	(%r15), %edx
	movq	_SCL_V_NUM_OF_TAPS_C@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movq	_mmSCLV_TAP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_dm_write_reg
	movl	12(%rbx), %eax
	addl	8(%rbx), %eax
	xorl	%r15d, %r15d
	cmpl	$3, %eax
	setge	%r15b
	movq	_SCLV_MODE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_SCL_MODE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_set_reg_field_value
	movl	(%r12), %edx
	movq	_SCL_PSCL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_set_reg_field_value
	movl	20(%rbx), %eax
	addl	16(%rbx), %eax
	cmpl	$3, %eax
	jl	LBB0_2
## %bb.1:
	movl	(%r12), %edx
	movq	_SCL_MODE_C@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %ebx
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_set_reg_field_value
	movl	$1, %r15d
	jmp	LBB0_5
LBB0_2:
	movq	(%rbx), %rax
	movq	_PIXEL_FORMAT_420BPP8@GOTPCREL(%rip), %rcx
	movl	(%r12), %edx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_SCL_MODE_C@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_set_reg_field_value
	jmp	LBB0_5
LBB0_3:
	movl	(%r13), %eax
	xorl	%edi, %edi
	movl	%edx, %esi
	movl	%eax, %edx
	callq	_get_reg_field_value
	movl	(%r12), %edx
	movq	_SCL_MODE_C@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_set_reg_field_value
	movl	(%r12), %esi
	movq	_SCL_PSCL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_get_reg_field_value
	movl	%eax, %ebx
LBB0_5:
	movl	(%r12), %edx
	movq	_SCL_PSCL_EN_C@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_set_reg_field_value
	movq	_mmSCLV_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_dm_write_reg
	movq	_SCLV_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SCL_BOUNDARY_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_set_reg_field_value
	movq	_mmSCLV_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_dm_write_reg
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCLV_TAP_CONTROL,4,2           ## @SCLV_TAP_CONTROL
	.comm	_SCL_H_NUM_OF_TAPS,4,2          ## @SCL_H_NUM_OF_TAPS
	.comm	_SCL_V_NUM_OF_TAPS,4,2          ## @SCL_V_NUM_OF_TAPS
	.comm	_SCL_H_NUM_OF_TAPS_C,4,2        ## @SCL_H_NUM_OF_TAPS_C
	.comm	_SCL_V_NUM_OF_TAPS_C,4,2        ## @SCL_V_NUM_OF_TAPS_C
	.comm	_mmSCLV_TAP_CONTROL,4,2         ## @mmSCLV_TAP_CONTROL
	.comm	_SCLV_MODE,4,2                  ## @SCLV_MODE
	.comm	_SCL_MODE,4,2                   ## @SCL_MODE
	.comm	_SCL_PSCL_EN,4,2                ## @SCL_PSCL_EN
	.comm	_SCL_MODE_C,4,2                 ## @SCL_MODE_C
	.comm	_SCL_PSCL_EN_C,4,2              ## @SCL_PSCL_EN_C
	.comm	_PIXEL_FORMAT_420BPP8,8,3       ## @PIXEL_FORMAT_420BPP8
	.comm	_mmSCLV_MODE,4,2                ## @mmSCLV_MODE
	.comm	_SCLV_CONTROL,4,2               ## @SCLV_CONTROL
	.comm	_SCL_BOUNDARY_MODE,4,2          ## @SCL_BOUNDARY_MODE
	.comm	_mmSCLV_CONTROL,4,2             ## @mmSCLV_CONTROL
	.no_dead_strip	_setup_scaling_configuration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_scaling_configuration
_setup_scaling_configuration:           ; @setup_scaling_configuration
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	ldr	x19, [x0]
	ldr	w8, [x1, #8]
	sub	w1, w8, #1
Lloh0:
	adrp	x20, _SCLV_TAP_CONTROL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SCLV_TAP_CONTROL@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh2:
	adrp	x8, _SCL_H_NUM_OF_TAPS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCL_H_NUM_OF_TAPS@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w8, [x21, #12]
	sub	w1, w8, #1
	ldr	w2, [x20]
Lloh5:
	adrp	x8, _SCL_V_NUM_OF_TAPS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCL_V_NUM_OF_TAPS@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w8, [x21, #16]
	sub	w1, w8, #1
	ldr	w2, [x20]
Lloh8:
	adrp	x8, _SCL_H_NUM_OF_TAPS_C@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCL_H_NUM_OF_TAPS_C@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w8, [x21, #20]
	sub	w1, w8, #1
	ldr	w2, [x20]
Lloh11:
	adrp	x8, _SCL_V_NUM_OF_TAPS_C@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCL_V_NUM_OF_TAPS_C@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
Lloh14:
	adrp	x8, _mmSCLV_TAP_CONTROL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mmSCLV_TAP_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_dm_write_reg
	ldp	w8, w9, [x21, #8]
	add	w8, w9, w8
	cmp	w8, #2
	cset	w20, gt
Lloh17:
	adrp	x22, _SCLV_MODE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _SCLV_MODE@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh19:
	adrp	x24, _SCL_MODE@GOTPAGE
Lloh20:
	ldr	x24, [x24, _SCL_MODE@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, #0
	mov	x1, x20
	bl	_set_reg_field_value
	ldr	w2, [x22]
Lloh21:
	adrp	x23, _SCL_PSCL_EN@GOTPAGE
Lloh22:
	ldr	x23, [x23, _SCL_PSCL_EN@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, #0
	mov	x1, x20
	bl	_set_reg_field_value
	ldp	w8, w9, [x21, #16]
	add	w8, w9, w8
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
	ldr	w2, [x22]
Lloh23:
	adrp	x8, _SCL_MODE_C@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SCL_MODE_C@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	w21, #1
	mov	x0, #0
	mov	w1, #1
	bl	_set_reg_field_value
	mov	w20, #1
	b	LBB0_5
LBB0_2:
	ldr	x9, [x21]
Lloh26:
	adrp	x8, _PIXEL_FORMAT_420BPP8@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PIXEL_FORMAT_420BPP8@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x8]
	ldr	w8, [x22]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh29:
	adrp	x9, _SCL_MODE_C@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SCL_MODE_C@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x9]
	mov	x0, #0
	mov	w1, #0
	mov	x2, x8
	bl	_set_reg_field_value
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	ldr	w2, [x24]
	mov	x0, #0
	mov	x1, x8
	bl	_get_reg_field_value
	mov	x1, x0
	ldr	w2, [x22]
Lloh32:
	adrp	x8, _SCL_MODE_C@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SCL_MODE_C@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, #0
	bl	_get_reg_field_value
	mov	x21, x0
LBB0_5:
	ldr	w2, [x22]
Lloh35:
	adrp	x8, _SCL_PSCL_EN_C@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SCL_PSCL_EN_C@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x21
	bl	_set_reg_field_value
Lloh38:
	adrp	x8, _mmSCLV_MODE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _mmSCLV_MODE@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_dm_write_reg
Lloh41:
	adrp	x8, _SCLV_CONTROL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SCLV_CONTROL@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
Lloh44:
	adrp	x8, _SCL_BOUNDARY_MODE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SCL_BOUNDARY_MODE@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
	mov	x0, #0
	mov	w1, #1
	bl	_set_reg_field_value
Lloh47:
	adrp	x8, _mmSCLV_CONTROL@GOTPAGE
Lloh48:
	ldr	x8, [x8, _mmSCLV_CONTROL@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_dm_write_reg
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_SCLV_TAP_CONTROL,4,2           ; @SCLV_TAP_CONTROL
	.comm	_SCL_H_NUM_OF_TAPS,4,2          ; @SCL_H_NUM_OF_TAPS
	.comm	_SCL_V_NUM_OF_TAPS,4,2          ; @SCL_V_NUM_OF_TAPS
	.comm	_SCL_H_NUM_OF_TAPS_C,4,2        ; @SCL_H_NUM_OF_TAPS_C
	.comm	_SCL_V_NUM_OF_TAPS_C,4,2        ; @SCL_V_NUM_OF_TAPS_C
	.comm	_mmSCLV_TAP_CONTROL,4,2         ; @mmSCLV_TAP_CONTROL
	.comm	_SCLV_MODE,4,2                  ; @SCLV_MODE
	.comm	_SCL_MODE,4,2                   ; @SCL_MODE
	.comm	_SCL_PSCL_EN,4,2                ; @SCL_PSCL_EN
	.comm	_SCL_MODE_C,4,2                 ; @SCL_MODE_C
	.comm	_SCL_PSCL_EN_C,4,2              ; @SCL_PSCL_EN_C
	.comm	_PIXEL_FORMAT_420BPP8,8,3       ; @PIXEL_FORMAT_420BPP8
	.comm	_mmSCLV_MODE,4,2                ; @mmSCLV_MODE
	.comm	_SCLV_CONTROL,4,2               ; @SCLV_CONTROL
	.comm	_SCL_BOUNDARY_MODE,4,2          ; @SCL_BOUNDARY_MODE
	.comm	_mmSCLV_CONTROL,4,2             ; @mmSCLV_CONTROL
	.no_dead_strip	_setup_scaling_configuration
.subsections_via_symbols
