	.file	"extr_m5602_s5k83a.c_s5k83a_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rotation thread"
	.text
	.p2align 4
	.globl	s5k83a_start
	.type	s5k83a_start, @function
s5k83a_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rsi, rdi
	lea	rdx, .LC0[rip]
	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
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR rotation_thread_function[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	kthread_create@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	mov	rdi, QWORD PTR 0[rbp]
	test	rax, rax
	jne	.L16
	call	wake_up_process@PLT
	xor	ebx, ebx
	xor	r12d, r12d
	mov	r13, rsp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	m5602_write_bridge@PLT
	mov	r12d, eax
.L6:
	add	rbx, 1
.L4:
	mov	rdi, QWORD PTR start_s5k83a[rip]
	call	ARRAY_SIZE@PLT
	test	r12d, r12d
	jne	.L10
	cmp	eax, ebx
	jle	.L10
	mov	rax, QWORD PTR start_s5k83a[rip]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	rdx, QWORD PTR 16[rax]
	mov	rcx, QWORD PTR 24[rax]
	mov	QWORD PTR [rsp], rdx
	mov	QWORD PTR 8[rsp], rcx
	mov	rcx, QWORD PTR SENSOR[rip]
	cmp	QWORD PTR [rax], rcx
	mov	rsi, QWORD PTR 8[rax]
	jne	.L5
	mov	ecx, 2
	mov	rdx, r13
	mov	rdi, rbp
	call	m5602_write_sensor@PLT
	mov	r12d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	test	r12d, r12d
	js	.L1
	mov	esi, 1
	mov	rdi, rbp
	call	s5k83a_set_led_indication@PLT
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L16:
	.cfi_restore_state
	call	PTR_ERR@PLT
	mov	QWORD PTR 0[rbp], 0
	mov	r12d, eax
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	s5k83a_start, .-s5k83a_start
	.comm	start_s5k83a,8,8
	.comm	rotation_thread_function,4,4
	.comm	SENSOR,8,8
	.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_m5602_s5k83a.c_s5k83a_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rotation thread\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	s5k83a_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	s5k83a_start, %function
s5k83a_start:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L14
	mov	r7, r0
	mov	r1, r0
	ldr	r0, [r3]
	ldr	r3, .L14+4
	sub	sp, sp, #16
	ldr	r2, .L14+8
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	kthread_create
	str	r0, [r7]
	bl	IS_ERR
	subs	r4, r0, #0
	ldr	r0, [r7]
	bne	.L11
	bl	wake_up_process
	mov	r5, r4
	ldr	r6, .L14+12
	ldr	r8, .L14+16
	b	.L4
.L5:
	mov	r0, r7
	bl	m5602_write_bridge
	mov	r4, r0
.L6:
	add	r5, r5, #1
.L4:
	ldr	r0, [r6]
	bl	ARRAY_SIZE
	cmp	r0, r5
	movle	r3, #0
	movgt	r3, #1
	cmp	r4, #0
	movne	r3, #0
	cmp	r3, #0
	beq	.L12
	ldr	r3, [r6]
	ldr	r1, [r8]
	ldr	r3, [r3, r5, lsl #2]
	ldr	r2, [r3, #8]
	ldr	r0, [r3, #12]
	str	r2, [sp, #4]
	str	r0, [sp, #8]
	ldr	r0, [r3]
	cmp	r0, r1
	ldr	r1, [r3, #4]
	bne	.L5
	mov	r3, #2
	mov	r0, r7
	add	r2, sp, #4
	bl	m5602_write_sensor
	mov	r4, r0
	b	.L6
.L12:
	cmp	r4, #0
	blt	.L1
	mov	r0, r7
	mov	r1, #1
	bl	s5k83a_set_led_indication
	mov	r4, r0
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	bl	PTR_ERR
	mov	r3, #0
	mov	r4, r0
	str	r3, [r7]
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	rotation_thread_function
	.word	.LC1
	.word	.LC0
	.word	start_s5k83a
	.word	SENSOR
	.size	s5k83a_start, .-s5k83a_start
	.comm	start_s5k83a,4,4
	.comm	rotation_thread_function,4,4
	.comm	SENSOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
