	.file	"extr_dcn10_optc.c_optc1_get_otg_active_size.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	optc1_get_otg_active_size
	.type	optc1_get_otg_active_size, @function
optc1_get_otg_active_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	DCN10TG_FROM_TG@PLT
	mov	esi, DWORD PTR OTG_MASTER_EN[rip]
	mov	edi, DWORD PTR OTG_CONTROL[rip]
	mov	rdx, rsp
	call	REG_GET@PLT
	xor	eax, eax
	cmp	QWORD PTR [rsp], 0
	je	.L1
	mov	ecx, DWORD PTR OTG_V_BLANK_END[rip]
	mov	esi, DWORD PTR OTG_V_BLANK_START[rip]
	lea	rdx, 8[rsp]
	lea	r8, 16[rsp]
	mov	edi, DWORD PTR OTG_V_BLANK_START_END[rip]
	call	REG_GET_2@PLT
	mov	ecx, DWORD PTR OTG_H_BLANK_END[rip]
	mov	esi, DWORD PTR OTG_H_BLANK_START[rip]
	lea	rdx, 24[rsp]
	mov	edi, DWORD PTR OTG_H_BLANK_START_END[rip]
	lea	r8, 32[rsp]
	call	REG_GET_2@PLT
	mov	rax, QWORD PTR 8[rsp]
	sub	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR 24[rsp]
	sub	rax, QWORD PTR 32[rsp]
	mov	QWORD PTR [rbx], rax
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	optc1_get_otg_active_size, .-optc1_get_otg_active_size
	.comm	OTG_V_BLANK_START_END,4,4
	.comm	OTG_V_BLANK_START,4,4
	.comm	OTG_V_BLANK_END,4,4
	.comm	OTG_MASTER_EN,4,4
	.comm	OTG_H_BLANK_START_END,4,4
	.comm	OTG_H_BLANK_START,4,4
	.comm	OTG_H_BLANK_END,4,4
	.comm	OTG_CONTROL,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_dcn10_optc.c_optc1_get_otg_active_size.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	optc1_get_otg_active_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	optc1_get_otg_active_size, %function
optc1_get_otg_active_size:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L10
	sub	sp, sp, #36
	mov	r5, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	DCN10TG_FROM_TG
	ldr	r0, .L10+4
	ldr	r3, .L10+8
	ldr	r1, [r0]
	add	r2, sp, #8
	ldr	r0, [r3]
	bl	REG_GET
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L10+12
	ldr	r1, .L10+16
	ldr	r0, .L10+20
	add	r2, sp, #16
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r0, [r0]
	str	r2, [sp]
	add	r2, sp, #12
	bl	REG_GET_2
	ldr	r3, .L10+24
	ldr	r1, .L10+28
	ldr	r0, .L10+32
	add	r2, sp, #24
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r0, [r0]
	str	r2, [sp]
	add	r2, sp, #20
	bl	REG_GET_2
	mov	r0, #1
	ldr	r2, [sp, #12]
	ldr	ip, [sp, #16]
	ldr	r3, [sp, #20]
	ldr	r1, [sp, #24]
	sub	r2, r2, ip
	sub	r3, r3, r1
	str	r2, [r5]
	str	r3, [r4]
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	OTG_MASTER_EN
	.word	OTG_CONTROL
	.word	OTG_V_BLANK_END
	.word	OTG_V_BLANK_START
	.word	OTG_V_BLANK_START_END
	.word	OTG_H_BLANK_END
	.word	OTG_H_BLANK_START
	.word	OTG_H_BLANK_START_END
	.size	optc1_get_otg_active_size, .-optc1_get_otg_active_size
	.comm	OTG_V_BLANK_START_END,4,4
	.comm	OTG_V_BLANK_START,4,4
	.comm	OTG_V_BLANK_END,4,4
	.comm	OTG_MASTER_EN,4,4
	.comm	OTG_H_BLANK_START_END,4,4
	.comm	OTG_H_BLANK_START,4,4
	.comm	OTG_H_BLANK_END,4,4
	.comm	OTG_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
