	.file	"extr_pwc-ctrl.c_pwc_set_leds.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to set LED on/off time (%d)\n"
	.text
	.p2align 4
	.globl	pwc_set_leds
	.type	pwc_set_leds, @function
pwc_set_leds:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	cmp	DWORD PTR [rdi], 729
	jle	.L1
	xor	ecx, ecx
	cmp	esi, -99
	jge	.L10
	xor	eax, eax
	cmp	edx, -99
	jge	.L11
.L4:
	mov	r9, QWORD PTR 8[rdi]
	mov	r8d, 2
	mov	DWORD PTR [r9], ecx
	mov	edx, DWORD PTR LED_FORMATTER[rip]
	mov	rcx, r9
	mov	DWORD PTR 4[r9], eax
	mov	esi, DWORD PTR SET_STATUS_CTL[rip]
	call	send_control_msg@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L12
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1374389535
	sar	rax, 37
	sub	eax, edx
	mov	edx, 255
	cmp	eax, 255
	cmovg	eax, edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	movsx	rcx, esi
	sar	esi, 31
	mov	eax, 255
	imul	rcx, rcx, 1374389535
	sar	rcx, 37
	sub	ecx, esi
	cmp	ecx, 255
	cmovg	ecx, eax
	xor	eax, eax
	cmp	edx, -99
	jl	.L4
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	PWC_ERROR@PLT
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pwc_set_leds, .-pwc_set_leds
	.comm	SET_STATUS_CTL,4,4
	.comm	LED_FORMATTER,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_pwc-ctrl.c_pwc_set_leds.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to set LED on/off time (%d)\012\000"
	.text
	.align	2
	.global	pwc_set_leds
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwc_set_leds, %function
pwc_set_leds:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	ip, [r0]
	ldr	r3, .L13
	sub	sp, sp, #8
	cmp	ip, r3
	movle	r4, #0
	ble	.L1
	cmn	r1, #99
	movlt	r1, #0
	bge	.L10
	cmn	r2, #99
	movlt	r2, #0
	bge	.L11
.L4:
	mov	ip, #2
	ldr	r3, [r0, #4]
	ldr	lr, .L13+4
	str	r1, [r3]
	ldr	r1, .L13+8
	str	r2, [r3, #4]
	ldr	r1, [r1]
	ldr	r2, [lr]
	str	ip, [sp]
	bl	send_control_msg
	subs	r4, r0, #0
	blt	.L12
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L11:
	ldr	ip, .L13+12
	asr	r3, r2, #31
	smull	lr, r2, ip, r2
	rsb	r2, r3, r2, asr #5
	cmp	r2, #255
	movge	r2, #255
	b	.L4
.L10:
	ldr	ip, .L13+12
	asr	r3, r1, #31
	smull	lr, r1, ip, r1
	rsb	r1, r3, r1, asr #5
	cmp	r1, #255
	movge	r1, #255
	cmn	r2, #99
	movlt	r2, #0
	blt	.L4
	b	.L11
.L12:
	mov	r1, r4
	ldr	r0, .L13+16
	bl	PWC_ERROR
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L14:
	.align	2
.L13:
	.word	729
	.word	LED_FORMATTER
	.word	SET_STATUS_CTL
	.word	1374389535
	.word	.LC0
	.size	pwc_set_leds, .-pwc_set_leds
	.comm	SET_STATUS_CTL,4,4
	.comm	LED_FORMATTER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
