	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lenovo_features_set_tpkbd
_lenovo_features_set_tpkbd:             ## @lenovo_features_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_hid_get_drvdata
	movq	(%r14), %rcx
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	xorl	%edx, %edx
	cmpq	$0, 32(%rax)
	sete	%dl
	xorl	%edi, %edi
	cmpq	$0, 24(%rax)
	movq	32(%rcx), %rsi
	sete	%dil
	leal	(%rdx,%rdi,4), %edx
	movq	(%rsi), %rcx
	movq	(%rcx), %rdi
	xorl	%ebx, %ebx
	cmpq	$0, 16(%rax)
	movq	(%rdi), %rdi
	sete	%bl
	shll	$4, %ebx
	orl	%edx, %ebx
	xorl	%edx, %edx
	cmpq	$0, 8(%rax)
	setne	%dl
	shll	$6, %edx
	addl	%ebx, %edx
	addl	$85, %edx
	movl	%edx, (%rdi)
	movq	8(%rcx), %rdx
	movq	(%rdx), %rdx
	movl	$3, (%rdx)
	movl	(%rax), %edx
	movq	16(%rcx), %rdi
	movq	(%rdi), %rdi
	movl	%edx, (%rdi)
	movl	4(%rax), %eax
	movq	24(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hid_hw_request
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_FEATURE_REPORT,8,3         ## @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.no_dead_strip	_lenovo_features_set_tpkbd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lenovo_features_set_tpkbd
_lenovo_features_set_tpkbd:             ; @lenovo_features_set_tpkbd
	.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
	bl	_hid_get_drvdata
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _HID_FEATURE_REPORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x1, [x8, #32]
	ldp	x9, x8, [x0, #24]
	cmp	x8, #0
	mov	w8, #1
	cinc	w8, w8, eq
	ldr	x10, [x1]
	cmp	x9, #0
	mov	w9, #4
	mov	w11, #8
	csel	w9, w11, w9, eq
	orr	w8, w9, w8
	ldp	x11, x9, [x0, #8]
	cmp	x9, #0
	mov	w9, #16
	mov	w12, #32
	csel	w9, w12, w9, eq
	orr	w8, w9, w8
	cmp	x11, #0
	mov	w9, #128
	mov	w11, #64
	csel	w9, w11, w9, eq
	ldp	x11, x12, [x10]
	ldr	x11, [x11]
	orr	w8, w9, w8
	str	w8, [x11]
	ldr	x8, [x12]
	mov	w9, #3
	str	w9, [x8]
	ldr	w8, [x0]
	ldp	x9, x10, [x10, #16]
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	w8, [x0, #4]
	ldr	x9, [x10]
	str	w8, [x9]
Lloh3:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hid_hw_request
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_FEATURE_REPORT,8,3         ; @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.no_dead_strip	_lenovo_features_set_tpkbd
.subsections_via_symbols
