	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function soft_thresholding
LCPI0_0:
	.long	0x3c23d70a                      ## float 0.00999999977
LCPI0_1:
	.long	0x3f800000                      ## float 1
LCPI0_2:
	.long	0xbf800000                      ## float -1
LCPI0_3:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_soft_thresholding:                     ## @soft_thresholding
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.1:
	leal	-1(%r8), %edx
	movl	%r8d, %eax
	andl	$3, %eax
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$3, %edx
	jb	LBB0_4
## %bb.2:
	andl	$-4, %r8d
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r13d
	sarl	%r13d
	incl	%ebx
	sarl	%ebx
	incl	%r13d
	sarl	%r13d
	incl	%ebx
	sarl	%ebx
	incl	%r13d
	sarl	%r13d
	incl	%ebx
	sarl	%ebx
	incl	%r13d
	sarl	%r13d
	incl	%ebx
	sarl	%ebx
	addl	$-4, %r8d
	jne	LBB0_3
LBB0_4:
	testl	%eax, %eax
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r13d
	sarl	%r13d
	incl	%ebx
	sarl	%ebx
	decl	%eax
	jne	LBB0_5
LBB0_6:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_15
## %bb.7:
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm0
	mulss	%xmm2, %xmm0
	movss	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm3
	movss	%xmm3, -56(%rbp)                ## 4-byte Spill
	mulss	-52(%rbp), %xmm2                ## 4-byte Folded Reload
	mulss	%xmm1, %xmm2
	movss	%xmm2, -60(%rbp)                ## 4-byte Spill
	movslq	%ecx, %rax
	shlq	$2, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, -72(%rbp)                 ## 8-byte Folded Spill
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_15
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	cmpl	%ebx, %ecx
	movl	$0, %eax
	cmovll	%r13d, %eax
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movslq	%eax, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %r14
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r12d
	subl	%eax, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	xorps	%xmm2, %xmm2
	cmpltss	%xmm1, %xmm2
	movss	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	andps	%xmm3, %xmm2
	cmpltss	LCPI0_3(%rip), %xmm1
	movaps	%xmm1, %xmm3
	andnps	%xmm2, %xmm3
	movss	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	andps	%xmm2, %xmm1
	orps	%xmm3, %xmm1
	subss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	mulss	%xmm0, %xmm1
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movss	%xmm1, (%r14,%r15,4)
	incq	%r15
	cmpl	%r15d, %r12d
	je	LBB0_14
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%r14,%r15,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_FFABS
	movss	-52(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	movss	(%r14,%r15,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	jb	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	mulss	-56(%rbp), %xmm1                ## 4-byte Folded Reload
	jmp	LBB0_13
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_soft_thresholding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soft_thresholding
_soft_thresholding:                     ; @soft_thresholding
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-144]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 144
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	fmov	s8, s0
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x23, x2
	mov	x22, x1
	cmp	w4, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x20
	mov	x23, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w22, #1
	asr	w22, w8, #1
	add	w8, w23, #1
	asr	w23, w8, #1
	subs	w4, w4, #1
	b.ne	LBB0_2
LBB0_3:
	cmp	w19, #1
	b.lt	LBB0_12
; %bb.4:
	mov	w24, #0
	mov	w8, #55050
	movk	w8, #15395, lsl #16
	fmov	s0, w8
	fmov	s2, #1.00000000
	fmul	s3, s8, s0
	fmsub	s9, s1, s0, s2
	fmul	s10, s3, s1
	sbfiz	x25, x3, #2, #32
	movi	d11, #0000000000000000
	fmov	s12, #1.00000000
	fmov	s13, #-1.00000000
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	add	x21, x21, x25
	cmp	w24, w19
	b.eq	LBB0_12
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w24, w23
	csel	w8, w22, wzr, lt
	cmp	w8, w20
	b.ge	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sbfiz	x26, x8, #2, #32
	sub	w27, w20, w8
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	fcmp	s1, #0.0
	fcsel	s1, s12, s11, gt
	fcsel	s1, s13, s1, mi
	fsub	s0, s0, s10
	fmul	s0, s0, s1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	str	s0, [x21, x26]
	add	x26, x26, #4
	subs	w27, w27, #1
	b.eq	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s0, [x21, x26]
	bl	_FFABS
	ldr	s1, [x21, x26]
	fcmp	s0, s8
	b.hi	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	fmul	s0, s9, s1
	b	LBB0_9
LBB0_12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #144            ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_soft_thresholding
.subsections_via_symbols
