	.file	"extr_cpia2_core.c_cpia2_set_brightness.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Setting brightness to %d (0x%0x)\n"
	.text
	.p2align 4
	.globl	cpia2_set_brightness
	.type	cpia2_set_brightness, @function
cpia2_set_brightness:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR DEVICE_STV_672[rip]
	cmp	QWORD PTR [rdi], rax
	jne	.L2
	test	sil, sil
	mov	r12d, 1
	cmovne	r12d, esi
.L2:
	movzx	r12d, r12b
	lea	rdi, .LC0[rip]
	mov	edx, r12d
	mov	esi, r12d
	call	DBG@PLT
	mov	edx, DWORD PTR TRANSFER_WRITE[rip]
	mov	ecx, r12d
	mov	rdi, rbp
	mov	esi, DWORD PTR CPIA2_CMD_SET_VP_BRIGHTNESS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	cpia2_do_command@PLT
	.cfi_endproc
.LFE0:
	.size	cpia2_set_brightness, .-cpia2_set_brightness
	.comm	TRANSFER_WRITE,4,4
	.comm	DEVICE_STV_672,8,8
	.comm	CPIA2_CMD_SET_VP_BRIGHTNESS,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_cpia2_core.c_cpia2_set_brightness.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Setting brightness to %d (0x%0x)\012\000"
	.text
	.align	2
	.global	cpia2_set_brightness
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpia2_set_brightness, %function
cpia2_set_brightness:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L5
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	cmp	r2, r3
	mov	r5, r0
	mov	r4, r1
	bne	.L2
	cmp	r1, #1
	movcs	r4, r1
	movcc	r4, #1
.L2:
	mov	r2, r4
	mov	r1, r4
	ldr	r0, .L5+4
	bl	DBG
	ldr	r2, .L5+8
	ldr	r1, .L5+12
	mov	r3, r4
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	ldr	r2, [r2]
	ldr	r1, [r1]
	b	cpia2_do_command
.L6:
	.align	2
.L5:
	.word	DEVICE_STV_672
	.word	.LC0
	.word	TRANSFER_WRITE
	.word	CPIA2_CMD_SET_VP_BRIGHTNESS
	.size	cpia2_set_brightness, .-cpia2_set_brightness
	.comm	TRANSFER_WRITE,4,4
	.comm	DEVICE_STV_672,4,4
	.comm	CPIA2_CMD_SET_VP_BRIGHTNESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
