	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_set_scaler
_fimc_set_scaler:                       ## @fimc_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	%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	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	32(%rsi), %edx
	movl	24(%rsi), %ecx
	movq	8(%rsi), %r9
	movq	16(%rsi), %r8
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	movl	(%rbx), %edi
	movl	(%r15), %edx
	movl	4(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	movq	_EXYNOS_CISCCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fimc_read
	movq	_EXYNOS_CISCCTRL_SCALERBYPASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	_EXYNOS_CISCCTRL_SCALEUP_H@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movq	_EXYNOS_CISCCTRL_SCALEUP_V@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_EXYNOS_CISCCTRL_MAIN_V_RATIO_MASK@GOTPCREL(%rip), %rcx
	movq	_EXYNOS_CISCCTRL_CSCR2Y_WIDE@GOTPCREL(%rip), %rdx
	movq	_EXYNOS_CISCCTRL_CSCY2R_WIDE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r14d
	orl	(%rdx), %r14d
	movq	_EXYNOS_CISCCTRL_MAIN_H_RATIO_MASK@GOTPCREL(%rip), %rdx
	movl	%r12d, %ebx
	orl	%r13d, %ebx
	orl	%r14d, %ebx
	orl	%edi, %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	cmpq	$0, 32(%r15)
	movl	$0, %eax
	cmovel	%eax, %r14d
	cmpq	$0, 24(%r15)
	cmovel	%eax, %r12d
	cmpq	$0, 16(%r15)
	cmovel	%eax, %r13d
	xorl	%eax, %eax
	cmpq	$0, 8(%r15)
	cmovel	%eax, %edi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	sarl	$6, %edi
	callq	_EXYNOS_CISCCTRL_MAINHORRATIO
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %edi
	sarl	$6, %edi
	callq	_EXYNOS_CISCCTRL_MAINVERRATIO
	orl	%r14d, %r12d
	orl	%r13d, %r12d
	orl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	orl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	orl	%eax, %r12d
	orl	%ebx, %r12d
	movq	_EXYNOS_CISCCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_fimc_write
	movq	_EXYNOS_CIEXTEN@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_fimc_read
	movq	_EXYNOS_CIEXTEN_MAINHORRATIO_EXT_MASK@GOTPCREL(%rip), %rcx
	movq	_EXYNOS_CIEXTEN_MAINVERRATIO_EXT_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %edi
	callq	_EXYNOS_CIEXTEN_MAINHORRATIO_EXT
	movl	%eax, %r12d
	movl	4(%r15), %edi
	callq	_EXYNOS_CIEXTEN_MAINVERRATIO_EXT
	orl	%eax, %r12d
	orl	%ebx, %r12d
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fimc_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"range[%d]bypass[%d]up_h[%d]up_v[%d]\n"

L_.str.1:                               ## @.str.1
	.asciz	"hratio[%d]vratio[%d]\n"

	.comm	_EXYNOS_CISCCTRL,4,2            ## @EXYNOS_CISCCTRL
	.comm	_EXYNOS_CISCCTRL_SCALERBYPASS,4,2 ## @EXYNOS_CISCCTRL_SCALERBYPASS
	.comm	_EXYNOS_CISCCTRL_SCALEUP_H,4,2  ## @EXYNOS_CISCCTRL_SCALEUP_H
	.comm	_EXYNOS_CISCCTRL_SCALEUP_V,4,2  ## @EXYNOS_CISCCTRL_SCALEUP_V
	.comm	_EXYNOS_CISCCTRL_MAIN_V_RATIO_MASK,4,2 ## @EXYNOS_CISCCTRL_MAIN_V_RATIO_MASK
	.comm	_EXYNOS_CISCCTRL_MAIN_H_RATIO_MASK,4,2 ## @EXYNOS_CISCCTRL_MAIN_H_RATIO_MASK
	.comm	_EXYNOS_CISCCTRL_CSCR2Y_WIDE,4,2 ## @EXYNOS_CISCCTRL_CSCR2Y_WIDE
	.comm	_EXYNOS_CISCCTRL_CSCY2R_WIDE,4,2 ## @EXYNOS_CISCCTRL_CSCY2R_WIDE
	.comm	_EXYNOS_CIEXTEN,4,2             ## @EXYNOS_CIEXTEN
	.comm	_EXYNOS_CIEXTEN_MAINHORRATIO_EXT_MASK,4,2 ## @EXYNOS_CIEXTEN_MAINHORRATIO_EXT_MASK
	.comm	_EXYNOS_CIEXTEN_MAINVERRATIO_EXT_MASK,4,2 ## @EXYNOS_CIEXTEN_MAINVERRATIO_EXT_MASK
	.no_dead_strip	_fimc_set_scaler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_set_scaler
_fimc_set_scaler:                       ; @fimc_set_scaler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	ldr	w2, [x1, #32]
	ldr	w3, [x1, #24]
	ldp	x9, x8, [x1, #8]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_DEBUG_KMS
	ldr	w0, [x19]
	ldp	w2, w3, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DRM_DEV_DEBUG_KMS
Lloh4:
	adrp	x22, _EXYNOS_CISCCTRL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _EXYNOS_CISCCTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_fimc_read
Lloh6:
	adrp	x8, _EXYNOS_CISCCTRL_SCALERBYPASS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXYNOS_CISCCTRL_SCALERBYPASS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _EXYNOS_CISCCTRL_SCALEUP_H@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EXYNOS_CISCCTRL_SCALEUP_H@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _EXYNOS_CISCCTRL_SCALEUP_V@GOTPAGE
Lloh13:
	ldr	x10, [x10, _EXYNOS_CISCCTRL_SCALEUP_V@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _EXYNOS_CISCCTRL_MAIN_V_RATIO_MASK@GOTPAGE
Lloh16:
	ldr	x11, [x11, _EXYNOS_CISCCTRL_MAIN_V_RATIO_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
Lloh18:
	adrp	x12, _EXYNOS_CISCCTRL_MAIN_H_RATIO_MASK@GOTPAGE
Lloh19:
	ldr	x12, [x12, _EXYNOS_CISCCTRL_MAIN_H_RATIO_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w12, [x12]
Lloh21:
	adrp	x13, _EXYNOS_CISCCTRL_CSCR2Y_WIDE@GOTPAGE
Lloh22:
	ldr	x13, [x13, _EXYNOS_CISCCTRL_CSCR2Y_WIDE@GOTPAGEOFF]
Lloh23:
	ldr	w13, [x13]
Lloh24:
	adrp	x14, _EXYNOS_CISCCTRL_CSCY2R_WIDE@GOTPAGE
Lloh25:
	ldr	x14, [x14, _EXYNOS_CISCCTRL_CSCY2R_WIDE@GOTPAGEOFF]
Lloh26:
	ldr	w14, [x14]
	orr	w13, w14, w13
	orr	w14, w13, w8
	orr	w14, w14, w9
	orr	w14, w14, w10
	orr	w11, w14, w11
	orr	w11, w11, w12
	bic	w23, w0, w11
	ldp	x12, x11, [x20, #24]
	cmp	x11, #0
	csel	w24, wzr, w13, eq
	cmp	x12, #0
	csel	w25, wzr, w8, eq
	ldp	x11, x8, [x20, #8]
	cmp	x8, #0
	csel	w26, wzr, w9, eq
	cmp	x11, #0
	csel	w27, wzr, w10, eq
	ldr	w8, [x20]
	asr	w0, w8, #6
	bl	_EXYNOS_CISCCTRL_MAINHORRATIO
	mov	x21, x0
	ldr	w8, [x20, #4]
	asr	w0, w8, #6
	bl	_EXYNOS_CISCCTRL_MAINVERRATIO
	orr	w8, w24, w23
	orr	w8, w8, w25
	orr	w8, w8, w26
	orr	w8, w8, w27
	orr	w8, w8, w21
	orr	w1, w8, w0
	ldr	w2, [x22]
	mov	x0, x19
	bl	_fimc_write
Lloh27:
	adrp	x22, _EXYNOS_CIEXTEN@GOTPAGE
Lloh28:
	ldr	x22, [x22, _EXYNOS_CIEXTEN@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_fimc_read
Lloh29:
	adrp	x8, _EXYNOS_CIEXTEN_MAINHORRATIO_EXT_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EXYNOS_CIEXTEN_MAINHORRATIO_EXT_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _EXYNOS_CIEXTEN_MAINVERRATIO_EXT_MASK@GOTPAGE
Lloh33:
	ldr	x9, [x9, _EXYNOS_CIEXTEN_MAINVERRATIO_EXT_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w23, w0, w8
	ldr	w0, [x20]
	bl	_EXYNOS_CIEXTEN_MAINHORRATIO_EXT
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_EXYNOS_CIEXTEN_MAINVERRATIO_EXT
	orr	w8, w23, w21
	orr	w1, w8, w0
	ldr	w2, [x22]
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_fimc_write
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"range[%d]bypass[%d]up_h[%d]up_v[%d]\n"

l_.str.1:                               ; @.str.1
	.asciz	"hratio[%d]vratio[%d]\n"

	.comm	_EXYNOS_CISCCTRL,4,2            ; @EXYNOS_CISCCTRL
	.comm	_EXYNOS_CISCCTRL_SCALERBYPASS,4,2 ; @EXYNOS_CISCCTRL_SCALERBYPASS
	.comm	_EXYNOS_CISCCTRL_SCALEUP_H,4,2  ; @EXYNOS_CISCCTRL_SCALEUP_H
	.comm	_EXYNOS_CISCCTRL_SCALEUP_V,4,2  ; @EXYNOS_CISCCTRL_SCALEUP_V
	.comm	_EXYNOS_CISCCTRL_MAIN_V_RATIO_MASK,4,2 ; @EXYNOS_CISCCTRL_MAIN_V_RATIO_MASK
	.comm	_EXYNOS_CISCCTRL_MAIN_H_RATIO_MASK,4,2 ; @EXYNOS_CISCCTRL_MAIN_H_RATIO_MASK
	.comm	_EXYNOS_CISCCTRL_CSCR2Y_WIDE,4,2 ; @EXYNOS_CISCCTRL_CSCR2Y_WIDE
	.comm	_EXYNOS_CISCCTRL_CSCY2R_WIDE,4,2 ; @EXYNOS_CISCCTRL_CSCY2R_WIDE
	.comm	_EXYNOS_CIEXTEN,4,2             ; @EXYNOS_CIEXTEN
	.comm	_EXYNOS_CIEXTEN_MAINHORRATIO_EXT_MASK,4,2 ; @EXYNOS_CIEXTEN_MAINHORRATIO_EXT_MASK
	.comm	_EXYNOS_CIEXTEN_MAINVERRATIO_EXT_MASK,4,2 ; @EXYNOS_CIEXTEN_MAINVERRATIO_EXT_MASK
	.no_dead_strip	_fimc_set_scaler
.subsections_via_symbols
