	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_hrw_set_wheel_mode
_hidpp_hrw_set_wheel_mode:              ## @hidpp_hrw_set_wheel_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_HIDPP_PAGE_HIRES_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	callq	_hidpp_root_get_feature
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movl	$0, %r13d
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movl	$2, %edi
	callq	_BIT
	movl	%eax, %r13d
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movl	$1, %edi
	callq	_BIT
	movl	%eax, %ebx
LBB0_5:
	orl	%r13d, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.7:
	xorl	%edi, %edi
	callq	_BIT
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	orl	%eax, %ebx
	movl	%ebx, -48(%rbp)
	movl	-52(%rbp), %esi
	movq	_CMD_HIRES_WHEEL_SET_WHEEL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	leaq	-56(%rbp), %r9
	movq	%r15, %rdi
	movl	$4, %r8d
	callq	_hidpp_send_fap_command_sync
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDPP_PAGE_HIRES_WHEEL,4,2     ## @HIDPP_PAGE_HIRES_WHEEL
	.comm	_CMD_HIRES_WHEEL_SET_WHEEL_MODE,4,2 ## @CMD_HIRES_WHEEL_SET_WHEEL_MODE
	.no_dead_strip	_hidpp_hrw_set_wheel_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp_hrw_set_wheel_mode
_hidpp_hrw_set_wheel_mode:              ; @hidpp_hrw_set_wheel_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _HIDPP_PAGE_HIRES_WHEEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIDPP_PAGE_HIRES_WHEEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_hidpp_root_get_feature
	cbnz	w0, LBB0_9
; %bb.1:
	cbz	w22, LBB0_3
; %bb.2:
	mov	w0, #2
	bl	_BIT
	mov	x22, x0
LBB0_3:
	cbz	w21, LBB0_5
; %bb.4:
	mov	w0, #1
	bl	_BIT
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	orr	w21, w0, w22
	mov	w0, #0
	cbz	w20, LBB0_8
; %bb.7:
	bl	_BIT
LBB0_8:
	orr	w8, w21, w0
	str	w8, [sp, #4]
	ldr	w1, [sp, #12]
Lloh3:
	adrp	x8, _CMD_HIRES_WHEEL_SET_WHEEL_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_HIRES_WHEEL_SET_WHEEL_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #4
	mov	x5, sp
	mov	x0, x19
	mov	w4, #4
	bl	_hidpp_send_fap_command_sync
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDPP_PAGE_HIRES_WHEEL,4,2     ; @HIDPP_PAGE_HIRES_WHEEL
	.comm	_CMD_HIRES_WHEEL_SET_WHEEL_MODE,4,2 ; @CMD_HIRES_WHEEL_SET_WHEEL_MODE
	.no_dead_strip	_hidpp_hrw_set_wheel_mode
.subsections_via_symbols
