	.file	"extr_sonixj.c_setbrightness.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setbrightness, @function
setbrightness:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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 16[rdi]
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR [rdi]
	lea	r12d, -128[rsi]
	add	eax, -128
	sar	r12d, 2
	cmp	eax, 7
	ja	.L2
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L9-.L4
	.long	.L7-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L12-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	sal	esi, 4
	call	expo_adjust@PLT
	mov	QWORD PTR 8[rbp], rax
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, 150
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	reg_w1@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	sal	esi, 2
.L12:
	mov	rdi, rbp
	call	expo_adjust@PLT
	mov	QWORD PTR 8[rbp], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	sal	esi, 12
	mov	eax, 672
	cmp	esi, 672
	cmovb	esi, eax
	mov	eax, 3000000
	cmp	esi, 3000000
	cmova	esi, eax
	call	expo_adjust@PLT
	mov	QWORD PTR 8[rbp], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	r12d, 32
	mov	eax, 0
	cmovge	r12d, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	sal	esi, 2
	call	expo_adjust@PLT
	mov	QWORD PTR 8[rbp], rax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	setbrightness, .-setbrightness
	.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_sonixj.c_setbrightness.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setbrightness, %function
setbrightness:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #8]
	ldr	r3, [r0]
	ldr	r1, [r2]
	push	{r4, r5, r6, lr}
	sub	r3, r3, #128
	sub	r5, r1, #128
	mov	r4, r0
	asr	r5, r5, #2
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L9
	.word	.L9
	.word	.L7
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L12
	.word	.L3
.L7:
	lsl	r1, r1, #4
	bl	expo_adjust
	str	r0, [r4, #4]
.L2:
	mov	r2, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	mov	r1, #150
	b	reg_w1
.L9:
	lsl	r1, r1, #2
.L12:
	mov	r0, r4
	bl	expo_adjust
	str	r0, [r4, #4]
	pop	{r4, r5, r6, pc}
.L6:
	lsl	r1, r1, #12
	cmp	r1, #672
	movcc	r1, #672
	ldr	r3, .L14
	cmp	r1, r3
	movcs	r1, r3
	bl	expo_adjust
	str	r0, [r4, #4]
	b	.L2
.L3:
	cmp	r5, #32
	movge	r5, #0
	b	.L2
.L8:
	lsl	r1, r1, #2
	bl	expo_adjust
	str	r0, [r4, #4]
	b	.L2
.L15:
	.align	2
.L14:
	.word	3000000
	.size	setbrightness, .-setbrightness
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
