	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_ff_set_autocenter
_hidpp_ff_set_autocenter:               ## @hidpp_ff_set_autocenter
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	_HIDPP_AUTOCENTER_PARAMS_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_dbg_hid
	movq	_HIDPP_FF_EFFECT_SPRING@GOTPCREL(%rip), %rax
	movq	_HIDPP_FF_EFFECT_AUTOSTART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	%r15d, %eax
	sarl	$11, %eax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movl	%eax, 56(%rbx)
	movl	%eax, 32(%rbx)
	movl	%r15d, %eax
	shrl	$3, %eax
	movzbl	%al, %eax
	movl	%eax, 60(%rbx)
	movl	%eax, 36(%rbx)
	movl	%r15d, %eax
	sarl	$9, %eax
	movl	%eax, 64(%rbx)
	movl	%eax, 24(%rbx)
	shrl	%r15d
	movzbl	%r15b, %eax
	movl	%eax, 68(%rbx)
	movl	%eax, 28(%rbx)
	movups	%xmm0, 40(%rbx)
	movq	_HIDPP_FF_EFFECTID_AUTOCENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_HIDPP_FF_DOWNLOAD_EFFECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_hidpp_ff_queue_work
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDPP_AUTOCENTER_PARAMS_LENGTH,4,2 ## @HIDPP_AUTOCENTER_PARAMS_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting autocenter to %d.\n"

	.comm	_HIDPP_FF_EFFECT_SPRING,4,2     ## @HIDPP_FF_EFFECT_SPRING
	.comm	_HIDPP_FF_EFFECT_AUTOSTART,4,2  ## @HIDPP_FF_EFFECT_AUTOSTART
	.comm	_HIDPP_FF_EFFECTID_AUTOCENTER,4,2 ## @HIDPP_FF_EFFECTID_AUTOCENTER
	.comm	_HIDPP_FF_DOWNLOAD_EFFECT,4,2   ## @HIDPP_FF_DOWNLOAD_EFFECT
	.no_dead_strip	_hidpp_ff_set_autocenter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp_ff_set_autocenter
_hidpp_ff_set_autocenter:               ; @hidpp_ff_set_autocenter
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0]
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _HIDPP_AUTOCENTER_PARAMS_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HIDPP_AUTOCENTER_PARAMS_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_hid
Lloh10:
	adrp	x8, _HIDPP_FF_EFFECT_SPRING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HIDPP_FF_EFFECT_SPRING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _HIDPP_FF_EFFECT_AUTOSTART@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HIDPP_FF_EFFECT_AUTOSTART@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #4]
	asr	w8, w19, #11
	stp	xzr, xzr, [x21, #8]
	ubfx	w9, w19, #3, #8
	stp	w8, w9, [x21, #56]
	stp	w8, w9, [x21, #32]
	asr	w8, w19, #9
	ubfx	w9, w19, #1, #8
	stp	w8, w9, [x21, #64]
	stp	w8, w9, [x21, #24]
	stp	xzr, xzr, [x21, #40]
Lloh16:
	adrp	x8, _HIDPP_FF_EFFECTID_AUTOCENTER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HIDPP_FF_EFFECTID_AUTOCENTER@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
Lloh19:
	adrp	x8, _HIDPP_FF_DOWNLOAD_EFFECT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HIDPP_FF_DOWNLOAD_EFFECT@GOTPAGEOFF]
Lloh21:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x4, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_hidpp_ff_queue_work
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDPP_AUTOCENTER_PARAMS_LENGTH,4,2 ; @HIDPP_AUTOCENTER_PARAMS_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting autocenter to %d.\n"

	.comm	_HIDPP_FF_EFFECT_SPRING,4,2     ; @HIDPP_FF_EFFECT_SPRING
	.comm	_HIDPP_FF_EFFECT_AUTOSTART,4,2  ; @HIDPP_FF_EFFECT_AUTOSTART
	.comm	_HIDPP_FF_EFFECTID_AUTOCENTER,4,2 ; @HIDPP_FF_EFFECTID_AUTOCENTER
	.comm	_HIDPP_FF_DOWNLOAD_EFFECT,4,2   ; @HIDPP_FF_DOWNLOAD_EFFECT
	.no_dead_strip	_hidpp_ff_set_autocenter
.subsections_via_symbols
