	.file	"extr_acpi_toshiba.c_hci_key_action.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hci_key_action, @function
hci_key_action:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR toshiba[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	ACPI_SERIAL_ASSERT@PLT
	lea	edx, -128[rbx]
	cmp	edx, 4
	ja	.L1
	lea	rcx, .L4[rip]
	movsx	rax, DWORD PTR [rcx+rdx*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR HCI_GET[rip]
	lea	r12, 4[rsp]
	mov	edi, ebp
	mov	rdx, r12
	call	hci_lcd_brightness@PLT
	mov	eax, DWORD PTR 4[rsp]
	lea	edx, 1[rax]
	mov	DWORD PTR 4[rsp], edx
	cmp	eax, 7
	je	.L1
.L16:
	mov	esi, DWORD PTR HCI_SET[rip]
	mov	rdx, r12
	mov	edi, ebp
	call	hci_lcd_brightness@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	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
.L5:
	.cfi_restore_state
	lea	r13, 4[rsp]
	mov	esi, DWORD PTR HCI_GET[rip]
	mov	edi, ebp
	mov	rdx, r13
	call	hci_video_output@PLT
	mov	eax, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR HCI_SET[rip]
	mov	edi, DWORD PTR [r12]
	lea	edx, 1[rax]
	movsx	rax, edx
	mov	ecx, edx
	imul	rax, rax, -1840700269
	sar	ecx, 31
	shr	rax, 32
	add	eax, edx
	sar	eax, 2
	sub	eax, ecx
	lea	ecx, 0[0+rax*8]
	sub	ecx, eax
	sub	edx, ecx
	mov	DWORD PTR 4[rsp], edx
	mov	rdx, r13
	call	hci_video_output@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	lea	r12, 4[rsp]
	mov	esi, DWORD PTR HCI_GET[rip]
	mov	edi, ebp
	mov	rdx, r12
	call	hci_force_fan@PLT
	mov	edx, DWORD PTR 4[rsp]
	xor	eax, eax
	mov	edi, ebp
	mov	esi, DWORD PTR HCI_SET[rip]
	test	edx, edx
	mov	rdx, r12
	sete	al
	mov	DWORD PTR 4[rsp], eax
	call	hci_force_fan@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	lea	r12, 4[rsp]
	mov	esi, DWORD PTR HCI_GET[rip]
	mov	edi, ebp
	mov	rdx, r12
	call	hci_lcd_backlight@PLT
	mov	ecx, DWORD PTR 4[rsp]
	xor	eax, eax
	mov	rdx, r12
	mov	esi, DWORD PTR HCI_SET[rip]
	mov	edi, ebp
	test	ecx, ecx
	sete	al
	mov	DWORD PTR 4[rsp], eax
	call	hci_lcd_backlight@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR HCI_GET[rip]
	lea	r12, 4[rsp]
	mov	edi, ebp
	mov	rdx, r12
	call	hci_lcd_brightness@PLT
	mov	eax, DWORD PTR 4[rsp]
	lea	edx, -1[rax]
	mov	DWORD PTR 4[rsp], edx
	test	eax, eax
	je	.L1
	jmp	.L16
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hci_key_action, .-hci_key_action
	.comm	toshiba,4,4
	.comm	HCI_SET,4,4
	.comm	HCI_GET,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_acpi_toshiba.c_hci_key_action.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hci_key_action, %function
hci_key_action:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	ldr	r3, .L19
	mov	r6, r0
	ldr	r0, [r3]
	ldr	r3, .L19+4
	sub	sp, sp, #8
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	ACPI_SERIAL_ASSERT
	sub	r2, r4, #128
	cmp	r2, #4
	ldrls	pc, [pc, r2, asl #2]
	b	.L1
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L7:
	ldr	r3, .L19+8
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r5
	bl	hci_lcd_brightness
	ldr	r3, [sp]
	cmp	r3, #7
	add	r3, r3, #1
	str	r3, [sp]
	beq	.L1
.L16:
	ldr	r3, .L19+12
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [r3]
	bl	hci_lcd_brightness
.L1:
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L19+8
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r5
	bl	hci_force_fan
	ldr	r3, [sp]
	ldr	r1, .L19+12
	clz	r3, r3
	mov	r2, sp
	lsr	r3, r3, #5
	mov	r0, r5
	ldr	r1, [r1]
	str	r3, [sp]
	bl	hci_force_fan
	b	.L1
.L8:
	ldr	r3, .L19+8
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r5
	bl	hci_lcd_backlight
	ldr	r3, [sp]
	ldr	r1, .L19+12
	clz	r3, r3
	mov	r2, sp
	lsr	r3, r3, #5
	mov	r0, r5
	ldr	r1, [r1]
	str	r3, [sp]
	bl	hci_lcd_backlight
	b	.L1
.L6:
	ldr	r3, .L19+8
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r5
	bl	hci_lcd_brightness
	ldr	r3, [sp]
	cmp	r3, #0
	sub	r3, r3, #1
	str	r3, [sp]
	beq	.L1
	b	.L16
.L5:
	ldr	r3, .L19+8
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r5
	bl	hci_video_output
	ldr	r3, [sp]
	ldr	r1, .L19+16
	add	r3, r3, #1
	smull	r2, r1, r3, r1
	asr	r2, r3, #31
	add	r1, r1, r3
	ldr	ip, .L19+12
	rsb	r2, r2, r1, asr #2
	rsb	r1, r2, r2, lsl #3
	sub	r3, r3, r1
	mov	r2, sp
	ldr	r0, [r6]
	ldr	r1, [ip]
	str	r3, [sp]
	bl	hci_video_output
	b	.L1
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	toshiba
	.word	.LC0
	.word	HCI_GET
	.word	HCI_SET
	.word	-1840700269
	.size	hci_key_action, .-hci_key_action
	.comm	toshiba,4,4
	.comm	HCI_SET,4,4
	.comm	HCI_GET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
