	.file	"extr_core-cdev.c_ioctl_get_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ioctl_get_info, @function
ioctl_get_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 32[rsi]
	mov	DWORD PTR 16[rdi], eax
	mov	eax, DWORD PTR FW_CDEV_KERNEL_VERSION[rip]
	mov	DWORD PTR 32[rsi], eax
	mov	rax, QWORD PTR [rdi]
	lea	rdi, fw_device_rwsem[rip]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 28[rsi], eax
	call	down_read@PLT
	cmp	QWORD PTR [rbx], 0
	mov	rax, QWORD PTR 0[rbp]
	jne	.L2
	mov	eax, DWORD PTR [rax]
	lea	rdi, fw_device_rwsem[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR 8[rbx], rax
	call	up_read@PLT
.L3:
	mov	rax, QWORD PTR 0[rbp]
	lea	rdi, 4[rax]
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 24[rbx]
	cmp	QWORD PTR 16[rbx], 0
	mov	DWORD PTR 12[rbp], eax
	jne	.L5
.L8:
	lea	r12, 8[rbp]
	mov	rdi, r12
	call	list_empty@PLT
	test	rax, rax
	jne	.L21
.L7:
	mov	rdi, QWORD PTR 0[rbp]
	add	rdi, 4
	call	mutex_unlock@PLT
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 24
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR [rax]
	mov	rdi, QWORD PTR 8[rbx]
	sal	esi, 2
	movsx	rsi, esi
	call	min@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r12d, eax
	mov	rax, QWORD PTR 0[rbp]
	mov	r13, QWORD PTR 16[rax]
	call	u64_to_uptr@PLT
	mov	edx, r12d
	mov	edi, eax
	mov	rsi, r13
	call	copy_to_user@PLT
	lea	rdi, fw_device_rwsem[rip]
	mov	r12, rax
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rax]
	sal	eax, 2
	cdqe
	mov	QWORD PTR 8[rbx], rax
	call	up_read@PLT
	test	r12, r12
	je	.L3
.L19:
	mov	eax, DWORD PTR EFAULT[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	r12, 4[rsp]
	mov	rsi, rbp
	mov	rdi, r12
	call	fill_bus_reset_event@PLT
	mov	rdi, QWORD PTR 16[rbx]
	call	u64_to_uptr@PLT
	mov	edx, 36
	mov	rsi, r12
	mov	edi, eax
	call	copy_to_user@PLT
	test	rax, rax
	je	.L8
	mov	rdi, QWORD PTR 0[rbp]
	add	rdi, 4
	call	mutex_unlock@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, r12
	lea	rsi, 8[rax]
	call	list_add_tail@PLT
	jmp	.L7
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ioctl_get_info, .-ioctl_get_info
	.comm	fw_device_rwsem,4,4
	.comm	FW_CDEV_KERNEL_VERSION,4,4
	.comm	EFAULT,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_core-cdev.c_ioctl_get_info.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ioctl_get_info, %function
ioctl_get_info:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	mov	r5, r0
	ldr	r3, [r0]
	ldr	r2, .L23
	ldr	r3, [r3, #16]
	ldr	r1, [r1, #20]
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r1, [r0, #12]
	str	r3, [r4, #16]
	ldr	r3, .L23+4
	sub	sp, sp, #12
	str	r2, [r4, #20]
	ldr	r0, .L23+8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	down_read
	ldr	r0, [r4]
	ldr	r3, [r5]
	cmp	r0, #0
	bne	.L2
	ldr	r3, [r3]
	ldr	r0, .L23+8
	lsl	r3, r3, #2
	str	r3, [r4, #4]
	bl	up_read
.L3:
	ldr	r0, [r5]
	add	r0, r0, #4
	bl	mutex_lock
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #12]
	cmp	r2, #0
	str	r3, [r5, #8]
	bne	.L5
.L8:
	add	r4, r5, #4
	mov	r0, r4
	bl	list_empty
	cmp	r0, #0
	bne	.L21
.L7:
	ldr	r0, [r5]
	add	r0, r0, #4
	bl	mutex_unlock
	mov	r0, #0
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r6, [r3]
	ldr	r7, [r4, #4]
	bl	u64_to_uptr
	lsl	r6, r6, #2
	ldr	r3, [r5]
	mov	r1, r6
	mov	r6, r0
	mov	r0, r7
	ldr	r7, [r3, #12]
	bl	min
	mov	r1, r7
	mov	r2, r0
	mov	r0, r6
	bl	copy_to_user
	mov	r6, r0
	ldr	r3, [r5]
	ldr	r0, .L23+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [r4, #4]
	bl	up_read
	cmp	r6, #0
	beq	.L3
.L19:
	ldr	r3, .L23+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L5:
	mov	r1, r5
	mov	r0, sp
	bl	fill_bus_reset_event
	ldr	r0, [r4, #8]
	bl	u64_to_uptr
	mov	r1, sp
	mov	r2, #36
	bl	copy_to_user
	cmp	r0, #0
	beq	.L8
	ldr	r0, [r5]
	add	r0, r0, #4
	bl	mutex_unlock
	b	.L19
.L21:
	ldr	r1, [r5]
	mov	r0, r4
	add	r1, r1, #8
	bl	list_add_tail
	b	.L7
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	FW_CDEV_KERNEL_VERSION
	.word	.LC0
	.word	fw_device_rwsem
	.word	EFAULT
	.size	ioctl_get_info, .-ioctl_get_info
	.comm	fw_device_rwsem,4,4
	.comm	FW_CDEV_KERNEL_VERSION,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
