	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function truncpasses
_truncpasses:                           ## @truncpasses
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.1:
	movq	%rdi, %r8
	movl	8(%rdi), %r14d
	xorl	%edx, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_dwt_norms@GOTPCREL(%rip), %r9
	movq	_FF_DWT53@GOTPCREL(%rip), %r13
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r8), %ecx
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	incq	%rdi
	movslq	%ecx, %rdx
	movq	%rdi, %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rdx, %rdi
	jge	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##         Child Loop BB0_8 Depth 4
                                        ##           Child Loop BB0_10 Depth 5
	testl	%r14d, %r14d
	jle	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r11d
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	8(%r8), %r14d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%rax
	movslq	%r14d, %rcx
	cmpq	%rcx, %rax
	jge	LBB0_17
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##         Child Loop BB0_8 Depth 4
                                        ##           Child Loop BB0_10 Depth 5
	decq	%r11
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx,8), %r15
	leaq	(%rax,%rax,2), %rdi
	movl	(%r15,%rdi,8), %r12d
	movl	4(%r15,%rdi,8), %esi
	movl	%esi, %edx
	imull	%r12d, %edx
	testl	%edx, %edx
	jle	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	(%r15,%rdi,8), %r14
	xorl	%edx, %edx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	setne	%dl
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	8(%r15,%rdi,8), %eax
	xorl	%edx, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=3
	movl	(%r14), %r12d
	movl	4(%r14), %esi
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=3
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movl	%esi, %edx
	imull	%r12d, %edx
	movslq	%edx, %rdx
	movq	%rcx, %rdi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rdx, %rcx
	jge	LBB0_15
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_8 Depth 4
                                        ##           Child Loop BB0_10 Depth 5
	testl	%eax, %eax
	jle	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=3
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=4
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_13
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_6 Depth=3
                                        ## =>      This Loop Header: Depth=4
                                        ##           Child Loop BB0_10 Depth 5
	movq	16(%r14), %rdx
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdx,%rcx), %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	shlq	$4, %rsi
	movl	4(%rdx,%rsi), %edi
	imull	(%rdx,%rsi), %edi
	testl	%edi, %edi
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=4
	leaq	(%rdx,%rsi), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	leaq	(%rdx,%rsi), %rax
	addq	$4, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	addq	%rbx, %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	addq	%rcx, -64(%rbp)                 ## 8-byte Folded Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_6 Depth=3
                                        ##         Parent Loop BB0_8 Depth=4
                                        ## =>        This Inner Loop Header: Depth=5
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	4(%rax), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rbx), %rdi
	movq	16(%r8), %rax
	xorl	%ecx, %ecx
	cmpq	(%r13), %rax
	movq	(%r9), %rax
	sete	%cl
	movq	(%rax,%rcx,8), %rax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	imull	(%rax,%r11,8), %edx
	movl	4(%r8), %esi
	sarl	$15, %edx
	movq	%r9, %r15
	movq	%r11, %r14
	callq	_getcut
	movq	%r14, %r11
	movq	%r15, %r9
	movq	-128(%rbp), %r8                 ## 8-byte Reload
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%rbx)
	incq	%r12
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rcx
	imulq	%rax, %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r12
	jl	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=4
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	8(%r14), %eax
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_12
LBB0_19:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dwt_norms,8,3                  ## @dwt_norms
	.comm	_FF_DWT53,8,3                   ## @FF_DWT53
	.no_dead_strip	_truncpasses
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function truncpasses
_truncpasses:                           ; @truncpasses
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x22, x0
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x28, _dwt_norms@GOTPAGE
Lloh1:
	ldr	x28, [x28, _dwt_norms@GOTPAGEOFF]
Lloh2:
	adrp	x20, _FF_DWT53@GOTPAGE
Lloh3:
	ldr	x20, [x20, _FF_DWT53@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x22]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	add	x10, x10, #1
	str	x10, [sp, #24]                  ; 8-byte Folded Spill
	cmp	x10, w9, sxtw
	b.ge	LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;         Child Loop BB0_15 Depth 4
                                        ;           Child Loop BB0_17 Depth 5
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x15, #0
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x9, [x9]
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	mov	w23, w8
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x22, #8]
	ldr	x15, [sp, #32]                  ; 8-byte Folded Reload
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x15, x15, #1
	cmp	x15, w8, sxtw
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;         Child Loop BB0_15 Depth 4
                                        ;           Child Loop BB0_17 Depth 5
	sub	x23, x23, #1
	ldp	x10, x9, [sp, #16]              ; 16-byte Folded Reload
	ldr	x11, [x10, x9, lsl #3]
	mov	w9, #24
	madd	x9, x15, x9, x11
	mov	x12, x9
	ldr	w10, [x12, #4]!
	stp	x12, x9, [sp, #40]              ; 16-byte Folded Spill
	ldr	w9, [x9]
	mul	w12, w10, w9
	cmp	w12, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w8, #24
	madd	x11, x15, x8, x11
	ldr	w8, [x11, #8]!
	str	x15, [sp, #32]                  ; 8-byte Folded Spill
	cmp	x15, #0
	cset	w12, ne
	stp	x12, x11, [sp, #56]             ; 16-byte Folded Spill
	add	x11, x11, #8
	stp	x11, xzr, [sp, #72]             ; 16-byte Folded Spill
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=3
	ldp	x10, x9, [sp, #40]              ; 16-byte Folded Reload
	ldr	w9, [x9]
	ldr	w10, [x10]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	ldr	x12, [sp, #80]                  ; 8-byte Folded Reload
	add	x12, x12, #1
	mul	w11, w10, w9
	str	x12, [sp, #80]                  ; 8-byte Folded Spill
	cmp	x12, w11, sxtw
	b.ge	LBB0_6
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_15 Depth 4
                                        ;           Child Loop BB0_17 Depth 5
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	mov	x11, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=4
	add	x11, x11, #1
	cmp	x11, w8, sxtw
	b.ge	LBB0_10
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ;       Parent Loop BB0_12 Depth=3
                                        ; =>      This Loop Header: Depth=4
                                        ;           Child Loop BB0_17 Depth 5
	ldp	x9, x10, [sp, #72]              ; 16-byte Folded Reload
	ldr	x9, [x9]
	add	x25, x9, x11, lsl #4
	ldr	x9, [x25, #8]
	add	x10, x9, x10, lsl #4
	mov	x26, x10
	ldr	w9, [x26, #4]!
	stur	x10, [x29, #-88]                ; 8-byte Folded Spill
	ldr	w10, [x10]
	mul	w9, w9, w10
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=4
	mov	x27, #0
	mov	x24, #0
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x8, x11, x8
	stp	x11, x8, [sp, #88]              ; 16-byte Folded Spill
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	add	x19, x8, #8
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ;       Parent Loop BB0_12 Depth=3
                                        ;         Parent Loop BB0_15 Depth=4
                                        ; =>        This Inner Loop Header: Depth=5
	ldr	x8, [x19]
	add	x21, x8, x27
	ldr	x8, [x28]
	ldr	x9, [x22, #16]
	ldr	x10, [x20]
	cmp	x9, x10
	cset	w9, eq
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x22, #4]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w9, [x25]
	mul	w8, w9, w8
	asr	w2, w8, #15
	mov	x0, x21
	bl	_getcut
	str	w0, [x21]
	add	x24, x24, #1
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	ldrsw	x8, [x8]
	ldrsw	x9, [x26]
	mul	x8, x9, x8
	add	x27, x27, #4
	cmp	x24, x8
	b.lt	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=4
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	ldr	x11, [sp, #88]                  ; 8-byte Folded Reload
	b	LBB0_14
LBB0_19:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dwt_norms,8,3                  ; @dwt_norms
	.comm	_FF_DWT53,8,3                   ; @FF_DWT53
	.no_dead_strip	_truncpasses
.subsections_via_symbols
