	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_mute_led_set_brigtness
_elan_mute_led_set_brigtness:           ## @elan_mute_led_set_brigtness
	.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
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	callq	_to_hid_device
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_hid_get_drvdata
	movq	%rax, %r13
	movq	_ELAN_LED_REPORT_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	movq	_ELAN_MUTE_LED_REPORT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %esi
	movb	%sil, (%rbx)
	movb	$2, 1(%rbx)
	setne	2(%rbx)
	movl	(%r15), %ecx
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_hid_hw_raw_request
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_kfree
	cmpl	(%r15), %r13d
	jne	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_hid_err
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELAN_LED_REPORT_SIZE,4,2       ## @ELAN_LED_REPORT_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ELAN_MUTE_LED_REPORT,1,0       ## @ELAN_MUTE_LED_REPORT
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set mute led brightness: %d\n"

	.no_dead_strip	_elan_mute_led_set_brigtness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elan_mute_led_set_brigtness
_elan_mute_led_set_brigtness:           ; @elan_mute_led_set_brigtness
	.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, x1
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_to_hid_device
	mov	x20, x0
	bl	_hid_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x24, _ELAN_LED_REPORT_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ELAN_LED_REPORT_SIZE@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	cmp	w19, #0
	cset	w8, ne
Lloh5:
	adrp	x9, _ELAN_MUTE_LED_REPORT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ELAN_MUTE_LED_REPORT@GOTPAGEOFF]
	ldrb	w1, [x9]
	strb	w1, [x0]
	mov	w9, #2
	strb	w9, [x0, #1]
	strb	w8, [x0, #2]
	ldr	w3, [x24]
Lloh7:
	adrp	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
Lloh10:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_hid_hw_raw_request
	mov	x22, x0
	mov	x0, x23
	bl	_kfree
	ldr	w8, [x24]
	cmp	w22, w8
	b.ne	LBB0_4
; %bb.2:
	mov	w22, #0
	cmp	w19, #0
	cset	w8, ne
	str	x8, [x21]
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_hid_err
LBB0_5:
	mov	x0, x22
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ELAN_LED_REPORT_SIZE,4,2       ; @ELAN_LED_REPORT_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ELAN_MUTE_LED_REPORT,1,0       ; @ELAN_MUTE_LED_REPORT
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set mute led brightness: %d\n"

	.no_dead_strip	_elan_mute_led_set_brigtness
.subsections_via_symbols
