	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_led_pattern_clear
_sc27xx_led_pattern_clear:              ## @sc27xx_led_pattern_clear
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_to_sc27xx_led
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	16(%rax), %r15
	movq	%rbx, %rdi
	callq	_sc27xx_led_get_offset
	movq	%rax, %r14
	movq	8(%rbx), %rdi
	movq	_SC27XX_LEDS_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	addq	8(%rdi), %r12
	movq	_SC27XX_CTRL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rbx), %r13d
	imull	(%rax), %r13d
	callq	_mutex_lock
	movq	_SC27XX_LEDS_CURVE0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_regmap_write
	movq	_SC27XX_LEDS_CURVE1@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_regmap_write
	movq	_SC27XX_LED_RUN@GOTPCREL(%rip), %rax
	movq	_SC27XX_LED_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %r14d
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	8(%rbx), %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC27XX_LEDS_CTRL,8,3           ## @SC27XX_LEDS_CTRL
	.comm	_SC27XX_CTRL_SHIFT,4,2          ## @SC27XX_CTRL_SHIFT
	.comm	_SC27XX_LEDS_CURVE0,8,3         ## @SC27XX_LEDS_CURVE0
	.comm	_SC27XX_LEDS_CURVE1,8,3         ## @SC27XX_LEDS_CURVE1
	.comm	_SC27XX_LED_RUN,4,2             ## @SC27XX_LED_RUN
	.comm	_SC27XX_LED_TYPE,4,2            ## @SC27XX_LED_TYPE
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.no_dead_strip	_sc27xx_led_pattern_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_led_pattern_clear
_sc27xx_led_pattern_clear:              ; @sc27xx_led_pattern_clear
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_to_sc27xx_led
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8, #16]
	bl	_sc27xx_led_get_offset
	mov	x22, x0
	ldr	x0, [x20, #8]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _SC27XX_LEDS_CTRL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SC27XX_LEDS_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x23, x9, x8
Lloh3:
	adrp	x8, _SC27XX_CTRL_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SC27XX_CTRL_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20]
	mul	w24, w9, w8
	bl	_mutex_lock
Lloh6:
	adrp	x8, _SC27XX_LEDS_CURVE0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SC27XX_LEDS_CURVE0@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	x0, x21
	mov	w2, #0
	bl	_regmap_write
Lloh9:
	adrp	x8, _SC27XX_LEDS_CURVE1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SC27XX_LEDS_CURVE1@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	x0, x21
	mov	w2, #0
	bl	_regmap_write
Lloh12:
	adrp	x8, _SC27XX_LED_RUN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SC27XX_LED_RUN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _SC27XX_LED_TYPE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SC27XX_LED_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	lsl	w2, w8, w24
	mov	x0, x21
	mov	x1, x23
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x21, x0
Lloh18:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x0, [x20, #8]
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SC27XX_LEDS_CTRL,8,3           ; @SC27XX_LEDS_CTRL
	.comm	_SC27XX_CTRL_SHIFT,4,2          ; @SC27XX_CTRL_SHIFT
	.comm	_SC27XX_LEDS_CURVE0,8,3         ; @SC27XX_LEDS_CURVE0
	.comm	_SC27XX_LEDS_CURVE1,8,3         ; @SC27XX_LEDS_CURVE1
	.comm	_SC27XX_LED_RUN,4,2             ; @SC27XX_LED_RUN
	.comm	_SC27XX_LED_TYPE,4,2            ; @SC27XX_LED_TYPE
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.no_dead_strip	_sc27xx_led_pattern_clear
.subsections_via_symbols
