	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmfts_enable_led
_stmfts_enable_led:                     ## @stmfts_enable_led
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_devm_regulator_get
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_STMFTS_DEV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	4(%rbx), %rsi
	movl	%eax, 20(%rbx)
	movq	_LED_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_stmfts_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_stmfts_brightness_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	24(%rbx), %rdi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_devm_regulator_put
	jmp	LBB0_4
LBB0_2:
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ledvdd"

	.comm	_STMFTS_DEV_NAME,4,2            ## @STMFTS_DEV_NAME
	.comm	_LED_ON,4,2                     ## @LED_ON
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_stmfts_brightness_set,4,2      ## @stmfts_brightness_set
	.comm	_stmfts_brightness_get,4,2      ## @stmfts_brightness_get
	.no_dead_strip	_stmfts_enable_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmfts_enable_led
_stmfts_enable_led:                     ; @stmfts_enable_led
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_regulator_get
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh2:
	adrp	x8, _STMFTS_DEV_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STMFTS_DEV_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _stmfts_brightness_get@GOTPAGE
Lloh6:
	ldr	x9, [x9, _stmfts_brightness_get@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mov	x1, x19
	str	w9, [x1, #4]!
Lloh8:
	adrp	x9, _LED_ON@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LED_ON@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #12]
Lloh11:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _stmfts_brightness_set@GOTPAGE
Lloh15:
	ldr	x9, [x9, _stmfts_brightness_set@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #4]
	ldur	x0, [x1, #20]
	bl	_devm_led_classdev_register
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_devm_regulator_put
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ledvdd"

	.comm	_STMFTS_DEV_NAME,4,2            ; @STMFTS_DEV_NAME
	.comm	_LED_ON,4,2                     ; @LED_ON
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_stmfts_brightness_set,4,2      ; @stmfts_brightness_set
	.comm	_stmfts_brightness_get,4,2      ; @stmfts_brightness_get
	.no_dead_strip	_stmfts_enable_led
.subsections_via_symbols
