	.file	"extr_acpi_video.c_acpi_video_device_lcd_set_level.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_BCM"
.LC1:
	.string	"Evaluating _BCM failed"
.LC2:
	.string	"Current brightness invalid"
	.text
	.p2align 4
	.type	acpi_video_device_lcd_set_level, @function
acpi_video_device_lcd_set_level:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edx, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	lea	rsi, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR [rax]
	call	acpi_execute_simple_method@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR ACPI_VIDEO_FIRST_LEVEL[rip]
	mov	edx, DWORD PTR 4[rax]
	mov	DWORD PTR [rax], ebx
	cmp	edi, edx
	jge	.L4
	mov	rsi, QWORD PTR 8[rax]
	movsx	rax, edi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	rax, 1
	cmp	edx, eax
	jle	.L4
.L6:
	mov	ecx, eax
	cmp	DWORD PTR [rsi+rax*4], ebx
	jne	.L5
	mov	rdx, QWORD PTR 0[rbp]
	xor	eax, eax
	test	rdx, rdx
	je	.L1
	sub	ecx, edi
	mov	DWORD PTR [rdx], ecx
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	rax, .LC2[rip]
	lea	edi, [rax]
	call	ACPI_ERROR@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rax, .LC1[rip]
	lea	edi, [rax]
	call	ACPI_ERROR@PLT
	mov	eax, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	acpi_video_device_lcd_set_level, .-acpi_video_device_lcd_set_level
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	AE_INFO,4,4
	.comm	ACPI_VIDEO_FIRST_LEVEL,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_video.c_acpi_video_device_lcd_set_level.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"_BCM\000"
	.align	2
.LC1:
	.ascii	"Evaluating _BCM failed\000"
	.align	2
.LC2:
	.ascii	"Current brightness invalid\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_video_device_lcd_set_level, %function
acpi_video_device_lcd_set_level:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, lr}
	mov	r2, r1
	mov	r5, r0
	mov	r4, r1
	ldr	r0, [r3]
	ldr	r1, .L14
	bl	acpi_execute_simple_method
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L13
	ldr	ip, [r5, #4]
	ldr	r3, .L14+4
	ldr	r2, [ip, #4]
	ldr	r1, [r3]
	str	r4, [ip]
	cmp	r1, r2
	bge	.L4
	ldr	ip, [ip, #8]
	sub	lr, r1, #-1073741823
	mov	r3, r1
	add	ip, ip, lr, lsl #2
	b	.L6
.L5:
	add	r3, r3, #1
	cmp	r3, r2
	beq	.L4
.L6:
	ldr	lr, [ip, #4]!
	cmp	lr, r4
	bne	.L5
	ldr	r2, [r5]
	cmp	r2, #0
	subne	r3, r3, r1
	strne	r3, [r2]
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r0, .L14+8
	bl	ACPI_ERROR
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r0, .L14+16
	bl	ACPI_ERROR
	ldr	r3, .L14+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	ACPI_VIDEO_FIRST_LEVEL
	.word	.LC2
	.word	EINVAL
	.word	.LC1
	.word	EIO
	.size	acpi_video_device_lcd_set_level, .-acpi_video_device_lcd_set_level
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	AE_INFO,4,4
	.comm	ACPI_VIDEO_FIRST_LEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
