	.file	"extr_leds-sc27xx-bltc.c_sc27xx_led_pattern_clear.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sc27xx_led_pattern_clear, @function
sc27xx_led_pattern_clear:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	to_sc27xx_led@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rbx
	mov	r14, QWORD PTR 16[rax]
	call	sc27xx_led_get_offset@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	r13d, DWORD PTR [rbx]
	mov	rbp, rax
	imul	r13d, DWORD PTR SC27XX_CTRL_SHIFT[rip]
	mov	r15, QWORD PTR SC27XX_LEDS_CTRL[rip]
	add	r15, QWORD PTR 8[rdi]
	call	mutex_lock@PLT
	mov	rsi, QWORD PTR SC27XX_LEDS_CURVE0[rip]
	mov	rdi, r14
	xor	edx, edx
	add	rsi, rbp
	call	regmap_write@PLT
	mov	rsi, QWORD PTR SC27XX_LEDS_CURVE1[rip]
	mov	rdi, r14
	xor	edx, edx
	add	rsi, rbp
	call	regmap_write@PLT
	mov	ecx, r13d
	mov	rsi, r15
	mov	rdi, r14
	mov	edx, DWORD PTR SC27XX_LED_RUN[rip]
	or	edx, DWORD PTR SC27XX_LED_TYPE[rip]
	sal	edx, cl
	xor	ecx, ecx
	call	regmap_update_bits@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	r13d, eax
	mov	eax, DWORD PTR LED_OFF[rip]
	mov	DWORD PTR [r12], eax
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sc27xx_led_pattern_clear, .-sc27xx_led_pattern_clear
	.comm	SC27XX_LED_TYPE,4,4
	.comm	SC27XX_LED_RUN,4,4
	.comm	SC27XX_LEDS_CURVE1,8,8
	.comm	SC27XX_LEDS_CURVE0,8,8
	.comm	SC27XX_LEDS_CTRL,8,8
	.comm	SC27XX_CTRL_SHIFT,4,4
	.comm	LED_OFF,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_leds-sc27xx-bltc.c_sc27xx_led_pattern_clear.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sc27xx_led_pattern_clear, %function
sc27xx_led_pattern_clear:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	bl	to_sc27xx_led
	ldr	r3, [r0, #4]
	mov	r4, r0
	ldr	r8, [r3, #8]
	bl	sc27xx_led_get_offset
	mov	r5, r0
	ldr	r2, .L4
	ldr	r0, [r4, #4]
	ldr	r3, .L4+4
	ldr	r2, [r2]
	ldr	r7, [r4]
	ldr	r3, [r3]
	ldr	r9, [r0, #4]
	mul	r7, r3, r7
	add	r9, r9, r2
	bl	mutex_lock
	ldr	r3, .L4+8
	mov	r0, r8
	ldr	r1, [r3]
	mov	r2, #0
	add	r1, r5, r1
	bl	regmap_write
	ldr	r3, .L4+12
	mov	r0, r8
	ldr	r1, [r3]
	mov	r2, #0
	add	r1, r5, r1
	bl	regmap_write
	ldr	r2, .L4+16
	ldr	r3, .L4+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r9
	orr	r2, r2, r3
	lsl	r2, r2, r7
	mov	r0, r8
	mov	r3, #0
	bl	regmap_update_bits
	mov	r3, r0
	ldr	r0, [r4, #4]
	mov	r4, r3
	ldr	r2, .L4+24
	ldr	r2, [r2]
	str	r2, [r6]
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	.align	2
.L4:
	.word	SC27XX_LEDS_CTRL
	.word	SC27XX_CTRL_SHIFT
	.word	SC27XX_LEDS_CURVE0
	.word	SC27XX_LEDS_CURVE1
	.word	SC27XX_LED_RUN
	.word	SC27XX_LED_TYPE
	.word	LED_OFF
	.size	sc27xx_led_pattern_clear, .-sc27xx_led_pattern_clear
	.comm	SC27XX_LED_TYPE,4,4
	.comm	SC27XX_LED_RUN,4,4
	.comm	SC27XX_LEDS_CURVE1,4,4
	.comm	SC27XX_LEDS_CURVE0,4,4
	.comm	SC27XX_LEDS_CTRL,4,4
	.comm	SC27XX_CTRL_SHIFT,4,4
	.comm	LED_OFF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
