	.file	"extr_video.c_acpi_video_device_notify.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	acpi_video_device_notify, @function
acpi_video_device_notify:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdx, rdx
	je	.L22
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rdi, rdx
	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	ebp, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdx]
	mov	r13, QWORD PTR 8[rdx]
	mov	r12, QWORD PTR [rax]
	lea	eax, -128[rsi]
	cmp	eax, 4
	ja	.L4
	lea	rdx, .L6[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	mov	edx, DWORD PTR brightness_switch_enabled[rip]
	test	edx, edx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	jne	.L26
.L14:
	xor	edx, edx
	mov	esi, 131
	mov	rdi, r13
	call	acpi_bus_generate_proc_event@PLT
	mov	r14d, DWORD PTR KEY_BRIGHTNESSDOWN[rip]
.L12:
	xor	edx, edx
	mov	esi, ebp
	mov	rdi, r13
	call	acpi_notifier_call_chain@PLT
	test	r14d, r14d
	jne	.L27
	add	rsp, 8
	.cfi_remember_state
	.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
.L5:
	.cfi_restore_state
	jne	.L28
.L11:
	xor	edx, edx
	mov	esi, 132
	mov	rdi, r13
	call	acpi_bus_generate_proc_event@PLT
	mov	r14d, DWORD PTR KEY_BRIGHTNESS_CYCLE[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	jne	.L29
.L13:
	xor	edx, edx
	mov	esi, 129
	mov	rdi, r13
	call	acpi_bus_generate_proc_event@PLT
	mov	r14d, DWORD PTR KEY_BRIGHTNESSUP[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	jne	.L30
.L16:
	xor	edx, edx
	mov	esi, 130
	mov	rdi, r13
	call	acpi_bus_generate_proc_event@PLT
	mov	r14d, DWORD PTR KEY_DISPLAY_OFF[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	jne	.L31
.L15:
	xor	edx, edx
	mov	esi, 128
	mov	rdi, r13
	call	acpi_bus_generate_proc_event@PLT
	mov	r14d, DWORD PTR KEY_BRIGHTNESS_ZERO[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L27:
	mov	esi, r14d
	mov	edx, 1
	mov	rdi, r12
	call	input_report_key@PLT
	mov	rdi, r12
	call	input_sync@PLT
	mov	rdi, r12
	mov	esi, r14d
	xor	edx, edx
	call	input_report_key@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	input_sync@PLT
.L4:
	.cfi_restore_state
	mov	edi, esi
	call	ACPI_DEBUG_PRINT@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	esi, ebp
	mov	rdi, r13
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	xor	edx, edx
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	acpi_notifier_call_chain@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	mov	esi, 131
	call	acpi_video_switch_brightness@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, 128
	call	acpi_video_switch_brightness@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, 130
	call	acpi_video_switch_brightness@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L29:
	mov	esi, 129
	call	acpi_video_switch_brightness@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L28:
	mov	esi, 132
	call	acpi_video_switch_brightness@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	acpi_video_device_notify, .-acpi_video_device_notify
	.comm	brightness_switch_enabled,4,4
	.comm	KEY_DISPLAY_OFF,4,4
	.comm	KEY_BRIGHTNESS_ZERO,4,4
	.comm	KEY_BRIGHTNESS_CYCLE,4,4
	.comm	KEY_BRIGHTNESSUP,4,4
	.comm	KEY_BRIGHTNESSDOWN,4,4
	.comm	ACPI_DB_INFO,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_video.c_acpi_video_device_notify.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_video_device_notify, %function
acpi_video_device_notify:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	r0, r2, #0
	bxeq	lr
	ldr	r2, [r0]
	sub	r3, r1, #128
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r7, [r2]
	ldr	r5, [r0, #4]
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L5:
	ldr	r3, .L46
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L41
.L11:
	mov	r2, #0
	mov	r1, #132
	mov	r0, r5
	bl	acpi_bus_generate_proc_event
	ldr	r3, .L46+4
	ldr	r6, [r3]
.L12:
	mov	r1, r4
	mov	r0, r5
	mov	r2, #0
	bl	acpi_notifier_call_chain
	cmp	r6, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r1, r6
	mov	r2, #1
	mov	r0, r7
	bl	input_report_key
	mov	r0, r7
	bl	input_sync
	mov	r1, r6
	mov	r0, r7
	mov	r2, #0
	bl	input_report_key
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	input_sync
.L10:
	ldr	r3, .L46
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L42
.L15:
	mov	r2, #0
	mov	r1, #128
	mov	r0, r5
	bl	acpi_bus_generate_proc_event
	ldr	r3, .L46+8
	ldr	r6, [r3]
	b	.L12
.L9:
	ldr	r3, .L46
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L43
.L13:
	mov	r2, #0
	mov	r1, #129
	mov	r0, r5
	bl	acpi_bus_generate_proc_event
	ldr	r3, .L46+12
	ldr	r6, [r3]
	b	.L12
.L8:
	ldr	r3, .L46
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L44
.L16:
	mov	r2, #0
	mov	r1, #130
	mov	r0, r5
	bl	acpi_bus_generate_proc_event
	ldr	r3, .L46+16
	ldr	r6, [r3]
	b	.L12
.L7:
	ldr	r3, .L46
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L45
.L14:
	mov	r2, #0
	mov	r1, #131
	mov	r0, r5
	bl	acpi_bus_generate_proc_event
	ldr	r3, .L46+20
	ldr	r6, [r3]
	b	.L12
.L41:
	mov	r1, #132
	bl	acpi_video_switch_brightness
	b	.L11
.L45:
	mov	r1, #131
	bl	acpi_video_switch_brightness
	b	.L14
.L44:
	mov	r1, #130
	bl	acpi_video_switch_brightness
	b	.L16
.L43:
	mov	r1, #129
	bl	acpi_video_switch_brightness
	b	.L13
.L42:
	mov	r1, #128
	bl	acpi_video_switch_brightness
	b	.L15
.L4:
	mov	r0, r1
	bl	ACPI_DEBUG_PRINT
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #0
	b	acpi_notifier_call_chain
.L47:
	.align	2
.L46:
	.word	brightness_switch_enabled
	.word	KEY_BRIGHTNESS_CYCLE
	.word	KEY_BRIGHTNESS_ZERO
	.word	KEY_BRIGHTNESSUP
	.word	KEY_DISPLAY_OFF
	.word	KEY_BRIGHTNESSDOWN
	.size	acpi_video_device_notify, .-acpi_video_device_notify
	.comm	brightness_switch_enabled,4,4
	.comm	KEY_DISPLAY_OFF,4,4
	.comm	KEY_BRIGHTNESS_ZERO,4,4
	.comm	KEY_BRIGHTNESS_CYCLE,4,4
	.comm	KEY_BRIGHTNESSUP,4,4
	.comm	KEY_BRIGHTNESSDOWN,4,4
	.comm	ACPI_DB_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
