	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function g729d_voice_decision
LCPI0_0:
	.long	9830                            ## 0x2666
	.long	9830                            ## 0x2666
	.long	9830                            ## 0x2666
	.long	9830                            ## 0x2666
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_g729d_voice_decision:                  ## @g729d_voice_decision
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DECISION_VOICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_DECISION_NOISE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movdqu	(%rdx), %xmm0
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [9830,9830,9830,9830]
	pcmpgtd	%xmm0, %xmm1
	movl	(%rdx), %r9d
	xorl	%r10d, %r10d
	cmpl	$9830, 16(%rdx)                 ## imm = 0x2666
	setl	%r10b
	xorl	%r11d, %r11d
	cmpl	$9830, 20(%rdx)                 ## imm = 0x2666
	setl	%r11b
	movmskps	%xmm1, %edx
	movl	%edx, %eax
	shrb	%al
	andb	$5, %al
	subb	%al, %dl
	movl	%edx, %eax
	andb	$51, %al
	shrb	$2, %dl
	andb	$51, %dl
	addb	%al, %dl
	movl	%edx, %eax
	shrb	$4, %al
	addb	%dl, %al
	andb	$15, %al
	movzbl	%al, %edx
	addl	%r10d, %edx
	addl	%r11d, %edx
	movl	%ecx, %eax
	cmpl	$9831, %r9d                     ## imm = 0x2667
	jl	LBB0_2
## %bb.1:
	movq	_DECISION_INTERMEDIATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	cmpl	$14745, %r9d                    ## imm = 0x3999
	cmovgel	%r8d, %eax
	cmpl	$3, %edx
	cmovbl	%eax, %ecx
	testl	%edi, %edi
	setne	%dil
	cmovnel	%eax, %ecx
	sete	%al
	incl	%esi
	cmpl	%esi, %ecx
	setg	%dl
	andb	%al, %dl
	movzbl	%dl, %eax
	subl	%eax, %ecx
	cmpl	%r8d, %ecx
	setl	%al
	andb	%dil, %al
	movzbl	%al, %eax
	addl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DECISION_VOICE,4,2             ## @DECISION_VOICE
	.comm	_DECISION_NOISE,4,2             ## @DECISION_NOISE
	.comm	_DECISION_INTERMEDIATE,4,2      ## @DECISION_INTERMEDIATE
	.no_dead_strip	_g729d_voice_decision
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g729d_voice_decision
_g729d_voice_decision:                  ; @g729d_voice_decision
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
Lloh0:
	adrp	x8, _DECISION_VOICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DECISION_VOICE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DECISION_NOISE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DECISION_NOISE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _DECISION_INTERMEDIATE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DECISION_INTERMEDIATE@GOTPAGEOFF]
	ldr	q0, [x2]
	mov	w11, #9830
	dup.4s	v1, w11
	cmgt.4s	v1, v1, v0
	xtn.4h	v1, v1
	umov.h	w12, v1[0]
	umov.h	w13, v1[1]
	and	w13, w13, #0x1
	bfi	w12, w13, #1, #1
	umov.h	w13, v1[2]
Lloh8:
	ldr	w10, [x10]
	and	w13, w13, #0x1
	bfi	w12, w13, #2, #1
	umov.h	w13, v1[3]
	bfi	w12, w13, #3, #29
	and	w12, w12, #0xf
	ldp	w13, w14, [x2, #16]
	fmov	d1, x12
	cnt.8b	v1, v1
	uaddlv.8b	h1, v1
	fmov	w12, s1
	cmp	w13, w11
	cinc	w12, w12, lt
	cmp	w14, w11
	cinc	w11, w12, lt
	fmov	w12, s0
	mov	w13, #9831
	cmp	w12, w13
	csel	w10, w9, w10, lt
	mov	w13, #14744
	cmp	w12, w13
	csel	w10, w8, w10, gt
	cmp	w11, #3
	cset	w11, lo
	cmp	w0, #0
	cset	w12, eq
	cset	w13, ne
	orr	w11, w13, w11
	cmp	w11, #0
	csel	w9, w10, w9, ne
	add	w10, w1, #1
	cmp	w9, w10
	cset	w10, gt
	and	w10, w12, w10
	sub	w9, w9, w10
	cmp	w9, w8
	cset	w8, lt
	and	w8, w13, w8
	add	w0, w9, w8
	add	sp, sp, #16
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DECISION_VOICE,4,2             ; @DECISION_VOICE
	.comm	_DECISION_NOISE,4,2             ; @DECISION_NOISE
	.comm	_DECISION_INTERMEDIATE,4,2      ; @DECISION_INTERMEDIATE
	.no_dead_strip	_g729d_voice_decision
.subsections_via_symbols
