	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pidff_reset
_pidff_reset:                           ## @pidff_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	24(%rdi), %rax
	movq	_PID_RESET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	32(%rdi), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	(%rdi), %rax
	movq	_PID_DEVICE_CONTROL@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_hid_hw_request
	movq	%r14, %rdi
	callq	_hid_hw_wait
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_hid_hw_request
	movq	%r14, %rdi
	callq	_hid_hw_wait
	movq	_PID_ENABLE_ACTUATORS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rbx), %rcx
	movq	32(%rbx), %rdx
	movl	(%rcx,%rax,4), %eax
	movq	(%rdx), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_hid_hw_request
	movq	%r14, %rdi
	callq	_hid_hw_wait
	movq	(%rbx), %rax
	movq	_PID_POOL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_HID_REQ_GET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hid_hw_request
	movq	%r14, %rdi
	callq	_hid_hw_wait
	movq	16(%rbx), %rax
	movq	_PID_SIMULTANEOUS_MAX@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpl	$1, (%rax)
	jg	LBB0_5
## %bb.2:
	movl	$21, %r13d
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	callq	_hid_dbg
	movq	(%rbx), %rax
	movq	_PID_POOL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_HID_REQ_GET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hid_hw_request
	movq	%r14, %rdi
	callq	_hid_hw_wait
	movq	16(%rbx), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edx
	cmpl	$2, %edx
	jge	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%r13d
	jne	LBB0_4
## %bb.6:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hid_warn                       ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PID_RESET,8,3                  ## @PID_RESET
	.comm	_PID_DEVICE_CONTROL,8,3         ## @PID_DEVICE_CONTROL
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.comm	_PID_ENABLE_ACTUATORS,8,3       ## @PID_ENABLE_ACTUATORS
	.comm	_PID_POOL,8,3                   ## @PID_POOL
	.comm	_HID_REQ_GET_REPORT,4,2         ## @HID_REQ_GET_REPORT
	.comm	_PID_SIMULTANEOUS_MAX,8,3       ## @PID_SIMULTANEOUS_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device reports %d simultaneous effects\n"

L_.str.1:                               ## @.str.1
	.asciz	"pid_pool requested again\n"

	.no_dead_strip	_pidff_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pidff_reset
_pidff_reset:                           ; @pidff_reset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _PID_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PID_RESET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x10, [x0, #24]
	ldr	w8, [x9, x8, lsl #2]
	ldr	x9, [x10]
	str	w8, [x9]
	ldp	x8, x20, [x0]
Lloh3:
	adrp	x21, _PID_DEVICE_CONTROL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PID_DEVICE_CONTROL@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w1, [x8, x9, lsl #2]
Lloh5:
	adrp	x22, _HID_REQ_SET_REPORT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _HID_REQ_SET_REPORT@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_hid_hw_request
	mov	x0, x20
	bl	_hid_hw_wait
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	w1, [x8, x9, lsl #2]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_hid_hw_request
	mov	x0, x20
	bl	_hid_hw_wait
Lloh7:
	adrp	x8, _PID_ENABLE_ACTUATORS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PID_ENABLE_ACTUATORS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldp	x9, x10, [x19, #24]
	ldr	w8, [x9, x8, lsl #2]
	ldr	x9, [x10]
	str	w8, [x9]
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	w1, [x8, x9, lsl #2]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_hid_hw_request
	mov	x0, x20
	bl	_hid_hw_wait
	ldr	x8, [x19]
Lloh10:
	adrp	x22, _PID_POOL@GOTPAGE
Lloh11:
	ldr	x22, [x22, _PID_POOL@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w1, [x8, x9, lsl #2]
Lloh12:
	adrp	x23, _HID_REQ_GET_REPORT@GOTPAGE
Lloh13:
	ldr	x23, [x23, _HID_REQ_GET_REPORT@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_hid_hw_request
	mov	x0, x20
	bl	_hid_hw_wait
	ldr	x8, [x19, #16]
Lloh14:
	adrp	x24, _PID_SIMULTANEOUS_MAX@GOTPAGE
Lloh15:
	ldr	x24, [x24, _PID_SIMULTANEOUS_MAX@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w8, [x8]
	cmp	w8, #1
	b.gt	LBB0_6
; %bb.2:
	mov	w25, #21
Lloh16:
	adrp	x21, l_.str.1@PAGE
Lloh17:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_hid_dbg
	ldr	x8, [x19]
	ldr	x9, [x22]
	ldr	w1, [x8, x9, lsl #2]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_hid_hw_request
	mov	x0, x20
	bl	_hid_hw_wait
	ldr	x8, [x19, #16]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w2, [x8]
	cmp	w2, #2
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w25, w25, #1
	b.ne	LBB0_3
; %bb.5:
	ldr	x0, [x19, #8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_hid_warn
LBB0_6:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PID_RESET,8,3                  ; @PID_RESET
	.comm	_PID_DEVICE_CONTROL,8,3         ; @PID_DEVICE_CONTROL
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.comm	_PID_ENABLE_ACTUATORS,8,3       ; @PID_ENABLE_ACTUATORS
	.comm	_PID_POOL,8,3                   ; @PID_POOL
	.comm	_HID_REQ_GET_REPORT,4,2         ; @HID_REQ_GET_REPORT
	.comm	_PID_SIMULTANEOUS_MAX,8,3       ; @PID_SIMULTANEOUS_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device reports %d simultaneous effects\n"

l_.str.1:                               ; @.str.1
	.asciz	"pid_pool requested again\n"

	.no_dead_strip	_pidff_reset
.subsections_via_symbols
