	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function celt_search_for_intensity
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_celt_search_for_intensity:             ## @celt_search_for_intensity
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	cmpl	$2, (%rax)
	jl	LBB0_5
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_CELT_MAX_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	decl	%r13d
	movl	(%rsi), %ebx
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.2:
	movq	_FLT_MAX@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, 4(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_bands_dist
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	cmoval	%ebx, %r13d
	minss	%xmm1, %xmm0
	addl	$-1, %ebx
	jb	LBB0_3
LBB0_4:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r13d, %xmm0
	movl	%r13d, 4(%r12)
	addss	(%r14), %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	movss	%xmm0, (%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CELT_MAX_BANDS,4,2             ## @CELT_MAX_BANDS
	.comm	_FLT_MAX,4,2                    ## @FLT_MAX
	.no_dead_strip	_celt_search_for_intensity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_search_for_intensity
_celt_search_for_intensity:             ; @celt_search_for_intensity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -56
	.cfi_offset b9, -64
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CELT_MAX_BANDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CELT_MAX_BANDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w21, w8, #1
	ldr	w22, [x1]
	tbnz	w22, #31, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _FLT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	s8, [x8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w22, [x20, #4]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_bands_dist
	ldr	s0, [sp, #12]
	fcmp	s8, s0
	csel	w21, w22, w21, gt
	fcsel	s8, s0, s8, gt
	sub	w22, w22, #1
	cmn	w22, #1
	b.ne	LBB0_3
LBB0_4:
	str	w21, [x20, #4]
	ldr	s0, [x19]
	scvtf	s1, w21
	fadd	s0, s0, s1
	fmov	s1, #0.50000000
	fmul	s0, s0, s1
	str	s0, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CELT_MAX_BANDS,4,2             ; @CELT_MAX_BANDS
	.comm	_FLT_MAX,4,2                    ; @FLT_MAX
	.no_dead_strip	_celt_search_for_intensity
.subsections_via_symbols
