	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_hrs_set_highres_scrolling_mode
_hidpp_hrs_set_highres_scrolling_mode:  ## @hidpp_hrs_set_highres_scrolling_mode
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_HIDPP_PAGE_HI_RESOLUTION_SCROLLING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_hidpp_root_get_feature
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.3:
	xorl	%edi, %edi
	callq	_BIT
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movl	%eax, -28(%rbp)
	movl	-32(%rbp), %esi
	movq	_CMD_HI_RESOLUTION_SCROLLING_SET_HIGHRES_SCROLLING_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	leaq	-40(%rbp), %r9
	movq	%rbx, %rdi
	movl	$4, %r8d
	callq	_hidpp_send_fap_command_sync
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rax
	movl	4(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDPP_PAGE_HI_RESOLUTION_SCROLLING,4,2 ## @HIDPP_PAGE_HI_RESOLUTION_SCROLLING
	.comm	_CMD_HI_RESOLUTION_SCROLLING_SET_HIGHRES_SCROLLING_MODE,4,2 ## @CMD_HI_RESOLUTION_SCROLLING_SET_HIGHRES_SCROLLING_MODE
	.no_dead_strip	_hidpp_hrs_set_highres_scrolling_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp_hrs_set_highres_scrolling_mode
_hidpp_hrs_set_highres_scrolling_mode:  ; @hidpp_hrs_set_highres_scrolling_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HIDPP_PAGE_HI_RESOLUTION_SCROLLING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIDPP_PAGE_HI_RESOLUTION_SCROLLING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #28
	add	x3, sp, #24
	bl	_hidpp_root_get_feature
	cbnz	w0, LBB0_5
; %bb.1:
	mov	w0, #0
	cbz	w21, LBB0_3
; %bb.2:
	bl	_BIT
LBB0_3:
	str	w0, [sp, #20]
	ldr	w1, [sp, #28]
Lloh3:
	adrp	x8, _CMD_HI_RESOLUTION_SCROLLING_SET_HIGHRES_SCROLLING_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_HI_RESOLUTION_SCROLLING_SET_HIGHRES_SCROLLING_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #20
	add	x5, sp, #8
	mov	x0, x20
	mov	w4, #4
	bl	_hidpp_send_fap_command_sync
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [sp, #8]
	ldr	w8, [x8, #4]
	str	w8, [x19]
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDPP_PAGE_HI_RESOLUTION_SCROLLING,4,2 ; @HIDPP_PAGE_HI_RESOLUTION_SCROLLING
	.comm	_CMD_HI_RESOLUTION_SCROLLING_SET_HIGHRES_SCROLLING_MODE,4,2 ; @CMD_HI_RESOLUTION_SCROLLING_SET_HIGHRES_SCROLLING_MODE
	.no_dead_strip	_hidpp_hrs_set_highres_scrolling_mode
.subsections_via_symbols
