	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function truespeech_place_pulses
_truespeech_place_pulses:               ## @truespeech_place_pulses
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$240, %edx
	callq	_memset
	movslq	%r15d, %r9
	movq	_ts_pulse_scales@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	(%r14), %rdx
	movq	8(%r14), %r10
	movl	(%rdx,%r9,4), %ecx
	movl	%ecx, %eax
	andl	$3, %eax
	movl	%ecx, %edi
	sarl	$2, %edi
	movl	%edi, (%rdx,%r9,4)
	movslq	(%r10,%r9,4), %rsi
	leaq	(%rax,%rsi,4), %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, -56(%rbp)
	andl	$3, %edi
	movl	%ecx, %eax
	sarl	$4, %eax
	movl	%eax, (%rdx,%r9,4)
	movslq	(%r10,%r9,4), %rsi
	leaq	(%rdi,%rsi,4), %rsi
	movl	(%r8,%rsi,4), %esi
	movl	%esi, -60(%rbp)
	andl	$3, %eax
	movl	%ecx, %esi
	sarl	$6, %esi
	movl	%esi, (%rdx,%r9,4)
	movslq	(%r10,%r9,4), %rdi
	leaq	(%rax,%rdi,4), %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, -64(%rbp)
	andl	$3, %esi
	movl	%ecx, %eax
	sarl	$8, %eax
	movl	%eax, (%rdx,%r9,4)
	movslq	(%r10,%r9,4), %rdi
	leaq	(%rsi,%rdi,4), %rsi
	movl	(%r8,%rsi,4), %esi
	movl	%esi, -68(%rbp)
	andl	$3, %eax
	movl	%ecx, %esi
	sarl	$10, %esi
	movl	%esi, (%rdx,%r9,4)
	movslq	(%r10,%r9,4), %rdi
	leaq	(%rax,%rdi,4), %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, -72(%rbp)
	andl	$3, %esi
	movl	%ecx, %eax
	sarl	$12, %eax
	movl	%eax, (%rdx,%r9,4)
	movslq	(%r10,%r9,4), %rdi
	leaq	(%rsi,%rdi,4), %rsi
	movl	(%r8,%rsi,4), %esi
	movl	%esi, -76(%rbp)
	andl	$3, %eax
	sarl	$14, %ecx
	movl	%ecx, (%rdx,%r9,4)
	movslq	(%r10,%r9,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	movl	(%r8,%rax,4), %eax
	leaq	-80(%rbp), %rcx
	movl	%eax, -80(%rbp)
	movq	16(%r14), %r8
	movl	(%r8,%r9,4), %r10d
	sarl	$15, %r10d
	movq	_ts_pulse_values@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	120(%rdx), %rdi
	movl	$3, %esi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r10d, %eax
	subl	(%rdi), %eax
	jge	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rcx), %eax
	addq	$4, %rcx
	movl	%eax, (%r12,%rbx,4)
	addq	$124, %rdi
	decl	%esi
	cmpq	$28, %rbx
	jbe	LBB0_5
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$4, %rdi
	movl	%eax, %r10d
	cmpq	$28, %rbx
	ja	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	testl	%esi, %esi
	jg	LBB0_1
LBB0_6:
	movl	$32767, %ebx                    ## imm = 0x7FFF
	andl	(%r8,%r9,4), %ebx
	movl	$4, %eax
	movl	$30, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	subl	(%rdx), %edi
	jge	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rcx), %edi
	addq	$4, %rcx
	movl	%edi, (%r12,%rsi,4)
	addq	$124, %rdx
	decl	%eax
	cmpq	$58, %rsi
	jbe	LBB0_11
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %rdx
	movl	%edi, %ebx
	cmpq	$58, %rsi
	ja	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rsi
	testl	%eax, %eax
	jg	LBB0_7
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ts_pulse_scales,8,3            ## @ts_pulse_scales
	.comm	_ts_pulse_values,8,3            ## @ts_pulse_values
	.no_dead_strip	_truespeech_place_pulses
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function truespeech_place_pulses
_truespeech_place_pulses:               ; @truespeech_place_pulses
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #240
	bl	_memset
	mov	x9, #0
	sbfiz	x10, x21, #2, #32
Lloh3:
	adrp	x8, _ts_pulse_scales@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ts_pulse_scales@GOTPAGEOFF]
	ldp	x11, x12, [x20]
	ldr	w13, [x11, x10]
Lloh5:
	ldr	x8, [x8]
	asr	w14, w13, #2
	str	w14, [x11, x10]
	ldr	w15, [x12, x10]
	asr	w16, w13, #4
	mov	x17, x13
	bfi	w17, w15, #2, #30
	ldr	w15, [x8, w17, sxtw #2]
	asr	w17, w13, #6
	str	w16, [x11, x10]
	ldr	w0, [x12, x10]
	bfi	w14, w0, #2, #30
	ldr	w14, [x8, w14, sxtw #2]
	str	w17, [x11, x10]
	ldr	w0, [x12, x10]
	asr	w1, w13, #8
	bfi	w16, w0, #2, #30
	ldr	w16, [x8, w16, sxtw #2]
	str	w1, [x11, x10]
	asr	w0, w13, #10
	ldr	w2, [x12, x10]
	bfi	w17, w2, #2, #30
	ldr	w17, [x8, w17, sxtw #2]
	asr	w2, w13, #12
	str	w0, [x11, x10]
	ldr	w3, [x12, x10]
	bfi	w1, w3, #2, #30
	ldr	w1, [x8, w1, sxtw #2]
	str	w2, [x11, x10]
	ldr	w3, [x12, x10]
	asr	w13, w13, #14
	bfi	w0, w3, #2, #30
	ldr	w0, [x8, w0, sxtw #2]
	str	w13, [x11, x10]
	stp	w14, w15, [sp, #32]
	stp	w17, w16, [sp, #24]
	sxtw	x11, w21
	stp	w0, w1, [sp, #16]
	ldr	w12, [x12, x10]
	bfi	w2, w12, #2, #30
	ldr	w12, [x8, w2, sxtw #2]
	add	x8, sp, #12
	str	w12, [sp, #12]
	ldr	x12, [x20, #16]
	ldr	w10, [x12, x10]
	asr	w15, w10, #15
Lloh6:
	adrp	x10, _ts_pulse_values@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ts_pulse_values@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x13, x10, #120
	mov	w14, #3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x13]
	subs	w16, w15, w16
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w16, [x8], #4
	str	w16, [x19, x9, lsl #2]
	add	x13, x13, #124
	sub	w14, w14, #1
	cmp	x9, #28
	b.ls	LBB0_4
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x13, x13, #4
	mov	x15, x16
	cmp	x9, #28
	b.hi	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x9, x9, #1
	cmp	w14, #0
	b.gt	LBB0_1
LBB0_5:
	ldr	w9, [x12, x11, lsl #2]
	and	w12, w9, #0x7fff
	mov	w9, #4
	mov	w11, #30
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10]
	subs	w13, w12, w13
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w13, [x8], #4
	str	w13, [x19, x11, lsl #2]
	add	x10, x10, #124
	sub	w9, w9, #1
	cmp	x11, #58
	b.ls	LBB0_9
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x10, #4
	mov	x12, x13
	cmp	x11, #58
	b.hi	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x11, x11, #1
	cmp	w9, #0
	b.gt	LBB0_6
LBB0_10:
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ts_pulse_scales,8,3            ; @ts_pulse_scales
	.comm	_ts_pulse_values,8,3            ; @ts_pulse_values
	.no_dead_strip	_truespeech_place_pulses
.subsections_via_symbols
