	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apply_smoothing                ## -- Begin function apply_smoothing
	.p2align	4, 0x90
_apply_smoothing:                       ## @apply_smoothing
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$129, %edx
	je	LBB0_10
## %bb.1:
	cmpl	$128, %edx
	jne	LBB0_18
## %bb.2:
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	callq	_isnan
	xorps	%xmm2, %xmm2
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	callq	_isinf
	xorps	%xmm2, %xmm2
	testl	%eax, %eax
	je	LBB0_4
LBB0_9:
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%rbx), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ssl	4(%r14), %xmm1
	subss	%xmm2, %xmm1
	mulss	%xmm0, %xmm1
	addss	%xmm2, %xmm1
	movss	%xmm1, (%r14)
	movss	%xmm1, (%rbx)
	jmp	LBB0_18
LBB0_10:
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	callq	_isnan
	xorps	%xmm2, %xmm2
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	callq	_isinf
	xorps	%xmm2, %xmm2
	testl	%eax, %eax
	je	LBB0_12
LBB0_17:
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%rbx), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ssl	12(%r14), %xmm1
	subss	%xmm2, %xmm1
	mulss	%xmm0, %xmm1
	addss	%xmm2, %xmm1
	movss	%xmm1, 8(%r14)
	movss	%xmm1, 8(%rbx)
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movss	(%rbx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm2, %xmm1
	jbe	LBB0_6
## %bb.5:
	movss	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	ja	LBB0_8
LBB0_6:
	ucomiss	%xmm1, %xmm2
	jbe	LBB0_9
## %bb.7:
	movss	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_9
LBB0_8:
	movss	%xmm0, (%rbx)
	jmp	LBB0_18
LBB0_12:
	movss	8(%rbx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm2, %xmm1
	jbe	LBB0_14
## %bb.13:
	movss	8(%r14), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	ja	LBB0_16
LBB0_14:
	ucomiss	%xmm1, %xmm2
	jbe	LBB0_17
## %bb.15:
	movss	8(%r14), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_17
LBB0_16:
	movss	%xmm0, 8(%rbx)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apply_smoothing                ; -- Begin function apply_smoothing
	.p2align	2
_apply_smoothing:                       ; @apply_smoothing
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	mov	x20, x1
	mov	x19, x0
	cmp	w2, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_9
; %bb.2:
	ldr	s0, [x19]
	bl	_isnan
	movi	d8, #0000000000000000
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	s0, [x19]
	bl	_isinf
	cbz	w0, LBB0_10
LBB0_4:
	ldr	s0, [x19, #4]
	scvtf	s0, s0
	ldr	s1, [x20, #4]
	scvtf	s1, s1
	fsub	s1, s1, s8
	fmadd	s0, s0, s1, s8
	str	s0, [x20]
	str	s0, [x19]
	b	LBB0_9
LBB0_5:
	ldr	s0, [x19, #8]
	bl	_isnan
	movi	d8, #0000000000000000
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	s0, [x19, #8]
	bl	_isinf
	cbz	w0, LBB0_15
LBB0_7:
	ldr	s0, [x19, #4]
	scvtf	s0, s0
	ldr	s1, [x20, #12]
	scvtf	s1, s1
	fsub	s1, s1, s8
	fmadd	s0, s0, s1, s8
	str	s0, [x20, #8]
LBB0_8:
	str	s0, [x19, #8]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	s8, [x19]
	fcmp	s8, #0.0
	b.pl	LBB0_12
; %bb.11:
	ldr	s0, [x20]
	fcmp	s0, #0.0
	b.gt	LBB0_14
LBB0_12:
	fcmp	s8, #0.0
	b.le	LBB0_4
; %bb.13:
	ldr	s0, [x20]
	fcmp	s0, #0.0
	b.pl	LBB0_4
LBB0_14:
	str	s0, [x19]
	b	LBB0_9
LBB0_15:
	ldr	s8, [x19, #8]
	fcmp	s8, #0.0
	b.pl	LBB0_17
; %bb.16:
	ldr	s0, [x20, #8]
	fcmp	s0, #0.0
	b.gt	LBB0_8
LBB0_17:
	fcmp	s8, #0.0
	b.le	LBB0_7
; %bb.18:
	ldr	s0, [x20, #8]
	fcmp	s0, #0.0
	b.pl	LBB0_7
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
