	.file	"extr_applesmc.c_applesmc_light_show.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"light sensor data length set to %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"(%d,%d)\n"
	.text
	.p2align 4
	.type	applesmc_light_show, @function
applesmc_light_show:
.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
	mov	rbp, rdx
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR data_length.1955[rip]
	mov	edi, DWORD PTR LIGHT_SENSOR_LEFT_KEY[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	edx, edx
	jne	.L2
	call	applesmc_get_entry_by_key@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L11
	mov	esi, DWORD PTR [r12]
	cmp	esi, 10
	jle	.L5
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	mov	DWORD PTR data_length.1955[rip], esi
	call	pr_info@PLT
	mov	edx, DWORD PTR data_length.1955[rip]
	mov	edi, DWORD PTR LIGHT_SENSOR_LEFT_KEY[rip]
.L2:
	mov	r13, rsp
	mov	rsi, r13
	call	applesmc_read_key@PLT
	mov	edx, DWORD PTR data_length.1955[rip]
	mov	r12d, eax
	cmp	edx, 10
	je	.L13
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR LIGHT_SENSOR_RIGHT_KEY[rip]
	mov	rsi, r13
	mov	r14d, DWORD PTR 8[rsp]
	call	applesmc_read_key@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	r12d, eax
.L7:
	test	r12d, r12d
	jne	.L1
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	ecx, r14d
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	call	snprintf@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r12
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 24[rsp]
	call	be16_to_cpu@PLT
	xor	r8d, r8d
	sar	eax, 2
	mov	r14d, eax
	jmp	.L7
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	applesmc_light_show, .-applesmc_light_show
	.local	data_length.1955
	.comm	data_length.1955,4,4
	.comm	PAGE_SIZE,4,4
	.comm	LIGHT_SENSOR_RIGHT_KEY,4,4
	.comm	LIGHT_SENSOR_LEFT_KEY,4,4
	.comm	ENXIO,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_applesmc.c_applesmc_light_show.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"light sensor data length set to %d\012\000"
	.align	2
.LC1:
	.ascii	"(%d,%d)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	applesmc_light_show, %function
applesmc_light_show:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r4, .L14
	mov	r6, r2
	ldr	r3, [r4]
	ldr	r5, .L14+4
	ldr	r2, .L14+8
	sub	sp, sp, #60
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #52]
	mov	r2,#0
	ldr	r0, [r5]
	bne	.L2
	bl	applesmc_get_entry_by_key
	mov	r7, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L11
	ldr	r1, [r7]
	cmp	r1, #10
	ble	.L5
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L14+8
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	ldr	r0, .L14+16
	str	r1, [r4]
	bl	pr_info
	ldr	r0, [r5]
	ldr	r3, [r4]
.L2:
	mov	r2, r3
	add	r1, sp, #12
	bl	applesmc_read_key
	ldr	r2, [r4]
	mov	r4, r0
	cmp	r2, #10
	beq	.L13
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L14+20
	add	r1, sp, #12
	ldr	r0, [r3]
	ldr	r5, [sp, #20]
	bl	applesmc_read_key
	mov	r4, r0
	ldr	r3, [sp, #20]
.L7:
	cmp	r4, #0
	bne	.L1
	ldr	r2, .L14+24
	str	r3, [sp]
	ldr	r1, [r2]
	mov	r3, r5
	mov	r0, r6
	ldr	r2, .L14+28
	bl	snprintf
	mov	r4, r0
	b	.L1
.L11:
	mov	r0, r7
	bl	PTR_ERR
	mov	r4, r0
	b	.L1
.L13:
	ldr	r0, [sp, #36]
	bl	be16_to_cpu
	mov	r3, #0
	asr	r5, r0, #2
	b	.L7
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LANCHOR0
	.word	LIGHT_SENSOR_LEFT_KEY
	.word	.LC2
	.word	ENXIO
	.word	.LC0
	.word	LIGHT_SENSOR_RIGHT_KEY
	.word	PAGE_SIZE
	.word	.LC1
	.size	applesmc_light_show, .-applesmc_light_show
	.comm	PAGE_SIZE,4,4
	.comm	LIGHT_SENSOR_RIGHT_KEY,4,4
	.comm	LIGHT_SENSOR_LEFT_KEY,4,4
	.comm	ENXIO,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	data_length.4239, %object
	.size	data_length.4239, 4
data_length.4239:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
