	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_hrw_get_wheel_capability
_hidpp_hrw_get_wheel_capability:        ## @hidpp_hrw_get_wheel_capability
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_HIDPP_PAGE_HIRES_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	callq	_hidpp_root_get_feature
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	-36(%rbp), %esi
	movq	_CMD_HIRES_WHEEL_GET_WHEEL_CAPABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_hidpp_send_fap_command_sync
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_hid_warn
	movl	%ebx, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-48(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDPP_PAGE_HIRES_WHEEL,4,2     ## @HIDPP_PAGE_HIRES_WHEEL
	.comm	_CMD_HIRES_WHEEL_GET_WHEEL_CAPABILITY,4,2 ## @CMD_HIRES_WHEEL_GET_WHEEL_CAPABILITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't get wheel multiplier (error %d)\n"

	.no_dead_strip	_hidpp_hrw_get_wheel_capability
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp_hrw_get_wheel_capability
_hidpp_hrw_get_wheel_capability:        ; @hidpp_hrw_get_wheel_capability
	.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	x19, x1
	mov	x20, 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
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w1, [sp, #12]
Lloh3:
	adrp	x8, _CMD_HIRES_WHEEL_GET_WHEEL_CAPABILITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_HIRES_WHEEL_GET_WHEEL_CAPABILITY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x5, sp
	mov	x0, x20
	mov	x3, #0
	mov	w4, #0
	bl	_hidpp_send_fap_command_sync
	mov	x21, x0
	cbz	w0, LBB0_4
LBB0_2:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_hid_warn
LBB0_3:
	mov	x0, x21
	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
LBB0_4:
	ldr	x8, [sp]
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDPP_PAGE_HIRES_WHEEL,4,2     ; @HIDPP_PAGE_HIRES_WHEEL
	.comm	_CMD_HIRES_WHEEL_GET_WHEEL_CAPABILITY,4,2 ; @CMD_HIRES_WHEEL_GET_WHEEL_CAPABILITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't get wheel multiplier (error %d)\n"

	.no_dead_strip	_hidpp_hrw_get_wheel_capability
.subsections_via_symbols
