	.file	"extr_msg711.c_G711_GetFormatIndex.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	G711_GetFormatIndex, @function
G711_GetFormatIndex:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edx, DWORD PTR [rdi]
	mov	rbx, rdi
	cmp	edx, 129
	je	.L2
	cmp	edx, 130
	je	.L3
	mov	eax, -1
	cmp	edx, 128
	je	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, QWORD PTR PCM_Formats[rip]
	call	ARRAY_SIZE@PLT
	mov	rdx, QWORD PTR PCM_Formats[rip]
	mov	ecx, eax
.L5:
	test	ecx, ecx
	jle	.L9
	mov	rsi, QWORD PTR 8[rbx]
	xor	eax, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	add	eax, 1
	add	rdx, 24
	cmp	ecx, eax
	je	.L9
.L7:
	cmp	rsi, QWORD PTR [rdx]
	jne	.L6
	mov	rdi, QWORD PTR 8[rdx]
	cmp	QWORD PTR 16[rbx], rdi
	jne	.L6
	mov	rdi, QWORD PTR 16[rdx]
	cmp	QWORD PTR 24[rbx], rdi
	je	.L1
	add	eax, 1
	add	rdx, 24
	cmp	ecx, eax
	jne	.L7
.L9:
	mov	eax, -1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, QWORD PTR ALaw_Formats[rip]
	call	ARRAY_SIZE@PLT
	mov	rdx, QWORD PTR ALaw_Formats[rip]
	mov	ecx, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR ULaw_Formats[rip]
	call	ARRAY_SIZE@PLT
	mov	rdx, QWORD PTR ULaw_Formats[rip]
	mov	ecx, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	G711_GetFormatIndex, .-G711_GetFormatIndex
	.comm	ULaw_Formats,8,8
	.comm	PCM_Formats,8,8
	.comm	ALaw_Formats,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_msg711.c_G711_GetFormatIndex.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	G711_GetFormatIndex, %function
G711_GetFormatIndex:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	cmp	r3, #129
	mov	r4, r0
	beq	.L2
	cmp	r3, #130
	beq	.L3
	cmp	r3, #128
	beq	.L13
.L9:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r5, .L14
	ldr	r0, [r5]
	bl	ARRAY_SIZE
	mov	r1, r0
	ldr	r3, [r5]
.L5:
	cmp	r1, #0
	ble	.L9
	mov	r0, #0
	ldr	ip, [r4, #4]
	b	.L7
.L6:
	add	r0, r0, #1
	cmp	r1, r0
	add	r3, r3, #12
	beq	.L9
.L7:
	ldr	r2, [r3]
	cmp	ip, r2
	bne	.L6
	ldr	lr, [r4, #8]
	ldr	r2, [r3, #4]
	cmp	lr, r2
	bne	.L6
	ldr	lr, [r4, #12]
	ldr	r2, [r3, #8]
	cmp	lr, r2
	bne	.L6
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r5, .L14+4
	ldr	r0, [r5]
	bl	ARRAY_SIZE
	ldr	r3, [r5]
	mov	r1, r0
	b	.L5
.L3:
	ldr	r5, .L14+8
	ldr	r0, [r5]
	bl	ARRAY_SIZE
	ldr	r3, [r5]
	mov	r1, r0
	b	.L5
.L15:
	.align	2
.L14:
	.word	ULaw_Formats
	.word	PCM_Formats
	.word	ALaw_Formats
	.size	G711_GetFormatIndex, .-G711_GetFormatIndex
	.comm	ULaw_Formats,4,4
	.comm	PCM_Formats,4,4
	.comm	ALaw_Formats,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
