	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pidff_set_envelope_report
_pidff_set_envelope_report:             ## @pidff_set_envelope_report
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	24(%rdi), %rcx
	movq	_PID_EFFECT_BLOCK_INDEX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rdx
	movq	(%rax,%rdx), %rax
	movq	%rcx, (%rax)
	movl	(%rsi), %edi
	cmpl	$32767, %edi                    ## imm = 0x7FFF
	movl	$32767, %r12d                   ## imm = 0x7FFF
	cmovgel	%r12d, %edi
	movq	16(%rbx), %rax
	movq	_PID_ATTACK_LEVEL@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %edx
	movl	$32767, %esi                    ## imm = 0x7FFF
	callq	_pidff_rescale
	movq	16(%rbx), %rcx
	movq	(%r15), %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rcx
	movq	%rax, (%rcx)
	movl	4(%r14), %edi
	cmpl	$32767, %edi                    ## imm = 0x7FFF
	cmovgel	%r12d, %edi
	movq	16(%rbx), %rax
	movq	_PID_FADE_LEVEL@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %edx
	movl	$32767, %esi                    ## imm = 0x7FFF
	callq	_pidff_rescale
	movq	16(%rbx), %rcx
	movq	(%r12), %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rcx
	movq	%rax, (%rcx)
	movq	16(%r14), %rax
	movq	16(%rbx), %rcx
	movq	_PID_ATTACK_TIME@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rcx
	movq	%rax, (%rcx)
	movq	8(%r14), %rax
	movq	16(%rbx), %rcx
	movq	_PID_FADE_TIME@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rcx
	movq	%rax, (%rcx)
	movl	(%r14), %esi
	movq	16(%rbx), %rax
	movq	(%r15), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_debug
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movq	_PID_SET_ENVELOPE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usbhid_submit_report           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PID_EFFECT_BLOCK_INDEX,8,3     ## @PID_EFFECT_BLOCK_INDEX
	.comm	_PID_ATTACK_LEVEL,8,3           ## @PID_ATTACK_LEVEL
	.comm	_PID_FADE_LEVEL,8,3             ## @PID_FADE_LEVEL
	.comm	_PID_ATTACK_TIME,8,3            ## @PID_ATTACK_TIME
	.comm	_PID_FADE_TIME,8,3              ## @PID_FADE_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attack %u => %d"

	.comm	_PID_SET_ENVELOPE,8,3           ## @PID_SET_ENVELOPE
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.no_dead_strip	_pidff_set_envelope_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pidff_set_envelope_report
_pidff_set_envelope_report:             ; @pidff_set_envelope_report
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PID_EFFECT_BLOCK_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PID_EFFECT_BLOCK_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x10, x9, [x0, #16]
	ldr	x9, [x9, x8, lsl #3]
	lsl	x8, x8, #4
	ldr	x8, [x10, x8]
	ldr	x9, [x9]
	str	x9, [x8]
	ldr	w8, [x1]
	mov	w21, #32767
	cmp	w8, w21
	csel	w0, w8, w21, lt
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x22, _PID_ATTACK_LEVEL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PID_ATTACK_LEVEL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x8, x8, x9, lsl #4
	ldr	w2, [x8, #8]
	mov	w1, #32767
	bl	_pidff_rescale
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	str	x0, [x8]
	ldr	w8, [x20, #4]
	cmp	w8, w21
	csel	w0, w8, w21, lt
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x21, _PID_FADE_LEVEL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PID_FADE_LEVEL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x8, x8, x9, lsl #4
	ldr	w2, [x8, #8]
	mov	w1, #32767
	bl	_pidff_rescale
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	str	x0, [x8]
	ldr	x8, [x19, #16]
Lloh7:
	adrp	x9, _PID_ATTACK_TIME@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PID_ATTACK_TIME@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	ldr	x9, [x20, #16]
	str	x9, [x8]
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #16]
Lloh10:
	adrp	x10, _PID_FADE_TIME@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PID_FADE_TIME@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	lsl	x10, x10, #4
	ldr	x9, [x9, x10]
	str	x8, [x9]
	ldr	w1, [x20]
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	ldr	x2, [x8]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _PID_SET_ENVELOPE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PID_SET_ENVELOPE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
Lloh18:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	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
	b	_usbhid_submit_report
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PID_EFFECT_BLOCK_INDEX,8,3     ; @PID_EFFECT_BLOCK_INDEX
	.comm	_PID_ATTACK_LEVEL,8,3           ; @PID_ATTACK_LEVEL
	.comm	_PID_FADE_LEVEL,8,3             ; @PID_FADE_LEVEL
	.comm	_PID_ATTACK_TIME,8,3            ; @PID_ATTACK_TIME
	.comm	_PID_FADE_TIME,8,3              ; @PID_FADE_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attack %u => %d"

	.comm	_PID_SET_ENVELOPE,8,3           ; @PID_SET_ENVELOPE
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.no_dead_strip	_pidff_set_envelope_report
.subsections_via_symbols
