	.file	"extr_sdp_db.c_SDP_ReadRecord.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SDP_ReadRecord
	.type	SDP_ReadRecord, @function
SDP_ReadRecord:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	sdp_db_find_record@PLT
	test	rbx, rbx
	setne	dl
	test	rbp, rbp
	mov	r12, rax
	setne	al
	test	dl, al
	je	.L8
	test	r12, r12
	je	.L8
	lea	r14, 24[rbx]
	xor	esi, esi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	ecx, DWORD PTR 0[rbp]
	sub	ecx, eax
	mov	eax, ecx
	sub	eax, 6
	cdqe
	cmp	QWORD PTR 0[r13], rax
	jg	.L4
	mov	rsi, r13
	mov	rdi, r14
	call	sdpu_build_attrib_entry@PLT
	mov	esi, DWORD PTR 8[r13]
	mov	r14, rax
	add	esi, 1
.L3:
	mov	edx, 65535
	mov	rdi, r12
	call	sdp_db_find_attr_in_rec@PLT
	mov	r13, rax
	mov	rax, r14
	sub	rax, rbx
	sar	rax, 3
	mov	edx, eax
	test	r13, r13
	jne	.L5
.L4:
	mov	eax, DWORD PTR DATA_ELE_SEQ_DESC_TYPE[rip]
	lea	ecx, -3[rdx]
	movsx	rsi, ecx
	sal	eax, 3
	cmp	edx, 255
	jg	.L17
	or	eax, DWORD PTR SIZE_IN_NEXT_BYTE[rip]
	mov	QWORD PTR 16[rbx], rsi
	sub	edx, 1
	cdqe
	mov	QWORD PTR 8[rbx], rax
	mov	eax, 1
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	DWORD PTR 0[rbp], edx
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, -1
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	or	eax, DWORD PTR SIZE_IN_NEXT_WORD[rip]
	sar	ecx, 8
	mov	QWORD PTR 16[rbx], rsi
	cdqe
	movsx	rcx, ecx
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	mov	QWORD PTR 8[rbx], rcx
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	SDP_ReadRecord, .-SDP_ReadRecord
	.comm	SIZE_IN_NEXT_WORD,4,4
	.comm	SIZE_IN_NEXT_BYTE,4,4
	.comm	DATA_ELE_SEQ_DESC_TYPE,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_sdp_db.c_SDP_ReadRecord.c"
	.text
	.align	2
	.global	SDP_ReadRecord
	.syntax unified
	.arm
	.fpu softvfp
	.type	SDP_ReadRecord, %function
SDP_ReadRecord:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r2
	mov	r5, r1
	bl	sdp_db_find_record
	subs	r3, r6, #0
	movne	r3, #1
	cmp	r5, #0
	moveq	r3, #0
	cmp	r0, #0
	moveq	r3, #0
	cmp	r3, #0
	bne	.L11
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r7, r0
	mov	r1, #0
	ldr	r8, .L13
	add	r9, r5, #12
	b	.L3
.L5:
	ldr	r3, [r6]
	ldr	r1, [r4]
	sub	r3, r3, r2, asr #2
	sub	r3, r3, #5
	cmp	r3, r1
	asr	r3, r2, #2
	ble	.L4
	mov	r0, r9
	mov	r1, r4
	bl	sdpu_build_attrib_entry
	mov	r9, r0
	ldr	r1, [r4, #4]
	add	r1, r1, #1
.L3:
	mov	r2, r8
	mov	r0, r7
	bl	sdp_db_find_attr_in_rec
	subs	r4, r0, #0
	sub	r2, r9, r5
	bne	.L5
	asr	r3, r2, #2
.L4:
	ldr	r1, .L13+4
	cmp	r2, #1020
	ldr	r2, [r1]
	sub	r1, r3, #3
	lsl	r2, r2, #3
	bgt	.L12
	ldr	ip, .L13+8
	str	r1, [r5, #8]
	ldr	r1, [ip]
	sub	r3, r3, #1
	orr	r2, r1, r2
	str	r2, [r5, #4]
	mov	r0, #1
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r0, .L13+12
	str	r1, [r5, #8]
	ldr	r0, [r0]
	asr	r1, r1, #8
	orr	r2, r0, r2
	str	r1, [r5, #4]
	str	r2, [r5]
	mov	r0, #0
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	65535
	.word	DATA_ELE_SEQ_DESC_TYPE
	.word	SIZE_IN_NEXT_BYTE
	.word	SIZE_IN_NEXT_WORD
	.size	SDP_ReadRecord, .-SDP_ReadRecord
	.comm	SIZE_IN_NEXT_WORD,4,4
	.comm	SIZE_IN_NEXT_BYTE,4,4
	.comm	DATA_ELE_SEQ_DESC_TYPE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
