	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_dst_set_size
_fimc_dst_set_size:                     ## @fimc_dst_set_size
	.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, %r15
	movq	%rdi, %r14
	movq	16(%rsi), %rax
	movl	(%rax), %eax
	movq	40(%rsi), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %ebx
	movl	(%rdi), %edi
	movl	32(%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	movl	%ebx, %edi
	callq	_EXYNOS_ORGOSIZE_HORIZONTAL
	movl	%eax, %ebx
	movl	32(%r15), %edi
	callq	_EXYNOS_ORGOSIZE_VERTICAL
	orl	%eax, %ebx
	movq	_EXYNOS_ORGOSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_fimc_write
	movl	(%r14), %edi
	movl	12(%r15), %edx
	movl	8(%r15), %ecx
	movl	(%r15), %r8d
	movl	4(%r15), %r9d
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	movq	_EXYNOS_CIGCTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_fimc_read
	movq	_EXYNOS_CIGCTRL_CSC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	24(%r15), %rax
	movq	_FIMC_WIDTH_ITU_709@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movq	_EXYNOS_CIGCTRL_CSC_ITU601@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_EXYNOS_CIGCTRL_CSC_ITU709@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_fimc_write
	movq	_EXYNOS_CITRGFMT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_fimc_read
	movl	%eax, %r13d
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_fimc_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_EXYNOS_CITRGFMT_TARGETH_MASK@GOTPCREL(%rip), %rax
	movq	_EXYNOS_CITRGFMT_TARGETV_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_EXYNOS_CITRGFMT_OUTROT90_CLOCKWISE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	andl	(%rcx), %r13d
	setne	%dl
	sete	%r12b
	movl	(%r15,%rdx,4), %edi
	orl	(%rax), %ebx
	callq	_EXYNOS_CITRGFMT_TARGETHSIZE
	movl	%eax, %r13d
	movl	(%r15,%r12,4), %edi
	callq	_EXYNOS_CITRGFMT_TARGETVSIZE
	orl	%eax, %r13d
	notl	%ebx
	andl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r13d, %ebx
	movq	_EXYNOS_CITRGFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_fimc_write
	movl	4(%r15), %edi
	imull	(%r15), %edi
	callq	_EXYNOS_CITAREA_TARGET_AREA
	movq	_EXYNOS_CITAREA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_fimc_write
	movl	12(%r15), %edi
	callq	_EXYNOS_CIOYOFF_HORIZONTAL
	movl	%eax, %ebx
	movl	8(%r15), %edi
	callq	_EXYNOS_CIOYOFF_VERTICAL
	orl	%eax, %ebx
	movq	_EXYNOS_CIOYOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_fimc_write
	movl	12(%r15), %edi
	callq	_EXYNOS_CIOCBOFF_HORIZONTAL
	movl	%eax, %ebx
	movl	8(%r15), %edi
	callq	_EXYNOS_CIOCBOFF_VERTICAL
	orl	%eax, %ebx
	movq	_EXYNOS_CIOCBOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_fimc_write
	movl	12(%r15), %edi
	callq	_EXYNOS_CIOCROFF_HORIZONTAL
	movl	%eax, %ebx
	movl	8(%r15), %edi
	callq	_EXYNOS_CIOCROFF_VERTICAL
	orl	%eax, %ebx
	movq	_EXYNOS_CIOCROFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %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	"hsize[%d]vsize[%d]\n"

	.comm	_EXYNOS_ORGOSIZE,4,2            ## @EXYNOS_ORGOSIZE
L_.str.1:                               ## @.str.1
	.asciz	"x[%d]y[%d]w[%d]h[%d]\n"

	.comm	_EXYNOS_CIGCTRL,4,2             ## @EXYNOS_CIGCTRL
	.comm	_EXYNOS_CIGCTRL_CSC_MASK,4,2    ## @EXYNOS_CIGCTRL_CSC_MASK
	.comm	_FIMC_WIDTH_ITU_709,8,3         ## @FIMC_WIDTH_ITU_709
	.comm	_EXYNOS_CIGCTRL_CSC_ITU709,4,2  ## @EXYNOS_CIGCTRL_CSC_ITU709
	.comm	_EXYNOS_CIGCTRL_CSC_ITU601,4,2  ## @EXYNOS_CIGCTRL_CSC_ITU601
	.comm	_EXYNOS_CITRGFMT,4,2            ## @EXYNOS_CITRGFMT
	.comm	_EXYNOS_CITRGFMT_TARGETH_MASK,4,2 ## @EXYNOS_CITRGFMT_TARGETH_MASK
	.comm	_EXYNOS_CITRGFMT_TARGETV_MASK,4,2 ## @EXYNOS_CITRGFMT_TARGETV_MASK
	.comm	_EXYNOS_CITRGFMT_OUTROT90_CLOCKWISE,4,2 ## @EXYNOS_CITRGFMT_OUTROT90_CLOCKWISE
	.comm	_EXYNOS_CITAREA,4,2             ## @EXYNOS_CITAREA
	.comm	_EXYNOS_CIOYOFF,4,2             ## @EXYNOS_CIOYOFF
	.comm	_EXYNOS_CIOCBOFF,4,2            ## @EXYNOS_CIOCBOFF
	.comm	_EXYNOS_CIOCROFF,4,2            ## @EXYNOS_CIOCROFF
	.no_dead_strip	_fimc_dst_set_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_dst_set_size
_fimc_dst_set_size:                     ; @fimc_dst_set_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #16]
	ldr	w8, [x8]
	ldr	x9, [x1, #40]
	ldr	x9, [x9]
	ldr	w9, [x9]
	udiv	w21, w8, w9
	ldr	w0, [x0]
	ldr	w3, [x1, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DRM_DEV_DEBUG_KMS
	mov	x0, x21
	bl	_EXYNOS_ORGOSIZE_HORIZONTAL
	mov	x21, x0
	ldr	w0, [x20, #32]
	bl	_EXYNOS_ORGOSIZE_VERTICAL
	orr	w1, w0, w21
Lloh2:
	adrp	x8, _EXYNOS_ORGOSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EXYNOS_ORGOSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fimc_write
	ldr	w0, [x19]
	ldp	w3, w2, [x20, #8]
	ldp	w8, w9, [x20]
	stp	x8, x9, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DRM_DEV_DEBUG_KMS
Lloh7:
	adrp	x21, _EXYNOS_CIGCTRL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _EXYNOS_CIGCTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_fimc_read
Lloh9:
	adrp	x8, _EXYNOS_CIGCTRL_CSC_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EXYNOS_CIGCTRL_CSC_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	x9, [x20, #24]
Lloh12:
	adrp	x10, _FIMC_WIDTH_ITU_709@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FIMC_WIDTH_ITU_709@GOTPAGEOFF]
Lloh14:
	adrp	x11, _EXYNOS_CIGCTRL_CSC_ITU601@GOTPAGE
Lloh15:
	ldr	x11, [x11, _EXYNOS_CIGCTRL_CSC_ITU601@GOTPAGEOFF]
Lloh16:
	adrp	x12, _EXYNOS_CIGCTRL_CSC_ITU709@GOTPAGE
Lloh17:
	ldr	x12, [x12, _EXYNOS_CIGCTRL_CSC_ITU709@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x9, x11, x12, lt
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w2, [x21]
	mov	x0, x19
	bl	_fimc_write
Lloh19:
	adrp	x23, _EXYNOS_CITRGFMT@GOTPAGE
Lloh20:
	ldr	x23, [x23, _EXYNOS_CITRGFMT@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_fimc_read
	mov	x21, x0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_fimc_read
	mov	x22, x0
Lloh21:
	adrp	x8, _EXYNOS_CITRGFMT_TARGETH_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EXYNOS_CITRGFMT_TARGETH_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w24, [x8]
Lloh24:
	adrp	x8, _EXYNOS_CITRGFMT_TARGETV_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EXYNOS_CITRGFMT_TARGETV_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w25, [x8]
Lloh27:
	adrp	x8, _EXYNOS_CITRGFMT_OUTROT90_CLOCKWISE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EXYNOS_CITRGFMT_OUTROT90_CLOCKWISE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w21
	cset	w8, ne
	cset	w26, eq
	ldr	w0, [x20, w8, uxtw #2]
	bl	_EXYNOS_CITRGFMT_TARGETHSIZE
	mov	x21, x0
	ldr	w0, [x20, w26, uxtw #2]
	bl	_EXYNOS_CITRGFMT_TARGETVSIZE
	orr	w8, w0, w21
	orr	w9, w25, w24
	bic	w9, w22, w9
	orr	w1, w8, w9
	ldr	w2, [x23]
	mov	x0, x19
	bl	_fimc_write
	ldp	w8, w9, [x20]
	mul	w0, w9, w8
	bl	_EXYNOS_CITAREA_TARGET_AREA
	mov	x1, x0
Lloh30:
	adrp	x8, _EXYNOS_CITAREA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EXYNOS_CITAREA@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fimc_write
	ldr	w0, [x20, #12]
	bl	_EXYNOS_CIOYOFF_HORIZONTAL
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_EXYNOS_CIOYOFF_VERTICAL
	orr	w1, w0, w21
Lloh33:
	adrp	x8, _EXYNOS_CIOYOFF@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EXYNOS_CIOYOFF@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fimc_write
	ldr	w0, [x20, #12]
	bl	_EXYNOS_CIOCBOFF_HORIZONTAL
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_EXYNOS_CIOCBOFF_VERTICAL
	orr	w1, w0, w21
Lloh36:
	adrp	x8, _EXYNOS_CIOCBOFF@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EXYNOS_CIOCBOFF@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fimc_write
	ldr	w0, [x20, #12]
	bl	_EXYNOS_CIOCROFF_HORIZONTAL
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_EXYNOS_CIOCROFF_VERTICAL
	orr	w1, w0, w21
Lloh39:
	adrp	x8, _EXYNOS_CIOCROFF@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EXYNOS_CIOCROFF@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_fimc_write
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh18
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hsize[%d]vsize[%d]\n"

	.comm	_EXYNOS_ORGOSIZE,4,2            ; @EXYNOS_ORGOSIZE
l_.str.1:                               ; @.str.1
	.asciz	"x[%d]y[%d]w[%d]h[%d]\n"

	.comm	_EXYNOS_CIGCTRL,4,2             ; @EXYNOS_CIGCTRL
	.comm	_EXYNOS_CIGCTRL_CSC_MASK,4,2    ; @EXYNOS_CIGCTRL_CSC_MASK
	.comm	_FIMC_WIDTH_ITU_709,8,3         ; @FIMC_WIDTH_ITU_709
	.comm	_EXYNOS_CIGCTRL_CSC_ITU709,4,2  ; @EXYNOS_CIGCTRL_CSC_ITU709
	.comm	_EXYNOS_CIGCTRL_CSC_ITU601,4,2  ; @EXYNOS_CIGCTRL_CSC_ITU601
	.comm	_EXYNOS_CITRGFMT,4,2            ; @EXYNOS_CITRGFMT
	.comm	_EXYNOS_CITRGFMT_TARGETH_MASK,4,2 ; @EXYNOS_CITRGFMT_TARGETH_MASK
	.comm	_EXYNOS_CITRGFMT_TARGETV_MASK,4,2 ; @EXYNOS_CITRGFMT_TARGETV_MASK
	.comm	_EXYNOS_CITRGFMT_OUTROT90_CLOCKWISE,4,2 ; @EXYNOS_CITRGFMT_OUTROT90_CLOCKWISE
	.comm	_EXYNOS_CITAREA,4,2             ; @EXYNOS_CITAREA
	.comm	_EXYNOS_CIOYOFF,4,2             ; @EXYNOS_CIOYOFF
	.comm	_EXYNOS_CIOCBOFF,4,2            ; @EXYNOS_CIOCBOFF
	.comm	_EXYNOS_CIOCROFF,4,2            ; @EXYNOS_CIOCROFF
	.no_dead_strip	_fimc_dst_set_size
.subsections_via_symbols
