	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function huawei_wmi_leds_setup
_huawei_wmi_leds_setup:                 ## @huawei_wmi_leds_setup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_ec_get_handle
	movl	%eax, 56(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %r15
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_acpi_has_method
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	56(%rbx), %edi
	leaq	L_.str.1(%rip), %r15
	movq	%r15, %rsi
	callq	_acpi_has_method
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	%r15, (%rbx)
	movq	%rbx, %r15
	addq	$8, %r15
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 8(%rbx)
	movl	$1, 16(%rbx)
	movq	_huawei_wmi_micmute_led_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_LED_AUDIO_MICMUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ledtrig_audio_get
	movl	%eax, 48(%rbx)
	movq	%r14, 40(%rbx)
	movq	_LED_CORE_SUSPENDRESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_led_classdev_register     ## TAILCALL
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPIN"

L_.str.1:                               ## @.str.1
	.asciz	"WPIN"

L_.str.2:                               ## @.str.2
	.asciz	"platform::micmute"

	.comm	_huawei_wmi_micmute_led_set,4,2 ## @huawei_wmi_micmute_led_set
L_.str.3:                               ## @.str.3
	.asciz	"audio-micmute"

	.comm	_LED_AUDIO_MICMUTE,4,2          ## @LED_AUDIO_MICMUTE
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ## @LED_CORE_SUSPENDRESUME
	.no_dead_strip	_huawei_wmi_leds_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function huawei_wmi_leds_setup
_huawei_wmi_leds_setup:                 ; @huawei_wmi_leds_setup
	.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, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_ec_get_handle
	str	w0, [x20, #56]
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	mov	x1, x21
	bl	_acpi_has_method
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #56]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_acpi_has_method
	cbz	x0, LBB0_4
LBB0_3:
	str	x21, [x20]
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
	mov	x21, x20
	str	x8, [x21, #8]!
	mov	w8, #1
	str	w8, [x20, #16]
Lloh6:
	adrp	x8, _huawei_wmi_micmute_led_set@GOTPAGE
Lloh7:
	ldr	x8, [x8, _huawei_wmi_micmute_led_set@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #52]
Lloh9:
	adrp	x8, l_.str.3@PAGE
Lloh10:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x20, #24]
Lloh11:
	adrp	x8, _LED_AUDIO_MICMUTE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LED_AUDIO_MICMUTE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_ledtrig_audio_get
	str	w0, [x20, #48]
	str	x19, [x20, #40]
Lloh14:
	adrp	x8, _LED_CORE_SUSPENDRESUME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LED_CORE_SUSPENDRESUME@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	mov	x0, x19
	mov	x1, x21
	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	_devm_led_classdev_register
LBB0_4:
	mov	w0, #0
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPIN"

l_.str.1:                               ; @.str.1
	.asciz	"WPIN"

l_.str.2:                               ; @.str.2
	.asciz	"platform::micmute"

	.comm	_huawei_wmi_micmute_led_set,4,2 ; @huawei_wmi_micmute_led_set
l_.str.3:                               ; @.str.3
	.asciz	"audio-micmute"

	.comm	_LED_AUDIO_MICMUTE,4,2          ; @LED_AUDIO_MICMUTE
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ; @LED_CORE_SUSPENDRESUME
	.no_dead_strip	_huawei_wmi_leds_setup
.subsections_via_symbols
