	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hysteresis16
_hysteresis16:                          ## @hysteresis16
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	32(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%eax, %r10d
	movl	24(%rbp), %edi
	movl	16(%rbp), %eax
	movl	(%rbx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%r9d, %eax
	shrl	$31, %eax
	addl	%r9d, %eax
	sarl	%eax
	movl	%r8d, %edx
	shrl	$31, %edx
	addl	%r8d, %edx
	sarl	%edx
	leal	-1(%rdi), %esi
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	cltq
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movl	%r10d, %esi
	movl	%r10d, %edx
	movq	%rdx, -152(%rbp)                ## 8-byte Spill
	decl	%esi
	movl	%esi, -80(%rbp)                 ## 4-byte Spill
	movl	%edi, %r12d
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	leaq	(,%rcx,4), %rcx
	movq	%rcx, -208(%rbp)                ## 8-byte Spill
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	(,%rax,4), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r14, -168(%rbp)                ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	-152(%rbp), %r13                ## 8-byte Folded Reload
	je	LBB0_22
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##         Child Loop BB0_12 Depth 4
                                        ##           Child Loop BB0_14 Depth 5
	movl	24(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdx
	imulq	-144(%rbp), %rdx                ## 8-byte Folded Reload
	movq	%r13, %rax
	imulq	-120(%rbp), %rax                ## 8-byte Folded Reload
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	imulq	-112(%rbp), %rax                ## 8-byte Folded Reload
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	xorl	%esi, %esi
	movq	%r13, -184(%rbp)                ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-168(%rbp), %r14                ## 8-byte Reload
	movq	-160(%rbp), %r12                ## 8-byte Reload
	movq	-184(%rbp), %r13                ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%rsi
	cmpq	%r12, %rsi
	je	LBB0_21
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##         Child Loop BB0_12 Depth 4
                                        ##           Child Loop BB0_14 Depth 5
	leaq	(%rsi,%rdx), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%r14,%rax,4)
	jle	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-192(%rbp), %rax                ## 8-byte Reload
	leaq	(%rsi,%rax), %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax,%r15,4)
	jle	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	movl	24(%rbp), %ecx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_passed
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %eax
	movq	-176(%rbp), %rcx                ## 8-byte Reload
	addq	%rsi, %rcx
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	movl	24(%rbp), %ecx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_push
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=3
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_12 Depth 4
                                        ##           Child Loop BB0_14 Depth 5
	movq	%rbx, %rdi
	callq	_is_empty
	testl	%eax, %eax
	jne	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	leaq	-96(%rbp), %rsi
	leaq	-92(%rbp), %rdx
	callq	_pop
	movl	-92(%rbp), %eax
	leal	-1(%rax), %ecx
	testl	%eax, %eax
	movl	$0, %edx
	cmovlel	%edx, %ecx
	xorl	%edx, %edx
	cmpl	-80(%rbp), %eax                 ## 4-byte Folded Reload
	setl	%dl
	leal	(%rax,%rdx), %esi
	cmpl	%esi, %ecx
	jg	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=3
	movl	-96(%rbp), %esi
	xorl	%r8d, %r8d
	cmpl	-76(%rbp), %esi                 ## 4-byte Folded Reload
	setl	%r8b
	leal	-1(%rsi), %edi
	testl	%esi, %esi
	movl	$0, %ebx
	cmovlel	%ebx, %edi
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	leal	(%rsi,%r8), %edi
	movl	%edi, -88(%rbp)                 ## 4-byte Spill
	leal	(%rsi,%r8), %r13d
	incl	%r13d
	movl	%ecx, %r15d
	addl	%edx, %eax
	incl	%eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	-112(%rbp), %rax                ## 8-byte Reload
	imulq	%r15, %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rbx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	imulq	%r15, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=4
	incq	%r15
	addq	-208(%rbp), %rbx                ## 8-byte Folded Reload
	addq	-200(%rbp), %r14                ## 8-byte Folded Reload
	cmpl	%r15d, -84(%rbp)                ## 4-byte Folded Reload
	je	LBB0_8
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_9 Depth=3
                                        ## =>      This Loop Header: Depth=4
                                        ##           Child Loop BB0_14 Depth 5
	movl	-88(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -136(%rbp)                ## 4-byte Folded Reload
	jg	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=4
	movq	-136(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=5
	incq	%r12
	cmpl	%r12d, %r13d
	je	LBB0_18
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_9 Depth=3
                                        ##         Parent Loop BB0_12 Depth=4
                                        ## =>        This Inner Loop Header: Depth=5
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r14,%r12,4)
	jle	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=5
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	24(%rbp), %ecx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_passed
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=5
	movl	(%r14,%r12,4), %eax
	movl	%eax, (%rbx,%r12,4)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	24(%rbp), %ecx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_push
	jmp	LBB0_17
LBB0_22:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hysteresis16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hysteresis16
_hysteresis16:                          ; @hysteresis16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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	x3, [sp, #96]                   ; 8-byte Folded Spill
	str	x2, [sp, #112]                  ; 8-byte Folded Spill
	ldr	w8, [x29, #16]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	subs	w8, w8, #1
	str	w8, [sp, #108]                  ; 4-byte Folded Spill
	b.lt	LBB0_21
; %bb.1:
	mov	x19, x7
	mov	x21, x1
	mov	x23, x0
	mov	x22, #0
	cmp	w6, #0
	cinc	w8, w6, lt
	asr	w9, w8, #1
	cmp	w5, #0
	cinc	w10, w5, lt
	asr	w11, w10, #1
	cmp	w4, #0
	cinc	w12, w4, lt
	sbfx	x10, x10, #1, #31
	sbfx	x8, x8, #1, #31
	stp	x8, x10, [sp, #80]              ; 16-byte Folded Spill
	sbfx	x8, x12, #1, #31
	str	x8, [sp]                        ; 8-byte Folded Spill
	mov	w25, w7
	ldr	w24, [x0]
	sub	w8, w7, #1
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	sbfiz	x8, x9, #2, #32
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	sbfiz	x8, x11, #2, #32
	str	x8, [sp, #120]                  ; 8-byte Folded Spill
	stp	x25, x1, [sp, #16]              ; 16-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x22, x8
	b.eq	LBB0_21
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;         Child Loop BB0_15 Depth 4
                                        ;           Child Loop BB0_18 Depth 5
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	mul	x27, x22, x8
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	mul	x28, x22, x8
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	mul	x8, x22, x8
	stp	x8, x28, [sp, #32]              ; 16-byte Folded Spill
	stp	x27, x22, [sp, #48]             ; 16-byte Folded Spill
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldp	x25, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x26, [sp, #56]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #40]             ; 16-byte Folded Reload
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x26, x26, #1
	cmp	x26, x25
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;         Child Loop BB0_15 Depth 4
                                        ;           Child Loop BB0_18 Depth 5
	add	x8, x26, x27
	ldr	w8, [x21, x8, lsl #2]
	cmp	w8, w24
	b.le	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x20, x26, x28
	ldr	x8, [sp, #112]                  ; 8-byte Folded Reload
	ldr	w8, [x8, x20, lsl #2]
	cmp	w8, w24
	b.le	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x23
	mov	x1, x26
	mov	x2, x22
	mov	x3, x19
	bl	_passed
	cbnz	w0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #112]                  ; 8-byte Folded Reload
	ldr	w8, [x8, x20, lsl #2]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x9, x26, x9
	ldr	x10, [sp, #96]                  ; 8-byte Folded Reload
	str	w8, [x10, x9, lsl #2]
	mov	x0, x23
	str	x26, [sp, #64]                  ; 8-byte Folded Spill
	mov	x1, x26
	mov	x2, x22
	mov	x3, x19
	bl	_push
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_15 Depth 4
                                        ;           Child Loop BB0_18 Depth 5
	mov	x0, x23
	bl	_is_empty
	cbnz	w0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	sub	x1, x29, #92
	sub	x2, x29, #96
	mov	x0, x23
	bl	_pop
	ldur	w8, [x29, #-96]
	sub	w9, w8, #1
	cmp	w8, #0
	csel	w26, w9, wzr, gt
	ldr	w9, [sp, #108]                  ; 4-byte Folded Reload
	cmp	w8, w9
	cset	w9, lt
	cinc	w10, w8, lt
	cmp	w26, w10
	b.gt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=3
	ldur	w10, [x29, #-92]
	ldr	w11, [sp, #76]                  ; 4-byte Folded Reload
	cmp	w10, w11
	cinc	w12, w10, lt
	sub	w11, w10, #1
	cmp	w10, #0
	csel	w28, w11, wzr, gt
	stur	w12, [x29, #-100]               ; 4-byte Folded Spill
	add	w25, w12, #1
	add	w8, w8, w9
	add	w22, w8, #1
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	mul	x8, x8, x26
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
	add	x20, x9, x8, lsl #2
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	mul	x8, x8, x26
	ldr	x9, [sp, #112]                  ; 8-byte Folded Reload
	add	x21, x9, x8, lsl #2
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=4
	add	x26, x26, #1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	add	x20, x20, x8
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	add	x21, x21, x8
	cmp	w22, w26
	b.eq	LBB0_11
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ;       Parent Loop BB0_11 Depth=3
                                        ; =>      This Loop Header: Depth=4
                                        ;           Child Loop BB0_18 Depth 5
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cmp	w28, w8
	b.gt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=4
	mov	x27, x28
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=5
	add	x27, x27, #1
	cmp	w25, w27
	b.eq	LBB0_14
LBB0_18:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ;       Parent Loop BB0_11 Depth=3
                                        ;         Parent Loop BB0_15 Depth=4
                                        ; =>        This Inner Loop Header: Depth=5
	ldr	w8, [x21, x27, lsl #2]
	cmp	w8, w24
	b.le	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=5
	mov	x0, x23
	mov	x1, x27
	mov	x2, x26
	mov	x3, x19
	bl	_passed
	cbnz	w0, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=5
	lsl	x8, x27, #2
	ldr	w9, [x21, x8]
	str	w9, [x20, x8]
	mov	x0, x23
	mov	x1, x27
	mov	x2, x26
	mov	x3, x19
	bl	_push
	b	LBB0_17
LBB0_21:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hysteresis16
.subsections_via_symbols
