	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brightness_set
_brightness_set:                        ## @brightness_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_platform_device
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mfd_get_cell
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_dev_get_drvdata
	movq	_LED_OFF@GOTPCREL(%rip), %rcx
	movq	_LED_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	orl	$4, %r15d
	xorl	%edx, %edx
	cmpl	%r14d, (%rcx)
	cmovel	%edx, %r15d
	movq	%rax, %r14
	movq	_led_n_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %ebx
	movq	_ASIC3_LED_PeriodTime@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_asic3_write_register
	movq	_ASIC3_LED_DutyTime@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_asic3_write_register
	movq	_ASIC3_LED_AutoStopCount@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_asic3_write_register
	movq	_ASIC3_LED_TimeBase@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_asic3_write_register           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_LED_EN,4,2                     ## @LED_EN
	.comm	_led_n_base,8,3                 ## @led_n_base
	.comm	_ASIC3_LED_PeriodTime,8,3       ## @ASIC3_LED_PeriodTime
	.comm	_ASIC3_LED_DutyTime,8,3         ## @ASIC3_LED_DutyTime
	.comm	_ASIC3_LED_AutoStopCount,8,3    ## @ASIC3_LED_AutoStopCount
	.comm	_ASIC3_LED_TimeBase,8,3         ## @ASIC3_LED_TimeBase
	.no_dead_strip	_brightness_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brightness_set
_brightness_set:                        ; @brightness_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_to_platform_device
	mov	x20, x0
	bl	_mfd_get_cell
	mov	x21, x0
	ldr	w0, [x20]
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LED_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LED_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w9, w9, #0x4
	cmp	w8, w19
	csel	w19, wzr, w9, eq
Lloh6:
	adrp	x8, _led_n_base@GOTPAGE
Lloh7:
	ldr	x8, [x8, _led_n_base@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x21]
	ldr	w21, [x8, x9, lsl #2]
Lloh9:
	adrp	x8, _ASIC3_LED_PeriodTime@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ASIC3_LED_PeriodTime@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	w2, #32
	bl	_asic3_write_register
Lloh12:
	adrp	x8, _ASIC3_LED_DutyTime@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ASIC3_LED_DutyTime@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x20
	mov	w2, #32
	bl	_asic3_write_register
Lloh15:
	adrp	x8, _ASIC3_LED_AutoStopCount@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ASIC3_LED_AutoStopCount@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x20
	mov	w2, #0
	bl	_asic3_write_register
Lloh18:
	adrp	x8, _ASIC3_LED_TimeBase@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ASIC3_LED_TimeBase@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_asic3_write_register
	.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	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_LED_EN,4,2                     ; @LED_EN
	.comm	_led_n_base,8,3                 ; @led_n_base
	.comm	_ASIC3_LED_PeriodTime,8,3       ; @ASIC3_LED_PeriodTime
	.comm	_ASIC3_LED_DutyTime,8,3         ; @ASIC3_LED_DutyTime
	.comm	_ASIC3_LED_AutoStopCount,8,3    ; @ASIC3_LED_AutoStopCount
	.comm	_ASIC3_LED_TimeBase,8,3         ; @ASIC3_LED_TimeBase
	.no_dead_strip	_brightness_set
.subsections_via_symbols
