	.file	"extr_exynos_drm_gsc.c_gsc_src_set_size.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gsc_src_set_size, @function
gsc_src_set_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 16[rsi]
	call	GSC_SRCIMG_OFFSET_X@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	ebp, eax
	call	GSC_SRCIMG_OFFSET_Y@PLT
	mov	esi, DWORD PTR GSC_SRCIMG_OFFSET[rip]
	mov	edi, ebp
	or	edi, eax
	call	gsc_write@PLT
	mov	rdi, QWORD PTR [rbx]
	call	GSC_CROPPED_WIDTH@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	ebp, eax
	call	GSC_CROPPED_HEIGHT@PLT
	mov	esi, DWORD PTR GSC_CROPPED_SIZE[rip]
	mov	edi, ebp
	or	edi, eax
	call	gsc_write@PLT
	mov	edi, DWORD PTR GSC_SRCIMG_SIZE[rip]
	call	gsc_read@PLT
	mov	edi, DWORD PTR GSC_SRCIMG_HEIGHT_MASK[rip]
	mov	rdx, QWORD PTR 40[rbx]
	or	edi, DWORD PTR GSC_SRCIMG_WIDTH_MASK[rip]
	not	edi
	mov	rcx, QWORD PTR [rdx]
	and	edi, eax
	mov	rax, QWORD PTR 24[rbx]
	mov	r12d, edi
	mov	eax, DWORD PTR [rax]
	cdq
	idiv	DWORD PTR [rcx]
	mov	edi, eax
	call	GSC_SRCIMG_WIDTH@PLT
	mov	edi, DWORD PTR 32[rbx]
	mov	ebp, eax
	call	GSC_SRCIMG_HEIGHT@PLT
	mov	edi, ebp
	mov	esi, DWORD PTR GSC_SRCIMG_SIZE[rip]
	or	edi, eax
	or	edi, r12d
	call	gsc_write@PLT
	mov	edi, DWORD PTR GSC_IN_CON[rip]
	call	gsc_read@PLT
	mov	edi, DWORD PTR GSC_IN_RGB_TYPE_MASK[rip]
	not	edi
	and	edi, eax
	mov	rax, QWORD PTR GSC_WIDTH_ITU_709[rip]
	cmp	QWORD PTR [rbx], rax
	jl	.L2
	cmp	QWORD PTR 0[r13], 0
	je	.L3
	or	edi, DWORD PTR GSC_IN_RGB_HD_WIDE[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	QWORD PTR 0[r13], 0
	jne	.L8
	or	edi, DWORD PTR GSC_IN_RGB_SD_NARROW[rip]
.L4:
	mov	esi, DWORD PTR GSC_IN_CON[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	gsc_write@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	or	edi, DWORD PTR GSC_IN_RGB_SD_WIDE[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	or	edi, DWORD PTR GSC_IN_RGB_HD_NARROW[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	gsc_src_set_size, .-gsc_src_set_size
	.comm	GSC_WIDTH_ITU_709,8,8
	.comm	GSC_SRCIMG_WIDTH_MASK,4,4
	.comm	GSC_SRCIMG_SIZE,4,4
	.comm	GSC_SRCIMG_OFFSET,4,4
	.comm	GSC_SRCIMG_HEIGHT_MASK,4,4
	.comm	GSC_IN_RGB_TYPE_MASK,4,4
	.comm	GSC_IN_RGB_SD_WIDE,4,4
	.comm	GSC_IN_RGB_SD_NARROW,4,4
	.comm	GSC_IN_RGB_HD_WIDE,4,4
	.comm	GSC_IN_RGB_HD_NARROW,4,4
	.comm	GSC_IN_CON,4,4
	.comm	GSC_CROPPED_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_exynos_drm_gsc.c_gsc_src_set_size.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gsc_src_set_size, %function
gsc_src_set_size:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldr	r0, [r1, #12]
	mov	r4, r1
	bl	GSC_SRCIMG_OFFSET_X
	mov	r5, r0
	ldr	r0, [r4, #8]
	bl	GSC_SRCIMG_OFFSET_Y
	ldr	r3, .L8
	orr	r0, r5, r0
	ldr	r1, [r3]
	bl	gsc_write
	ldr	r0, [r4]
	bl	GSC_CROPPED_WIDTH
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	GSC_CROPPED_HEIGHT
	ldr	r3, .L8+4
	ldr	r9, .L8+8
	ldr	r1, [r3]
	orr	r0, r5, r0
	bl	gsc_write
	ldr	r0, [r9]
	bl	gsc_read
	mov	r7, r0
	ldr	r3, .L8+12
	ldr	r2, .L8+16
	ldr	r1, [r4, #24]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, [r4, #16]
	ldr	r1, [r1]
	ldr	r0, [r2]
	bic	r7, r7, r3
	bl	__aeabi_idiv
	bl	GSC_SRCIMG_WIDTH
	mov	r5, r0
	ldr	r0, [r4, #20]
	bl	GSC_SRCIMG_HEIGHT
	ldr	r8, .L8+20
	orr	r0, r5, r0
	ldr	r1, [r9]
	orr	r0, r0, r7
	bl	gsc_write
	ldr	r0, [r8]
	bl	gsc_read
	ldr	r2, .L8+24
	ldr	r3, .L8+28
	ldr	r2, [r2]
	ldr	r1, [r4]
	ldr	r3, [r3]
	cmp	r1, r2
	bic	r3, r0, r3
	ldr	r2, [r6]
	blt	.L2
	cmp	r2, #0
	ldrne	r2, .L8+32
	ldreq	r2, .L8+36
	ldr	r1, [r8]
	ldr	r0, [r2]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	orr	r0, r3, r0
	b	gsc_write
.L2:
	cmp	r2, #0
	ldrne	r2, .L8+40
	ldreq	r2, .L8+44
	ldr	r1, [r8]
	ldr	r0, [r2]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	orr	r0, r3, r0
	b	gsc_write
.L9:
	.align	2
.L8:
	.word	GSC_SRCIMG_OFFSET
	.word	GSC_CROPPED_SIZE
	.word	GSC_SRCIMG_SIZE
	.word	GSC_SRCIMG_HEIGHT_MASK
	.word	GSC_SRCIMG_WIDTH_MASK
	.word	GSC_IN_CON
	.word	GSC_WIDTH_ITU_709
	.word	GSC_IN_RGB_TYPE_MASK
	.word	GSC_IN_RGB_HD_WIDE
	.word	GSC_IN_RGB_HD_NARROW
	.word	GSC_IN_RGB_SD_WIDE
	.word	GSC_IN_RGB_SD_NARROW
	.size	gsc_src_set_size, .-gsc_src_set_size
	.comm	GSC_WIDTH_ITU_709,4,4
	.comm	GSC_SRCIMG_WIDTH_MASK,4,4
	.comm	GSC_SRCIMG_SIZE,4,4
	.comm	GSC_SRCIMG_OFFSET,4,4
	.comm	GSC_SRCIMG_HEIGHT_MASK,4,4
	.comm	GSC_IN_RGB_TYPE_MASK,4,4
	.comm	GSC_IN_RGB_SD_WIDE,4,4
	.comm	GSC_IN_RGB_SD_NARROW,4,4
	.comm	GSC_IN_RGB_HD_WIDE,4,4
	.comm	GSC_IN_RGB_HD_NARROW,4,4
	.comm	GSC_IN_CON,4,4
	.comm	GSC_CROPPED_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
