	.file	"extr_dns.c_find_closest_of_type.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	find_closest_of_type, @function
find_closest_of_type:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r9d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR 64[rsp]
	test	esi, esi
	je	.L2
	mov	rax, QWORD PTR [r15]
	sub	r14, 1
	lea	r15, 8[r15+rax*8]
	sub	r14, rax
.L2:
	test	r14, r14
	jne	.L5
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR [r15]
	lea	r15, 8[r15+rax*8]
	not	rax
	add	r14, rax
	je	.L3
.L5:
	push	0
	.cfi_def_cfa_offset 72
	mov	edi, DWORD PTR [rbx]
	mov	ecx, r13d
	mov	rdx, r14
	push	r12
	.cfi_def_cfa_offset 80
	xor	r9d, r9d
	mov	r8d, ebp
	mov	rsi, r15
	call	rrset_cache_lookup@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	rax, rax
	je	.L15
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	find_closest_of_type, .-find_closest_of_type
	.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_dns.c_find_closest_of_type.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_closest_of_type, %function
find_closest_of_type:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r2
	mov	r10, r1
	sub	sp, sp, #16
	ldr	ip, [sp, #56]
	mov	r7, r3
	cmp	ip, #0
	ldrne	r3, [r1]
	subne	r4, r2, #1
	addne	r1, r3, #1
	subne	r4, r4, r3
	addne	r10, r10, r1, lsl #2
	cmp	r4, #0
	mov	r6, r0
	ldr	r8, [sp, #48]
	ldr	r9, [sp, #52]
	beq	.L3
	mov	r5, #0
	b	.L5
.L15:
	ldr	ip, [r10]
	mvn	r3, ip
	add	ip, ip, #1
	adds	r4, r4, r3
	add	r10, r10, ip, lsl #2
	beq	.L3
.L5:
	stmib	sp, {r5, r8}
	str	r5, [sp, #12]
	str	r7, [sp]
	mov	r3, r9
	mov	r2, r4
	mov	r1, r10
	ldr	r0, [r6]
	bl	rrset_cache_lookup
	cmp	r0, #0
	beq	.L15
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	find_closest_of_type, .-find_closest_of_type
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
