	.file	"extr_esas2r_vda.c_esas2r_complete_vda_ioctl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%1.1u.%2.2u"
	.text
	.p2align 4
	.type	esas2r_complete_vda_ioctl, @function
esas2r_complete_vda_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 48[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 40[rsi]
	mov	DWORD PTR 92[rbp], eax
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 130
	je	.L2
	jg	.L3
	cmp	eax, 128
	je	.L4
	cmp	eax, 129
	jne	.L1
	mov	eax, DWORD PTR 80[rbp]
	cmp	eax, DWORD PTR VDA_FLASH_FINFO[rip]
	je	.L8
	cmp	eax, DWORD PTR VDA_FLASH_FREAD[rip]
	jne	.L1
.L8:
	mov	edi, DWORD PTR 28[rbx]
	call	le32_to_cpu@PLT
	mov	QWORD PTR 72[rbp], rax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	eax, 131
	jne	.L1
	mov	eax, DWORD PTR VDA_CFG_GET_INIT[rip]
	lea	r12, 16[rbp]
	cmp	DWORD PTR 44[rbp], eax
	je	.L17
	mov	rax, QWORD PTR 32[rsi]
	mov	rsi, r12
	mov	edi, DWORD PTR [rax]
	call	esas2r_nuxi_cfg_data@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, 4
	lea	r14, 3[rsp]
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	DWORD PTR 40[rbp], eax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	QWORD PTR 32[rbp], rax
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 24[rbp], eax
	call	le16_to_cpu@PLT
	mov	edi, eax
	call	HIBYTE@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r13, rax
	call	le16_to_cpu@PLT
	mov	edi, eax
	call	LOBYTE@PLT
	mov	r8d, r13d
	mov	esi, 5
	mov	rdi, r14
	mov	rcx, rax
	lea	rdx, .LC0[rip]
	call	snprintf@PLT
	mov	edx, 4
	mov	rsi, r14
	mov	rdi, r12
	call	memcpy@PLT
	mov	edi, DWORD PTR 24[rbp]
	call	LOBYTE@PLT
	mov	rdi, rax
	call	LOWORD@PLT
	cmp	al, 65
	je	.L18
	mov	eax, DWORD PTR 16[rbp]
.L12:
	mov	DWORD PTR 20[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 24[rsi]
	mov	edi, DWORD PTR 20[rsi]
	mov	DWORD PTR 68[rbp], eax
	call	le16_to_cpu@PLT
	mov	DWORD PTR 64[rbp], eax
	mov	eax, DWORD PTR 88[rbp]
	test	eax, eax
	je	.L19
.L9:
	mov	rax, QWORD PTR 32[rbx]
	lea	rsi, 48[rbp]
	mov	edi, DWORD PTR 4[rax]
	call	esas2r_nuxi_mgt_data@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR [rsi]
	call	le32_to_cpu@PLT
	mov	QWORD PTR 8[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR 16[rbx]
	call	le32_to_cpu@PLT
	mov	QWORD PTR 56[rbp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, DWORD PTR 24[rbp]
	jmp	.L12
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	esas2r_complete_vda_ioctl, .-esas2r_complete_vda_ioctl
	.comm	VDA_FLASH_FREAD,4,4
	.comm	VDA_FLASH_FINFO,4,4
	.comm	VDA_CFG_GET_INIT,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_esas2r_vda.c_esas2r_complete_vda_ioctl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%1.1u.%2.2u\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	esas2r_complete_vda_ioctl, %function
esas2r_complete_vda_ioctl:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r1, #40]
	ldr	r2, [r1, #36]
	ldr	r3, [r5]
	mov	r4, r1
	ldr	r1, .L19
	sub	sp, sp, #24
	sub	r3, r3, #128
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	str	r2, [r5, #60]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L1
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L6:
	ldr	r2, .L19+4
	ldr	r3, [r5, #52]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L8
	ldr	r2, .L19+8
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L1
.L8:
	ldr	r0, [r4, #28]
	bl	le32_to_cpu
	str	r0, [r5, #48]
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L19+12
	ldr	r2, [r5, #28]
	ldr	r3, [r3]
	add	r6, r5, #8
	cmp	r2, r3
	beq	.L17
	ldr	r3, [r4, #32]
	mov	r1, r6
	ldr	r0, [r3]
	bl	esas2r_nuxi_cfg_data
	b	.L1
.L7:
	ldr	r3, [r4, #24]
	ldr	r0, [r4, #20]
	str	r3, [r5, #44]
	bl	le16_to_cpu
	ldr	r3, [r5, #56]
	str	r0, [r5, #40]
	cmp	r3, #0
	beq	.L18
.L9:
	ldr	r3, [r4, #32]
	add	r1, r5, #32
	ldr	r0, [r3, #4]
	bl	esas2r_nuxi_mgt_data
	b	.L1
.L5:
	ldr	r0, [r4]
	bl	le32_to_cpu
	str	r0, [r5, #4]
	b	.L1
.L17:
	mov	r0, #4
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [r4, #12]
	str	r3, [r5, #24]
	bl	le32_to_cpu
	ldr	r3, [r4, #8]
	str	r0, [r5, #20]
	str	r3, [r5, #16]
	ldr	r0, [r4, #4]
	bl	le16_to_cpu
	bl	LOBYTE
	mov	r3, r0
	ldr	r0, [r4, #4]
	mov	r4, r3
	bl	le16_to_cpu
	bl	HIBYTE
	mov	r3, r4
	mov	r1, #5
	ldr	r2, .L19+16
	str	r0, [sp]
	add	r0, sp, #12
	bl	snprintf
	mov	r2, #4
	add	r1, sp, #12
	mov	r0, r6
	bl	memcpy
	ldr	r0, [r5, #16]
	bl	LOBYTE
	bl	LOWORD
	cmp	r0, #65
	ldreq	r3, [r5, #16]
	ldrne	r3, [r5, #8]
	str	r3, [r5, #12]
	b	.L1
.L18:
	ldr	r0, [r4, #16]
	bl	le32_to_cpu
	str	r0, [r5, #36]
	b	.L9
.L16:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	VDA_FLASH_FINFO
	.word	VDA_FLASH_FREAD
	.word	VDA_CFG_GET_INIT
	.word	.LC0
	.size	esas2r_complete_vda_ioctl, .-esas2r_complete_vda_ioctl
	.comm	VDA_FLASH_FREAD,4,4
	.comm	VDA_FLASH_FINFO,4,4
	.comm	VDA_CFG_GET_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
