	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_ff_playback
_hidpp_ff_playback:                     ## @hidpp_ff_playback
	.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)
	testl	%edx, %edx
	movq	_HIDPP_FF_EFFECT_STATE_PLAY@GOTPCREL(%rip), %rax
	cmoveq	_HIDPP_FF_EFFECT_STATE_STOP@GOTPCREL(%rip), %rax
	movq	(%rdi), %rcx
	movq	(%rcx), %r14
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	callq	_dbg_hid
	movq	_HIDPP_FF_SET_EFFECT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%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), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDPP_FF_EFFECT_STATE_PLAY,4,2 ## @HIDPP_FF_EFFECT_STATE_PLAY
	.comm	_HIDPP_FF_EFFECT_STATE_STOP,4,2 ## @HIDPP_FF_EFFECT_STATE_STOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"St%sing playback of effect %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"art"

L_.str.2:                               ## @.str.2
	.asciz	"opp"

	.comm	_HIDPP_FF_SET_EFFECT_STATE,4,2  ## @HIDPP_FF_SET_EFFECT_STATE
	.no_dead_strip	_hidpp_ff_playback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp_ff_playback
_hidpp_ff_playback:                     ; @hidpp_ff_playback
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _HIDPP_FF_EFFECT_STATE_PLAY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HIDPP_FF_EFFECT_STATE_PLAY@GOTPAGEOFF]
	ldr	x20, [x8]
Lloh5:
	adrp	x8, _HIDPP_FF_EFFECT_STATE_STOP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HIDPP_FF_EFFECT_STATE_STOP@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #4]
Lloh7:
	adrp	x8, l_.str.1@PAGE
Lloh8:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh9:
	adrp	x9, l_.str.2@PAGE
Lloh10:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x1, x9, x8, eq
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dbg_hid
Lloh13:
	adrp	x8, _HIDPP_FF_SET_EFFECT_STATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HIDPP_FF_SET_EFFECT_STATE@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x4, x0
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_hidpp_ff_queue_work
	ldr	x8, [sp, #8]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	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_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDPP_FF_EFFECT_STATE_PLAY,4,2 ; @HIDPP_FF_EFFECT_STATE_PLAY
	.comm	_HIDPP_FF_EFFECT_STATE_STOP,4,2 ; @HIDPP_FF_EFFECT_STATE_STOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"St%sing playback of effect %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"art"

l_.str.2:                               ; @.str.2
	.asciz	"opp"

	.comm	_HIDPP_FF_SET_EFFECT_STATE,4,2  ; @HIDPP_FF_SET_EFFECT_STATE
	.no_dead_strip	_hidpp_ff_playback
.subsections_via_symbols
