	.file	"extr_opt3001.c_opt3001_set_int_time.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to read register %02x\n"
	.text
	.p2align 4
	.type	opt3001_set_int_time, @function
opt3001_set_int_time:
.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	ebp, esi
	mov	esi, DWORD PTR OPT3001_CONFIGURATION[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR 4[rdi]
	call	i2c_smbus_read_word_swapped@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L11
	cmp	ebp, 128
	je	.L4
	cmp	ebp, 129
	je	.L5
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edx, DWORD PTR OPT3001_CONFIGURATION_CT[rip]
	mov	DWORD PTR [rbx], 129
	or	edx, eax
.L7:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR OPT3001_CONFIGURATION[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	i2c_smbus_write_word_swapped@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edx, DWORD PTR OPT3001_CONFIGURATION_CT[rip]
	mov	DWORD PTR [rbx], 128
	not	edx
	and	edx, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR OPT3001_CONFIGURATION[rip]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	opt3001_set_int_time, .-opt3001_set_int_time
	.comm	OPT3001_CONFIGURATION_CT,4,4
	.comm	OPT3001_CONFIGURATION,4,4
	.comm	EINVAL,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_opt3001.c_opt3001_set_int_time.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to read register %02x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	opt3001_set_int_time, %function
opt3001_set_int_time:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L12
	mov	r5, r0
	mov	r6, r1
	ldr	r0, [r0, #4]
	ldr	r1, [r7]
	bl	i2c_smbus_read_word_swapped
	subs	r4, r0, #0
	blt	.L11
	cmp	r6, #128
	beq	.L4
	cmp	r6, #129
	beq	.L5
	ldr	r3, .L12+4
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L12+8
	ldr	r1, [r7]
	ldr	r2, [r3]
	ldr	r0, [r5, #4]
	str	r6, [r5]
	orr	r2, r4, r2
	pop	{r4, r5, r6, r7, r8, lr}
	b	i2c_smbus_write_word_swapped
.L4:
	ldr	r3, .L12+8
	ldr	r1, [r7]
	ldr	r2, [r3]
	ldr	r0, [r5, #4]
	str	r6, [r5]
	bic	r2, r4, r2
	pop	{r4, r5, r6, r7, r8, lr}
	b	i2c_smbus_write_word_swapped
.L11:
	ldr	r2, [r7]
	ldr	r0, [r5, #8]
	ldr	r1, .L12+12
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	OPT3001_CONFIGURATION
	.word	EINVAL
	.word	OPT3001_CONFIGURATION_CT
	.word	.LC0
	.size	opt3001_set_int_time, .-opt3001_set_int_time
	.comm	OPT3001_CONFIGURATION_CT,4,4
	.comm	OPT3001_CONFIGURATION,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
