	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_SCL_BYPASS_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCL_BYPASS_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_REG_SET
	movl	8(%rbx), %ecx
	movl	12(%rbx), %r9d
	leal	(%r9,%rcx), %eax
	cmpl	$2, %eax
	jg	LBB0_4
## %bb.1:
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	movq	_SCL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_3
## %bb.2:
	movq	_SCL_PSCL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movl	%edi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_2
	jmp	LBB0_7
LBB0_4:
	movq	_SCL_TAP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCL_H_NUM_OF_TAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	decl	%ecx
	movq	_SCL_V_NUM_OF_TAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	decl	%r9d
	xorl	%esi, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_REG_SET_2
	movq	(%rbx), %rax
	movq	_PIXEL_FORMAT_GRPH_END@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setg	%dl
	movq	_SCL_MODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	incl	%edx
	movl	%edi, %esi
	callq	_REG_UPDATE
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	movq	_SCL_PSCL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
LBB0_6:
	movq	_SCL_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCL_BOUNDARY_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ebx
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_REG_SET
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
	movl	%edi, %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCL_BYPASS_CONTROL,4,2         ## @SCL_BYPASS_CONTROL
	.comm	_SCL_BYPASS_MODE,4,2            ## @SCL_BYPASS_MODE
	.comm	_SCL_MODE,4,2                   ## @SCL_MODE
	.comm	_SCL_PSCL_EN,4,2                ## @SCL_PSCL_EN
	.comm	_SCL_TAP_CONTROL,4,2            ## @SCL_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	_PIXEL_FORMAT_GRPH_END,8,3      ## @PIXEL_FORMAT_GRPH_END
	.comm	_SCL_CONTROL,4,2                ## @SCL_CONTROL
	.comm	_SCL_BOUNDARY_MODE,4,2          ## @SCL_BOUNDARY_MODE
	.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	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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SCL_BYPASS_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCL_BYPASS_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SCL_BYPASS_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCL_BYPASS_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #0
	bl	_REG_SET
	ldp	w9, w8, [x20, #8]
	add	w10, w8, w9
	cmp	w10, #2
	b.gt	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SCL_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SCL_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	cbz	x8, LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _SCL_PSCL_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCL_PSCL_EN@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x1, x0
	mov	w2, #0
	mov	w4, #0
	bl	_REG_UPDATE_2
	b	LBB0_7
LBB0_3:
Lloh12:
	adrp	x10, _SCL_TAP_CONTROL@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SCL_TAP_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x10]
Lloh15:
	adrp	x10, _SCL_H_NUM_OF_TAPS@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SCL_H_NUM_OF_TAPS@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x10]
	sub	w3, w9, #1
Lloh18:
	adrp	x9, _SCL_V_NUM_OF_TAPS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SCL_V_NUM_OF_TAPS@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x9]
	sub	w5, w8, #1
	mov	w1, #0
	bl	_REG_SET_2
	ldr	x8, [x20]
Lloh21:
	adrp	x9, _PIXEL_FORMAT_GRPH_END@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PIXEL_FORMAT_GRPH_END@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x20, _SCL_MODE@GOTPAGE
Lloh25:
	ldr	x20, [x20, _SCL_MODE@GOTPAGEOFF]
	ldr	w0, [x20]
	cmp	x8, x9
	mov	w8, #1
	cinc	w2, w8, gt
	mov	x1, x0
	bl	_REG_UPDATE
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x20]
Lloh26:
	adrp	x8, _SCL_PSCL_EN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SCL_PSCL_EN@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_REG_UPDATE
LBB0_5:
Lloh29:
	adrp	x8, _SCL_CONTROL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SCL_CONTROL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _SCL_BOUNDARY_MODE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SCL_BOUNDARY_MODE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	w19, #1
	mov	w1, #0
	mov	w3, #1
	bl	_REG_SET
	b	LBB0_8
LBB0_6:
	mov	x1, x0
	mov	w2, #0
	bl	_REG_UPDATE
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SCL_BYPASS_CONTROL,4,2         ; @SCL_BYPASS_CONTROL
	.comm	_SCL_BYPASS_MODE,4,2            ; @SCL_BYPASS_MODE
	.comm	_SCL_MODE,4,2                   ; @SCL_MODE
	.comm	_SCL_PSCL_EN,4,2                ; @SCL_PSCL_EN
	.comm	_SCL_TAP_CONTROL,4,2            ; @SCL_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	_PIXEL_FORMAT_GRPH_END,8,3      ; @PIXEL_FORMAT_GRPH_END
	.comm	_SCL_CONTROL,4,2                ; @SCL_CONTROL
	.comm	_SCL_BOUNDARY_MODE,4,2          ; @SCL_BOUNDARY_MODE
	.no_dead_strip	_setup_scaling_configuration
.subsections_via_symbols
