	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_root_get_feature
_hidpp_root_get_feature:                ## @hidpp_root_get_feature
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movzbl	%sil, %eax
	sarl	$8, %esi
	movl	%esi, -32(%rbp)
	movl	%eax, -28(%rbp)
	movq	_HIDPP_PAGE_ROOT_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CMD_ROOT_GET_FEATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	leaq	-40(%rbp), %r9
	movl	$2, %r8d
	callq	_hidpp_send_fap_command_sync
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	-40(%rbp), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	movl	%ecx, (%rbx)
	movl	8(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDPP_PAGE_ROOT_IDX,4,2        ## @HIDPP_PAGE_ROOT_IDX
	.comm	_CMD_ROOT_GET_FEATURE,4,2       ## @CMD_ROOT_GET_FEATURE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_hidpp_root_get_feature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp_root_get_feature
_hidpp_root_get_feature:                ; @hidpp_root_get_feature
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	asr	w8, w1, #8
	and	w9, w1, #0xff
	stp	w8, w9, [sp, #16]
Lloh3:
	adrp	x8, _HIDPP_PAGE_ROOT_IDX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HIDPP_PAGE_ROOT_IDX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _CMD_ROOT_GET_FEATURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_ROOT_GET_FEATURE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #16
	add	x5, sp, #8
	mov	w4, #2
	bl	_hidpp_send_fap_command_sync
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_3
; %bb.2:
	mov	w0, #0
	str	w9, [x20]
	ldr	x8, [x8, #8]
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDPP_PAGE_ROOT_IDX,4,2        ; @HIDPP_PAGE_ROOT_IDX
	.comm	_CMD_ROOT_GET_FEATURE,4,2       ; @CMD_ROOT_GET_FEATURE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_hidpp_root_get_feature
.subsections_via_symbols
