	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_ff_set_gain
_hidpp_ff_set_gain:                     ## @hidpp_ff_set_gain
	.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
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rdi
	callq	_dbg_hid
	movl	%ebx, %eax
	sarl	$8, %eax
	movl	%eax, -64(%rbp)
	movzbl	%bl, %eax
	movl	%eax, -60(%rbp)
	movq	$0, -56(%rbp)
	movq	_HIDPP_FF_EFFECTID_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_HIDPP_FF_SET_GLOBAL_GAINS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	%r12, %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:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting gain to %d.\n"

	.comm	_HIDPP_FF_EFFECTID_NONE,4,2     ## @HIDPP_FF_EFFECTID_NONE
	.comm	_HIDPP_FF_SET_GLOBAL_GAINS,4,2  ## @HIDPP_FF_SET_GLOBAL_GAINS
	.no_dead_strip	_hidpp_ff_set_gain
.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_gain
_hidpp_ff_set_gain:                     ; @hidpp_ff_set_gain
	.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, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0]
	ldr	x20, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_hid
	asr	w8, w19, #8
	and	w9, w19, #0xff
	stp	w8, w9, [sp, #8]
	str	xzr, [sp, #16]
Lloh5:
	adrp	x8, _HIDPP_FF_EFFECTID_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HIDPP_FF_EFFECTID_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
Lloh8:
	adrp	x8, _HIDPP_FF_SET_GLOBAL_GAINS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HIDPP_FF_SET_GLOBAL_GAINS@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x4, x0
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_hidpp_ff_queue_work
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting gain to %d.\n"

	.comm	_HIDPP_FF_EFFECTID_NONE,4,2     ; @HIDPP_FF_EFFECTID_NONE
	.comm	_HIDPP_FF_SET_GLOBAL_GAINS,4,2  ; @HIDPP_FF_SET_GLOBAL_GAINS
	.no_dead_strip	_hidpp_ff_set_gain
.subsections_via_symbols
