	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_ApplyFriction              ## -- Begin function AAS_ApplyFriction
	.p2align	4, 0x90
_AAS_ApplyFriction:                     ## @AAS_ApplyFriction
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movaps	%xmm0, %xmm3
	movq	%rdi, %rbx
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rdi), %xmm4                  ## xmm4 = mem[0],zero,zero,zero
	mulss	%xmm4, %xmm4
	mulss	%xmm0, %xmm0
	addss	%xmm4, %xmm0
	xorps	%xmm4, %xmm4
	ucomiss	%xmm4, %xmm0
	jb	LBB0_2
## %bb.1:
	sqrtss	%xmm0, %xmm0
	jmp	LBB0_3
LBB0_2:
	movss	%xmm1, -20(%rbp)                ## 4-byte Spill
	movss	%xmm3, -16(%rbp)                ## 4-byte Spill
	movss	%xmm2, -12(%rbp)                ## 4-byte Spill
	callq	_sqrt
	xorps	%xmm4, %xmm4
	movss	-12(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movss	-16(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	-20(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
LBB0_3:
	ucomiss	%xmm4, %xmm0
	jne	LBB0_4
	jnp	LBB0_5
LBB0_4:
	maxss	%xmm0, %xmm1
	mulss	%xmm2, %xmm1
	mulss	%xmm3, %xmm1
	movaps	%xmm0, %xmm3
	subss	%xmm1, %xmm3
	xorps	%xmm2, %xmm2
	maxss	%xmm3, %xmm2
	divss	%xmm0, %xmm2
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
	movss	%xmm0, (%rbx)
	mulss	4(%rbx), %xmm2
	movss	%xmm2, 4(%rbx)
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_ApplyFriction              ; -- Begin function AAS_ApplyFriction
	.p2align	2
_AAS_ApplyFriction:                     ; @AAS_ApplyFriction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	ldp	s3, s4, [x0]
	fmul	s4, s4, s4
	fmadd	s4, s3, s3, s4
	fsqrt	s3, s4
	fcmp	s3, s3
	b.vs	LBB0_4
; %bb.1:
	fcmp	s3, #0.0
	b.eq	LBB0_3
LBB0_2:
	fcmp	s3, s1
	fcsel	s1, s1, s3, mi
	fneg	s1, s1
	fmul	s1, s1, s2
	fmadd	s0, s1, s0, s3
	movi	d1, #0000000000000000
	fmax	s0, s0, s1
	fdiv	s0, s0, s3
	ldr	d1, [x0]
	fmul.2s	v0, v1, v0[0]
	str	d0, [x0]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	stur	s0, [x29, #-4]                  ; 4-byte Folded Spill
	fmov	s0, s4
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	stp	s2, s1, [sp, #8]                ; 8-byte Folded Spill
	bl	_sqrt
	ldp	s2, s1, [sp, #8]                ; 8-byte Folded Reload
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	fmov	s3, s0
	ldur	s0, [x29, #-4]                  ; 4-byte Folded Reload
	fcmp	s3, #0.0
	b.ne	LBB0_2
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
