	.file	"extr_dib7000p.c_map_addr_to_serpar_number.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	map_addr_to_serpar_number, @function
map_addr_to_serpar_number:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR [rdi]
	mov	eax, DWORD PTR [rdx]
	cmp	eax, 15
	jg	.L2
	sub	eax, 1
	mov	DWORD PTR [rdx], eax
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	eax, 17
	je	.L10
	cmp	eax, 16
	je	.L11
	cmp	eax, 19
	je	.L12
	lea	ecx, -21[rax]
	cmp	ecx, 4
	ja	.L7
	sub	eax, 3
	mov	DWORD PTR [rdx], eax
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	mov	DWORD PTR [rdx], 16
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	mov	DWORD PTR [rdx], 15
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR [rdx], 17
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	eax, 28
	jne	.L8
	mov	DWORD PTR [rdx], 23
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	map_addr_to_serpar_number, .-map_addr_to_serpar_number
	.comm	EINVAL,4,4
	.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_dib7000p.c_map_addr_to_serpar_number.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	map_addr_to_serpar_number, %function
map_addr_to_serpar_number:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r2, [r0]
	ldr	r3, [r2]
	cmp	r3, #15
	bgt	.L2
	sub	r3, r3, #1
	mov	r0, #0
	str	r3, [r2]
	bx	lr
.L2:
	cmp	r3, #17
	beq	.L10
	cmp	r3, #16
	beq	.L11
	cmp	r3, #19
	beq	.L12
	sub	r1, r3, #21
	cmp	r1, #4
	bhi	.L7
	sub	r3, r3, #3
	mov	r0, #0
	str	r3, [r2]
	bx	lr
.L12:
	mov	r3, #16
	mov	r0, #0
	str	r3, [r2]
	bx	lr
.L10:
	mov	r3, #15
	mov	r0, #0
	str	r3, [r2]
	bx	lr
.L11:
	mov	r3, #17
	mov	r0, #0
	str	r3, [r2]
	bx	lr
.L7:
	cmp	r3, #28
	moveq	r3, #23
	ldrne	r3, .L13
	moveq	r0, #0
	ldrne	r0, [r3]
	streq	r3, [r2]
	rsbne	r0, r0, #0
	bx	lr
.L14:
	.align	2
.L13:
	.word	EINVAL
	.size	map_addr_to_serpar_number, .-map_addr_to_serpar_number
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
