	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lenovo_probe_tpkbd
_lenovo_probe_tpkbd:                    ## @lenovo_probe_tpkbd
	.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, %r14
	callq	_dev_name
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_hid_get_drvdata
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_20
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_hid_set_drvdata
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_hid_validate_values
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_hid_validate_values
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	movl	$2, %ecx
	movl	$1, %r8d
	callq	_hid_validate_values
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	movl	$3, %ecx
	movl	$1, %r8d
	callq	_hid_validate_values
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_HID_OUTPUT_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$3, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	_hid_validate_values
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	_lenovo_attr_group_tpkbd@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_hid_warn
LBB0_9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$72, %esi
	movq	%r14, %rdi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movq	%rax, %r12
	addl	$16, %r15d
	movslq	%r15d, %rbx
	movabsq	$240518168736, %rax             ## imm = 0x38000000A0
	movq	%rax, (%r12)
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_kzalloc
	movq	%rax, %r15
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_kzalloc
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_hid_set_drvdata
	leaq	8(%r12), %rsi
	movq	%r15, 8(%r12)
	movq	_lenovo_led_brightness_get_tpkbd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r12)
	movq	_lenovo_led_brightness_set_tpkbd@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 24(%r12)
	movq	%r14, 16(%r12)
	movq	%r14, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	movq	%r12, %rsi
	addq	$40, %rsi
	movq	%r13, 40(%r12)
	movq	_lenovo_led_brightness_get_tpkbd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r12)
	movq	(%r15), %rax
	movq	%rax, 56(%r12)
	movq	%r14, 48(%r12)
	movq	%r14, %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_18
## %bb.21:
	movq	%r14, %rdi
	callq	_lenovo_features_set_tpkbd
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_14:
	leaq	L_.str.2(%rip), %rsi
LBB0_11:
	movq	%r14, %rdi
	callq	_hid_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movq	_lenovo_attr_group_tpkbd@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
	jmp	LBB0_20
LBB0_16:
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_18:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_led_classdev_unregister
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_HID_OUTPUT_REPORT,4,2          ## @HID_OUTPUT_REPORT
	.comm	_lenovo_attr_group_tpkbd,4,2    ## @lenovo_attr_group_tpkbd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not create sysfs group: %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Could not allocate memory for driver data\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Could not allocate memory for led data\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s:amber:mute"

L_.str.4:                               ## @.str.4
	.asciz	"%s:amber:micmute"

	.comm	_lenovo_led_brightness_get_tpkbd,8,3 ## @lenovo_led_brightness_get_tpkbd
	.comm	_lenovo_led_brightness_set_tpkbd,8,3 ## @lenovo_led_brightness_set_tpkbd
	.no_dead_strip	_lenovo_probe_tpkbd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function lenovo_probe_tpkbd
lCPI0_0:
	.long	160                             ; 0xa0
	.long	56                              ; 0x38
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_lenovo_probe_tpkbd:                    ; @lenovo_probe_tpkbd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_dev_name
	bl	_strlen
	mov	x20, x0
	mov	x0, x19
	bl	_hid_get_drvdata
	cbz	w0, LBB0_14
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	bl	_hid_set_drvdata
Lloh0:
	adrp	x21, _HID_FEATURE_REPORT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HID_FEATURE_REPORT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #4
	mov	w3, #0
	mov	w4, #1
	bl	_hid_validate_values
	cbz	w0, LBB0_15
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #4
	mov	w3, #1
	mov	w4, #1
	bl	_hid_validate_values
	cbz	w0, LBB0_15
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #4
	mov	w3, #2
	mov	w4, #1
	bl	_hid_validate_values
	cbz	w0, LBB0_15
; %bb.4:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #4
	mov	w3, #3
	mov	w4, #1
	bl	_hid_validate_values
	cbz	w0, LBB0_15
; %bb.5:
Lloh2:
	adrp	x8, _HID_OUTPUT_REPORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HID_OUTPUT_REPORT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	mov	w3, #0
	mov	w4, #2
	bl	_hid_validate_values
	cbz	w0, LBB0_15
; %bb.6:
Lloh5:
	adrp	x1, _lenovo_attr_group_tpkbd@GOTPAGE
Lloh6:
	ldr	x1, [x1, _lenovo_attr_group_tpkbd@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_group
	cbz	w0, LBB0_8
; %bb.7:
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hid_warn
LBB0_8:
Lloh9:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_17
; %bb.9:
	mov	x21, x0
	add	w8, w20, #16
	sxtw	x22, w8
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_kzalloc
	mov	x23, x0
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_kzalloc
	cbz	x23, LBB0_18
; %bb.10:
	mov	x20, x0
	cbz	x0, LBB0_18
; %bb.11:
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x23
	mov	x1, x22
	bl	_snprintf
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_snprintf
	mov	x0, x19
	mov	x1, x21
	bl	_hid_set_drvdata
	mov	x24, x21
	str	x23, [x24, #8]!
Lloh17:
	adrp	x23, _lenovo_led_brightness_get_tpkbd@GOTPAGE
Lloh18:
	ldr	x23, [x23, _lenovo_led_brightness_get_tpkbd@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x24, #24]
Lloh19:
	adrp	x25, _lenovo_led_brightness_set_tpkbd@GOTPAGE
Lloh20:
	ldr	x25, [x25, _lenovo_led_brightness_set_tpkbd@GOTPAGEOFF]
	ldr	x8, [x25]
	stp	x19, x8, [x24, #8]
	mov	x0, x19
	mov	x1, x24
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_21
; %bb.12:
	str	x20, [x21, #40]!
	ldr	x9, [x23]
	ldr	x8, [x25]
	stp	x8, x9, [x21, #16]
	str	x19, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_22
; %bb.13:
	mov	x0, x19
	bl	_lenovo_features_set_tpkbd
LBB0_14:
	mov	w22, #0
	b	LBB0_16
LBB0_15:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_hid_err
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_20:
Lloh31:
	adrp	x1, _lenovo_attr_group_tpkbd@GOTPAGE
Lloh32:
	ldr	x1, [x1, _lenovo_attr_group_tpkbd@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_group
	b	LBB0_16
LBB0_21:
	mov	x22, x0
	b	LBB0_20
LBB0_22:
	mov	x22, x0
	mov	x0, x24
	bl	_led_classdev_unregister
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_HID_OUTPUT_REPORT,4,2          ; @HID_OUTPUT_REPORT
	.comm	_lenovo_attr_group_tpkbd,4,2    ; @lenovo_attr_group_tpkbd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not create sysfs group: %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Could not allocate memory for driver data\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Could not allocate memory for led data\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s:amber:mute"

l_.str.4:                               ; @.str.4
	.asciz	"%s:amber:micmute"

	.comm	_lenovo_led_brightness_get_tpkbd,8,3 ; @lenovo_led_brightness_get_tpkbd
	.comm	_lenovo_led_brightness_set_tpkbd,8,3 ; @lenovo_led_brightness_set_tpkbd
	.no_dead_strip	_lenovo_probe_tpkbd
.subsections_via_symbols
