	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdn_audio_calc_silence        ## -- Begin function isdn_audio_calc_silence
	.p2align	4, 0x90
_isdn_audio_calc_silence:               ## @isdn_audio_calc_silence
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r10
	cmpl	$0, 4(%r10)
	je	LBB0_10
## %bb.1:
	testl	%edx, %edx
	jle	LBB0_10
## %bb.2:
	movq	8(%rdi), %r11
	movq	_isdn_audio_alaw_to_ulaw@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movabsq	$4294967296, %r9                ## imm = 0x100000000
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, (%r11)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	decl	%edx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rax
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rsi), %eax
	addq	%r8, %rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rax), %eax
	leal	-128(%rax), %edi
	testb	%al, %al
	movzbl	%dil, %edi
	cmovlel	%eax, %edi
	movl	%edi, %eax
	sarb	$7, %al
	xorb	%al, %dil
	subb	%al, %dil
	movzbl	%dil, %eax
	movl	4(%r10), %edi
	shll	$2, %edi
	cmpl	%eax, %edi
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r11), %eax
	cmpl	$209999, %eax                   ## imm = 0x3344F
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
	movl	%eax, (%r11)
	jmp	LBB0_9
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_isdn_audio_alaw_to_ulaw,8,3    ## @isdn_audio_alaw_to_ulaw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function isdn_audio_calc_silence
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_isdn_audio_calc_silence
	.p2align	2
_isdn_audio_calc_silence:               ; @isdn_audio_calc_silence
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w9, [x8, #4]
	cmp	w9, #0
	ccmp	w2, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	ret
LBB0_2:
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _isdn_audio_alaw_to_ulaw@GOTPAGE
Lloh1:
	ldr	x10, [x10, _isdn_audio_alaw_to_ulaw@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x11, lCPI0_0@PAGEOFF]
	mov	w11, #13391
	movk	w11, #3, lsl #16
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	d0, [x9]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x1, #1
	subs	w2, w2, #1
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x12, x1
	cbz	w3, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w12, [x1]
	add	x12, x10, x12
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrsb	w12, [x12]
	eor	w13, w12, #0x80
	cmp	w12, #0
	csel	w12, w13, w12, gt
	sxtb	w12, w12
	cmp	w12, #0
	cneg	w12, w12, mi
	ldr	w13, [x8, #4]
	lsl	w13, w13, #2
	cmp	w13, w12, uxtb
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w12, [x9]
	cmp	w12, w11
	b.gt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w12, w12, #1
	str	w12, [x9]
	b	LBB0_4
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_isdn_audio_alaw_to_ulaw,8,3    ; @isdn_audio_alaw_to_ulaw
.subsections_via_symbols
