	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hi_res_scroll_enable
_hi_res_scroll_enable:                  ## @hi_res_scroll_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$1, -12(%rbp)
	movl	(%rdi), %eax
	movq	_HIDPP_QUIRK_HI_RES_SCROLL_X2121@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_hidpp_hrw_set_wheel_mode
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	leaq	-12(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_hidpp_hrw_get_wheel_capability
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_7
LBB0_3:
	movq	_HIDPP_QUIRK_HI_RES_SCROLL_X2120@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hidpp_hrs_set_highres_scrolling_mode
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_hidpp10_enable_scrolling_acceleration
	movl	$8, -12(%rbp)
	testl	%eax, %eax
	jne	LBB0_10
LBB0_7:
	movl	-12(%rbp), %edx
	testl	%edx, %edx
	jne	LBB0_9
## %bb.8:
	movl	$1, -12(%rbp)
	movl	$1, %edx
LBB0_9:
	movl	%edx, 8(%rbx)
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_hid_info
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDPP_QUIRK_HI_RES_SCROLL_X2121,4,2 ## @HIDPP_QUIRK_HI_RES_SCROLL_X2121
	.comm	_HIDPP_QUIRK_HI_RES_SCROLL_X2120,4,2 ## @HIDPP_QUIRK_HI_RES_SCROLL_X2120
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"multiplier = %d\n"

	.no_dead_strip	_hi_res_scroll_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hi_res_scroll_enable
_hi_res_scroll_enable:                  ; @hi_res_scroll_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #1
	str	w8, [sp, #12]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HIDPP_QUIRK_HI_RES_SCROLL_X2121@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HIDPP_QUIRK_HI_RES_SCROLL_X2121@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #0
	bl	_hidpp_hrw_set_wheel_mode
	cbnz	w0, LBB0_9
; %bb.2:
	add	x1, sp, #12
	mov	x0, x19
	bl	_hidpp_hrw_get_wheel_capability
	cbnz	w0, LBB0_9
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x9, _HIDPP_QUIRK_HI_RES_SCROLL_X2120@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HIDPP_QUIRK_HI_RES_SCROLL_X2120@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #1
	bl	_hidpp_hrs_set_highres_scrolling_mode
	cbnz	w0, LBB0_9
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_hidpp10_enable_scrolling_acceleration
	mov	w8, #8
	str	w8, [sp, #12]
	cbnz	w0, LBB0_9
LBB0_6:
	ldr	w2, [sp, #12]
	cbnz	w2, LBB0_8
; %bb.7:
	mov	w2, #1
	str	w2, [sp, #12]
LBB0_8:
	str	w2, [x19, #8]
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_hid_info
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDPP_QUIRK_HI_RES_SCROLL_X2121,4,2 ; @HIDPP_QUIRK_HI_RES_SCROLL_X2121
	.comm	_HIDPP_QUIRK_HI_RES_SCROLL_X2120,4,2 ; @HIDPP_QUIRK_HI_RES_SCROLL_X2120
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"multiplier = %d\n"

	.no_dead_strip	_hi_res_scroll_enable
.subsections_via_symbols
