	.file	"extr_sdp_db.c_SDP_DeleteRecord.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SDP_DeleteRecord ok, num_records:%d\n"
	.text
	.p2align 4
	.globl	SDP_DeleteRecord
	.type	SDP_DeleteRecord, @function
SDP_DeleteRecord:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	test	rdi, rdi
	je	.L2
	mov	rbx, rdi
	mov	rdi, QWORD PTR sdp_cb[rip]
	test	rdi, rdi
	je	.L2
	mov	rdx, QWORD PTR sdp_cb[rip+16]
	mov	ecx, 0
	jg	.L12
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	add	rcx, 1
	add	rdx, 24
	cmp	rdi, rcx
	je	.L4
.L12:
	cmp	QWORD PTR [rdx], rbx
	jne	.L6
	cmp	rdi, rcx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movdqu	xmm0, XMMWORD PTR 24[rdx]
	mov	rax, QWORD PTR 40[rdx]
	movups	XMMWORD PTR [rdx], xmm0
	mov	rsi, QWORD PTR 8[rdx]
	mov	QWORD PTR 16[rdx], rax
	test	rsi, rsi
	jle	.L8
	lea	rsi, [rax+rsi*4]
	.p2align 4,,10
	.p2align 3
.L9:
	sub	DWORD PTR [rax], 24
	add	rax, 4
	cmp	rsi, rax
	jne	.L9
.L8:
	add	rcx, 1
	add	rdx, 24
	cmp	rdi, rcx
	jne	.L10
.L7:
	lea	rsi, -1[rdi]
	lea	rdi, .LC0[rip]
	mov	QWORD PTR sdp_cb[rip], rsi
	call	SDP_TRACE_DEBUG@PLT
	cmp	QWORD PTR sdp_cb[rip+8], rbx
	je	.L25
.L11:
	mov	eax, DWORD PTR TRUE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR TRUE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	QWORD PTR sdp_cb[rip], 0
	mov	QWORD PTR sdp_cb[rip+8], 0
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR FALSE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	mov	QWORD PTR sdp_cb[rip+8], 0
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	SDP_DeleteRecord, .-SDP_DeleteRecord
	.comm	sdp_cb,24,16
	.comm	TRUE,4,4
	.comm	FALSE,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_DeleteRecord.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SDP_DeleteRecord ok, num_records:%d\012\000"
	.text
	.align	2
	.global	SDP_DeleteRecord
	.syntax unified
	.arm
	.fpu softvfp
	.type	SDP_DeleteRecord, %function
SDP_DeleteRecord:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	ldr	r5, .L24
	beq	.L2
	ldr	r6, [r5]
	cmp	r6, #0
	beq	.L2
	movgt	ip, #0
	ldrgt	r7, [r5, #8]
	bgt	.L12
	b	.L4
.L6:
	add	ip, ip, #1
	cmp	r6, ip
	add	r7, r7, #12
	beq	.L4
.L12:
	ldr	r3, [r7]
	cmp	r3, r4
	bne	.L6
	cmp	r6, ip
	ble	.L7
.L10:
	add	lr, r7, #12
	ldm	lr, {r0, r1, r2}
	subs	r3, r1, #0
	stm	r7, {r0, r1, r2}
	ble	.L8
	sub	r2, r2, #4
	add	r1, r2, r3, lsl #2
.L9:
	ldr	r3, [r2, #4]!
	sub	r3, r3, #12
	cmp	r1, r2
	str	r3, [r2]
	bne	.L9
.L8:
	add	ip, ip, #1
	cmp	r6, ip
	mov	r7, lr
	bne	.L10
.L7:
	sub	r1, r6, #1
	ldr	r0, .L24+4
	str	r1, [r5]
	bl	SDP_TRACE_DEBUG
	ldr	r3, [r5, #4]
	cmp	r3, r4
	moveq	r3, #0
	streq	r3, [r5, #4]
	ldr	r3, .L24+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r3, #0
	ldr	r2, .L24+8
	str	r3, [r5]
	ldr	r0, [r2]
	str	r3, [r5, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L24+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	.align	2
.L24:
	.word	sdp_cb
	.word	.LC0
	.word	TRUE
	.word	FALSE
	.size	SDP_DeleteRecord, .-SDP_DeleteRecord
	.comm	sdp_cb,12,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
